โ Embedded Systems learning pathEmbedded Systems ยท Module 4 of 10
GPIO, timers and interrupts
Control pins and respond to events.
๐ Key ideas
- GPIO pins are configured as input or output.
- Pull-up/pull-down resistors keep inputs stable.
- Timers generate delays, PWM and periodic events.
- Interrupts let hardware events run code immediately (ISR).
- Keep ISRs short; set flags and process in the main loop.
๐ก Real-life example: An interrupt is a doorbell: you stop what you're doing briefly, answer, then return.
GPIOGeneral-purpose input/output
Pull-up resistorKeeps input high by default
TimerCounts clock ticks
ISRInterrupt Service Routine