Page 1 of 1

More than one PWM frequency

Posted: Tue May 25, 2021 1:31 pm
by sgar
Hi!
I read in other topics from 2019 that is not possible to use more than one frequency in ESP32 PWM.
Is this limitation still true? In ESP32 quick reference example seems that use 2 frequencies.
I tried by myself and last frequency configured in a pin is the global frequency for all pins... :cry:

Thanks in advance!!

Re: More than one PWM frequency

Posted: Tue May 25, 2021 11:38 pm
by mattyt
Unfortunately, yes, it's still a limitation for v1.15.

I believe that overhauling PWM for the ESP32 is on the list for v1.16. It was better to introduce the CMake improvements (delivered in v1.15) first.

Re: More than one PWM frequency

Posted: Thu May 27, 2021 9:07 am
by sgar
mattyt wrote:
Tue May 25, 2021 11:38 pm
Unfortunately, yes, it's still a limitation for v1.15.

I believe that overhauling PWM for the ESP32 is on the list for v1.16. It was better to introduce the CMake improvements (delivered in v1.15) first.
Thanks for your prompt answer :)
BTW, where I can find these information? I'm facing these questions a lot and I don't want to bother you every time with a post :roll:

Re: More than one PWM frequency

Posted: Thu Jun 10, 2021 5:54 am
by ihornehrutsa
esp32/machine_pwm: handle multiple timers. #6276
https://github.com/micropython/micropython/pull/6276

Re: More than one PWM frequency

Posted: Tue Jun 15, 2021 8:16 am
by sgar
ihornehrutsa wrote:
Thu Jun 10, 2021 5:54 am
esp32/machine_pwm: handle multiple timers. #6276
https://github.com/micropython/micropython/pull/6276
Thanks!