Think about that for just a second?=20 If I /knew/ the value of ADRES to inject, why would I be trying to find it? -- James Newton 1-970-462-7764=20 -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of John Temples Sent: Saturday, November 20, 2010 16:24 To: Microcontroller discussion list - Public. Subject: RE: [PIC] pickit2 unreliable debug 12F675 On Sat, 20 Nov 2010, James Newton wrote: > In this specific case: I have a pot connected to AN0 and set so that 2.5v is > on the pin. Now I want to know exactly what ADC count the chip is reading so > I can set that as the midpoint in my code and turn the motors one direction > when the voltage is lower and the other when it is higher. > > With a debugger, I simply read the ADC output register and I'm done. > > How would you get that value without the debugger? The simulator has a register injection feature that reads hex values from a file that are injected into ADRES over time. -- John W. Temples, III --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .