Fujitsu F2MCTM-16LX Computer Hardware User Manual


 
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/WR/WR/WR/W R/WR/WR/W
Tn11 Tn8Tn9Tn10Tn15 Tn12Tn13Tn14
R/W R/WR/WR/WR/W R/WR/WR/W
Tn3 Tn0Tn1Tn2Tn7 Tn4Tn5Tn6
bit15 bit14 bit13 bit12 bit11 bit10 bit9 bit8
00000000B
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
00000000B
R/W: Read/Write
Reset value
Reset value
Address
TCDT0 upper: 007941
H
TCDT0 lower: 007940
H
n=0