Found the problem, the voltdrop across the 100ohm series resistor I use with the ICSP caused the problem. I've shorted it out but now I have to unplug the USB cable every time I program it so as not to have power go back into the PC and then unplug the programmer every time I connect the circuit to the PC (Using power from the pc USB ) Has anyone got any suggestions as to how to get around this inconvenience? Thanks to all for their input. Regards Mark -----Original Message----- From: Michael Rigby-Jones [mailto:Michael.Rigby-Jones@BOOKHAM.COM]=20 Sent: 20 January 2004 13:29 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC:]18F452 A2D problem goto again ;back to read >USB for command loop > > That part looks fine. I'm guessing you have a suitable acquisition delay > (around 15us) between setting the channel in ADCON0 and setting the GO bit? > One thing to check is that both sets of Vdd/Vss pins are definitely > connected to their respective supplies, this is just the sort of odd > behaviour that can occur if only one set of pins is powered. > Regards > Mike NOTE: This e-mail message is subject to the MTN Group disclaimer see http:/= /www.mtn.co.za/email_disclaimer.asp -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu