On Sun, Feb 09, 2003 at 11:30:52PM -0500, Jai Dhar wrote: > Quoting Josh Koffman : > > True, you need to set the ADCON register on startup to enable/disable Port A > and E. If you are trying to use Port A and it's not working, try setting ADCON > first. Yes, this is a bug in Myke's book... ledon will not work as written. You need to configure Port A as digital inputs: MOVLW 0x06 ; Configure Port A as digital inputs MOVWF ADCON1 ^ 0x80 ; . I ripped my hair out until I read the datasheet. It was a good unexpected debugging exercise, but it's too bad the simplest of simple programs in the book is wrong. Not good for beginners. :) And this error is not listed in the book's errata. -Dave -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu