Re: Wierd result when inverting an input
Dave, the tris register is set correctly and the pic18f2620 just do what it should do when the inputs change Logic state. I need to invert the Logic state of the display (it is much more simple to have a "True" when the external sensor is close instead having a "False".
As I said in a previous post, I solved the problem using the following workaround:
Code:
If Bell = false then
Report = "1"
Else
Report = "0"
ENDIF
Definetly less elegant than the "NOT" notation but at least it works!
Since I always toggle the flashing led with led = !led and it works fine I wrongly assumed that it could work also with an alias. Very likely I should copy the pin state in a bit variable to have it working. I will give a tray (NOT NOW)
Cheers
Al.
All progress began with an idea
Bookmarks