cancel
Showing results for 
Search instead for 
Did you mean: 

Stm32f4 ADC exemple

achourwissem
Associate II
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 🙂
4 REPLIES 4
achourwissem
Associate II
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
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
achourwissem
Associate II
Posted on September 01, 2013 at 19:37

yeah right VREF+ is 3.3v thnx 🙂