Jump to main content

##

# 2.5.6 AFECx_ConversionStart Function

## C

    void AFECx_ConversionStart() // x - Instance of the AFEC peripheral

## Summary

Starts the ADC conversion of all the enabled channels with the software trigger

## Description

This function starts ADC conversion of all the enabled channels. Trigger is common for all the enabled channels. And channels are converted in sequential order or in user decided order based on configuration.

## Precondition

AFECx_Initialize() function must have been called first for the associated instance and channels must have been enabled using AFECx_ChannelsEnable() function.

## Parameters

None

## Returns

None.

## Example

    AFEC0_Initialize();
    AFEC0_ChannelsEnable(AFEC_CH0);
    AFEC0_ConversionStart();

## Remarks

This function should be called only when SW trigger for conversion is selected.