Timer Setting | Value |
---|---|
START | Either ERS Edge |
RESET | At Start + PR Match |
STOP | PR Match |
CSYNC (Clock Sync) | Sync |
EPOL (ERS Polarity) |
True Level (to trigger to rising edge) Inverted Level (to trigger to falling edge) |
PR (Period Register) | Desired minimum pulse width |
Initialize the timer counter by setting the CLR command. When the input rises (changes from 0 to 1), the counter will begin counting. Any more input changes will be ignored unless a rising edge occurs near the PR match, which will override the Stop condition, reset the counter, and continue counting. This is shown in Figure 2-13.