1.40.2.4 ADCx_ChannelSelect Function
C
void ADCx_ChannelSelect( ADC_POSINPUT positiveInput, ADC_NEGINPUT negativeInput ); // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.
Summary
Selects ADC input channel.
Description
This function selects ADC channel to use.
Precondition
ADCx_Initialize() function must have been called first for the associated instance.
Parameters
Param | Description |
---|---|
positiveInput | selected positive input pin. |
negativeInput | selected negative input pin. |
Returns
None.
Example
ADC0_Initialize(); ADC0_ChannelSelect(ADC_POSINPUT_AIN0, ADC_NEGINPUT_GND);
Remarks
None.