>Yes, there's an error that Tamas pointed out. Check the ADCON1 on >section 19-2 of the PIC18F4520 datasheet. It seems like one should >load 0x0F into ADCON1 instead of 0x07 as suggested by the datasheet And what happens when you do this with the PIC that doesn't work ??? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist