Skip to main content
hhosburg
Associate II
May 8, 2012
Question

VBAT_Mesurement STM32V207 unusual results

  • May 8, 2012
  • 2 replies
  • 626 views
Posted on May 08, 2012 at 18:13

Hello,

I've used the code from the example VBAT_Mesurement to test the ADC. Instead of connecting a  battery on pin VBAT I've connected VDD 3.3V.

The program requests cyclic the converted value.

....

VBATVoltage = (ADCConvertedValue*2)*3300/0xFFF;

...

VBATVoltage  varies from 3287 to 2992. this is a difference  about 8 percent.

I've checked the power VDD with an oscilloscope , which  is quit clean.

There are no peaks visible.

Does anybody know the reason for this ?

Regards,

Harald

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    May 8, 2012
    Posted on May 08, 2012 at 21:44

    Does anybody know the reason for this ?

    Using 15 cycle mode I'm seeing +/- 20%, this drops below +/- 1% in 480 cycle mode.

    ADC_SampleTime_480Cycles

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    hhosburg
    hhosburgAuthor
    Associate II
    May 9, 2012
    Posted on May 09, 2012 at 07:36

    Thanks,

    it works

    Harald