Ultimate test on minimal AVR code - 3 interrupts semi-manually coded jump to table -nostartfiles
Channel:
Subscribers:
539
Published on ● Video Link: https://www.youtube.com/watch?v=EgvC3qrMj5E
4 blinking LEDs; 3 by 3 interrupts, and one by 1 main. It's slight more complicated to setup, but it absolutely works flawless. In the beginning, all 4 LED blink at the same time, but as time passes, they drift apart slightly because they are not precisely blinking at exactly 1Hz. Timer0 and timer2 are clocked at exact same frequency, so these 2 leds are in sync all the time.
296-268=28 bytes are all what this main-less code has saved, but Timer/Counter0 overflow is very low on the interrupt vector, 17 to be exact, so more bytes would be saved if higher interrupt vector is used.