Programming and Result: Using the Timer/Counter to Create Chasing LEDs
Share
The Timer/Counter is used to count against a known clock frequency, the internal clock source for the AVR microcontroller. In the first part of the experiment, a set of LEDs (14 in all) is connected to PORTB and PORTD and will produce a chasing effect every second and every 7th of a second using the TCNT1 timer/counter.