4 ms·
You'd probably offload PWM onto the in-chip PWM peripheral, rather than doing it in software. There isn't a lot of info about it in the datasheet[1], and based
by meatmanek 5y ago
You'd probably offload PWM onto the in-chip PWM peripheral, rather than doing it in software. There isn't a lot of info about it in the datasheet[1], and based on my quick skim, the ESP-IDF docs[2] don't say anything about complementary pairs.
1. https://www.espressif.com/sites/default/files/documentation/esp32-c3_datasheet_en.pdf https://www.espressif.com/sites/default/files/documentation/...
2. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/ledc.html?highlight=pwm https://docs.espressif.com/projects/esp-idf/en/latest/esp32/...
- phkahler 5y ago>> You'd probably offload PWM onto the in-chip PWM peripheral, rather than doing it in software. Of course. In power we need specific features in the PWM peripheral. In particular complementary pairs with programmable dead tine. It is also customary to have an interrupt every cycle to do measurement and control. Control output is the new duty cycle for the next period - we typically compute a new duty cycle every period. Weather this chip can handle that type of thing is what I was after in my original question. It seems like the answer is no.