<?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 can I get an 8 MHz (PWM) signal out of a GPIO line?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1793/how-can-i-get-an-8-mhz-pwm-signal-out-of-a-gpio-line</link><description>I&amp;#39;m trying to just set up a Timer for 8 MHz frequency and have that output on a pin. It seems simple but I&amp;#39;m having some problems (the frequency is a lot lower). What am I doing wrong? 
 See code (I&amp;#39;m using the Soft Device). I imagine we only need to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Mar 2014 18:03:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1793/how-can-i-get-an-8-mhz-pwm-signal-out-of-a-gpio-line" /><item><title>RE: How can I get an 8 MHz (PWM) signal out of a GPIO line?</title><link>https://devzone.nordicsemi.com/thread/7828?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2014 18:03:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33c4d30e-45fc-4112-846f-b5bfa3ac214a</guid><dc:creator>Gil dePaula</dc:creator><description>&lt;p&gt;Thanks Ole!  I will use that example on GitHub.&lt;/p&gt;
&lt;p&gt;This &amp;quot;Simple PWM&amp;quot; example (modified) came from a Nordic employee, including the lack of error checking on SD calls for the PPI, but he said it wasn&amp;#39;t an &amp;quot;official Nordic example&amp;quot;. :-)&lt;/p&gt;
&lt;p&gt;In my real code I initialize the SD first.&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can I get an 8 MHz (PWM) signal out of a GPIO line?</title><link>https://devzone.nordicsemi.com/thread/7827?ContentTypeID=1</link><pubDate>Wed, 05 Mar 2014 09:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d77fc18-ede4-4425-8fd6-e50a65d08dde</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Have you seen &lt;a href="https://github.com/NordicSemiconductor/nrf51-8-mhz-gpio-clock"&gt;this&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Beware of PAN item 33, that causes it to not be possible to get an 8 MHz clock out of first revision chips. On second revision chips this is however not a problem, and the example works as-is.&lt;/p&gt;
&lt;p&gt;Edit: When I took a little closer look on your code, I see that you check call softdevice functions without checking error codes. That&amp;#39;s a scary thing to do, especially when you haven&amp;#39;t enabled the softdevice. No softdevice functions can be used when the softdevice is not enabled, and they all return 0x02, NRF_ERROR_SOFTDEVICE_NOT_ENABLED, meaning they have no effect. Lesson to be learned: Always check error codes when calling softdevice functions! :-)&lt;/p&gt;
&lt;p&gt;Also, you seem to lack the shortcut to clear the timer on CC, i.e. a line similar to &lt;a href="https://github.com/NordicSemiconductor/nrf51-8-mhz-gpio-clock/blob/master/main.c#L42"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>