Ok Luxor
Bingo : You simply forgot to write the chip A/D relevant registers config and define I/Os for your chip ...
Code:
DEFINE OSC 4 ' Default Osc freq
DEFINE OSCCAL_1K 1 ' retrive the trimming value
CMCON = 7 ' disable Analog comparators
GPIO = %00000000 'All pins LOW at startup
TRISIO =%00101000 'set GPIO3 & GPIO5 as inputs
so, add those lines to the top of code.
AND do not forget to connect the RESET PIN ...
a look to the 629 Datasheet will help !
Alain
************************************************** ***********************
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