<?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>Custom Synchronous Communication Protocol</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60805/custom-synchronous-communication-protocol</link><description>Hi, I&amp;#39;m developing firmware for the trf7970a nfc chip. For standard communication the chip uses spi, but a special direct mode uses an additional two wire interface where the chip generates the clock signal. The clock signal starts after TX enable is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 May 2020 12:59:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60805/custom-synchronous-communication-protocol" /><item><title>RE: Custom Synchronous Communication Protocol</title><link>https://devzone.nordicsemi.com/thread/247877?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 12:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2558f01d-a0fe-4773-9915-3798293cea0b</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry for the misunderstanding. GPIOTE task is not appropriate for this as it will only do&amp;nbsp;simple tasks. To be honest, I&amp;#39;m not sure if this is as trivial as I first thought &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt; An alternative could be to use the PWM peripheral to drive the data line but i&amp;#39;m not sure if this is a good solution either as it might be a bit complicated to implement. If SPI is an alternative then I would suggest going for that one..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Synchronous Communication Protocol</title><link>https://devzone.nordicsemi.com/thread/247643?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 18:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88028f1c-e8ef-4468-8930-146b86e2ae3b</guid><dc:creator>Sava</dc:creator><description>&lt;p&gt;Hi Jared,&lt;br /&gt;&lt;br /&gt;Sorry for my poor explanation of the problem. Each bit on the tx data line has to be set after the bit clock goes low to high as shown in the picture below. As stated, the clock is generated by another chip therefore using the spim library wouldn&amp;#39;t be possible. &lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1588271317001v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;&lt;br /&gt;Sava&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Synchronous Communication Protocol</title><link>https://devzone.nordicsemi.com/thread/247513?ContentTypeID=1</link><pubDate>Thu, 30 Apr 2020 11:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1809038f-0ad6-4826-ae09-0a49dafe4d5f</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="Sava"]The clock signal is generated by the nfc chip. [/quote]
&lt;p&gt;aha, I see..&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, you can start the SPI task TASKS_START on a low to high transition by using the rising edge GPIOTE event.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Synchronous Communication Protocol</title><link>https://devzone.nordicsemi.com/thread/247357?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 13:15:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7556c92d-5896-403f-9b5d-7dfa46c29535</guid><dc:creator>Sava</dc:creator><description>&lt;p&gt;Hi Jared,&lt;br /&gt;&lt;br /&gt;The clock signal is generated by the nfc chip. Can I use GPIOTE and PPI to synchronize the data line with the clock low-to-high transition?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Synchronous Communication Protocol</title><link>https://devzone.nordicsemi.com/thread/247339?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 12:35:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64f6a9df-772b-4f6d-b247-0addbdc909cc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You could produce the CLK signal with the PWM peripheral. You could then trigger the task start of the PWM by using PPI + GPIOTE and trigger it on a IN event&amp;nbsp;&lt;span&gt;on tx enable pin. See the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/nrf_gpiote_example.html?cp=7_1_4_6_14"&gt;GPIOTE example on how to use GPIOTE + PPI.&amp;nbsp;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>