
R01UH0336EJ0102 Rev.1.02
Page 878 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
Setting dead time
The dead time can be set with TSnDTC0 and TSnDTC1.
The dead time is calculated by the following expressions:
PCLK × TSnDTC0
PCLK × TSnDTC1
TSnDTC0 can set the time between a change of TSG2nO2, TSG2nO4, and
TSG2nO6 to the inactive state and a change of TSG2nO1, TSG2nO3, and
TSG2nO5 to the active state, respectively.
TSnDTC0 can set the time between a change of TSG2nO1, TSG2nO3, and
TSG2nO5 to the inactive state to a change of TSG2nO2, TSG2nO4, and
TSG2nO6 to the active state.
Carrier period
Set the carrier period with TSnCMP0 according to the following expression:
TSnCMP0 = (carrier period/count clock cycle) – 1
Duty (PWM width)
setting
The duty of PWM output is set with TSnCMP1 to TSnCMP12. The setting
range of the compare registers is as follows:
0000
H
≤
TSnCMPm
≤
T 1
Caution
Do not set TSnCMPm to T 1 (m = 1 to 12) only when T 1
< TSnCMPm and TSnCMP0 = FFFF
H
.
Output PWM setting
In 120-DC mode, the output pins TSG2nO1, TSG2nO3, and TSG2nO5 are
controlled by TSnCMP1, TSnCMP2, TSnCMP5, TSnCMP6, TSnCMP9, and
TSnCMP10, and the output pins TSG2nO2, TSG2nO4, TSG2nO6 are
controlled by TSnCMP3, TSnCMP4, TSnCMP7, TSnCMP8, TSnCMP11, and
TSnCMP12. The duty cycle of a PWM period (TSnCMP0) can be set with
TSnCMP1 to TSnCMP12. Setting TSnCMP1 to TSnCMP12 to 0000
H
sets the
PWM duty cycle to 0%. Setting TSnCMP1 to TSnCMP12 to T 1
value sets the PWM duty cycle to 100%. This allows chopping output control
and rectangular wave output control.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...