<?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 PHASE 120 degrees</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65666/pwm-phase-120-degrees</link><description>Hi, i am using the nRF52dk would and im using the pwm driver example and im trying to understand the way the seq_values void works when it comes to phase or sequence would it be possible to to get some explaining and how it works please. 
 thanks for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 11 Sep 2020 15:07:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65666/pwm-phase-120-degrees" /><item><title>RE: PWM PHASE 120 degrees</title><link>https://devzone.nordicsemi.com/thread/269209?ContentTypeID=1</link><pubDate>Fri, 11 Sep 2020 15:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1051ef5-b279-4c5d-b9d9-11a647be628d</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have not worked with BLDC before, but you could try to create a update function that changes the&amp;nbsp;seq_values&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM PHASE 120 degrees</title><link>https://devzone.nordicsemi.com/thread/268817?ContentTypeID=1</link><pubDate>Wed, 09 Sep 2020 19:29:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e7952d-368f-49b8-a8c2-3649c472db77</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;YES! thank you very much for your help, the scope for this is i need to move a bldc also is there some advice you can give me with regards to how i should attempt to go about with the 6 step commutation sequences of a bldc 3 phase bridge&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM PHASE 120 degrees</title><link>https://devzone.nordicsemi.com/thread/268604?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 21:10:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56d6491d-abed-43b6-9c0d-5e2e31c610f1</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;So with 120 degrees, you are trying to generate the signal shown here?&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-4e716daae4e44edbab37dd0d394ae3bd/pastedimage1599599386827v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    nrf_drv_pwm_config_t const config0 =
    {
        .output_pins =
        {
            BSP_LED_0 | NRF_DRV_PWM_PIN_INVERTED, // channel 0
            BSP_LED_1 | NRF_DRV_PWM_PIN_INVERTED, // 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_125kHz,
        .count_mode   = NRF_PWM_MODE_UP,
        .top_value    = 15625,
        .load_mode    = NRF_PWM_LOAD_INDIVIDUAL,
        .step_mode    = NRF_PWM_STEP_AUTO
    };
    APP_ERROR_CHECK(nrf_drv_pwm_init(&amp;amp;m_pwm0, &amp;amp;config0, NULL));

    // 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 nrf_pwm_values_individual_t /*const*/ seq_values[] =
    {
        { 0x8000,      0,      0,      0 },
        {      0, 0x8000,      0,      0 },
        {      0,      0,      0,      0 }
    };
    nrf_pwm_sequence_t const seq =
    {
        .values.p_individual = 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, 1, 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 PHASE 120 degrees</title><link>https://devzone.nordicsemi.com/thread/268496?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 11:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a7c216-6f37-46da-8879-177cb0943e09</guid><dc:creator>NikTheNordicUser</dc:creator><description>&lt;p&gt;Hi i have looked into that already but i was unable to move the phase more than 90 degrees&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM PHASE 120 degrees</title><link>https://devzone.nordicsemi.com/thread/268484?ContentTypeID=1</link><pubDate>Tue, 08 Sep 2020 11:16:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5049a37-11ed-426a-8186-f3e50d25a05e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Documentation for the PWM driver can be found &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.0%2Fhardware_driver_pwm.html"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Documentation&amp;nbsp;&lt;/span&gt;for the PWM peripheral&amp;nbsp;can be found &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pwm.html#concept_pzc_1pw_nr"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>