![Infineon Technologies TC1784 User Manual Download Page 1785](http://html.mh-extra.com/html/infineon-technologies/tc1784/tc1784_user-manual_20554461785.webp)
TC1784
General Purpose Timer Array (GPTA
®
v5)
User´s Manual
21-133
V1.1, 2011-05
GPTA
®
v5, V1.14
Three_Sensors()
if ( ( S1.Level and !S2.Level and S3.Level and S1.Transition) or
( S1.Level and !S2.Level and !S3.Level and S3.Transition) or
( S1.Level and S2.Level and !S3.Level and S2.Transition) or
(!S1.Level and S2.Level and !S3.Level and S1.Transition) or
(!S1.Level and S2.Level and S3.Level and S3.Transition) or
(!S1.Level and !S2.Level and S3.Level and S2.Transition) ) then
generate pulse on PDLx.Signal_Forward
else
if ( ( S1.Level and S2.Level and !S3.Level and S1.Transition) or
(!S1.Level and S2.Level and !S3.Level and S3.Transition) or
(!S1.Level and S2.Level and S3.Level and S2.Transition) or
(!S1.Level and !S2.Level and S3.Level and S1.Transition) or
( S1.Level and !S2.Level and S3.Level and S3.Transition) or
( S1.Level and !S2.Level and !S3.Level and S2.Transition) ) then
generate pulse on PDLx.Signal_Backward
endif
endif
if ( (S1.Level == S2.Level) and (S1.Level == S3.Level) ) then //error
if (!PDLx.Signal_Output2.Level) then //rising edge
generate pulse on PDLx.Signal_Output2.Transition
endif
PDLx.Signal_Output2.Level = 1
PDLx.Error = 1
else //no error
if (PDLx.Signal_Output2.Level) then //falling edge
generate pulse on PDLx.Signal_Output2.Transition
endif
PDLx.Signal_Output2.Level = 0
endif
Summary of Contents for TC1784
Page 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Page 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Page 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Page 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...