1.3.2.1 ADCx_Initialize Function

C

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

Summary

Initializes given instance of ADC peripheral.

Description

This function initializes given instance of ADC peripheral of the device with the values configured in MCC GUI. Once the peripheral is initialized, peripheral can be used for conversion.

Precondition

MCC GUI should be configured with the right values.

Parameters

None.

Returns

None.

Example

ADC0_Initialize();
ADC_Initialize();

Remarks

This function must be called before any other ADC function is called. This function should only be called once during system initialization.