- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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);
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following is the snapshot of the ADC_SAR_Seq component datasheet.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Following is the snapshot of the ADC_SAR_Seq component datasheet.
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