Why Can Timer Capture Beat Software Pulse Timing?
Timer input capture latches the counter value when an input edge occurs.
The key idea
Timer input capture latches the counter value when an input edge occurs. Software can read the timestamp after interrupt service begins.
What to remember
- Capture successive edge timestamps
- Account for counter rollover
Check your understanding
Why does delayed interrupt service have less effect on a captured timestamp?
Show the explanation
Hardware recorded the time at the edge before the handler ran.