steve@TLA.CO.NZ > My declaration isn't _the_ port, it's a variable called Port. > I grab the state of a port at a single instant in time so the code > immediately above the 'if' statement is > PortB.Byte = PORTB; Just a *realy* bad variable name, IMHO... :-) Jan-Erik. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.