<?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>Sync between PWM and SAADC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64995/sync-between-pwm-and-saadc</link><description>Hi, 
 I&amp;#39;m looking for a basic example to sync PWM pulses with SAADC using software API 
 
 
 There is an example of it?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 20 Aug 2020 10:40:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64995/sync-between-pwm-and-saadc" /><item><title>RE: Sync between PWM and SAADC</title><link>https://devzone.nordicsemi.com/thread/265511?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 10:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1b87c35-0e4a-4510-b53c-9d1652713578</guid><dc:creator>mrono</dc:creator><description>&lt;p&gt;I&amp;#39;ve never tried it, but there is a PWM event called PWMPERIODEND. It seems like this could be used to trigger sampling on each period like in the illustration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sync between PWM and SAADC</title><link>https://devzone.nordicsemi.com/thread/265507?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 10:27:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34fd0308-3af7-43b7-9118-e57f3dbd6d95</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are a few different options:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Connect a GPIO input pin to the PWM output pin, and use PPI to trigger SAADC sampling when there is a transition in the PWM signal. This would give you a predictable delay of a few 16 MHz clock cycles which may or may not be a problem. I suspect this is the best option.&lt;/li&gt;
&lt;li&gt;Use the EGU and PPI to trigger the start task for both SAADC and PWM. This would start them at the exact same time, but I suspect this is not what you want in this case (by looking at the image).&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>