<?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>in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101927/in-the-nrf5340-what-value-appears-on-the-hardware-pwm-output-pin-when-the-duty-cycle-is-set-to-zero</link><description>I have a stand alone application on the NRF5340 that uses Zephyr and the PWM hardware with the nrfx_pwm driver. I am trying to control an RGB led and I have the hardware working with nrfx_simply_playback except for the case of a duty cycle of 0. 
 when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Aug 2023 07:07:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101927/in-the-nrf5340-what-value-appears-on-the-hardware-pwm-output-pin-when-the-duty-cycle-is-set-to-zero" /><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/439414?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 07:07:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0daf977-3cad-455f-bfa4-4d7e763e95cf</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ah, I loaded this ticket the day before I got to write an answer, so I didn&amp;#39;t see that you already figured it out. Glad to see that it worked out!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/439363?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 21:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e77ec9d0-be19-4527-b25e-2862ca09f347</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;i used 1 &amp;lt;&amp;lt;15 to invert the pins and so now it is working like i expect.&lt;/p&gt;
&lt;p&gt;you can just close the ticket&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/439190?ContentTypeID=1</link><pubDate>Tue, 01 Aug 2023 08:36:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:405574f3-c33e-4034-98c5-2c43df2368fb</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We are trying to balance the workloads after summer vacation, so Karl asked if I could take a look at this.&lt;/p&gt;
&lt;p&gt;I know you have sent a lot of the FW, but is it possible to zip the application folder that you are using, and upload it here so that I can easily replicate the behavior you are seeing myself?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, what NCS version are you currently running?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/439110?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2023 17:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d487c95c-d6de-4d65-a1aa-f9e873b3d5c8</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;i just changed my code to set bit 15 to invert the output and now things work like i expect.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrf_pwm_values_individual_t static seq_blue_values[] = {
    0   | 1 &amp;lt;&amp;lt;15,
    0   | 1 &amp;lt;&amp;lt;15,
    990 | 1 &amp;lt;&amp;lt;15,
    0   | 1 &amp;lt;&amp;lt;15
    };
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the top value is 1000.&lt;/p&gt;
&lt;p&gt;maybe the inversion is in my circuit to the leds.&lt;/p&gt;
&lt;p&gt;anyway its working now so you can close this ticket.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;phil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437746?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2023 04:14:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9eede54-305e-4c31-a527-d2f904668b87</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;yes i set them to the top value so the output pin is zero.&amp;nbsp; i am running an RGB led and when I want red only i want a PWM on the first pin and 0 on the next two pins.&amp;nbsp; so i set the first channel to the pwm i want and the other two channels to the counter top value to get them to output a 0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;// Declare variables holding PWM sequence values. In this example only one channel is used &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;//nrf_pwm_values_individual_t static seq_red_values[] = {500, 0, 0, 0};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;nrf_pwm_values_individual_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_red_values&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;500&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;nrf_pwm_sequence_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_red&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;values&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;p_individual&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_red_values&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;length&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_PWM_VALUES_LENGTH&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;seq_red_values&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;repeats&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;end_delay&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437698?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 14:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c514516-0bab-44e8-8210-cfc3206eedd0</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello again, Phil&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="weightwatcherphil"]&lt;div&gt;&lt;span&gt;nrf_pwm_values_individual_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_off_values&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;nrf_pwm_values_individual_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_off_values&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;[/quote]
&lt;p&gt;&lt;span&gt;It seems to me that you are setting the values for the sequence equal to the configured top_value, is this intentional?&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437291?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 14:13:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b69a1e2-5c33-47ad-a76b-1942ebc46144</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;to be really clear i have&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrfx_pwm_config_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;config1&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;output_pins&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;46&lt;/span&gt;&lt;span&gt; &amp;nbsp;,&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // P1.14 channel 0 &amp;nbsp;red &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;44&lt;/span&gt;&lt;span&gt; &amp;nbsp;,&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // P1.12 channel 1 &amp;nbsp;blue&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;47&lt;/span&gt;&lt;span&gt; &amp;nbsp;,&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // P1.15 channel 2 &amp;nbsp;green&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;NRFX_PWM_PIN_NOT_USED&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // channel 3&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;irq_priority&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;base_clock&lt;/span&gt;&lt;span&gt; &amp;nbsp; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_PWM_CLK_500kHz&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;count_mode&lt;/span&gt;&lt;span&gt; &amp;nbsp; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_PWM_MODE_UP&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;top_value&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;load_mode&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_PWM_LOAD_INDIVIDUAL&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;step_mode&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_PWM_STEP_AUTO&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//.skip_gpio_cfg = true,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;//.skip_psel_cfg =false&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; };&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrf_pwm_values_individual_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_off_values&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;nrf_pwm_values_individual_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;static&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_off_values&lt;/span&gt;&lt;span&gt;[]&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; {&lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1000&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;nrf_pwm_sequence_t&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;const&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_off&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;values&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;p_individual&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;seq_off_values&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;length&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;NRF_PWM_VALUES_LENGTH&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;seq_purple_values&lt;/span&gt;&lt;span&gt;),&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;repeats&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; .&lt;/span&gt;&lt;span&gt;end_delay&lt;/span&gt;&lt;span&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;nrfx_pwm_simple_playback&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;m_pwm1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;&amp;amp;&lt;/span&gt;&lt;span&gt;seq_off&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;NRFX_PWM_FLAG_LOOP&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;and the output on my pins P1.14&amp;nbsp; &amp;nbsp;P1,15 and P1.12&amp;nbsp; is a 1.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I expected all pins to have a 0 on the output.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;thanks&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;phil&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437270?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 13:24:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f47c58d-a5d2-416f-b878-f4c2e846a207</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;when the duty cycle is 0 what value appears on the output pin ?&lt;/p&gt;
&lt;p&gt;I thought it would be 0 but it looks like it is a &amp;#39;1&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i set countertop to 1000 and when the duty cycle is 1000 i get a 0 on the output.&lt;/p&gt;
&lt;p&gt;is that correct ?&amp;nbsp; I do not have bit 15 set so the output is not inverted.&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;phi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437162?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2023 08:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a61a26c-eb7b-49db-bdce-460cf86c02ad</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="weightwatcherphil"]thanks we can close this ticket.[/quote]
&lt;p&gt;No problem at all :)&amp;nbsp;&lt;/p&gt;
[quote user="weightwatcherphil"]when the pwm is running and the duty cycle is zero does the &amp;quot;duty cycle&amp;quot; control the pwm output or does the GPIO PIN configuration control the PWM output ?[/quote]
&lt;p&gt;I am not sure that I fully understand your question: When the PWM peripheral is enabled and running it will be in control of the GPIO it is configured to output to, regardless of the configured duty cycle (so also in the case that the duty cycle is 0).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437072?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 14:47:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f91ca7c-b304-4b94-bfd0-b4b393a3961b</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;when the pwm is running and the duty cycle is zero does the &amp;quot;duty cycle&amp;quot; control the pwm output or does the GPIO PIN configuration control the PWM output ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437070?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 14:43:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a39414d-1d4d-48c1-98a7-986f70fbbd34</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;thanks we can close this ticket.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/437060?ContentTypeID=1</link><pubDate>Tue, 18 Jul 2023 14:22:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0a79b95-bbd5-4181-b2b2-2db0141b97ee</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;I am glad to read that you now have got it working as desired! :)&amp;nbsp;&lt;br /&gt;For future reference &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/pwm.html"&gt;the reason for the unexpected behavior here was likely the configured polarity of the PWM&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/436848?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 20:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4281e74f-391a-493c-bc61-26818a4733aa</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;i was able to get P1.14 and P1.12 to be zero by programming the duty cycle 1o 1000 instead of 0000.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;so when duty cycle is 0 I get a&amp;nbsp; 1 on the output and when duty cycle matches counter top (in this case 1000) i get a 0 on the output.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: in the nrf5340 what   value appears on the hardware PWM output pin when the duty cycle is set to zero?</title><link>https://devzone.nordicsemi.com/thread/436632?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2023 06:20:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e0d81b-b1a9-459b-a591-b4a25863ac07</guid><dc:creator>weightwatcherphil</dc:creator><description>&lt;p&gt;when I run my program I see the proper PWM 50% duty cycle on pin 14 for the red LED.&amp;nbsp; however P1.15 and P1.12 are both high and I need them to be zero.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>