
R01UH0336EJ0102 Rev.1.02
Page 782 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(2)
Example of Operation in Reload Mode (Simultaneous Rewrite Function)
The rewritten values of the registers to be reloaded (TSnCMP0 to TSnCMP12,
TSnCTL2, TSnCTL3, TSnIOC3, TSnPAT0W, TSnPAT1W, TSnDTC0W,
TSnDTC1W, TSnDCMP0W, and TSnDCMP2) can be transferred to the
corresponding buffer registers simultaneously at the reload timing.
The registers should be rewritten when the pertinent reload request flag
(TSnSTR0.TSnRSF) is 0.
Figure 15-3
Basic Operation Flow in Reload Mode (Simultaneous Rewrite Function)
(Example of PWM Mode)
Caution
Writing to TSnCMP1 also enables reloading. Therefore, TSnCMP1 should be
rewritten after TSnCMP0 and TSnCMP2 to TSnCMP12 registers have been
rewritten.
START
An INTTSG2nI00 interrupt
is generated.
TSnSTR0.TSnRSF = 0?
NO
YES
Initial setting
Enable timer operation.
When TSnTRG0.TSnTS is set to 1,
TSnCMP0 to TSnCMP12 values are transferred
to TSnCMP0 to TSnCMP12 buffer registers.
Rewrite TSnCMP0, and
TSnCMP2 to TSnCMP12.
Rewrite TSnCMP1.
·
Compare match of 16-bit counter value
and TSnCMP0 buffer register value.
·
Clear and start 16-bit counter.
·
Transfer TSnCMP0 to TSnCMP12 values
to TSnCMP0 to TSnCMP12 buffer registers.
Reload is enabled.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...