Hi
the following code segment is used to transfer ad result from ADRESL and ADRESH. i think there might be something wrong with the code. instead of showing different value the program writes one fixed number on the lcd screen.
thanks
lipschutz
the following code segment is used to transfer ad result from ADRESL and ADRESH. i think there might be something wrong with the code. instead of showing different value the program writes one fixed number on the lcd screen.
banksel ADRESL ;read and transfer
movf ADRESL,W ;AD resul to location
banksel ADRESH ;adres_low and adres_high
movwf adres_low ;respectively
movf ADRESH,W ;
movwf adres_high ;
bcf ADCON0,ADON ;AD module turned off
thanks
lipschutz