<?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>Cannnot toggle on/off the PWM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/40875/cannnot-toggle-on-off-the-pwm</link><description>Hi, 
 I try to Toggle ON/OFF the PWM using simple code below. 
 The PWM does not generate any output. 
 Please see code below; 
 /***************************************************************/ log_init(); timers_init(); leds_init(); power_management_init</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Nov 2018 14:11:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/40875/cannnot-toggle-on-off-the-pwm" /><item><title>RE: Cannnot toggle on/off the PWM</title><link>https://devzone.nordicsemi.com/thread/159052?ContentTypeID=1</link><pubDate>Mon, 26 Nov 2018 14:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7103643c-8a33-4b09-98a2-f0ce14095839</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;You can&amp;#39;t do it that way, instead you can use:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    while (true)
    {        
        app_pwm_channel_duty_set(&amp;amp;PWM1, 0, 0);
        nrf_delay_ms(100);
        app_pwm_channel_duty_set(&amp;amp;PWM1, 0, 50);
        nrf_delay_ms(100);
    }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>