<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39340/pwm</link><description>Hi every body, 
 There is a problem with pwm driver example in demo3 part! after downloading, the board led is just on as it must, but after changing top_value there is no changing in led brightness! 
 If somebody know, please let me know how to change</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Dec 2018 06:17:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39340/pwm" /><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/162930?ContentTypeID=1</link><pubDate>Mon, 24 Dec 2018 06:17:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:325b0589-ef00-41b3-8919-e33442906dbf</guid><dc:creator>inghowe83</dc:creator><description>&lt;p&gt;may I know where to change the duty cycle? The documentation is kinda hard to read and understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152573?ContentTypeID=1</link><pubDate>Fri, 12 Oct 2018 05:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82217332-e38e-4d6a-b72b-3e868f7a6a8a</guid><dc:creator>D</dc:creator><description>&lt;p&gt;Thank you awneil. it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152396?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 15:51:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3afc6031-1856-47b4-bd63-e3eeb303fdb8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;No.&lt;/p&gt;
&lt;p&gt;The &amp;quot;top&amp;quot; value sets the period - it&amp;#39;s the duty cycle that you need to vary.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152385?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 14:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a43f0626-cb61-4df0-8016-546708c92793</guid><dc:creator>D</dc:creator><description>&lt;p&gt;After put the code instead of the demo3 and decreasing the top_value i expected to observe changing in led brightness. But nothing happened.&amp;nbsp;I want to know know how to change the led intensity brightness.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152381?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 14:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:125a7d98-864a-499b-9869-ffd68e733833</guid><dc:creator>awneil</dc:creator><description>[quote userid="73588" url="~/f/nordic-q-a/39340/pwm/152362"]i saw your post before which it was about set a fixed duty cycle[/quote]
&lt;p&gt;This one:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38607/nrf5-sdk15-0---pwm-driver-just-set-a-fixed-duty-cycle"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38607/nrf5-sdk15-0---pwm-driver-just-set-a-fixed-duty-cycle&lt;/a&gt;&amp;nbsp;?&lt;/p&gt;
&lt;p&gt;So did you see what I said about setting top_value = 0x8000 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152380?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 14:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1e07b47-2ab9-4271-a495-f1296506657e</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So what, exactly, happens when you run that code?&lt;/p&gt;
&lt;p&gt;And what were you &lt;em&gt;expecting&lt;/em&gt; to happen?&lt;/p&gt;
&lt;p&gt;And what testing / debugging / investigation have &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt;&lt;/em&gt; done to find the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152377?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 14:00:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfcb343b-5f51-4ba0-b848-62cbab6a1cca</guid><dc:creator>D</dc:creator><description>&lt;p&gt;moreover i put it bellow code instead of demo 3:&lt;pre class="ui-code" data-mode="text"&gt;static void demo3(void)
{
    NRF_LOG_INFO(&amp;quot;Demo 3&amp;quot;);

    /*
     * This demo uses only one channel, which is reflected on LED 1.
     * The LED blinks three times (200 ms on, 200 ms off), then it stays off
     * for one second.
     * This scheme is performed three times before the peripheral is stopped.
     */

    nrf_drv_pwm_config_t const config0 =
    {
        .output_pins =
        {
            BSP_LED_0 | NRF_DRV_PWM_PIN_INVERTED, // channel 0
            NRF_DRV_PWM_PIN_NOT_USED,             // channel 1
            NRF_DRV_PWM_PIN_NOT_USED,             // channel 2
            NRF_DRV_PWM_PIN_NOT_USED,             // channel 3
        },
        .irq_priority = APP_IRQ_PRIORITY_LOWEST,
        .base_clock   = NRF_PWM_CLK_2MHz,//NRF_PWM_CLK_125kHz,
        .count_mode   = NRF_PWM_MODE_UP,
        .top_value    = 32768, // = 0x8000
        .load_mode    = NRF_PWM_LOAD_COMMON,
        .step_mode    = NRF_PWM_STEP_AUTO
    };
    APP_ERROR_CHECK(nrf_drv_pwm_init(&amp;amp;m_pwm0, &amp;amp;config0, NULL));
    m_used |= USED_PWM(0);

    // This array cannot be allocated on stack (hence &amp;quot;static&amp;quot;) and it must
    // be in RAM (hence no &amp;quot;const&amp;quot;, though its content is not changed).
    static uint16_t /*const*/ seq_values[] =
    {
        0x3000,
//        0x2000,
//        0x4000,
//        0x6000,
//        0x7FFF,
//        0x8000
    };
    nrf_pwm_sequence_t const seq =
    {
        .values.p_common = seq_values,
        .length          = NRF_PWM_VALUES_LENGTH(seq_values),
        .repeats         = 0,
        .end_delay       = 0
    };

    (void)nrf_drv_pwm_simple_playback(&amp;amp;m_pwm0, &amp;amp;seq, 3, NRF_DRV_PWM_FLAG_LOOP);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152366?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 12:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:263a148c-8c24-47fa-93f9-7ac7f1a846b0</guid><dc:creator>D</dc:creator><description>&lt;p&gt;I mean to say that for example turning an led on with 80 percent brightness or 10 percent or...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152362?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 12:47:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dcbfc72-0e02-430f-a3fb-9d09ecfdc57a</guid><dc:creator>D</dc:creator><description>&lt;p&gt;Thank you for replying. i saw your post before which it was about set a fixed duty cycle. i want to turn the led on with different brightness . My main goal is using these different brightness for making different color in one RGB led.&lt;/p&gt;
&lt;p&gt;i dont need the led go from 0 to 100 or vice versa. just a constant led brightness.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pwm</title><link>https://devzone.nordicsemi.com/thread/152358?ContentTypeID=1</link><pubDate>Wed, 10 Oct 2018 12:38:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ebefab6-93da-4864-8dcc-0c3b9e82dff9</guid><dc:creator>awneil</dc:creator><description>[quote userid="73588" url="~/f/nordic-q-a/39340/pwm"]after changing top_value [/quote]
&lt;p&gt;to what? and how did you change it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>