CHAPTER 12 16-BIT INPUT/OUTPUT TIMER
12.3.5 Output compare timing
The output compare timing is used to issue compare match signals when the free-
running timer and the compare register have matching values, to reverse the output
value, and to generate interrupts. Output reverse timing at the compare match is in
sync with the counter timing.
I Interrupt timing
Figure 12.3-8 "Interrupt timing of output compare" shows the interrupt timing of output compare.
Counter value
Compare register value
Compare match
Compare match
I Change timing of output pin
Figure 12.3-9 "Change timing of output pin for output compare" shows the change timing of the
output pin for output compare.
Figure 12.3-9 Change timing of output pin for output compare
Counter value
Compare register value
Compare match signal
Output pin
Note:
To rewriting the compare register, within the compare interrupt routine or compare operation
is disabled. Be sure not to occur simultaneously a compare match and writing the compare
register.
246
Figure 12.3-8 Interrupt timing of output compare
φ
N
N
N
N+1
N
N+1
N
N+1