Hi I'm starting to work on a device in which I want to use the nrf52840.
I would like to create 6 PWM signals with different duty cycles and the same frequency (20kHz)
Is this possible on nrf52840 using the PWM driver?
Hi I'm starting to work on a device in which I want to use the nrf52840.
I would like to create 6 PWM signals with different duty cycles and the same frequency (20kHz)
Is this possible on nrf52840 using the PWM driver?
Hello,
I would like to create 6 PWM signals with different duty cycles and the same frequency (20kHz)
Is this possible on nrf52840 using the PWM driver?
Yes, this is possible, but you will have to use two PWM instances, since each PWM instance only has 4 channels.
To use the PWM peripheral you can either use the PWM driver, or the PWM library for a higher level of abstraction.
You can see them demonstrated in the PWM Driver example, or the PWM Library example.
Please do not hesitate to ask if you should encounter any other issues or questions in the future!
Best regards,
Karl
Hi Karl, thank you for the great information. This is exactly what I was looking for.
best,
Tim
Hello Tim,
Timer1 said:thank you for the great information. This is exactly what I was looking for.
I am happy to hear that! No problem at all :)
Please do not hesitate to open another ticket if you should encounter any other issues or questions.
Good luck with your development!
Best regards,
Karl