Timer Data Register (Tcdt) - Fujitsu F2MCTM-16LX Hardware Manual

16-bit microcontroller
Table of Contents

Advertisement

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)
TCDT0 upper: 007941
TCDT0 lower: 007940
R/W: Read/Write
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
• Overflow
• Setting of "1" to the timer clear bit of the timer control status register (TCCSL:CLR=1)
• Setting of "0000
• 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.
220
Figure 13.3-3 Timer Data Register (TCDT)
bit15 bit14 bit13 bit12 bit11 bit10 bit9
Address
Tn15
Tn14
Tn13
H
R/W
R/W
R/W
bit7
bit6
Tn7
Tn6
H
R/W
R/W
" to the timer data register during stopping of 16-bit free-run timer
H
Tn12
Tn11
Tn10
Tn9
R/W
R/W
R/W
R/W
bit5
bit4
bit3
bit2
Tn5
Tn4
Tn3
Tn2
R/W
R/W
R/W
R/W
" by the following conditions.
H
bit8
Reset value
Tn8
0 0 0 0 0 0 0 0
B
R/W
bit1
bit0
Reset value
Tn1
Tn0
0 0 0 0 0 0 0 0
B
R/W
R/W
n=0

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb90360 series

Table of Contents