CHAPTER 9 TIMER/COUNTER FUNCTION
329
User’s Manual U15195EJ5V0UD
(4) Timer 2 subchannel n sub capture/compare register (CVSEn0) (n = 1 to 4)
The CVSEn0 register is the subchannel n 16-bit sub capture/compare register.
In the compare register mode, this register can be used as a buffer. In the capture register mode, this
register captures the value of TM20 when the BFEEn bit of the CMSEm0 register = 0 (m = 12, 34).
If the capture register mode is selected in the 32-bit mode (value of TB1En and TB0En bits of CMSEm0
register = 11B), this register captures the contents of TM20 (lower 16 bits).
The CVSEn0 register can be written only in the compare register mode. If this register is written in the
capture register mode, the contents written to CVSEn0 register will be lost.
This register can be read/written in 16-bit units.
Caution When the BFEEn bit = 1, a compare match occurs on starting the timer in the compare
register mode because the values of both the TM2x and CVPEn0 registers are 0 after reset
(TM2x = timer/counter selected by TB1En and TB0En bits (n = 1 to 4)). After that, the value
of the sub register (CVSEn0) is written to the main register (CVPEn0).
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CVSE10
Address
FFFFF650H
After reset
0000H
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CVSE20
Address
FFFFF654H
After reset
0000H
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CVSE30
Address
FFFFF658H
After reset
0000H
14
13
12
2
3
4
5
6
7
8
9
10
11
15
1
0
CVSE40
Address
FFFFF65CH
After reset
0000H
(5) Timer 2 subchannel 5 capture/compare register (CVSE50)
The CVSE50 register is the 16-bit capture/compare register of subchannel 5.
In the capture register mode, it captures the count value of TM21.
In the compare register mode, it detects a match with TM21.
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
CVSE50
Address
FFFFF662H
After reset
0000H