Yeah, PortB and D are set for output, I didn't include that code. I was also using various pins of the PortD (prior to sending the ADRESH to it) as "flags" that the code had reached specific points. The code appears to be executing completely. At the start of the program the output pins are set to 0, I see this happen, a pause then the PortB pins are set to 0x13, as well as seeing the specific PortD pins set high. BTW, thanks for the Macros, this is my first try at using a PIC (well microcontrollers in general), and those certainly help readability. Thanks. Jinx wrote: > I've compared your code to a couple of working examples > and it appears OK, unless I missed something. So...... > > Are you sure the PIC is running ? ie, RC selected in CONFIG, > MCLR at 5V, that sort of thing > > Are Ports B & D, which you're measuring, set as o/p ? -- 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