mcpwm_generator_set_dead_time() function
Set dead time for MCPWM generator
Arguments
in_generator
MCPWM generator, before adding the dead time
out_generator
MCPWM generator, after adding the dead time
config
MCPWM dead time configuration
Return value
- ESP_OK: Set dead time for MCPWM generator successfully - ESP_ERR_INVALID_ARG: Set dead time for MCPWM generator failed because of invalid argument - ESP_ERR_INVALID_STATE: Set dead time for MCPWM generator failed because of invalid state (e.g. delay module is already in use by other generator) - ESP_FAIL: Set dead time for MCPWM generator failed because of other error
Notes
Due to a hardware limitation, you can't set rising edge delay for both MCPWM generator 0 and 1 at the same time, otherwise, there will be a conflict inside the dead time module. The same goes for the falling edge setting. But you can set both the rising edge and falling edge delay for the same MCPWM generator.
mcpwm_generator_set_dead_time() calls 13 functions:
![]()
mcpwm_generator_set_dead_time()
mcpwm_generator_set_dead_time() reads 19 variables and writes 2 variables:
![]()
mcpwm_generator_set_dead_time()