V2.47 support this PIC.
BUT the built-in command don't allow you to read 12 bit ADC directly... well i think, 10 or 8 bit are listed. Maybe DEFINE ADC_BITS 12 work....
Anyway, it's not hard to read/write the PIC register manually. Few lines of code, not much.
EDIT: DEFINE ADC_BITS 12 should work... IF NOT... here's a easy workaround
I still prefer the read/write PIC register route..Code:DUMMY var word TwelveBitResult var word START: adcin 0,dUMMY twelvebitresult.LOWBYTE=ADRESL twelvebitresult.HIGHBYTE=ADRESH lcdout $FE,1,#dummy,_ $FE,$C0,#TWELVEBITRESULT PAUSE 250 GOTO START




Bookmarks