IF (porta AND %00000101) = 1 THEN
Your logic is flawed because for example if bit PortA.2 is set then the equation would equal 4 and not 1.
Try this instead...
If (PortA and %00000101)<>0 then
IF (porta AND %00000101) = 1 THEN
Your logic is flawed because for example if bit PortA.2 is set then the equation would equal 4 and not 1.
Try this instead...
If (PortA and %00000101)<>0 then
Inside the parenthesis the test is logical but outside is a comparison of two numbers. It is allways 'false' condition...
Ioannis
My wife frequently makes the same observation.Originally Posted by Melanie
I do see where I was going wrong.
Thank you all.
Jim
See? As always women are addressing (here Melanie...) this kind of problems!
Ioannis
Bookmarks