This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Is there an example code for using PWM on the nRF51822 with a SoftDevice?

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?

Parents
  • 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

Reply
  • 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

Children
No Data
Related