Replies: 1 comment 2 replies
-
You can try my RP2040_PWM to see if OK for you.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all.
I am using a generic RP2040 and setting the analog write frequency to 20000 Hz with a 10 bit write resolution.
I'm intending to perform regenerative braking for a motor controller. This will require me to toggle multiple H bridge pins in sync. It would seem that port manipulation offers a means to digitally toggle pins simultaneously, however as I am performing motor control with PWM I am in search of an analogWrite equivalent. I was wondering if anyone has attempted to do this using the hardware timers on the RP2040?
thanks, KChegwin
Beta Was this translation helpful? Give feedback.
All reactions