Datasheet
78K0/Ix2 CHAPTER 7 16-BIT TIMER/EVENT COUNTER 00
R01UH0010EJ0500 Rev.5.00 253
Feb 28, 2012
Cautions 1. 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.
2. 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.
3. 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.
Remarks 1. 78K0/IY2: <TI000>/P121/X1/TOOLC0/<INTP0>, <TI000>/P125/RESET/<INTP0>
78K0/IA2, 78K0/IB2 (32 pins): TI000/P00/INTP0/<TOH1>/<TI51>, <TI000>/P121/X1/TOOLC0/<INTP0>
78K0/IB2 (30 pins): TI000/P00/INTP0, TO00/TI010/P01, <TI000>/P121/X1/TOOLC0/<INTP0>
2. Functions in angle brackets < > can be assigned by setting the input switch control register (MUXSEL)
(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.
Figure 7-2. Format of 16-Bit Timer Counter 00 (TM00)
TM00
FF11H FF10H
Address: FF10H, FF11H After reset: 0000H R
1514131211109876543210
The count value of TM00 can be read by reading TM00 when the value of bits 3 and 2 (TMC003 and TMC002) of 16-
bit timer mode control register 00 (TMC00) is other than 00. The value of TM00 is 0000H if it is read when TMC003
and TMC002 = 00.
The count value is reset to 0000H in the following cases.
At reset signal generation
If TMC003 and TMC002 are cleared to 00
If the valid edge of the TI000 pin is input in the mode in which the clear & start occurs when inputting the valid edge
to the TI000 pin
If TM00 and CR000 match in the mode in which the clear & start occurs when TM00 and CR000 match
OSPT00 is set to 1 in one-shot pulse output mode or the valid edge is input to the TI000 pin
Caution Even if TM00 is read, the value is not captured by CR010.