cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F205VB ADC with external reference

sven
Associate II
Posted on October 30, 2014 at 11:17

Hi,

I try to use the ADC with ext ref but it doesn't work...

I use ADC 1 from PA3.

Are there any sample or does have anybody code example?

#whiskey-tango-foxtrot
4 REPLIES 4
Posted on October 30, 2014 at 12:49

Ok, from your post I'm not sure exactly what you've got wired up, or what voltage you apply to +VREF, and what in fact is not working. Please describe what you're seeing and what you're expecting.

The Standard Peripheral Library has several ADC code examples, tried those?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sven
Associate II
Posted on October 30, 2014 at 14:52

Hi,

I use a 1,024V Ref at Ref+ and clearyl REF- at vss

But the Values toggle from 0 to 880, nothing between these :(

Posted on October 30, 2014 at 17:46

And the nature of the input signal is what? Please try to present some complete context to your issue, including code, so you stand some chance of get an actual diagnosis of your problem.

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Discovery/Multi%20Channel%20ADC%20reading&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=3162]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Discovery%2FMulti%20Channel%20ADC%20reading&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F¤tviews=3162
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sven
Associate II
Posted on October 30, 2014 at 17:52

There no input source.

If i connect PA3 to GND it seems more often show 0..but not really.

The point of my question is, how  can I switz from internal Reference to external?

I use the Compiler from Microe  and in this ACD Unit is only a internal Ref from VSS to Vdd, And the init Advanced does not work for this µc.

So I need the Information, how can I switch to external Ref