CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
344
User’s Manual U14492EJ3V0UD
(3) Timer 2 count clock/control edge selection register 0 (CSE0)
The CSE0 register is used to specify the TM2n count clock and the control valid edge (n = 0, 1).
This register can be read/written in 16-bit units.
When the higher 8 bits of the CSE0 register are used as the CSE0H register, and the lower 8 bits are used as
the CSE0L register, they can be read/written in 8-bit or 1-bit units.
14
0
13
0
12
0
2
CSE02
3
CSE10
4
CSE11
5
CSE12
6
CESE0
7
CESE1
8
TES0E0
9
TES0E1
10
TES1E0
11
TES1E1
15
0
1
CSE01
0
CSE00
CSE0
Address
FFFFF642H
Initial value
0000H
Bit Position
Bit Name
Function
Specifies the valid edge of the TM2n internal count clock (TCOUNTEn) signal.
TESnE1
TESnE0
Valid Edge
0
0
Falling edge
0
1
Rising edge
1
0
Setting prohibited
1
1
Both rising and falling edges
11, 10, 9, 8
TESnE1,
TESnE0
Specifies the valid edge of the TM2n external clear input (TCLR2).
CESE1
CESE0
Valid Edge
0
0
Falling edge
0
1
Rising edge
1
0
Through input (no clear operation)
1
1
Both rising and falling edges
7, 6
CESE1,
CESE0
Selects internal count clock (TCOUNTEn) of TM2n.
CSEn2
CSEn1
CSEn0
Count Clock
0
0
0
f
CLK
/2
0
0
1
f
CLK
/4
0
1
0
f
CLK
/8
0
1
1
f
CLK
/16
1
0
0
f
CLK
/32
1
0
1
f
CLK
/64
1
1
0
f
CLK
/128
1
1
1
Selects input signal from external clock
input pin (TI2) as clock.
5 to 3, 2 to 0
CSEn2,
CSEn1,
CSEn0
Remark
n = 0, 1
f
CLK
: Base clock
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...