Help! I've got a 24hj256gp610 project where I read portb. It works properly when debugging with the ICD-2. When I program the chip, though, it always reads back as zero. I set a strobe low, wait for a handshake line to go low, then read the port. As the datasheet indicates, I'm doing a nop after the write and before the read (and writing to the LAT instead of the port). So... what's the difference between debug and run? THANKS! Harold -- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising opportunities available! -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist