Nothing happens, still doesn't work. Regards, VV ----- Original Message ---- From: Alan B. Pearce To: Microcontroller discussion list - Public. Sent: Wednesday, July 30, 2008 5:06:10 PM Subject: Re: [PIC] PIC18F4520 PORTA pins are reseting each other for no reasons >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 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist