CHAPTER 11 MULTIFUNCTIONAL TIMER
11.4.2
Timer Data Register (TCDTH, TCDTL)
The timer data register (TCDTH, TCDTL) is used to read the count value of the 16-bit
free-run timer.
■ Timer Data Register (TCDTH, TCDTL)
Timer data register (Upper)
TCDTH
Address: 0000A6
Read/Write →
Initial value →
Timer data register (Lower)
TCDTL
Address: 0000A7
Read/Write →
Initial value →
The timer data register is used to read the count value of the 16-bit free-run timer. The count value is
cleared to "0000
value. However, write a value while the timer is stopped (the lower of the timer state control register
(TCCSL), STOP: bit6 = 1). To access the timer data register, use a halfword or word access instruction.
16-bit free-run timer is initialized immediately when the following factors occur.
• Reset
• Clear bit of the timer state control register (TCCSL) (SCLR: bit4) = 1
• Match of the compare clear register and the timer count value in the up count mode (the lower of the
timer state control register (TCCSL), MODE: bit5 = 0)
220
Bit15
Bit14
T15
T14
H
R/W
R/W
(0)
(0)
Bit7
Bit6
T07
T06
H
R/W
R/W
(0)
(0)
" immediately when a reset occurs. Writing the value to this register can be set the timer
H
Bit13
Bit12
Bit11
T13
T12
T11
R/W
R/W
R/W
(0)
(0)
(0)
Bit5
Bit4
Bit3
T05
T04
T03
R/W
R/W
R/W
(0)
(0)
(0)
Bit10
Bit9
Bit8
T10
T09
T08
R/W
R/W
R/W
(0)
(0)
(0)
Bit2
Bit1
Bit0
T02
T01
T00
R/W
R/W
R/W
(0)
(0)
(0)