
R01UH0336EJ0102 Rev.1.02
Page 780 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(1)
Example of Operation in Anytime Rewrite Mode
In this mode, the values written to the compare registers (TSnCMP1 to
TSnCMP12) are transferred to the internal buffer registers immediately, and
are compared with the counter value.
The values are transferred to the internal compare buffer registers one clock
cycle (PCLK) after being written to the compare registers (TSnCMP1 to
TSnCMP12).
The transfer timing of the TSnCMP0 is the peak or valley timing (only in HT-
PWM mode) of the 16-bit counter after being written to the compare registers,
or at the match timing of the TSnCMP0 value with the 16-bit counter value (in
any mode other than HT-PWM mode).
Figure 15-2
Anytime Rewrite Timing (Example in PWM Mode)
Note 1.
D01, D02: TSnCMP0 setting value (0000
H
to FFFF
H
)
D11, D12: TSnCMP1 setting value (0000
H
to FFFF
H
)
D21: TSnCMP5 setting value (0000
H
to FFFF
H
)
D31: TSnCMP9 setting value (0000
H
to FFFF
H
Note 2.
∆
: Write access
16-bit counter
TSnCMP0
TSnCMP1
TSnCMP5
TSnCMP9 buffer
INTTSG2nI01
TSnCMP0 buffer
TSnCMP1 buffer
TSnCMP5 buffer
TSnCMP9
0000
H
D11
D11
D12
D11
D11
D12
D12
D21
D21
D21
D01
D01
D02
D02
D01
D12
D21
0000
H
D01
D02
0000
H
0000
H
D21
D31
D31
D31
D31
D31
D31
TSnRSF flag
"L"
TSnTE bit
INTTSG2nI00
INTTSG2nI05
INTTSG2nI09