> movlw 3 > xorwf H'F83' > >So, I was already using his samplecode. PortD is never read. An XOR instruction DOES do a read of the port, as it cannot do the XOR otherwise. Hence the XOR instruction is a read/modify/write instruction. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics