42.8.12. Comparator Control n
Name:
COMPCTRLn
Offset:
0x10 + n*0x04 [n=0..1]
Reset:
0x00000000
Property:
PAC Write-Protection, Write-Synchronized
Bit
31
30
29
28
27
26
25
24
OUT[1:0]
FLEN[2:0]
Access
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
Bit
23
22
21
20
19
18
17
16
HYST[1:0]
HYSTEN
SPEED[1:0]
Access
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
Bit
15
14
13
12
11
10
9
8
SWAP
MUXPOS[2:0]
MUXNEG[2:0]
Access
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
RUNSTDBY
INTSEL[1:0]
SINGLE
ENABLE
Access
R/W
R/W
R/W
R/W
R/W
Reset
0
0
0
0
0
Bits 29:28 – OUT[1:0]: Output
These bits configure the output selection for comparator n. COMPCTRLn.OUT can be written only while
COMPCTRLn.ENABLE is zero.
Note:
For internal use of the comparison results by the CCL, this bit must be 0x1 or 0x2.
These bits are not synchronized.
Value
Name
Description
0x0
OFF
The output of COMPn is not routed to the COMPn I/O port
0x1
ASYNC The asynchronous output of COMPn is routed to the COMPn I/O port
0x2
SYNC
The synchronous output (including filtering) of COMPn is routed to the COMPn I/O
port
0x3
N/A
Reserved
Bits 26:24 – FLEN[2:0]: Filter Length
These bits configure the filtering for comparator n. COMPCTRLn.FLEN can only be written while
COMPCTRLn.ENABLE is zero.
These bits are not synchronized.
Atmel SAM L22G / L22J / L22N [DATASHEET]
Atmel-42402E-SAM L22G / L22J / L22N_Datasheet_Complete-07/2016
1055