
R01UH0336EJ0102 Rev.1.02
Page 1475 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 24 Peripheral Interconnection (PIC)
24.4.10.6
Function Setting
Settings are made in the PICB register so that the compare 0 interrupt from
TSG20 acts as the trigger to start counting by TAUB0 and for connecting the
output signals from TSG20 (TSG20nTO1 to 6) and from TAUB0
(TAUB0TOUT4 to 6) through an AND gate are listed below. Refer to the
settings for the connections to be used. Leave bits of registers that are not
listed at their initial values.
Table 24-52
TSG20 Setting
Function
Register
Bit Position
Bit Name
Set Value
Note
TSG20
TS0CTL0
1-0
TS0MD1,
TS0MD0
1,1
Operating mode selection (SP-PWM)
TS0TRG0
0
TS0TS
0
Trigger to start a timer
TS0CMP0
-
-
Don’t care
Comparison register
Set the PWM cycle
TS0CMP1W
-
-
Don’t care
Comparison register
Set the value for comparison.
•
When the compare 0 interrupt is to be used,
set TS0CMP2 = TS0CMP0.
TS0CMP1W
-
-
Don’t care
Comparison register
Set the value for comparison.
•
When the compare 0 interrupt is to be used,
set TS0CMP6 = TS0CMP0.
TS0CMP1W
-
-
Don’t care
Comparison register
Set the value for comparison.
•
When the compare 0 interrupt is to be used,
set TS0CMP10 = TS0CMP0.
TS0CMP1,5,9
-
-
Don’t care
Comparison register
Set the value for comparison.
TS0CMP2,6,
10
-
-
Don’t care
Comparison register
Set the value for comparison.
•
When the compare 0 interrupt is to be used,
set the same value as in TS0CMP0.
TS0DTC0W
-
-
Don’t care
Dead-time setting register
Set the dead-time value.
TS0DTC1W
-
-
Don’t care
Dead-time setting register
Set the dead-time value.
Caution
Make settings so that PCLK is used as the operating clock and is not
frequency-divided.