CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
Preliminary User’s Manual U19014EJ1V0UD
115
(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.
If the count value is read during operation, then input of the count clock is temporarily stopped, and the count
value at that point is read.
Figure 6-2. Format of 16-Bit Timer Counter 00 (TM00)
TM00
FF11H (TM00)
FF10H (TM00)
Address: FF10H, FF11H (TM00) After reset: 0000H R
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
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 or the valid edge is input to the TI000 pin in one-shot pulse output mode
Cautions 1. Even if TM00 is read, the value is not captured by CR010.
2. When TM00 is read, input of the count clock is temporarily stopped and it is resumed after
the timer has been read. Therefore, no clock miss occurs.
(2) 16-bit timer capture/compare register 000 (CR000), 16-bit timer capture/compare register 010 (CR010)
CR000 and CR010 are 16-bit registers that are used with a capture function or comparison function selected by
using CRC00.
Change the value of CR000 while the timer is stopped (TMC003 and TMC002 = 00).
The value of CR010 can be changed during operation if the value has been set in a specific way. For details, see
6.5.1 Rewriting CR010 during TM00 operation
.
These registers can be read or written in 16-bit units.
Reset signal generation sets these registers to 0000H.
Figure 6-3. Format of 16-Bit Timer Capture/Compare Register 000 (CR000)
CR000
FF13H (CR000)
FF12H (CR000)
Address: FF12H, FF13H (CR000) After reset: 0000H R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
electronic components distributor