Datasheet

1357
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
Figure 45-11. Digital Averaging Function Waveforms over multiple trigger events
If the STM bit is set in the AFEC_EMR and the USEQ bit is cleared in the AFEC_MR, the sequence to be
converted defined in the AFEC_CHSR is automatically repeated n times (where n corresponds to the
oversampling ratio defined in RES field in the AFEC_EMR). As a consequence, only one trigger is required to get
the result of the averaging function as described in Figure 45-11 on page 1357.
Internal/External
Trigger event
AFEC_SEL
0
1
AFEC_EMR.RES = 2, STM = 0, AFEC_CHSR[1:0] = 0x3 and AFEC_MR.USEQ = 0
CH0_0
AFEC_LCDR
0i1
0
1
0
1
0
1
0
1
0i2 0i3 CH0_1 0i1
CH1_0 1i1 1i2 1i3 CH1_1 1i1
EOC[0]
Read AFEC_CDR
CH1_1CH0_1
EOC[1]
Read AFEC_LCDR
DRDY
Note: 0i1,0i2,0i3, 1i1, 1i2, 1i3 are intermediate results and CH0/1_0/1 are final result of average function.
Read AFEC_CDR & AFEC_CSELR.CSEL = 0
Read AFEC_CDR & AFEC_CSELR.CSEL = 1
OVR[0]
CH1_0
Read AFEC_LCDR
Internal register
CDR[0]
Internal register
CDR[1]