Control Register - NEC V850E/IA1 mPD703116 User Manual

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)

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.
TM4CAE0 bit and then set the other bits and the other registers of TM4.
7
6
TMC4
0
CS2
Bit Position
Bit Name
6 to 4
CS2 to CS0
1
TM4CE0
0
TM4CAE0
408
5
4
3
CS1
CS0
0
Selects the TM4 count clock.
CS2
CS1
0
0
0
0
0
1
0
1
1
0
1
0
1
1
1
1
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.
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.
Controls the internal count clock.
0: Asynchronously reset entire TM4 unit. Stop base clock (f
unit.
1: Supply base clock (f
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.
User's Manual U14492EJ3V0UD
2
<1>
<0>
0
TM4CE0 TM4CAE0 FFFFF544H
Function
CS0
Count Clock
0
f
/4
XX
1
f
/8
XX
0
f
/16
XX
1
f
/32
XX
0
f
/64
XX
1
f
/128
XX
0
f
/256
XX
1
f
/512
XX
) to TM4 unit.
CLK
Be sure to set the
Address
Initial value
00H
) supply to TM4
CLK

Advertisement

Table of Contents
loading

Table of Contents