
R01UH0336EJ0102 Rev.1.02
Page 884 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(5)
Operation in 120-DC Mode
Figure 15-65 to Figure 15-68 show examples of operation in 120-DC mode.
The TSG2nO1 to TSG2nO6 pins detect the input level change of the
TSG2nPTSI2 to TSG2nPTSI0 pins, then change the output pattern. The 16-bit
counter produces sawtooth waveform, and TSnCMP0 to TSnCMP12 output
PWM signal. The 16-bit counter is cleared to 0000
H
each time the counter
value matches with TSnCMP0 or a change in the TSG2nPTSI2 to
TSG2nPTSI0 pins is detected. The timer output pattern is switched each time
a change in the TSG2nPTSI2 to TSG2nPTSI0 pins is detected.
Note
PAT0T to PAT5T and PAT0B to PAT5B show PWM operation set by TSnCMP1
to TSnCMP12, respectively.
Figure 15-65
Example of Operation in 120-DC Mode (Normal Rotation:
TSnSTR1.TSnTSF = 0 and TSnOPT0.TSnIDC = 0)
Note 1.
For pattern switch method (TSnOPT0.TSnPOT = 0)
Note 2.
For trigger switch method (TSnOPT0.TSnPOT = 1 and TSnPSS = 1)
Note
TSnOPT0.TSnSOC = 0
16-bit counter
*
1
Time
Input
pattern 1
Input
pattern 2
Input
pattern 3
Input
pattern 4
Input
pattern 5
Input
pattern 6
Input
pattern 1
*
2
Pattern
switch trigger
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
TSnTSF flag
“L”
TSG2nO1 pin
TSG2nO2 pin
TSG2nO3 pin
TSG2nO4 pin
TSG2nO5 pin
TSG2nO6 pin
TSnOPF2 to
TSnOPF0 flags
PAT0T
PAT1T
PAT2T
PAT3T
PAT4T
PAT5T
PAT0T
PAT0B
PAT4T
PAT4B
PAT2T
PAT2B
1, 0, 1
1, 0, 0
PAT3B
PAT3T
PAT5B
PAT5T
PAT1B
PAT2B
PAT0T
PAT0B
PAT4T
PAT4B
1, 1, 0
0, 1, 0
PAT5B
PAT5T
PAT1B
PAT1T
PAT3B
PAT4B
PAT2T
PAT2B
PAT0T
PAT0B
0, 1, 1
0, 0, 1
1, 0, 1
PAT5B
PAT3T
PAT3B
PAT1T
PAT1B
PAT2B
PAT2T
PAT4B
PAT4T
PAT0B