Skip to main content
achourwissem
Associate III
August 31, 2013
Question

Stm32f4 ADC exemple

  • August 31, 2013
  • 4 replies
  • 929 views
Posted on August 31, 2013 at 19:50

hello

i tried ST's adc exemple and i got weird values of my variable while debugging , for exemple i got 30 for 2.0 v and -1000 for 2.5 v , so anyone have a working code with no weird things? and thnx :)
    This topic has been closed for replies.

    4 replies

    achourwissem
    Associate III
    September 1, 2013
    Posted on September 01, 2013 at 12:19

    thank you clive it's better anyway , i got this values on debugging the array table values :

    2 , 24 , 1040 , 1418 , 2001 , 2400 ,2800 , 3381 , 4095 , 3895

    the problem is at 5v i got value 3895 and at 4.xx v i got 4095 !! :o

    any help plz
    Tesla DeLorean
    Guru
    September 1, 2013
    Posted on September 01, 2013 at 15:44

    How exactly do you expect to sample 5V on a part that's probably running at 3V? Wouldn't that exceed VREF+?

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    achourwissem
    Associate III
    September 1, 2013
    Posted on September 01, 2013 at 19:37

    yeah right VREF+ is 3.3v thnx :)