<?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>How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/100441/how-to-use-dcx-spi-configuration-in-zephyr</link><description>I successful use SPI by Zepher, I want communication with LCD Display but cant use SPI Data/Command option GPIO for config LCD ! 
 zephyr,gc9a01.yaml 
 
 .overlay 
 
 send data: 
 
 I read the datasheet of nrf52840 &amp;amp; i found D/CX SPI configuration! 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jun 2023 21:38:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/100441/how-to-use-dcx-spi-configuration-in-zephyr" /><item><title>RE: How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/thread/434027?ContentTypeID=1</link><pubDate>Fri, 30 Jun 2023 21:38:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1f8b374-9fc6-4180-a693-84db257a84f0</guid><dc:creator>jakkra</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/esmaeill"&gt;Esmaeill&lt;/a&gt;&amp;nbsp;did you figure all of this out? I&amp;#39;m trying to optimize my watch (&lt;a href="https://github.com/jakkra/ZSWatch"&gt;ZSWatch&lt;/a&gt;) display drawing and got to the same place as you that dcx is not supported in ncs/zephyr and I&amp;#39;d like to stay within Zephyr and not use nordics APIs directly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/thread/430767?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 12:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d04000c7-67fc-4c09-8b30-d52c482a6328</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome!&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="Esmaeill"]It is possible SPI zephyr library automation control D/Cx pin like CS? or not implemented yet ?[/quote]
&lt;p&gt;Could not find anything in our SDK. Did a quick search on the Zephyr Discord server, and found &lt;a href="https://discord.com/channels/720317445772017664/883445320812466209/886716218990538763"&gt;this thread discussing similar topic&lt;/a&gt;..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/thread/430297?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 18:21:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6820fc6b-f2c8-4403-9abc-28f0804482ed</guid><dc:creator>Esmaeill</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f339.svg" title="Rose"&gt;&amp;#x1f339;&lt;/span&gt;.&lt;br /&gt;It is possible SPI zephyr library automation control D/Cx pin like CS? or not implemented yet ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/thread/430129?ContentTypeID=1</link><pubDate>Fri, 09 Jun 2023 07:36:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eeec723-4ba2-4572-9ea2-1c21bcf1a39d</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Happy to help!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Don&amp;#39;t forget to look at our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrfx/drivers/spim/driver.html?highlight=nrfx_spim_xfer_dcx#c.nrfx_spim_xfer_dcx"&gt;nrfx_spim library&lt;/a&gt;, and the &lt;a href="https://github.com/zephyrproject-rtos/hal_nordic/blob/140140ea047f441fe076d26f79eb54dc9a38bcb6/nrfx/drivers/include/nrfx_spim.h#L354-L387"&gt;nrfx_spim_xfer_dcx() function&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&amp;nbsp;&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/thread/429883?ContentTypeID=1</link><pubDate>Thu, 08 Jun 2023 05:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff78a7b1-4b91-49dd-b300-3e4f58741f92</guid><dc:creator>Esmaeill</dc:creator><description>&lt;p&gt;Thanks, it helped a lot.&lt;/p&gt;
&lt;p&gt;in that sample, for control D/C pin of LCD &lt;span class="HwtZe" lang="en"&gt;&lt;span class="jCAhz ChMk0b"&gt;&lt;span class="ryNqvb"&gt;Was used&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; normal GPIO set/reset fanctions.&lt;/p&gt;
&lt;p&gt;Since the related functions are not implemented, I think that using register values can help. Something similar to this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// D/Cx Control
NRF_SPIM1-&amp;gt;DCXCNT=0; //0x0-0xf
NRF_SPIM1-&amp;gt;PSELDCX=(4&amp;lt;&amp;lt;0)|(0&amp;lt;&amp;lt;5)|(0&amp;lt;&amp;lt;31);//P0.4 Connect&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But in the first attempt, the system restarts!!&lt;/p&gt;
&lt;p&gt;Thanks for the help, I will probably look into this more in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use DCX SPI configuration in Zephyr !?</title><link>https://devzone.nordicsemi.com/thread/429294?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2023 12:30:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0dabe7a-d583-402f-a97c-f2b0c86e1dc5</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not familiar with the&amp;nbsp;&lt;span&gt;gc9a01 display, as this seems not be a part of the Zephyr environment. This means that there is no driver for this display. A quick Google search did bring me to the ZSWatch, which is a open-source watch running Zephyr and the gc9a01 display:&amp;nbsp;&lt;a href="https://github.com/jakkra/ZSWatch"&gt;https://github.com/jakkra/ZSWatch&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>