Andrew Kieran wrote: > Have I run into a bug or did I miss something that is or should > have been glaringly obvious? Interestingly, it works if I > change PORTA/TRISA to PORTD/TRISD. Maybe you have to set PORTA shared pins to Digital, i.e. disable the A/D which is active by default on those pins. Take a look at register ADSEL/ADCON... -- Ciao, Dario -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist