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

how to make PWM pulse in both channels

Hi

i wrote the program which is making pulse one time on channel 0 and then followed by channel 1 and then again channel 0 and then 1 going on , my aim is to create pulses on both channel at the same time i tested by conencting buzzer on pin 6 and pin 7 so can anyone help me how to create that any help will be appreicated

Thank you

main.c

Parents Reply
  • It will not be totally synchronous. The first pwm channel will be updated with the duty set function, then the code will wait for the update to take effect, either with waiting for pwm ready callback or wait for the duty set function to not return NRF_ERROR_BUSY. Then the other channel may be updated. Because of this, there will be an interval of 1 or 2 periods where the PWM channels have different duty cycle.

Children
No Data
Related