CHAPTER 7 TIMER/COUNTER FUNCTION
User’s Manual U13850EJ4V0UM
175
Figure 7-1. Block Diagram of TM0 and TM1
Internal bus
Internal bus
TIn1
Noise
eliminator
Count clock
Note
TIn0
TOEn
TOCn1
LVRn
LVSn
TOCn4
OSPEn
OSPTn
OVFn
TMCn1
TMCn2
Prescaler mode
register n0 (PRMn0)
PRMn1 PRMn0
TMCn3
CRCn0
CRCn1
CRCn2
Capture/compare control
register n (CRCn)
16-bit capture/compare
register n0 (CRn0)
Output
controller
16-bit timer register (TMn)
16-bit capture/compare
register n1 (CRn1)
CRCn2
Match
Match
Clear
16-bit timer mode
control register n
(TMCn)
TOn
INTTMn1
INTTMn0
3
Timer output control
register n (TOCn)
f
XX
/2
Selector
Selector
Selector
Selector
PRMn2
Prescaler mode
register n1 (PRMn1)
Noise
eliminator
Noise
eliminator
Note
Count clock is set by the PRMn0, PRMn1 registers.
Remark
n = 0, 1
(1) Interval timer
Generates an interrupt at predetermined time intervals.
(2) PPG output
Can output the square wave whose frequency and output-pulse width can be changed arbitrarily.
(3) Pulse width measurement
Can measure the pulse width of a signal input from an external source.
(4) External event counter
Can measure the number of pulses of a signal input from an external source.