Download Print this page

Espressif ESP32 Technical Reference Manual page 421

Hide thumbs Also See for ESP32:

Advertisement

16 Motor Control PWM (PWM)
Table 16-1. Configuration Parameters of the Operator Submodule
Submodule
PWM Generator
Dead Time Generator
PWM Carrier
Fault Handler
Espressif Systems
Configuration Parameter or Option
• Set up the PWM duty cycle for PWMxA and/or PWMxB out-
put.
• Set up at which time the timing events occur.
• Define what action should be taken on timing events:
– Switch high or low PWMxA and/or PWMxB outputs
– Toggle PWMxA and/or PWMxB outputs
– Take no action on outputs
• Use direct s/w control to force the state of PWM outputs
• Add a dead time to raising and / or failing edge on PWM
outputs.
• Configure update method for this submodule.
• Control of complementary dead time relationship between
upper and lower switches.
• Specify the dead time on rising edge.
• Specify the dead time on falling edge.
• Bypass the dead time generator module. The PWM wave-
form will pass through without inserting dead time.
• Allow PWMxB phase shifting with respect to the PWMxA out-
put.
• Configure updating method for this submodule.
• Enable carrier and set up carrier frequency.
• Configure duration of the first pulse in the carrier waveform.
• Set up the duty cycle of the following pulses.
• Bypass the PWM carrier module. The PWM waveform will
be passed through without modification.
• Configure if and how the PWM module should react the fault
event signals.
• Specify the action taken when a fault event occurs:
– Force PWMxA and/or PWMxB high.
– Force PWMxA and/or PWMxB low.
– Configure PWMxA and/or PWMxB to ignore any fault
event.
• Configure how often the PWM should react to fault events:
– One-shot
– Cycle-by-cycle
• Generate interrupts.
• Bypass the fault handler submodule entirely.
• Set up an option for cycle-by-cycle actions clearing.
• If desired, independently-configured actions can be taken
when time-base counter is counting down or up.
421
Submit Documentation Feedback
ESP32 TRM (Version 5.2)

Advertisement

loading
Need help?

Need help?

Do you have a question about the ESP32 and is the answer not in the manual?