CHAPTER 10 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
User’s Manual U14359EJ4V0UM
353
10.2.5 Timer D control registers
(1) Timer mode control registers D0 to D3 (TMCD0 to TMCD3)
The TMCDn registers control the operation of timer Dn (n = 0 to 3).
These registers can be read or written in 8-bit or 1-bit units.
Caution
The TMDCAEn and other bits cannot be set at the same time. The other bits and the
registers of the other TMDn units should always be set after the TMDCAEn bit has been set.
(1/2)
7
6
5
4
3
2
<1>
<0>
Address
After reset
TMCD0
0
CS02
CS01
CS00
0
0
TMDCE0
TMDCAE0
FFFFF544H
00H
TMCD1
0
CS12
CS11
CS10
0
0
TMDCE1
TMDCAE1
FFFFF554H
00H
TMCD2
0
CS22
CS21
CS20
0
0
TMDCE2
TMDCAE2
FFFFF564H
00H
TMCD3
0
CS32
CS31
CS30
0
0
TMDCE3
TMDCAE3
FFFFF574H
00H
Bit position
Bit name
Function
Count Enable Select
Selects the TMDn internal count clock cycle (n = 0 to 3).
CSn2
CSn1
CSn0
Count cycle
0
0
0
f
XX
/4
0
0
1
f
XX
/8
0
1
0
f
XX
/16
0
1
1
f
XX
/32
1
0
0
f
XX
/64
1
0
1
f
XX
/128
1
1
0
f
XX
/256
1
1
1
f
XX
/512
6 to 4
CSn2 to CSn0
(n = 0 to 3)
Caution The CSn2 to CSn0 bits must not be changed during timer
operation. If they are to be changed, they must be changed after
setting the TMDCEn bit to 0. If these bits are overwritten during
timer operation, operation cannot be guaranteed.
Remark
f
XX
: Internal system clock
1
TMDCEn
(n = 0 to 3)
Count Enable
Controls the operation of TMDn (n = 0 to 3).
0: Count disabled (stops at 0000H and does not operate)
1: Counting operation is performed
Caution The TMDCEn bit is not cleared even if a match is detected by the
compare operation. To stop the count operation, clear the TMDCEn
bit.