<?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>5 independent PWM channels with nRF51 SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9991/5-independent-pwm-channels-with-nrf51-sdk</link><description>Hello, 
 I&amp;#39;m new to nRF51 and would like to understand if it is possible to output 5 independent PWM signals to 5 GPIO pins simultaneously on a nRF51? 
 Thank you.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Oct 2015 08:25:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9991/5-independent-pwm-channels-with-nrf51-sdk" /><item><title>RE: 5 independent PWM channels with nRF51 SDK</title><link>https://devzone.nordicsemi.com/thread/37046?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2015 08:25:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba1cf333-36e8-471f-93d7-1fae2cbf3038</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;For the nRF51 you can have a maximum of 4 PWM channels, this is because we have 4 GPIOTE channels.&lt;/p&gt;
&lt;p&gt;In theory we could have 8 due to the timers having 4 compare events, however you typically will need one of those compare events to do a reset, so we end up with a theoretical max of 6.&lt;/p&gt;
&lt;p&gt;This means that you will have trouble using more than four channels without a GPIO expander on the nRF51.&lt;/p&gt;
&lt;p&gt;If you decide to use the nRF52 instead that has three PWM modules which can provide up to &lt;a href="http://infocenter.nordicsemi.com/topic/nrf52.v1.7/Chunk579441394.html?cp=1_1_0_43#concept_pzc_1pw_nr"&gt;12 PWM channels&lt;/a&gt;. This is a hardware PWM, as opposed to the &lt;a href="https://en.wikipedia.org/wiki/Bit_banging"&gt;bitbang&lt;/a&gt; implementation on the nRF51, this means that it will in most cases perform better.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>