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



Duration: 2:19
45 views
1


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.




Other Videos By Flyandance


2024-01-05Juno FDxboot 1.34 - Bootloader robustness Test EDU 1 - Atmega16 - Auto Recovery Upload AVR MCU Atmel
2024-01-04Juno FDxboot 1.33 - Bootloader Test Auto upload AVR MCU Atmel
2024-01-03Juno FDxboot 1.32 - Bootloader Test Atmega328 - New Record: 19 kB/s Upload Speed Auto upload AVR MCU
2024-01-02Juno FDxboot 1.32 - Universal Bootloader Test Atmega88 - Auto upload no reset button AVR MCU Atmel
2024-01-01Pre-Juno V4 - PWM controls LCD contrast - 1602 - Liquid crystal AVR MCU Advanced - 5x8
2023-12-31Juno FDxboot 1.31 - DEV 1 - Bootloader demonstration - Easy and Fun - Universal - AVR MCU Atmel demo
2023-12-29Juno FDxboot 1.3 - Auto upload no need to press reset button - Bootloader - AVR MCU Atmel
2023-12-23Juno FDxboot 1.2 - New Record: 18 kB/s Upload Speed - Atmega328p - fast Bootloader - AVR MCU Atmel
2023-12-20Juno FDxboot 1.1 - Atmega328p New Bootloader Test - 11kB/s Upload Speed AVR MCU Atmel 1Mpbs fast
2023-12-19Juno FDxboot 1.1 -- A sub-512-bytes self-programmable bootloader based on AVR109 AVR Atmel MCU
2023-12-16Ultimate test on minimal AVR code - 3 interrupts semi-manually coded jump to table -nostartfiles
2023-12-15Main-less minimal AVR code using GNU extension - Function pointer compiles into single rjmp instruct
2023-12-13Gameplay Moba
2023-12-11Minimal code on an AVR MCU with interrupt enabled - hard-coded interrupt table nostartfiles
2023-12-04Light Tower 3.0 - Macro cinematic close up view - 1 Removable nixie tube clock AVR Flyback
2023-12-01Light Tower 3.0 - Final Product - 21 neon lamps + 1 nixie tube clock + dual high voltage AVR
2023-11-29Light Tower 3
2023-11-28LT3.0 - Coding time lapse - Comment Clean up and Finalize
2023-11-27GamePlay - Mobile MOBA - Heroes Evolved
2023-11-24Light Tower 3.0 - Neon Lamp Crescent Patterns + Light weight Random number generator TM3 Nixie tube
2023-11-22PSC 2.0 - 12v fan controller + Vibration sensor as safety device