1.3.2.4 1.4.2.4 1.5.2.4 1.29.2.4 1.30.2.4 1.31.2.4 1.32.2.4 1.33.2.4 1.37.2.4 1.38.2.4 1.39.1.4 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.