This repository has been archived by the owner on Feb 4, 2023. It is now read-only.
Frequency change on cycle end. #1
Unanswered
legitnoscam
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi @legitnoscam Your description is not clear. Is your issue similar to what was described in Changing Duty Cycle Dynamically Creates Runt PWM pulse #10 ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @legitnoscam Please check the new ESP32_FastPWM v1.1.0 to see if the glitch has gone. I've tried the best with my scope, but haven't seen the glitch yet. Releases v1.1.0
|
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, is there a way to change frequency of PWM only on rising or falling edge of the signal? If i do it like in the example:
`frequency = 1000.0f;
Serial.print(F("Change PWM Freq to "));
Serial.println(frequency);
PWM_Instance->setPWM(pinToUse, frequency, 50.0f);
printPWMInfo(PWM_Instance);
delay(2);
frequency = 10000.0f;
Serial.print(F("Change PWM Freq to "));
Serial.println(frequency);
PWM_Instance->setPWM(pinToUse, frequency, 50.0f);
printPWMInfo(PWM_Instance);`
then the frequency is "forced" to change.
Beta Was this translation helpful? Give feedback.
All reactions