Esp32 pwm max freq?


#1

I used the official example. And the maximum frequency that works is about 2.4 kHz.
Is this a restriction of ESP32 or software?


#2

hi @trawen
Zerynth PWM driver uses 15bit, so the maximum frequency should be ~2.5kHz as you mentioned.
This allows a great selection of duty cycles but the trade-off is on maximum achievable frequency.

This is a choice made in the driver, although it is not recomended but this can be configured in .zerynth2/dist/r2.1.2/vhal/xtensa-lx6/esp32/vhal_pwm.c