3.3.1 ADC Input Selection
Vbg (VREF) can be selected as the ADC input per the table below from the MUXPOS registers of the ADC at ATtiny817.
| Value | Description |
|---|---|
| 0x0 | AIN0 |
| 0x1 | AIN1 |
| 0x2 | AIN2 |
| 0x3 | AIN3 |
| 0x4 | AIN4 |
| 0x5 | AIN5 |
| 0x6 | AIN6 |
| 0x7 | AIN7 |
| 0x8 | AIN8 |
| 0x9 | AIN9 |
| 0x10 | AIN10 |
| 0x11 | AIN11 |
| 0x1C | DAC0 |
| 0x1D | Internal reference (from VREF peripheral) |
| 0x1E | Temperature sensor |
| 0x1F | 0V (GND) |
| Other | Reserved |
The value of the Vbg (VREF) can be selected per the table below from CTRLA register of the VREF at ATtiny817.
| Value | Description |
|---|---|
| 0x0 | 0.55V |
| 0x1 | 1.1V |
| 0x2 | 2.5V |
| 0x3 | 4.3V |
| 0x4 | 1.5V |
| other | Reserved |
In this design, Vbg (1.1V) is selected as the input of the ADC for easier calculation.
