
R01UH0336EJ0102 Rev.1.02
Page 873 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
15.11.4
120-DC Mode
Overview
In this mode, PWM output period set to TSnCMP0 and timer output (TSG2nO1
to TSG2nO6) according to the duty cycle set to TSnCMP1 to TSnCMP12 are
controlled with three types of pattern inputs (software output control method,
pattern switch method, and trigger switch method) to perform 120-DC control.
Prerequisites
• Set the PWM period to TSnCMP0.
• Set the PWM duty to TSnCMP1 to TSnCMP12 and set the output pattern to
TSnPAT0W and TSnPAT1W.
Functional
description
Set the PWM period, set the duty cycle to individual compare register, and set
the pattern to be output to the pattern register. Setting TSnTRG0.TSnTS to 1
starts counting.
The 16-bit counter starts counting from 0000
H
, and is cleared by the match
with TSnCMP0.
INTTSG2nI01 to INTTSG2nI12 interrupts are generated by a compare match
of the 16-bit counter and TSnCMP1 to TSnCMP12 buffer registers,
respectively.
Note
120-DC mode is valid when TSnCTL0.TSnMD1 to TSnMD0 are set to 11
B
.
Figure 15-61
Block Diagram in 120-DC Mode
Match selector
INTTSG2nI01,
INTTSG2nI02,
INTTSG2nI05,
INTTSG2nI06,
INTTSG2nI09,
and
INTTSG2nI10
interrupts
INTTSG2nI03,
INTTSG2nI04,
INTTSG2nI07,
INTTSG2nI08,
INTTSG2nI11,
and
INTTSG2nI12
interrupts
Output pattern
control signal
(input selection)
Pattern decoder
Edge level
detection
circuit
Match selector
Match selector
Match selector
Match selector
Match selector
TSG2nPTSI0 pin
TSG2nPTSI1 pin
TSG2nPTSI2 pin
TSnOPCI0 and TSnOPCI1 signals
TSnOPT0.TSnPSC
TSnOPT0.TSnIDC
TSnOPT0.TSnPOT
TSnTRG0.TSnTS
TSnCTL0.
TSnMD1, TSnMD0
TSnPTE signal
TS0PEC signal
TSnSTR1.TSnTSF
TSnDTT3
counter
TSnDTT2
counter
TSnDTT1
counter
TO change trigger
TSG2nO1 pin
TSG2nO2 pin
TSG2nO3 pin
TSG2nO4 pin
TSG2nO5 pin
TSG2nO6 pin
TSG2nO1
control
TSG2nO6
control
TSG2nO5
control
TSG2nO4
control
TSG2nO3
control
TSG2nO2
control
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...