Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/23/01 07:54
Read: times


 
#13402 - RE: logic comparison on pins
Hi Kevin,

the AND, OR, NOT and other operators can only be used to calculate constant expressions during assembling. So it can not work.

But you can easy do it on using the 8051 bit operations:

mov c, p2.1
clp c
orl c, /p2.2
anl c, p2.0


Peter


List of 9 messages in thread
TopicAuthorDate
logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins            01/01/70 00:00      
RE: logic comparison on pins, Roger            01/01/70 00:00      
RE: logic comparison on pins, Erik            01/01/70 00:00      

Back to Subject List