Page 1 of 1

ESP32 MCPWM Capture Channel current counter running value

Posted: Tue Mar 12, 2024 4:23 pm
by lucapassarella
Hi

Given the documentation I can see than inside the register PWM_CAP_CHx_REG is stored the timestamp of the last capture event

I would like to know how I can access the current value of the running counter to compare the stored value of PWM_CAP_CHx_REG so to calculate the elapsed time from the last capture event


Thanks,
Luca