10 years, 7 months ago.

PwmOut channels for nRF51822 - how does one increase number of channels?

A previous question revealed that number of PwmOut channels is set to 3 but a line of code in the source code as follows: #define NO_PWMS 3 Is there is a way to change this to 5 or 6? As a newby to mbed, what is the process to request such a change? or does one build and edit a local version of the appropriate library function?

1 Answer

10 years, 7 months ago.

I don't have NRF myself, but normally such values are set like that simply because there is no more PWM hardware on board. So you can change it, but then it will simply crash when running the program.

Accepted Answer

Looking at the datasheet I see only 3 timers, which puts your answer into perspective - thanks

posted by Franco Giangregorio 22 Feb 2015