
Chapter 9
16-bit Timer
Event Count
IX - 45
■ Count Timing of Count Control Input
Count timing of count control input is shown below. The TMAEG flag is set to “0”.
When the TMnAIN pin is set to “L”, counting up stops.
Figure:9.5.2 Count Timing of Count Control Input
■ Setting the Compare Register
Event count numbers are set for generating interrupts to the compare/capture register TMnCA (B).
Interrupt generation count numbers = TMnCA (B) + 1 (time)
Input pin
(TMnAIN)
Binary counter
Count clock
0002
0001
0003
0006 0007 0008
0009
0004
0005
mask