guild icon
Toit
#MCPWM
Thread channel in help
smolesen
smolesen 10/21/2022 12:49 PM
Is there any support for MCPWM in Your?
floitsch
floitsch 10/21/2022 12:50 PM
Not yet. We use the ledc for PWM.
floitsch
floitsch 10/21/2022 12:50 PM
I think it should be straight-forward to expose them, but so far we didn't need them.
floitsch
floitsch 10/21/2022 12:51 PM
And browsing through the documentation, is is quite configurable.
floitsch
floitsch 10/21/2022 12:51 PM
While straight-forward, it might take a bit of time to expose it.
smolesen
smolesen 10/22/2022 06:32 AM
Ok, just had a need for making a PWM with a low freq, and saw this post
https://forum.arduino.cc/t/esp32-what-is-the-minimum-pwm-frequency/671077
Hi, I can find lots of "hits" for MAX PWM Frequency, but I want Sub-Hz values (0.1 - 0.5Hz). Using this commonly found technique: int PWM_FREQUENCY = 1;  // this variable is used to define the time period int PWM_CHANNEL = 0;    // this variable is used to select the channel number int PWM_RESOUTION = 8;  // this will define the resolutio...
smolesenOPsmolesen
Ok, just had a need for making a PWM with a low freq, and saw this post https://forum.arduino.cc/t/esp32-what-is-the-minimum-pwm-frequency/671077
floitsch
floitsch 10/22/2022 08:16 AM
I see.
I would probably just run a loop with sleeps in a task, but that wouldn't be as precise as the hardware.
bmentink
bmentink 10/24/2022 10:33 PM
I vote for MCPWM support too, when you have the time :😎:
8 messages in total