Hello Steve,

Steve>>BUT i'll prefer to use PIN NAME instead of pin number... more easy to read.

ex:

HIGH PORTB.0
<<

I agree Steve... Makes a heck of a lot easier to debug too. You are not constantly referring back to a previously assigned Pin Value.

I do the same with the header variables too. I realize that using certain functions will automatically assign a pin to a input or output, but I use (by habit) the Header assignments for safety sake <g>.

Dwayne