CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
340
User’s Manual U14492EJ3V0UD
(1) Timers 20, 21 (TM20, TM21)
The features of TM2n are listed below.
•
Free-running counter that enables counter clearing by compare match of sub-channel 0 and sub-channel 5
•
Can be used as a 32-bit capture timer when TM20 and TM21 are connected in cascade.
•
Up/down control, counter clear, and count operation enable/disable can be controlled with external pin
(TCLR2).
•
Counter up/down and clear operation control method can be set by software.
•
Stop upon occurrence of count value 0 and count operation start/stop can be controlled by software.
(2) Timer 2 sub-channel 0 capture/compare register (CVSE00)
The CVSE00 register is a 16-bit capture/compare register of sub-channel 0.
In the capture register mode, it captures the TM20 count value.
In the compare register mode, it detects match with TM20.
This register can be read/written in 16-bit units.
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CVSE00
Address
FFFFF660H
Initial value
0000H
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...