Lacamera, D. (2023). Embedded systems architecture: Design and write software for embedded devices to build safe and connected systems (2nd ed.). Packt Publishing. Read Chapter 6: General-Purpose Peripherals (GPIO, ADC, timers) (O'Reilly Media) Chapter 7: Local Bus Interfaces (for serial comms) (O'Reilly Media).