Skip to content
Discussion options

You must be logged in to vote

You start timing the pulse in the interrupt service routine (ISR) for the same pulse. When the low to high transition occurs, some time will elapse before the ISR runs. Then the call to time_pulse_us occurs and the method starts the timer. So my guess is that the 200μs is a measure of that latency. ESP32 only supports soft interrupts and latency can be quite long. I'm actually rather impressed that you're only seeing 200μs...

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@toadzhou
Comment options

@peterhinch
Comment options

@toadzhou
Comment options

Answer selected by toadzhou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants