
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
User’s Manual U19780EJ2V0UD
172
Figures 6-1 shows the block diagrams.
Figure 6-1. Block Diagram of 16-Bit Timer/Event Counter 00
Internal bus
Capture/compare control
register 00 (CRC00)
TI010/TO00/P01
Prescaler mode
register 00 (PRM00)
2
PRM001
CRC002
16-bit timer capture/compare
register 010 (CR010)
Match
Match
16-bit timer counter 00
(TM00)
Clear
Noise
elimi-
nator
CRC002 CRC001 CRC000
INTTM000
To A/D converter
TO00/TI010/
P01
INTTM010
16-bit timer output
control register 00
(TOC00)
16-bit timer mode
control register 00
(TMC00)
Internal bus
TMC003 TMC002 TMC001 OVF00
TOC004 LVS00 LVR00 TOC001 TOE00
Selector
16-bit timer capture/compare
register 000 (CR000)
Selector
Selector
Selector
Noise
elimi-
nator
Noise
elimi-
nator
Output
controller
OSPE00
OSPT00
Output latch
(P01)
PM01
To CR010
PRM000
TI000/P00
f
PRS
f
PRS
/2
8
f
PRS
f
PRS
/2
TO00
output
Note
Note
Note
Note
Note
Note
78K0/KB2-A: TI000/TOH0/INTP7/P12, TI010/TO00/TOH1/INTP6/P13, output latch (P13), PM13
78K0/KB2-A:
TI000/P00,
TI010/TO00/P01, output latch (P01), PM01
Cautions 1. In case of 78K0/KB2-A, The valid edge of TI010 and timer output (TO00) cannot be used for
the P13 pin at the same time. Select either of the functions.
2. In case of 78K0/KC2-A, The valid edge of TI010 and timer output (TO00) cannot be used for
the P01 pin at the same time. Select either of the functions.
3. If clearing of bits 3 and 2 (TMC003 and TMC002) of 16-bit timer mode control register 00
(TMC00) to 00 and input of the capture trigger conflict, then the captured data is undefined.
4. To change the mode from the capture mode to the comparison mode, first clear the TMC003
and TMC002 bits to 00, and then change the setting.
A value that has been once captured remains stored in CR000 unless the device is reset. If
the mode has been changed to the comparison mode, be sure to set a comparison value.
(1) 16-bit timer counter 00 (TM00)
TM00 is a 16-bit read-only register that counts count pulses.
The counter is incremented in synchronization with the rising edge of the count clock.