Lite / Engineering Complex Systems / Week 33
Week 33: Hardware-software integration
This week you will
- Explain how firmware controls hardware through memory-mapped registers and bit masks.
- Choose between polling and interrupts and protect shared data.
- Trace the build chain from source code to flashed firmware and plan integration tests.
Lessons
- Registers and bit masks: where software touches silicon · about 40 min
One line of C turns on a motor driver. Which single bit, at which address, did it change, and what else could it break? - Polling or interrupts? Latency, energy and shared data · about 40 min
Checking a button a million times a second never misses a press. Why is it usually the wrong design? - From source code to running hardware, and testing the join · about 40 min
The code compiled, the tests passed, and the robot still twitched. Where in the chain did it go wrong?