
R01UH0336EJ0102 Rev.1.02
Page 797 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
15.7.2
Positive Phase and Inverse Phase Simultaneous Active State
Detection Flag (TSnTBF0 to TSnTBF2)
Name
Positive phase and inverse phase simultaneous active state detection flag
(TSnSTR2.TSnTBF0 to TSnTBF2 flags)
Description
When any of TSnCTL1.TSnTBA2 to TSnTBA0 is 1, TSnTBF0 to TSnTBF2 can
detect the simultaneous active state of the positive phase and inverse phase of
TSG2n.
When the simultaneous active state of the positive phase and inverse phase of
the TSG2n is detected, the corresponding TSnTBF0 to TSnTBF2 flags are set
to 1, and an error interrupt (INTTSG2nIER) is generated. The flags are cleared
when 1 is written to TSnSTC.TSnTBR0 to TSnTBR2, respectively.
Example of
operation
Figure 15-11
Example of Positive Phase and Inverse Phase Simultaneous Active State
Detection Flag Operation
Operating mode
TSnTBF0 to TSnTBF2 can be used in all operating modes.
Caution
TSnTBF0 to TSnTBF2 are valid only when TSnCTL1.TSnTBA0 to TSnTBA2 =
1 and TSnSTR0.TSnTE = 1.
16-bit counter
TSG2nO2 pin
TSnTBA0
"H"
TSnTBF
TSnTBA0
"H "
TSnTBF
PWM mode
HT-PWM mode
16-bit counter
TSG2nO1 pin
TSG2nO2 pin
TSG2nO1 pin
INTTSG2nIER
Interrupt
INTTSG2nIER
Interrupt
Write 1 to TSnTBR (clear).
Write 1 to TSnTBR (clear).