<?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>SPI to UART pipe using PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93328/spi-to-uart-pipe-using-ppi</link><description>Can PPI be used to establish a pipe from a SPI output to an UART input?? PPI does not need CPU intervention, so it does not require CPU to read SPI and then write to UART. 
 Thanks, 
 JC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Oct 2022 13:02:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93328/spi-to-uart-pipe-using-ppi" /><item><title>RE: SPI to UART pipe using PPI</title><link>https://devzone.nordicsemi.com/thread/393242?ContentTypeID=1</link><pubDate>Mon, 31 Oct 2022 13:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c4dccef-1efe-415d-bfb6-8c1ee9caccb7</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again Joseph,&lt;br /&gt;&lt;br /&gt;Since we do not recommend sharing the easyDMA sections between peripherals we do not have any examples that demonstrates this exactly, but we do have general PPI/DPPI samples so that you can use to familiarize with the PPI/DPPI peripheral.&lt;br /&gt;The &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v3.1.99-ncs1/samples/boards/nrf/nrfx/src/main.c#L10"&gt;simplest one is shown here&lt;/a&gt;&amp;nbsp;and it shows how to connect a GPIOTE event to a GPIOTE task using PPI.&lt;br /&gt;You can then proceed to roughly use the same approach to link an SPI event to a UART task, for instance.&lt;br /&gt;&lt;br /&gt;Please do not hesitate to ask if you should have any questions! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI to UART pipe using PPI</title><link>https://devzone.nordicsemi.com/thread/393094?ContentTypeID=1</link><pubDate>Sat, 29 Oct 2022 00:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f53de01-6c74-4abc-82aa-a04ec0d84980</guid><dc:creator>jchan12345</dc:creator><description>&lt;p&gt;Hello Karl,&lt;/p&gt;
&lt;p&gt;Thanks for your quick response.&amp;nbsp; I will get a fixed rate output from SPI, so I may give it a shot.&amp;nbsp; Any examples using PPI are welcome.&amp;nbsp; I am just preparing myself for the task.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI to UART pipe using PPI</title><link>https://devzone.nordicsemi.com/thread/393014?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2022 12:17:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc272c67-ad6f-43c0-b214-6b67e7a5cc9d</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello JC,&lt;br /&gt;&lt;br /&gt;You are right that this can be done, technically.&lt;br /&gt;To do this, you could have both the SPI and UART point to the same easyDMA section, and then connect the SPI RX complete event to the UART TX task through PPI. This will cause the UART to echo the data that was just placed in the easyDMA section by the SPI peripheral, without any interaction by the CPU.&lt;br /&gt;However,&amp;nbsp;it is not recommended that you do this practically, since you will be in trouble if you - for whatever reason - receive anything else than the expected number of byte on the SPI.&lt;br /&gt;For this reason we do not recommend this use of the easyDMA + PPI (specifically, we do not recommend that different peripherals share sections of the easyDMA), but you are of course free to do this if you would like.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>