cancel
Showing results for 
Search instead for 
Did you mean: 

To which io pins is the adc connected ???

manes6969
Associate II
Posted on January 02, 2012 at 15:09

Hi

I maybe overlooking it , but I don't find to which pins the adc is connected ?

In the pinouts and pin description I find ADC3_INx , and ADC123_INx , ADC12_INx.

I can not find however ADC1_IN0 for example. Doen't ADC1 not exist ?

And what is meant with ADC123 & ADC12 ???

Hoping somebody can help me on this

Kind regards ,

Ronny Suy

Belgium

#stm32f4
2 REPLIES 2
raptorhal2
Lead
Posted on January 02, 2012 at 16:17

The F4 datasheet has a section giving the information you need on pin assignments. For example, ADC123_IN0 is PA0. Missing currently is the ADC3_IN8 connection to PF10.

The F4 Reference Manual has ADC schematics that show IN0 to IN15 connections going to both ADC1 and ADC2, and temperature and VRef going only to ADC1. Unfortunately, the reference manual needs updating to describe the full 24 external channel capability. ST has an update in the works.

The ADC12, ADC123 and ADC3 notation identifies which ADC's are connected to any pin. Multiple ADCs can be used in various modes as described in the Reference manual. The trick is to make sure you don't try to access the same pin at the same time with more than one ADC.

Dedicate some quiet time to read the datasheet and reference manual thoroughly, and this will become much clearer. Another big help will be available when ST updates the datasheet and reference manual.

Cheers, Hal

fbojer
Associate
Posted on January 03, 2012 at 07:26

Here is list of Pors and ADC functions on STM32F4

PF3  ADC3_IN9

PF4  ADC3_IN14

PF5  ADC3_IN15

PF6  ADC3_IN4

PF7  ADC3_IN5

PF8  ADC3_IN6

PF9  ADC3_IN7

PF10 ADC3_IN8

PC0  ADC123_IN10

PC1  ADC123_IN11

PC2  ADC123_IN12

PC3  ADC123_IN13

PA0  ADC123_IN0

PA1  ADC123_IN1

PA2  ADC123_IN2

PA3  ADC123_IN3

PA4  ADC12_IN4

PA5  ADC12_IN5

PA6  ADC12_IN6

PA7  ADC12_IN7

PB0  ADC12_IN8

PB1  ADC12_IN9

PC4  ADC12_IN14

PC5  ADC12_IN15

ADC12_IN8 means that reading from ADC1 and ADC2 at channel 8 will both check this pin. You can interleave readings like this. 

Take note that STM32F4_DISCOVERY board DOES NOT have Port F with ADC3 so you have only 16 channels.