Replies: 1 comment 3 replies
-
With the old version (before v1.10.5.4 / #1049), the PWM frequency could only be configured via the 3-bit clock divider - which only allowed a very limited spectrum: neorv32/sw/lib/include/neorv32.h Lines 210 to 219 in a9a8e20 This is precisely why the PWM module has been revised and now offers far more options for setting the PWM frequency. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't figure out how to set a PWM frequency of any value between 10kHz and 20kHz using the
neorv32_pwm_setup()
function.Note I am using an old version of Neorv32 that only accepts one parameter as input to this function, i.e. the clock prescaler 3-bits.
I can achieve 6.1kHz with the prescaler_64 and the next prescaler jumps to 48kHz. How can I achieve programmable PWM frequency?
Beta Was this translation helpful? Give feedback.
All reactions