1.29.2.3 ADCx_Disable Function

C

void ADCx_Disable( void ); // x is instance of the peripheral and it is applicable only for devices having multiple instances of the peripheral.

Summary

Disables given instance of ADC peripheral.

Description

This function disables the given instance of ADC.

Precondition

ADCx_Initialize() function must have been called first for the associated instance.

Parameters

None.

Returns

None.

Example

ADC0_Initialize();
ADC0_Enable();
//perform conversion
ADC0_Disable();

Remarks

If ADC instance is operating in slave mode, do not call ADCx_Disable function. Slave ADC is enabled/disabled by master ADC.