Lite / Building Machines That Respond / Week 19
Week 19: Microcontroller concepts
This week you will
- Name the main parts of a microcontroller (CPU, flash, RAM, clock, peripherals) and what each does.
- Estimate how many instructions fit into a given time from the clock rate.
- Describe the setup-then-loop structure of embedded firmware.
Lessons
- A whole computer on one chip · about 30 min
Your washing machine, your bike light and a Mars rover's wheel all hide the same kind of tiny computer. What is inside it? - Counting in nanoseconds · about 30 min
A 16 MHz chip ticks sixteen million times a second. Is that fast enough to catch a button, run a motor or record music? - Set up once, loop forever · about 25 min
Your laptop's programs start and stop. A microcontroller's program never ends. How do you write a program that runs forever, on purpose?