More than one PWM frequency

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
sgar
Posts: 11
Joined: Sat May 01, 2021 1:14 pm

More than one PWM frequency

Post by sgar » Tue May 25, 2021 1:31 pm

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!!

User avatar
mattyt
Posts: 410
Joined: Mon Jan 23, 2017 6:39 am

Re: More than one PWM frequency

Post by mattyt » 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.

sgar
Posts: 11
Joined: Sat May 01, 2021 1:14 pm

Re: More than one PWM frequency

Post by sgar » Thu May 27, 2021 9:07 am

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:

ihornehrutsa
Posts: 35
Joined: Sat Oct 26, 2019 8:38 pm

Re: More than one PWM frequency

Post by ihornehrutsa » Thu Jun 10, 2021 5:54 am

esp32/machine_pwm: handle multiple timers. #6276
https://github.com/micropython/micropython/pull/6276

sgar
Posts: 11
Joined: Sat May 01, 2021 1:14 pm

Re: More than one PWM frequency

Post by sgar » Tue Jun 15, 2021 8:16 am

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

Post Reply