> I'm having a problem with the A/D convertor in the chip I've compared your code to a couple of working examples and it appears OK, unless I missed something. So...... Are you sure the PIC is running ? ie, RC selected in CONFIG, MCLR at 5V, that sort of thing Are Ports B & D, which you're measuring, set as o/p ? ============================================ BTW, code is a lot easier to read if you can use macros. For example, the macro name saves a lot of eye-flicking between code and comments, saves time writing and wading through BCF and BSF on STATUS is hard going. Note that indiscriminate macro usage may bloat code too much (because the macro code is compiled in-line) and CALLs might be more appropriate in some situations, especially large macros that would be better as sub- routines Olin has a user-friendly system for eg register selection too bank0 macro bcf status,rp0 bcf status,rp1 bcf status,irp endm bank1 macro bsf status,rp0 bcf status,rp1 bcf status,irp endm adch0 macro bcf adcon0,chs0 bcf adcon0,chs1 bcf adcon0,chs2 endm delay macro clrf temp incfsz temp,f goto $-1 endm which are used in code as delay adch0 ;select A/D channel 0 bsf adcon0,go_done ;start conversion nop btfsc adcon0,go_done goto $-1 movf adresh,w movwf hi bank1 movf adresl,w bank0 movwf lo -- 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