Motor Control Pulse Width Modulator (MCPWM)

[中文]


Does ESP32 support using the MCPWM Timer to trigger AD sampling?

AD sampling can be triggered in the callback of the MCPWM timer events on_ful`, on_empty, on_stop. Additionally, AD sampling can also be triggered in the callback of the MCPWM comparator event on_reach.


Can ESP32-S3 generate fully complementary PWM with accurate clock and duty cycle and adjustable dead band?

By measurement, ESP32-S3 can generate complementary output waveforms with the frequency of 10 k, the duty cycle accuracy of 1 us and the dead band accuracy of 100 ns by MCPWM.


Does the ESP32-S3 support driving eight servos?

Yes. As ESP32-S3 supports two MCPWM controllers, which includes three operators each, and each operator has two generators and two comparators. So, if each generator independently uses a comparator, it can produce a total of 2*3*2=12 PWM outputs with independently adjustable duty cycles, which can naturally meet the needs of eight servos.