- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In SDK2.1.1, I tested adc function in BCM920736.
When 0.2xxV is applied, adc_readSampleRaw outputs negative value.
I understood that too high voltage over Vadc can make the output negative, but can the too low voltage affect like this?
I just set like following.
adc_SetInputRange(ADC_RANGE_0_3P6V);
adc_adcCalibrate(3300,(ADC_INPUT_CHANNEL_SEL)Mon_cfg.adcInputConnectedToBattery);
measurement = adc_readSampleRaw((ADC_INPUT_CHANNEL_SEL)Mon_cfg.adcInputConnectedToBattery);
Thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see in your code sample you use: adc_adcCalibrate(3300,(ADC_INPUT_CHANNEL_SEL...
However, the API for adc_adcCalibrate() wants the first parameter (a UINT32) in micro-volts. You show 3300 as if the units were in milli-volts instead... Could this be your problem? What happens if you use 3300000?