45.8.5 Control B
| Name: | CTRLB |
| Offset: | 0x06 |
| Reset: | 0x0000 |
| Property: | PAC Write-Protection, Write-Synchronized |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| WINSS | WINMODE[2:0] | ||||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 | |||||
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| RESSEL[1:0] | CORREN | FREERUN | LEFTADJ | ||||||
| Access | R/W | R/W | R/W | R/W | R/W | ||||
| Reset | 0 | 0 | 0 | 0 | 0 | ||||
Bit 11 – WINSS Window Single Sample
Bits 10:8 – WINMODE[2:0] Window Monitor Mode
These bits enable and define the window monitor mode.
| Value | Name | Description |
|---|---|---|
| 0x0 | DISABLE | No window mode (default) |
| 0x1 | MODE1 | RESULT > WINLT |
| 0x2 | MODE2 | RESULT < WINUT |
| 0x3 | MODE3 | WINLT < RESULT < WINUT |
| 0x4 | MODE4 | !(WINLT < RESULT < WINUT) |
| 0x5 - 0x7 | Reserved |
Bits 4:3 – RESSEL[1:0] Conversion Result Resolution
| Value | Name | Description |
|---|---|---|
| 0x0 | 12BIT | 12-bit result |
| 0x1 | 16BIT | For averaging mode output |
| 0x2 | 10BIT | 10-bit result |
| 0x3 | 8BIT | 8-bit result |
Bit 2 – CORREN Digital Correction Logic Enable
| Value | Description |
|---|---|
| 0 | Disable the digital result correction |
| 1 | Enable the digital result correction |
Bit 1 – FREERUN Free Running Mode
| Value | Description |
|---|---|
| 0 | The ADC run in single conversion mode |
| 1 | The ADC is in free running mode and a new conversion will be initiated when a previous conversion completes |
Bit 0 – LEFTADJ Left-Adjusted Result
| Value | Description |
|---|---|
| 0 | The ADC conversion result is right-adjusted in the RESULT register |
| 1 | The ADC conversion result is left-adjusted in the RESULT register |
