
R01UH0336EJ0102 Rev.1.02
Page 806 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
15.7.10
Pattern Phase Difference Detection Flag (TSnPPF)
Name
Pattern phase difference detection flag (TSnSTR2.TSnPPF)
Description
TSnPPF can detect the phase difference between the input pattern
(TSG2nPTSI2 to TSG2nPTSI0 pins) and the output pattern
(TSnSTR1.TSnOPF2 to TSnOPF0 flags).
TSnPPF is set to 1 when the pattern phase difference is detected when the
TSnOPCI0 and TSnOPCI1 signal triggers are input, and a warning interrupt
(INTTSG2nIWN) is generated. TSnPPF remains 1 until it is cleared to 0 when
1 is written to TSnSTC.TSnPPR by software. When the phase difference is
detected, TSnPPF is set at each operation clock cycle (PCLK). TSnPPF
should be cleared to 0 when no phase difference occurs.
Example of
operation
Figure 15-23
Example of Pattern Difference Detection Flag Operation
Operating mode
TSnPPF can be used in all operating modes.
Caution 1.
TSnPPF is valid only when TSnCTL1.TSnPPC = 1 and TSnSTR0.TSnTE = 1.
Caution 2. When 000 or 111 is input to the TSG2nPTSI2 to TSG2nPTSI0 pins, or when
TSnOPF2 to TSnOPF0 are set to 000 or 111, TSnPPF is not set.
Table 15-46
Correspondence between Normal Input Patterns and Output Patterns
TSG2nPTSI2 to
TSG2nPTSI0 pins (input)
“1, 0, 1” “1, 0, 0” “1, 1, 0” “0, 1, 0” “0, 1, 1” “0, 0, 1”
TSnOPF2 to TSnOPF0
flags (output)
“0, 0, 1”
“1, 0, 1”
“1, 0, 0”
“1, 0, 1”
“1, 0, 0”
“1, 1, 0”
“1, 0, 0”
“1, 1, 0”
“0, 1, 0”
“1, 1, 0”
“0, 1, 0”
“0, 1, 1”
“0, 1, 0”
“0, 1, 1”
“0, 0, 1”
“0, 1, 1”
“0, 0, 1”
“1, 0, 1”
1, 0, 1
1, 0, 0
1, 1, 0
0, 1, 0
0, 1, 1
0, 1, 0
1, 0, 1
1, 0, 0
0, 0, 1
0, 1, 1
TSnPPF
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
TSnOPCI1 signal
TSnOPCI0 signal
TSnOPF2 to TSnOPF0
INTTSG2nIWN
interrupt
TSnPPF is set.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...