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 all

    Please have a look at the attached example. It allows you to configure up to 3 IO's to run PWM, and gives you some different modes to pick from (varying base frequency, resolution).

    It will work with or without the SoftDevice, as long as you make sure torun the pwm_init() function before enabling the SoftDevice.

    This should not be considered an official Nordic example by the way ;)

    Best regards Torbjørn

    Simple PWM v1.0.zip

Reply
  • Hi all

    Please have a look at the attached example. It allows you to configure up to 3 IO's to run PWM, and gives you some different modes to pick from (varying base frequency, resolution).

    It will work with or without the SoftDevice, as long as you make sure torun the pwm_init() function before enabling the SoftDevice.

    This should not be considered an official Nordic example by the way ;)

    Best regards Torbjørn

    Simple PWM v1.0.zip

Children
Related