<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Something was wrong when I driver LCD(ili9486) with SPIM3?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59098/something-was-wrong-when-i-driver-lcd-ili9486-with-spim3</link><description>Hi, 
 I am trying to use SPIM3 to drive LCD(ili9486), but I have encountered some problems, hoping to give me a solution. 
 I have 2 questions: 
 1. spi_config.dcx_pin 
 How to set this pin?I init this pin with NRF_GPIO_PIN_MAP(1,8),but it did&amp;#39;t work</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2020 07:11:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59098/something-was-wrong-when-i-driver-lcd-ili9486-with-spim3" /><item><title>RE: Something was wrong when I driver LCD(ili9486) with SPIM3?</title><link>https://devzone.nordicsemi.com/thread/241031?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2020 07:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ae79a52-b241-4571-bd74-9b9fe0a76a5d</guid><dc:creator>IAMLIUBO</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for relpy me.&lt;/p&gt;
&lt;p&gt;1.I use the &lt;strong&gt;nrfx_spim&lt;/strong&gt; example to do this project,I think the SPIM3 configured is right.Is there anything that needs special attention?&lt;/p&gt;
&lt;p&gt;2.Sorry, I didn&amp;#39;t have&amp;nbsp;&lt;span&gt;logic analyzer,but I use the spi without DMA,It can be work,and works well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks for help me again,I will keep trying it.&amp;nbsp;In fact, I was porting littleVGL to nrf52840, but because the SPI transmitted too few bytes at a time, the refresh effect was too poor, so I started to try SPIM, but found that it was not as smooth as SPI.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Have a nice day!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Something was wrong when I driver LCD(ili9486) with SPIM3?</title><link>https://devzone.nordicsemi.com/thread/240047?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 14:29:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd1c2bb5-5846-4f65-85e8-8d371d4c9947</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;1. I tested setting the DCX pin to&amp;nbsp;&lt;span&gt;NRF_GPIO_PIN_MAP(1,8) in the nrfx_spim example in the SDK, this works fine. I also tested that the pin toggles by reducing the last parameter to&amp;nbsp;nrfx_spim_xfer_dcx() from 15 to 5:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e17de34c3fbb4981a377cfd17d547ad6/spim3_5F00_dcx.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you sure that you have configured the driver correctly to use SPIM3? SPIM3 is the only instance that supports DCX functionality and HW SS control.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. It is hard to say what goes wrong here. Unfortunately, I do not have any display to test your code with. Have you checked the bytes sent on the bus with a logic analyzer and compared this to the command set described in the LCD datasheet?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>