EasyManua.ls Logo

ST STM32F31xx

ST STM32F31xx
584 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
UM1581
Analog-to-digital converter (ADC)
DocID023800 Rev 1
71/584
3.2.12 Regular Channels Configuration functions
3.2.12.1 ADC_RegularChannelConfig
Function Name
void ADC_RegularChannelConfig ( ADC_TypeDef * ADCx,
uint8_t ADC_Channel, uint8_t Rank, uint8_t
ADC_SampleTime)
Function Description
Configures for the selected ADC regular channel its
corresponding rank in the sequencer and its sample time.
Parameters
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 Channel1 selected
ADC_Channel_2 : ADC Channel2 selected
ADC_Channel_3 : ADC Channel3 selected
ADC_Channel_4 : ADC Channel4 selected
ADC_Channel_5 : ADC Channel5 selected
ADC_Channel_6 : ADC Channel6 selected
ADC_Channel_7 : ADC Channel7 selected
ADC_Channel_8 : ADC Channel8 selected
ADC_Channel_9 : ADC Channel9 selected
ADC_Channel_10 : ADC Channel10 selected
ADC_Channel_11 : ADC Channel11 selected
ADC_Channel_12 : ADC Channel12 selected
ADC_Channel_13 : ADC Channel13 selected
ADC_Channel_14 : ADC Channel14 selected
ADC_Channel_15 : ADC Channel15 selected
ADC_Channel_16 : ADC Channel16 selected
ADC_Channel_17 : ADC Channel17 selected
ADC_Channel_18 : ADC Channel18 selected
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 : Sample time equal to
1.5 cycles
ADC_SampleTime_2Cycles5 : Sample time equal to
2.5 cycles
ADC_SampleTime_4Cycles5 : Sample time equal to
4.5 cycles
ADC_SampleTime_7Cycles5 : Sample time equal to
7.5 cycles
ADC_SampleTime_19Cycles5 : Sample time equal to
19.5 cycles
ADC_SampleTime_61Cycles5 : Sample time equal to
61.5 cycles

Table of Contents

Related product manuals