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

About pwm_driver demo5 PWM duty cycle in the set?

How do you do Now use E: \ Nordic \ nRF5_SDK_12 2.0 _f012efa \ examples \ peripheral \ pwm_driver \ pca10040 demo5 of routines The program below:image description Using the oscilloscope seen 1/4 duty ratio image description

Now need this routine duty than to have to 1/6 or 1/8? I tried to change seq_values [] in value, if the two road PWM duty ratio is 1/6?But there are two questions:

1.static nrf_pwm_values_individual_t const / * * / seq_values [] this definition without PWM output is a touch of "static", if there is a static definition must be a fixed value?

  1. if the two road Ppwm_driver.rarWM, a total of 6 road PWM if I can, because only defines the 4-way PWM nrf_pwm_values_individual_t here?

Finally, I want to use demo5 output PWM duty ratio is 1/6 or 1/8 to? Looking forward to your reply, attachment for code。

Related