Skip to main content

Section 8.2 Day 8 In-Class: Blinky Without Waiting

Today we’ll write Blinky entirely without any delay functions. We’ll configure TIM14 to mark off 500 ms periods entirely in hardware, first checking its flag from the main loop, and then letting the timer interrupt the CPU so that not even the checking remains. By the end of the hour, your LED blinks from an ISR you wrote, and your main loop is free.
Today’s class lives entirely in code. There is no wiring: everything is done in code and on the chip’s hardware, and the only hardware you touch is the on-board LED.