CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
408
User’s Manual U14492EJ3V0UD
9.5.4 Control register
(1) Timer control register 4 (TMC4)
The TMC4 register controls the operation of timer 4.
This register can be read/written in 8-bit or 1-bit units.
Caution
The TM4CAE0 bit and other bits cannot be set at the same time. Be sure to set the
TM4CAE0 bit and then set the other bits and the other registers of TM4.
7
6
5
4
3
2
<1>
<0>
Address
Initial value
TMC4
0
CS2
CS1
CS0
0
0
TM4CE0 TM4CAE0 FFFFF544H
00H
Bit Position
Bit Name
Function
Selects the TM4 count clock.
CS2
CS1
CS0
Count Clock
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
CS2 to CS0
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 TM4CE0
bit to 0. If the CS2 to CS0 bits are overwritten during timer
operation, the operation is not guaranteed.
1
TM4CE0
Controls the operation of TM4.
0: Disable count (timer stopped at 0000H and does not operate)
1: Perform count operation
Caution TM4CE0 bit is not cleared even if a match is detected by the
compare operation. To stop the count operation, clear the TM4CE0
bit.
0
TM4CAE0
Controls the internal count clock.
0: Asynchronously reset entire TM4 unit. Stop base clock (f
CLK
) supply to TM4
unit.
1: Supply base clock (f
CLK
) to TM4 unit.
Cautions 1. When TM4CAE0 = 0 is set, the TM4 unit can be reset
asynchronously.
2. When TM4CAE0 = 0, the TM4 unit is in a reset state. To operate
TM4, first set TM4CAE0 = 1.
3. When the TM4CAE0 bit is changed from 1 to 0, all the registers
of the TM4 unit are initialized. When again setting TM4CAE0 = 1,
be sure to then again set all the registers of the TM4 unit.
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...