This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Now need pwm_driver demo5 duty ratio, is there any way to 1/6 or 1/8?

How do you do Now need pwm_driver demo5 duty ratio, is there any way to 1/6 or 1/8?PWM and phase difference is 4 road? Ask for a few days, change seq_values [], but how to change?Try to success.

image description

Parents
  • seq_values_new[0].channel_0 = (0x8000|2778|m_demo1_top/2); seq_values_new[0].channel_2 = (0x8000|2778|m_demo1_top/2); nrf_pwm_values_t new_pwm_values;

    new_pwm_values.p_individual = seq_values_new;
        
    nrf_drv_pwm_sequence_values_update(&m_pwm0,1,new_pwm_values);
    

    m_demo1_top from BLE, There are two problems. 1, seq_values_new [0]. Channel_0 did not change 2, seq_values_new [0]. Channel_2 = (0 x8000 | 2778 | m_demo1_top / 2);This setting change cycle and duty cycle

Reply
  • seq_values_new[0].channel_0 = (0x8000|2778|m_demo1_top/2); seq_values_new[0].channel_2 = (0x8000|2778|m_demo1_top/2); nrf_pwm_values_t new_pwm_values;

    new_pwm_values.p_individual = seq_values_new;
        
    nrf_drv_pwm_sequence_values_update(&m_pwm0,1,new_pwm_values);
    

    m_demo1_top from BLE, There are two problems. 1, seq_values_new [0]. Channel_0 did not change 2, seq_values_new [0]. Channel_2 = (0 x8000 | 2778 | m_demo1_top / 2);This setting change cycle and duty cycle

Children
No Data
Related