> Yes, the sample was for 18F452. > > I understand that the hardware must read the port to being > able to execute > the xor. Would this be a problem? It can be a problem when you do the operation on the PORT register. It will *not* be a problem when you do the opearation on the LAT register (available on PIC18's only). Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body