CTRLAControl A
- Address
0x42003400- Reset
0x00- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2–
- 1ENABLE
- 0SWRST
2 fields
| Field | Bits | What it does |
|---|---|---|
| ENABLE | 1 | Enable |
| SWRST | 0 | Software Reset |
The 15 registers of AC (Analog Comparators), from 0x42003400, with their reset value and every field. The ATSAML22N16A has 1261 registers in 40 peripherals, one page each.
0x420034000x00| Field | Bits | What it does |
|---|---|---|
| ENABLE | 1 | Enable |
| SWRST | 0 | Software Reset |
0x420034010x00| Field | Bits | What it does |
|---|---|---|
| START1 | 1 | Comparator 1 Start Comparison |
| START0 | 0 | Comparator 0 Start Comparison |
0x420034020x0000| Field | Bits | What it does |
|---|---|---|
| INVEI1 | 13 | Comparator 1 Input Event Invert Enable |
| INVEI0 | 12 | Comparator 0 Input Event Invert Enable |
| COMPEI1 | 9 | Comparator 1 Event Input Enable |
| COMPEI0 | 8 | Comparator 0 Event Input Enable |
| WINEO0 | 4 | Window 0 Event Output Enable |
| COMPEO1 | 1 | Comparator 1 Event Output Enable |
| COMPEO0 | 0 | Comparator 0 Event Output Enable |
0x420034040x00| Field | Bits | What it does |
|---|---|---|
| WIN0 | 4 | Window 0 Interrupt Enable |
| COMP1 | 1 | Comparator 1 Interrupt Enable |
| COMP0 | 0 | Comparator 0 Interrupt Enable |
0x420034050x00| Field | Bits | What it does |
|---|---|---|
| WIN0 | 4 | Window 0 Interrupt Enable |
| COMP1 | 1 | Comparator 1 Interrupt Enable |
| COMP0 | 0 | Comparator 0 Interrupt Enable |
0x420034060x00| Field | Bits | What it does |
|---|---|---|
| WIN0 | 4 | Window 0 |
| COMP1 | 1 | Comparator 1 |
| COMP0 | 0 | Comparator 0 |
0x420034070x00| Field | Bits | What it does |
|---|---|---|
| WSTATE0 | 5:4 | Window 0 Current State
|
| STATE1 | 1 | Comparator 1 Current State |
| STATE0 | 0 | Comparator 0 Current State |
0x420034080x00| Field | Bits | What it does |
|---|---|---|
| READY1 | 1 | Comparator 1 Ready |
| READY0 | 0 | Comparator 0 Ready |
0x420034090x00| Field | Bits | What it does |
|---|---|---|
| DBGRUN | 0 | Debug Run |
0x4200340A0x00| Field | Bits | What it does |
|---|---|---|
| WINTSEL0 | 2:1 | Window 0 Interrupt Selection
|
| WEN0 | 0 | Window 0 Mode Enable |
0x4200340C0x00| Field | Bits | What it does |
|---|---|---|
| VALUE | 5:0 | Scaler Value |
0x4200340D0x00| Field | Bits | What it does |
|---|---|---|
| VALUE | 5:0 | Scaler Value |
0x420034100x00000000| Field | Bits | What it does |
|---|---|---|
| OUT | 29:28 | Output
|
| FLEN | 26:24 | Filter Length
|
| HYST | 21:20 | Hysteresis Level
|
| HYSTEN | 19 | Hysteresis Enable |
| SPEED | 17:16 | Speed Selection
|
| SWAP | 15 | Swap Inputs and Invert |
| MUXPOS | 14:12 | Positive Input Mux Selection
|
| MUXNEG | 10:8 | Negative Input Mux Selection
|
| RUNSTDBY | 6 | Run in Standby |
| INTSEL | 4:3 | Interrupt Selection
|
| SINGLE | 2 | Single-Shot Mode |
| ENABLE | 1 | Enable |
0x420034140x00000000| Field | Bits | What it does |
|---|---|---|
| OUT | 29:28 | Output
|
| FLEN | 26:24 | Filter Length
|
| HYST | 21:20 | Hysteresis Level
|
| HYSTEN | 19 | Hysteresis Enable |
| SPEED | 17:16 | Speed Selection
|
| SWAP | 15 | Swap Inputs and Invert |
| MUXPOS | 14:12 | Positive Input Mux Selection
|
| MUXNEG | 10:8 | Negative Input Mux Selection
|
| RUNSTDBY | 6 | Run in Standby |
| INTSEL | 4:3 | Interrupt Selection
|
| SINGLE | 2 | Single-Shot Mode |
| ENABLE | 1 | Enable |
0x420034200x00000000| Field | Bits | What it does |
|---|---|---|
| COMPCTRL1 | 4 | COMPCTRL 1 Synchronization Busy |
| COMPCTRL0 | 3 | COMPCTRL 0 Synchronization Busy |
| WINCTRL | 2 | WINCTRL Synchronization Busy |
| ENABLE | 1 | Enable Synchronization Busy |
| SWRST | 0 | Software Reset Synchronization Busy |