Hello, I hope my question is not something stupid...
I tryed to check in the old posts but I found not one answer....
I was using ADCIN (8 Bits) with this code:
TRISA=255
ADCON1=0
DEFINE OSC 40
DEFINE ADC_BITS 8
DEFINE ADC_SAMPLEUS 50
and:
ADCIN 0, STORE_0
where STORE_0 is a byte sized variable, and it works perfet.
Now I tryed to perform a 10 bit conversion, I used a word sized variable and the define was modified in:
DEFINE ADC_BITS 10
...but it store again one value large one byte, no more...
Can someone help me posting a piece of working code for 18F2520?
Thanks
Stefano
Bookmarks