<?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>PWM inverted when not using Segger</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10339/pwm-inverted-when-not-using-segger</link><description>I&amp;#39;m rolling my own very simple PWM implementation (I&amp;#39;m not using the PWM example code). My code is below: 
 #define GPIOTE_CHANNEL_NUMBER 0
#define PCLK16M 16000000
#define FSK_FREQ 17000
#define FSK_CC0 (PCLK16M / FSK_FREQ)
#define FSK_PULSE_PERIOD_US</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2015 10:39:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10339/pwm-inverted-when-not-using-segger" /><item><title>RE: PWM inverted when not using Segger</title><link>https://devzone.nordicsemi.com/thread/38381?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2015 10:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd6cb02-3ffe-4926-a842-771ace5e2561</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;It is not trivial to write software that reliably output a PWM on the nRF51. The &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk51.v10.0.0/lib_pwm.html?resultof=%22%70%77%6d%22%20%22%6c%69%62%72%61%72%79%22%20%22%6c%69%62%72%61%72%69%22%20"&gt;PWM library&lt;/a&gt; in SDK 10 handles this properly, and I recommend you to use it. Earlier versions of the PWM  library has problems with inversion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>