Microcontroller › PIC › USB WITH PIC18F4550 urgent help › ADC data after conversion
June 13, 2012 at 12:35 pm
#8022
midhun
Participant
ADC data after conversion will be found in two registers ie, ADRESH and ADRESL. you need to save the ADRESH value to a variable which is intiger in format. now you need to rotate the value of variable left 8 times. Now the * LSB will be free. You just OR the ADRESL value with this variable.
This steps will give the value of ADC in a single variable.
Now you just seperate each digit of the same variable by finding the modulus of the variable by dividing it with 10.
JUST TRY THIS….