be80be
Well-Known Member
Nigel
In your PIC ADC tutorial your bit is set ADFM: A/D Result Formed Select bit 1 = Right justified . That is right ? My code is reading for the left justified
I need to make sure this is set right
I should use this
and change ADRESH,w to ADRESL,W
In your PIC ADC tutorial your bit is set ADFM: A/D Result Formed Select bit 1 = Right justified . That is right ? My code is reading for the left justified
I need to make sure this is set right
Code:
movlw 0x01
movwf ADCON0 ; configure A2D for Channel 0
Code:
movlw B’10000001’ ;Right, Vdd Vref, AN0
movwf ADCON0
Last edited: