I'm looking to add PWM functionality to my design to drive an LED. Examples exist for other devices, and those don't use the SoftDevice. Is there an example or some reference design for making the PWM module work with the nRF51822 and SD?
I'm looking to add PWM functionality to my design to drive an LED. Examples exist for other devices, and those don't use the SoftDevice. Is there an example or some reference design for making the PWM module work with the nRF51822 and SD?
Hi Andreas
Did you figure this out?
For questions like these I would recommend opening a new thread, otherwise it will quickly get lost. You can always refer to this thread to put your question in context.
To answer your question, make sure you are not updating the CC registers while the timer value is at some random spot between min and max. If you look at the PWM example you can see that the CC registers are only updated while the timer is stopped and the timer value is at the max position.
Best regards Torbjørn
Hi Andreas
Did you figure this out?
For questions like these I would recommend opening a new thread, otherwise it will quickly get lost. You can always refer to this thread to put your question in context.
To answer your question, make sure you are not updating the CC registers while the timer value is at some random spot between min and max. If you look at the PWM example you can see that the CC registers are only updated while the timer is stopped and the timer value is at the max position.
Best regards Torbjørn