The solution (which I got from the microchip PIC forum) was to add _LVP_OFF to the config bits. Cheers, -Neil. -- View this message in context: http://www.nabble.com/-PIC--Issues-porting-code-to-16F883-tp17267989p17286587.html Sent from the PIC - [EE] mailing list archive at Nabble.com. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist