Replies: 1 comment
-
The PWM module has 2 slices, not connected to any specific cores, each of which can have a different clock divider. Only one slice can talk to any GPIO pin and it's a very idiosyncratic configuration of duplicated A/B channels. It's gonna be complicated, but you can use the raw SDK calls to configure the slices independently using the RP2040 datasheet as a reference. The Arduino core itself isn't going to support this since there's no good way of fitting that oddity into the Arduino way. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Earl,
Thank you for the amazing work. Would it be possible to run the two independent cores at their own PWM frequencies? Currently, with analogWriteFrequency it sets the frequency on both cores and a subsequent call to it in the second core has no effect.
Thank you
Uttam
Beta Was this translation helpful? Give feedback.
All reactions