Convert analog signal on ADC input pin to digital signal
Embedded Coder Support Package for STMicroelectronics Discovery Boards/STM32F4-Discovery

Measure the voltage of an analog pin relative to the analog input reference voltage on the STM32F4-Discovery™ board. The block output emits analog voltage in varying ranges based on the conversion resolution selected for the ADC in Configuration parameters > Coder Target > ADCx.> Conversion resolution.
For example: When you select 12-bits as resolution for ADC1, the block output emits the analog voltage ranging from 0 to 4095. If the measured voltage equals the ground voltage, the block output emits 0. If the measured voltage equals the analog reference voltage, the block output emits 4095.
You can read up to 16 channels of analog signals from ADC1, ADC2, or ADC3 modules in single, continuous, scan, or discontinuous modes.
The table shows the analog pins corresponding to the channels of the ADC modules that can use these pins to measure the voltage.
For example, ADC modules 1, 2, and 3 that corresponds to channel 12 can use the PC2 pin to measure the voltage. Here, PC2 refers to pin 2 on port C.
