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

PWM outputs in nRF51822

Hi, I need 6 PWM channels for a BLE project. Is there any solution to add 2 other pwm channels to nRF51822? If not, Which other Nordic ICs might be helpful instead? Thank you

  • Hi,

    The nRF51822 has 4 GPIOTE channels, and this sets the upper limit for hardware PWM channels to 4. If you need more than that you would have to implement them purely in software, using timer interrupts to update the outputs manually. This would severely limit the PWM frequency, but for LED control it might be sufficient since a PWM frequency of 60-100Hz is usually sufficient.

    If you need more than 4 PWM channels I would recommend upgrading to the nRF52832. The nRF52832 has 12 hardware PWM channels with DMA, and also allows 8 GPIOTE based PWM channels. So you can have 20 PWM channels in total with the nRF52832.

Related