At 02:46 PM 11/26/02 -0600, Gordon Varney wrote: >What am I doing wrong??????? I would appreciate any help. > >Note: this code works on a PIC12C671. > >The ADC does not work, I have tried init in ASM and C. Still does not >work. There are several differences between the 12c671 and the 12f675. Of particular note is that the a/d go/done bit is in a different location (ADCON0,1 vs ADCON0,2) and the requirement for setting the ADSEL register. Also pay attention to CMCON - it may also affect the a/d (I don't remember right now). dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 18 years of Engineering Innovation (1984 - 2002) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads