Question.4
A UART config register has the following layout:
| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|
| — | BAUD | STOP | PAR | EN | |||
A developer wants to change the BAUD field to 5 (101 in binary) without affecting any other bits. The register currently holds 0x23. He writes:
reg &= ~(0x07 << 3); // Clear BAUD field
reg |= ___; // Set BAUD to 5What goes in the blank?