301
Chapter 10
Timer
Preliminary User’s Manual U15839EE1V0UM00
10.2.4 Control
register
(1)
Timer Dn control register (TMCDn) (n = 0, 1)
The TMCDn register controls the operation of Timer Dn (n = 0, 1).
This register can be read/written in 8-bit or 1-bit units.
Figure 10-22:
Timer Dn Control Register (TMCDn) (n = 0, 1)
Caution:
The CAE bit and CE bit cannot be set at the same time. Be sure to set the CAE bit
prior to setting the CE bit.
7
6
5
4
3
2
1
0
Address
Initial
value
TMCD0
0
CS2
CS1
CS0
0
0
CE
CAE
FFFF F544H
00H
TMCD1
0
CS2
CS1
CS0
0
0
CE
CAE
FFFF F554H
00H
Bit Position
Bit Name
Function
6 to 4
CS2 to
CS0
Selects the TMDn count clock (n = 0, 1)
CS2
CS1
CS0
Count Clock
0
0
0
f
PCLK
/2
0
0
1
f
PCLK
/4
0
1
0
f
PCLK
/8
0
1
1
f
PCLK
/16
1
0
0
f
PCLK
/32
1
0
1
f
PCLK
/64
1
1
0
f
PCLK
/128
1
1
1
f
PCLK
/256
Caution:
Do not change the CS2 to CS0 bits during timer operation. If they are
to be changed, they must be changed after setting the CE bit to "0".
If the CS2 to CS0 bits are overwritten during timer operation, the
operation is not guaranteed.
1
CE
Count Enable: Controls the operation of TMDn (n = 0, 1).
0: Disable count (timer stopped at 0000H and does not operate)
1: Perform count operation
Caution:
CE bit is not cleared even if a match is detected by the compare
operation. To stop the count operation, clear the CE bit.
0
CAE
Count Action Enable: Controls the internal count clock.
0: Asynchronously reset entire TMDn unit. Stop clock supply to TMDn unit.
1: Supply clock to TMDn unit (n = 0, 1).
Cautions: 1. When CAE = 0 is set, the TMDn unit can be reset asynchronously.
2. When CAE = 0, the TMDn unit is in a reset state. To operate
TMDn, first set CAE = 1.
3. When the CAE bit is changed from 1 to 0, all the registers of the
TMDn unit are initialized. When again setting CAE = 1, be sure to
then again set all the registers of the TMDn unit.
Summary of Contents for mPD703128
Page 6: ...6 Preliminary User s Manual U15839EE1V0UM00 ...
Page 20: ...20 Preliminary User s Manual U15839EE1V0UM00 ...
Page 32: ...32 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 238: ...238 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 356: ...356 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 522: ...522 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 600: ...600 Preliminary User s Manual U15839EE1V0UM00 MEMO ...
Page 610: ...610 Preliminary User s Manual U15839EE1V0UM00 ...
Page 612: ......