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 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
Hi, thanks for your answer.
Great example it works fine thank you. I think it would be easier, if such an example comes with the sdk, ist pretty helpful :)
I would accept this answer but ts not my topi it belongs to "sd"
Thank you for helping :)