
R01UH0336EJ0102 Rev.1.02
Page 755 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(22)
TSG2n Compare Register 1, 2 (TSnCMP1W)
This register specifies the compare value.
Access
This register can be read/written in 32-bit units.
Address
<
TSG2n_base1
> + 040
H
Initial value
00000000
H
This register is initialized by a reset from any source.
Note
The dead time function is enabled in all operating modes.
In HT-PWM mode, the match timing between this register and TSnSBC is
used.
In 120-DC mode, the output from TSG2nO1 to TSG2nO6 is controlled by
TSnCMPm, TSnPAT0, and TSnPAT1.
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
TSnCMP2 (16-bit compare register)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TSnCMP1 (16-bit compare register)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Table 15-28
TSnCMP1W Register Setting
Operating Mode
TSnCMP1
TSnCMP2
Minimum Value
Maximum Value
PWM mode
TSG2nO1 clear
timing
TSG2nO1 set timing
0000
H
T 1
(TSnCMP0 <
FFFF
H
) or FFFF
H
HT-PWM mode
TSG2nO1 clear
timing/TSG2nO2 set
timing
TSG2nO1 set
timing/TSG2nO2
clear timing
0000
H
T
T
TSnDTC1
SP-PWM mode
TSG2nO1 clear
timing/TSG2nO2 set
timing
TSG2nO1 set
timing/TSG2nO2
clear timing
0000
H
T 1
(TSnCMP0 <
FFFF
H
) or FFFF
H
120-DC mode
Duty when
TSG2nO1,
TSG2nO3, or
TSG2nO5 output
pattern is selected
by TSnPAT0
Duty when
TSG2nO1,
TSG2nO3, or
TSG2nO5 output
pattern is selected
by TSnPAT0
0000
H
T 1
(TSnCMP0 <
FFFF
H
) or FFFF
H