ADC SAR SEQ & voltage measurement

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YuCh_3947976
Level 3
Level 3
10 replies posted 5 replies posted 10 questions asked

Hi,I use ADC to detect external voltage,and I have same question about this article

ADC SAR & ADC Delsig reading deviation

adc result is bigger than measurement value by multimeter

I want to use the same way( ADC_SetGain() ) to solve it

SetGain() can got only integers while i need 0.8

Anyone can tell me? thanks

        if(ADC_SAR_SEQ_IsEndConversion(ADC_SAR_SEQ_RETURN_STATUS) != 0)

        {

            count = ADC_SAR_SEQ_GetResult16(0);

            mvolts = ADC_SAR_SEQ_CountsTo_mVolts(0,count);

        }

0 Likes
1 Solution
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

Following is the snapshot of the ADC_SAR_Seq component datasheet.

GS004793.png

It says the adcGain parameter indicates the ADC count for 10V result.  So, if you get 1024 count for 1V input, set the adcGain to 10240 (count/10V)

Regards,

Noriaki

View solution in original post

1 Reply
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

Following is the snapshot of the ADC_SAR_Seq component datasheet.

GS004793.png

It says the adcGain parameter indicates the ADC count for 10V result.  So, if you get 1024 count for 1V input, set the adcGain to 10240 (count/10V)

Regards,

Noriaki