EasyManua.ls Logo

Infineon Technologies TC1796 - Page 1777

Infineon Technologies TC1796
2150 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TC1796
Peripheral Units (Vol. 2 of 2)
General Purpose Timer Array (GPTA)
User’s Manual 24-122 V2.0, 2007-07
GPTA, V2.0
Two_Sensors()
if ( ( S1.Level and !S2.Level and S1.Transition) or
( S1.Level and S2.Level and S2.Transition) or
(!S1.Level and S2.Level and S1.Transition) or
(!S1.Level and !S2.Level and S2.Transition) ) then
generate pulse on PDLx.Signal_Forward
else
if ( ( S1.Level and S2.Level and S1.Transition) or
(!S1.Level and S2.Level and S2.Transition) or
(!S1.Level and !S2.Level and S1.Transition) or
( S1.Level and !S2.Level and S2.Transition) ) then
generate pulse on PDLx.Signal_Backward
endif
endif
PDLx.Signal_Output2.Level = S3.Level
PDLx.Signal_Output2.Transition = S3.Transition

Table of Contents