<?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>turning on/off a LED by toggling a GPIO pin using a timer and PPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/32593/turning-on-off-a-led-by-toggling-a-gpio-pin-using-a-timer-and-ppi</link><description>Hi, 
 Application: turning on/off a LED by toggling a GPIO pin using a timer and PPI. Important: the on-time of the LED must be very precise, i.e. the jitter must be minimal. 
 I used the example &amp;quot;gpiote&amp;quot; found in the SDK and changed the toggle frequency</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Mar 2018 12:53:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/32593/turning-on-off-a-led-by-toggling-a-gpio-pin-using-a-timer-and-ppi" /><item><title>RE: turning on/off a LED by toggling a GPIO pin using a timer and PPI</title><link>https://devzone.nordicsemi.com/thread/125353?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 12:53:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88270b52-258a-4984-b773-1a6fb02dbfab</guid><dc:creator>felixgattiker@xrite.com</dc:creator><description>&lt;p&gt;Hi, thanks for the quick help. I have implemented your code snippet, which resulted in a much more stable signal!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: turning on/off a LED by toggling a GPIO pin using a timer and PPI</title><link>https://devzone.nordicsemi.com/thread/125351?ContentTypeID=1</link><pubDate>Wed, 21 Mar 2018 12:49:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086108b7-85dc-4ca7-bee3-f8d385c25f97</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Felix,&lt;/p&gt;
&lt;p&gt;The system use the internal oscillator by default (HFINT), which has a typical tolerance of +/- 1.5 % (max. +/- 6%). This probably why you are seeing the jitter.&amp;nbsp; A solution is to request the HFXO from your application when higher accuracy is needed:&lt;/p&gt;
&lt;p&gt;NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART&amp;nbsp; = 1;&lt;/p&gt;
&lt;p&gt;while (NRF_CLOCK-&amp;gt;EVENTS_HFCLKSTARTED == 0;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>