AnsweredAssumed Answered

ADC0 on Aduc845

Question asked by SLA on Jul 22, 2011
Latest reply on Jul 25, 2011 by MMA

Hi,

 

I have a feeling that making buff1, buff0 ON, it makes ADC work in Unipolar,

 

I am using internal temp on ADC1 and one input on ADC0, I would like to use ADC0 in bipolar, buff, but when I do buff on with 0V on input I got from ADC 0x00 which in bipolar is -full scale, when buff is Offf, I got around 0x800000 which is OK, I think could please advise what I did wrong.

Thanks in advance.

Slawek

 

ADC1CON = 0x0E;
ADC0CON1=0x07; //buff on is 0x87
ADC0CON2=0x05;
ADCMODE  = 0x24;
ADCMODE  = 0x25;
ADCMODE = 0x3A;
SF = 0x03;

Outcomes