Introduction
Reading a hardware register lets your program check the status or data from a device connected to your system.
When you want to know if a button is pressed on a device.
When you need to read sensor data like temperature or pressure.
When checking if a device is ready to send or receive data.
When monitoring error or status flags from hardware.
When controlling hardware by reading its current state.