[ Humour ON ]
You really sure to want the answer ???
[ Humour OFF ]
Now,
MUCH Better :
Code:
ANSEL = 1
ADCON0 = 3
Much better
Code:
ANSEL = %01110001 ; RC - GPIO.0 ana.
ADCON0 = %10000000 ; for 10 bits ... right justif !!! - wait for ADCIN to start.
AND For the end ...
You did not define the I/Os ...
Code:
TRISIO = %11001001 ; if you want GPIO.0 to work as an ADC input. ( see manual ! )
At this level ...
You MIGHT open
1) THE Manual
2) The Pic relevant Datasheet ...
Alain
Last edited by Acetronics2; - 9th January 2009 at 14:31.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks