3 timer data register (tcdt), Timer data register (tcdt) – FUJITSU F2MCTM-16LX User Manual
Page 236

220
CHAPTER 13 16-Bit I/O TIMER
13.3.3
Timer Data Register (TCDT)
The timer data register is a 16-bit up counter.
• The counter value of the 16-bit free-run timer is read.
• The counter value can be set during stopping of the 16-bit free-run timer.
■
Timer Data Register (TCDT)
Figure 13.3-3 Timer Data Register (TCDT)
The TCDT register can read the counter value of the 16-bit free-run timer.
[Condition for clear the counter value]
The counter value is cleared to "0000
H
" by the following conditions.
•
Overflow
•
Setting of "1" to the timer clear bit of the timer control status register (TCCSL:CLR=1)
•
Setting of "0000
H
" to the timer data register during stopping of 16-bit free-run timer
•
Reset
[Setting of counter value]
Write the counter value to the timer data register (TCDT) and set the timer during stopping the timer
operation (TCCSL:STOP=1).
Note:
Always use a word instruction (MOVW) to read/write the timer data register.
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Tn11
Tn8
Tn9
Tn10
Tn15
Tn12
Tn13
Tn14
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Tn3
Tn0
Tn1
Tn2
Tn7
Tn4
Tn5
Tn6
bit15 bit14 bit13 bit12 bit11 bit10
bit9
bit8
0 0 0 0 0 0 0 0
B
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
0 0 0 0 0 0 0 0
B
R/W: Read/Write
Reset value
Reset value
Address
TCDT0 upper: 007941
H
TCDT0 lower: 007940
H
n=0