3.3.4.16 EMAFE_SetClockPrescalerRatio Function

C

void EMAFE_SetClockPrescalerRatio ( uint32_t mclkdiv );

Summary

Set the clock prescaler ratio in the low-pass filter.

Description

Set the clock prescaler ratio in the low-pass filter.

Precondition

None.

Parameters

ParamDescription
mclkdivLow-pass filter Clock Prescaler Ratio.

Returns

None.

Example

EMAFE_SetClockPrescalerRatio(EMAFE_EMR_MCLKDIV_LPF_MCLKDIV4_Val);

Remarks

Table 3-12. Clock Prescaler Ratio values
Format ValueDescription
EMAFE_EMR_MCLKDIV_LPF_MCLK_ValLPFIF clock is MCLK/1.
EMAFE_EMR_MCLKDIV_LPF_MCLKDIV2_ValLPFIF clock is MCLK/2.
EMAFE_EMR_MCLKDIV_LPF_MCLKDIV4_ValLPFIF clock is MCLK/4.
EMAFE_EMR_MCLKDIV_LPF_MCLKDIV8_ValLPFIF clock is MCLK/8 (default).
EMAFE_EMR_MCLKDIV_LPF_MCLKDIV16_ValLPFIF clock is MCLK/16.
EMAFE_EMR_MCLKDIV_LPF_MCLKDIV32_ValLPFIF clock is MCLK/32.