Put your code in code tags and post it. Not going to risk or take the time to download and open a ZIP when a ZIP is not needed.
This chip only has a 10 bit resolution so you need to explain what you are after. The ADC result can be sent serially with out an array of ant type...put the result in a 4 byte array
Here is a sample to read the ADC at an 8 bit resolution. Maybe it will get you started.
Code:ADCON1 = %00001110 OUT_TEMP VAR BYTE MAIN_LOOP: GOSUB GET_AD GOTO MAIN_LOOP GET_AD: ADCON0=00000001 GOSUB READ_AD OUT_TEMP = ADRESH RETURN READ_AD: PAUSE 50 ADCON0.2=1 WHILE ADCON0.2=1:WEND RETURN





Bookmarks