Sunday, 29 March 2009

"NOT" The way to do it !

Using the "NOT" function works, it simplifies the program too.

PIC Programming

I've been trying to get a simple routine woking in flowcode to use a single push switch on one port to turn a corrisponding bit on another port on and off. Not quite a easy as I first thought.
I did it by reading the state of the port I want to switch, and then using a decision statement when the switch was pressed to change it between 1 and 0.

Thinking more about it I think a more elegant way could be done using a NOT statement.
Now where did I put my development board.