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

troubles in 4 channels PWM signal generation

Hello,

I try to generate 4 PWM signals on an nRF51 DK board, but I have two troubles :

  • in the "Simple PWM", during nrf_pwm_set_value() function the TIMER is stopped and restarted, which will cause a glitch on the other channel too

  • I experience, that sometimes an event can be lost, which causes, that the pwm signal will change its polarity If I see well, the 73. anomaly in nRF51822-PAN v3.0.pdf is in contact with this affect.

I would be very thankful if somebody could help me.

Best Regards Gyorgy

Parents Reply
  • Hi Stefan, thank you for your quick answer. I checked the new nrf_pwm files. My first trouble seems to be solved, I can generate pwm signals on 4 channel. But the second behaviour is the same as before, if I modify the values with nrf_pwm_set_value(), the polarity of this output signal can sometimes be inverted. I experienced, this incident happens mainly, if more channels hold the same setup value. If I restart the wrong channel from 0, the output signal will be good again. Best Regards: Gyorgy

Children
No Data
Related