I know that it is possible to make 4 PWM outputs, but I need to generate 5. I will be using SoftDevice 110 and BLE. Is there any possible way to generate a 5th PWM output?
Any advice would be much appreciated.
I know that it is possible to make 4 PWM outputs, but I need to generate 5. I will be using SoftDevice 110 and BLE. Is there any possible way to generate a 5th PWM output?
Any advice would be much appreciated.
Hi,
We have 4 compare events per timer instance, for each of these 4 one will be used as a reset. That means that we're left with three possible outputs per timer. In operation alongside the SoftDevice we will have access to two timers, this gives us a total of 6 outputs.
The problem is that we only have 4 GPIOTE slots, which means that you will not get reliable PWM output, this might be fine if you want to control a LED or simple motor.
For help on implementation search google for "bit bang pwm", and there should be some useful results.
Best regards,
Øyvind
Bit bang is not reliable, GPIOTE helps make the big bang implementation more reliable. For the 5th PWM you would not have a GPIOTE available, that makes things even harder.
Bit bang is not reliable, GPIOTE helps make the big bang implementation more reliable. For the 5th PWM you would not have a GPIOTE available, that makes things even harder.