Jump to main content

# 3.3.4.43 EMAFE_ADCSetClockConfig Function

## C

    void EMAFE_ADCSetClockConfig ( uint8_t freqRatio, uint8_t mclkdiv );

## Summary

Set ADC clocks configuration.

## Description

Set ADC clocks configuration.

## Precondition

None.

## Parameters

Parameters | Description
--- | ---
freqRatio | Defines the frequency ratio between MCLK_AFE and Sigma-Delta. Possible values are: EMAFE_ADC_CLOCK_FREQRATIO_8 EMAFE_ADC_CLOCK_FREQRATIO_4
mclkdiv | Analog clock prescaler ratio

## Returns

None.

## Example

    /* Set ADC clock configuration */
    EMAFE_ADCSetClockConfig(EMAFE_ADC_CLOCK_FREQRATIO_4, EMAFE_ADC_CLOCK_MCLKDIV_ANACK2);

## Remarks

Analog Clock Prescaler Ratio | Description
--- | ---
ANACK1 | Analog clock is MCLK_AFE/1 (default)
ANACK2 | Analog clock is MCLK_AFE/2
ANACK4 | Analog clock is MCLK_AFE/4
ANACK8 | Analog clock is MCLK_AFE/8
ANACK16 | Analog clock is MCLK_AFE/16
ANACK32 | Analog clock is MCLK_AFE/32

Rev: E