UM1581
3.2.12
Regular Channels Configuration functions
3.2.12.1
ADC_RegularChannelConfig
Function Name
Function Description
Parameters
void ADC_RegularChannelConfig (
uint8_t ADC_Channel, uint8_t Rank, uint8_t
ADC_SampleTime)
Configures for the selected ADC regular channel its
corresponding rank in the sequencer and its sample time.
ADCx : where x can be 1, 2, 3 or 4 to select the ADC
peripheral.
ADC_Channel : the ADC channel to configure. This
parameter can be one of the following values:
ADC_Channel_1 :
ADC_Channel_2 :
ADC_Channel_3 :
ADC_Channel_4 :
ADC_Channel_5 :
ADC_Channel_6 :
ADC_Channel_7 :
ADC_Channel_8 :
ADC_Channel_9 :
ADC_Channel_10 :
ADC_Channel_11 :
ADC_Channel_12 :
ADC_Channel_13 :
ADC_Channel_14 :
ADC_Channel_15 :
ADC_Channel_16 :
ADC_Channel_17 :
ADC_Channel_18 :
Rank : The rank in the regular group sequencer. This
parameter must be between 1 to 16.
ADC_SampleTime : The sample time value to be set for the
selected channel. This parameter can be one of the following
values:
ADC_SampleTime_1Cycles5 :
1.5 cycles
ADC_SampleTime_2Cycles5 :
2.5 cycles
ADC_SampleTime_4Cycles5 :
4.5 cycles
ADC_SampleTime_7Cycles5 :
7.5 cycles
ADC_SampleTime_19Cycles5 :
19.5 cycles
ADC_SampleTime_61Cycles5 :
61.5 cycles
DocID023800 Rev 1
Analog-to-digital converter (ADC)
ADC_TypeDef *
ADC Channel1 selected
ADC Channel2 selected
ADC Channel3 selected
ADC Channel4 selected
ADC Channel5 selected
ADC Channel6 selected
ADC Channel7 selected
ADC Channel8 selected
ADC Channel9 selected
ADC Channel10 selected
ADC Channel11 selected
ADC Channel12 selected
ADC Channel13 selected
ADC Channel14 selected
ADC Channel15 selected
ADC Channel16 selected
ADC Channel17 selected
ADC Channel18 selected
Sample time equal to
Sample time equal to
Sample time equal to
Sample time equal to
Sample time equal to
Sample time equal to
ADCx,
71/584
Need help?
Do you have a question about the STM32F31xx and is the answer not in the manual?