
R01UH0336EJ0102 Rev.1.02
Page 801 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(b)
Detection of Input Pattern Order
Immediately after TSG2n starts operation, the rotation direction cannot be
determined. Therefore, TSnTSF cannot detect the change (normal or reverse
rotation) in the patterns input to the TSG2nPTSI2 to TSG2nPTSI0 pins. To
enable detection of change immediately after the beginning of operation,
TSnPSC should be set before operation starts (when TSnTE = 0, the TSnPSC
value is reflected).
Figure 15-16
Example of Detecting Change (Normal/Reverse Rotation) in Pattern Input
to TSG2nPTSI2 to TSG2nPTSI0 Pins
(c)
When Abnormal Input to TSG2nPTSI2 to TSG2nPTSI0 Pins is Detected
Figure 15-17
Example of Operation when Values Input to Two Pins of TSG2nPTSI2 to
TSG2nPTSI0 Change (Abnormal Operation)
(1) TSnTSF does not change at this point because it expects the input pattern
change to {0, 1, 0} or {0, 0, 1} (if values of two pins change, TSnTSF does
not change).
(2) TSG2nPTSI2 to TSG2nPTSI0 pins are determined to have been changed
from {1, 0, 1} to {0, 0 ,1}, and TSnTSF is set to 1.
Operating Mode
TSnTSF can be used in all operating modes.
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
(i) 101
→
001
"L"
"H"
TSnTE
TSnTSF
"L"
"H"
TSnTE
TSnTSF
"L"
"L"
"L"
"0"
TSnTE
TSnTSF
(ii) 101
→
100
Reverse rotation detected.
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
Level detection
Remains 0 because
of normal rotation.
(iii) 010
→
110
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
All inputs are low.
Normal pattern can be detected
from this point.
Reverse rotation detected.
Set to 0.
Set to 1.
TSnTSF
TSG2nPTSI2 pin
TSG2nPTSI1 pin
TSG2nPTSI0 pin
(1)(2)