Atmel Xplained Pro Evaluation Kit ATSAM4E-XPRO ATSAM4E-XPRO Data Sheet

Product codes
ATSAM4E-XPRO
Page of 1506
1367
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
45.7.3 AFEC Extended Mode Register
Name:
AFEC_EMR
Address:
0x400B0008 (0), 0x400B4008 (1)
Access:
Read/Write  
This register can only be written if the WPEN bit is cleared in the 
CMPMODE: Comparison Mode
CMPSEL: Comparison Selected Channel
If CMPALL = 0: CMPSEL indicates which channel has to be compared.
If CMPALL = 1: No effect.
CMPALL: Compare All Channels
0: Only channel indicated in CMPSEL field is compared.
1: All channels are compared.
CMPFILTER: Compare Event Filtering
Number of consecutive compare events necessary to raise the flag = CMPFILTER+1
When programmed to ‘0’, the flag rises as soon as an event occurs.
RES: Resolution
31
30
29
28
27
26
25
24
SIGNMODE
STM
TAG
23
22
21
20
19
18
17
16
AFEMODE
RES
15
14
13
12
11
10
9
8
CMPFILTER
CMPALL
7
6
5
4
3
2
1
0
CMPSEL
CMPMODE
Value
Name
Description
0
LOW
Generates an event when the converted data is lower than the low threshold of the window.
1
HIGH
Generates an event when the converted data is higher than the high threshold of the window.
2
IN
Generates an event when the converted data is in the comparison window.
3
OUT
Generates an event when the converted data is out of the comparison window.
Value
Name
Description
0
NO_AVERAGE
12-bit resolution, AFEC sample rate is maximum (no averaging).
1
LOW_RES
10-bit resolution, AFEC sample rate is maximum (no averaging).
2
OSR4
13-bit resolution, AFEC sample rate divided by 4 (averaging).