Or...
If ((porta.0 = 1) and (porta.1 = 1)) or (porta.2 = 1) then portb.0 = 1
Or...
If ((porta.0 = 1) and (porta.1 = 1)) or (porta.2 = 1) then portb.0 = 1
___________________
WHY things get boring when they work just fine?
Since the three inputs are all on the same port, then you can tray:
A0 var BYTE
A0 = PortA.0 + PortA.1 + PortA.2
If A0 > 2 then PortB.0 = 1
or.....
IF PortA & %00000111 > 2 then portB.0 = 1
Al.
Last edited by aratti; - 11th November 2009 at 01:07.
All progress began with an idea
Bookmarks