Question.6
An ADC peripheral has the following 8-bit status register:
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
| OVR | RDY | CH | GAIN | EN | |||
The register reads 0x6D. An engineer needs to determine which ADC channel is currently selected (CH field, bits 3–5). He writes:
uint8_t ch = (status >> 3) & 0x07;What channel number does he get?