Hi Guys, I get a lot of errors when converting with the built in A/D convertor in = a PIC16F877.The actual snippet which handles A/D in my code is given = below. Do you find any problems ? If so can anyone suggest a fix ? My Device Clock is 20 Mhz ADCON0 =3D 0x81 ADCON1 =3D 0x8E And Just to make things simple to understand, ADClk=3DFosc/32 and the result is right aligned clrf temp_ad_loop incfsz temp_ad_loop,f ;TACQ Delay Loop goto $-1 bsf adcon0,go : Go for Conversion btfsc adcon0,go ;Loop until Clear goto $-1 ;Now that I have the Value in ADRESH:ADRESL my other ;routines will process the rest. ;And please don't blame my other (UART) routines=20 ;For they have been thoroughly debugged and are perfect Thanking You Guys & PicList, Jeethu Rao -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu