CTRLAControl A
- Address
0x42004000- Reset
0x00- Access
- read/write
- 7–
- 6–
- 5–
- 4–
- 3–
- 2RUNSTDBY
- 1ENABLE
- 0SWRST
3 fields
| Field | Bits | What it does |
|---|---|---|
| RUNSTDBY | 2 | Run in Standby |
| ENABLE | 1 | Enable |
| SWRST | 0 | Software Reset |
The 20 registers of ADC (Analog Digital Converter), from 0x42004000, with their reset value and every field. The ATSAMHA0G16AB has 990 registers in 36 peripherals, one page each.
0x420040000x00| Field | Bits | What it does |
|---|---|---|
| RUNSTDBY | 2 | Run in Standby |
| ENABLE | 1 | Enable |
| SWRST | 0 | Software Reset |
0x420040010x00| Field | Bits | What it does |
|---|---|---|
| REFCOMP | 7 | Reference Buffer Offset Compensation Enable |
| REFSEL | 3:0 | Reference Selection
|
0x420040020x00| Field | Bits | What it does |
|---|---|---|
| ADJRES | 6:4 | Adjusting Result / Division Coefficient |
| SAMPLENUM | 3:0 | Number of Samples to be Collected
|
0x420040030x00| Field | Bits | What it does |
|---|---|---|
| SAMPLEN | 5:0 | Sampling Time Length |
0x420040040x0000| Field | Bits | What it does |
|---|---|---|
| PRESCALER | 10:8 | Prescaler Configuration
|
| RESSEL | 5:4 | Conversion Result Resolution
|
| CORREN | 3 | Digital Correction Logic Enabled |
| FREERUN | 2 | Free Running Mode |
| LEFTADJ | 1 | Left-Adjusted Result |
| DIFFMODE | 0 | Differential Mode |
0x420040080x00| Field | Bits | What it does |
|---|---|---|
| WINMODE | 2:0 | Window Monitor Mode
|
0x4200400C0x00| Field | Bits | What it does |
|---|---|---|
| START | 1 | ADC Start Conversion |
| FLUSH | 0 | ADC Conversion Flush |
0x420040100x00000000| Field | Bits | What it does |
|---|---|---|
| GAIN | 27:24 | Gain Factor Selection
|
| INPUTOFFSET | 23:20 | Positive Mux Setting Offset |
| INPUTSCAN | 19:16 | Number of Input Channels Included in Scan |
| MUXNEG | 12:8 | Negative Mux Input Selection
|
| MUXPOS | 4:0 | Positive Mux Input Selection
|
0x420040140x00| Field | Bits | What it does |
|---|---|---|
| WINMONEO | 5 | Window Monitor Event Out |
| RESRDYEO | 4 | Result Ready Event Out |
| SYNCEI | 1 | Synchronization Event In |
| STARTEI | 0 | Start Conversion Event In |
0x420040160x00| Field | Bits | What it does |
|---|---|---|
| SYNCRDY | 3 | Synchronization Ready Interrupt Enable |
| WINMON | 2 | Window Monitor Interrupt Enable |
| OVERRUN | 1 | Overrun Interrupt Enable |
| RESRDY | 0 | Result Ready Interrupt Enable |
0x420040170x00| Field | Bits | What it does |
|---|---|---|
| SYNCRDY | 3 | Synchronization Ready Interrupt Enable |
| WINMON | 2 | Window Monitor Interrupt Enable |
| OVERRUN | 1 | Overrun Interrupt Enable |
| RESRDY | 0 | Result Ready Interrupt Enable |
0x420040180x00| Field | Bits | What it does |
|---|---|---|
| SYNCRDY | 3 | Synchronization Ready |
| WINMON | 2 | Window Monitor |
| OVERRUN | 1 | Overrun |
| RESRDY | 0 | Result Ready |
0x420040190x00| Field | Bits | What it does |
|---|---|---|
| SYNCBUSY | 7 | Synchronization Busy |
0x4200401A0x0000| Field | Bits | What it does |
|---|---|---|
| RESULT | 15:0 | Result Conversion Value |
0x4200401C0x0000| Field | Bits | What it does |
|---|---|---|
| WINLT | 15:0 | Window Lower Threshold |
0x420040200x0000| Field | Bits | What it does |
|---|---|---|
| WINUT | 15:0 | Window Upper Threshold |
0x420040240x0000| Field | Bits | What it does |
|---|---|---|
| GAINCORR | 11:0 | Gain Correction Value |
0x420040260x0000| Field | Bits | What it does |
|---|---|---|
| OFFSETCORR | 11:0 | Offset Correction Value |
0x420040280x0000| Field | Bits | What it does |
|---|---|---|
| BIAS_CAL | 10:8 | Bias Calibration Value |
| LINEARITY_CAL | 7:0 | Linearity Calibration Value |
0x4200402A0x00| Field | Bits | What it does |
|---|---|---|
| DBGRUN | 0 | Debug Run |