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.
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