Hello,
I connected a DEMO908QB8 to my PC and tried to get some values from the ADC using Processor Expert.
To get a +5 V and 0 V, I programmed PTA1 to be an output, and measured the signal on the AD1 (PTA1) pin.
It ran nice producing values from 64 to 65472 or 0x0040 to 0xffc0.
As the function GetValue16() was used, the measurements were shifted up, to make the 10 bit result 16 bits. So in reality the 0xffc0 was 0x3ff or 1023 and the 0x0040 was 1.
But I guess that this is not your problem.
If you are usng the AD0 input pin, remembere that it is used for the MON08 communication, which could make the input quite unusable.
I am including my program.
Regards,
Ake
Message Edited by t.dowe on 2009-10-27 01:52 PM