Carrier synchronization interrupt method using MCPWM
Posted: Wed Jul 06, 2022 4:19 pm
I am programming the FOC control of a three-phase brushless motor using MCPWM. At that time, I want to perform processing in synchronization with the carrier frequency. Does anyone know how to implement carrier sync interrupts on the ESP32?
For example, the RP2040 (Raspberry Pi Pico) C / C ++ SDK provides the following functions.
pwm_set_irq_enabled (slice *, true);
irq_set_exclusive_handler (PWM_IRQ_WRAP, arbitrary function);
irq_set_enabled (PWM_IRQ_WRAP, true);
Thank you very much for your kind support.
For example, the RP2040 (Raspberry Pi Pico) C / C ++ SDK provides the following functions.
pwm_set_irq_enabled (slice *, true);
irq_set_exclusive_handler (PWM_IRQ_WRAP, arbitrary function);
irq_set_enabled (PWM_IRQ_WRAP, true);
Thank you very much for your kind support.