29. Bit Field Operations-ii

Question.1

A timer peripheral's 8-bit config register has a 3-bit prescaler field at bits 2–4:

76543210
PSCSRCEN

 

The register currently holds 0xFF. A developer clears the prescaler field:

reg &= ~(0x0F << 2);

What's wrong?

Need Help? Refer to the Quick Guide below

Select Answer