On Wed, May 28, 2003 at 12:26:34AM -0600, stesquib@MINES.EDU wrote: > Hello, The following ADC code for a 12F675 constantly returns zero (puts 0 in > ADRESH). You mayyy need to initialize CMCON=7, but that may just be a bug in MPASM not implementing option overrides. But mainly: > movlw 0x00C ;left justified, channel 3 (gpio 4) > movwf ADCON0 ;Vref = Vdd I didn't decode 0xC fully, but it's 12, which is even, and ADON is bit 1, so you haven't turned on the A/D module. -- Ben Jackson http://www.ben.com/ -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics