
R01UH0336EJ0102 Rev.1.02
Page 804 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
15.7.8
TSG2nPTSI2 to TSG2nPTSI0 Pin Abnormal Toggle Detection
Flag (TSnPTF)
Name
TSG2nPTSI2 to TSG2nPTSI0 pin abnormal toggle detection flag
(TSnSTR2.TSnPTF)
Description
TSnPTF can detect that the values of the TSG2nPTSI2 to TSG2nPTSI0 pins
change three or more times during the TSnOPCI0 or TSnOPCI1 signal trigger.
TSnPTF is set to 1 when the third trigger of TSnOPCI0 or TSnOPCI1 signal
occurs simultaneously with the change in TSG2nPTSI2 to TSG2nPTSI0, and a
warning interrupt (INTTSG2nIWN) is generated.
TSnPTF is cleared to 0 when 1 is written to TSnSTC.TSnPTR.
Example of
operation
Figure 15-21
Example of TSG2nPTSI2 to TSG2nPTSI0 Pin Abnormal Toggle Detection
Flag Operation
Operating mode
TSnPTF can be used in all operating modes.
Caution 1.
TSnPTF is valid only when TSnCTL1.TSnPTC1 bit = 1 and TSnSTR0.TSnTE
= 1.
Caution 2. When TSnPTC0 bit = 1 and TSnPTC1 bit = 1, TSG2nO1 to TSG2nO6 pin
output switch control is automatically switched to pattern switch method
(TSnOPT0.TSnPOT bit = 0) if an abnormal toggle is detected.
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
1
2
0
1
1
2
0
1
0
1
0
1
1
2
0
2
0
1
0
2
1
2
0
0
1
0
1
0
TSnPTF
2
TSnOPCI0 signal
TSnOPCI1 signal
TSnOPCI0 trigger-to-trigger
measurement counter
TSnOPCI1 trigger-to-trigger
measurement counter
INTTSG2nIWN
interrupt
TSnPTF is set.
Write 1
to TSnPTR (clear).
TSnPTF is set.
Write 1
to TSnPTR (clear).
2
2
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...