2014-02-07 01:46 AM
2014-02-07 02:29 AM
Hi
''It's the first time that I use the STM32F4 Discovery Board and I have a problem with the ADC.
'' Welcome. Please specify which F4 Discovery board, I think there are 2 different models? ''I wired on a breadboard with 4 potentiometers (10k) for each channel.
'' ''But with the two others channels when I vary the potentiometer for the channel 10 (PC0) their values change but also that of channel 4 (PA4).
'' Please check the circuit diagram/schematic of the Discovery board you have. I remember other posts/threads mentioning that some port bits are actually used for things on the demo board and therefore cannot be used for your purposes.2014-02-07 03:01 AM
Thanks for your response
I use the STM32F4 Discovery kit for STM32F407.There is effectively something else plugged on the pin that I use for the ADC.I use this kit to try the different functions that I created because after I'm going to use the STM32F407 for a personal project.Do you think I will have the same problem ? Thanks2014-02-07 04:00 AM
Hi
''There is effectively something else plugged on the pin that I use for the ADC.'' ''Do you think I will have the same problem ? '' Yes. If the pin is in use on the Discovery board, it is in use. Even on the break out header. (IF you want to - you can cut the tracks on the Discovery board. Consult the schematic and the gerber file. Just make sure that the pin is still wired to the break out header)2014-02-07 07:34 AM
This is what I call my deja vu all over again question.
There is a table in the F4 Discovery User Manual that defines which pin are connected to board functions and which are free for other uses such as yours. ADC123 channels 1,2,3,8,9,11,12,14 & 15 are free. Cheers, Hal2014-02-07 09:48 AM
OK thanks
So if I have well understood, if I use the STM32F407 in a personal project without the discovery kit, I can use all ADC and all channels ?2014-02-07 10:01 AM
Hi
''So if I have well understood, if I use the STM32F407 in a personal project without the discovery kit, I can use all ADC and all channels ?'' Yes. Bear in mind that the correct circuitry must surround the STM32F407 or it will not work. Search the STM32 forum, there have been a few people who have built their own boards. There was 1 post in which clive1 answered where he posted the bear minimum circuit needed.2014-02-07 11:20 AM
''So if I have well understood, if I use the STM32F407 in a personal project without the discovery kit, I can use all ADC and all channels ?''
Yes. Sung is correct, but you need to consider the pin count limitations. Look over the pin definitions table in the F407 data sheet. 24 external channels are available, but only in higher pin count packages. And any one ADC is limited to 16 external channels. And ADC pins share functions with other peripherals, which may or not be reassignable to other pins. Cheers, Hal
2014-02-07 11:25 AM
In a design of your own you can use pins for whatever combination of features you want.
It is pretty much impossible to use ALL of the peripherals ALL at once, you are limited by what features you want, and what you can escape the packaging/pins of the device.Review thehttp://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/DM00037051.pdf
for the part.Utilize the Micro Xplorer application, which is a pin assignment ''fitter'' type application designed by ST2014-02-10 06:26 AM
It works ;)
Thanks