Advanced AVR 3 0 time management

Channel:
Subscribers:
579
Published on ● Video Link: https://www.youtube.com/watch?v=ez47kpPJfwI



Duration: 2:19
147 views
5


The goals for Time Management on an embedded system are efficiency, responsiveness, and code-size. AVR-C library comes with a _delay_ms() and _delay_us() function that can be inserted between 2 lines of code to add a delay on the executions of these 2 lines of code, but it should be avoided at all cost because a 1ms delay is equivalent to 0.001/(1/16000000)=16000 CPU instructions wasted during that period of time if the CPU is clocked at 16MHz, and during that 1ms, the CPU is considered frozen. These 2 delay functions were intended for debug purpose, so by skimming through a source code, and looking for these 2 functions, one can easily assess if the code is trash or not.




Other Videos By Flyandance


2023-11-14Light Tower 3.0 - Driver finalized + Neon lamp full Test + 400mA power Consumption dual High Voltage
2023-11-13Light Tower 3.0 - Driver and TM update - Nixie tube clock High Voltage Advanced AVR time management
2023-11-12What Juno Advanced AVR Core can do? Demonstrated with Light Tower 3.0
2023-11-11Light Tower 3.0 - Display mode 1 Demo + Advanced AVR 3.0 time management Nixie tube clock
2023-11-07Light Tower 3.0 Driver creation and Hardware Test - Nixie tube clock AVR High Voltage MCU control
2023-11-06Light Tower 3.0 Assembled - (Hardware preview) Nixie tube clock - Dual High Voltage converter DC-DC
2023-11-03Infinity Ring of Love and Light 1.0 ---- Advanced CD 4017 + NE555 LED chaser
2023-11-02New Kit: Light Tower 2.0X - 10+1 Neon Lamp Chaser 70mA No LED mini transformer CD4017 + NE555
2023-11-01Open box - 4 New PCB - Components - Goodies - 4.5kg - 7 days shipping vis UPS Trade Direct® Air
2023-11-01Advanced AVR 3.0 time management Finalized - Elegant delay code + new HC-SR04 library
2023-10-29Advanced AVR 3 0 time management
2023-10-26Advanced AVR 3.0 time management - Juno Edu 1.0 + HC-SR04
2023-10-25Advanced AVR 3.0 time management - HC-SR04 Ultrasonic distance measurer test
2023-10-17Mini Power supply controller - Universal PWM MCU 5v 12v 5-20v
2023-10-15Light Tower 3.0 - Final Product (PCB preview)
2023-10-14Light Tower 3.0 - Create Silkscreen with Photoshop bitmap
2023-10-13Light Tower 3.0 - The essence of flyandance
2023-10-12Secret of youtube enhanced bitrate Exposed
2023-10-09The art of creating an extremely high quality PCB
2023-10-06OS/HD/SSD -- clone/backup - PNY CS900 240GB SSD Real Test
2023-10-05Perfect Mini Gas Stove - Campingmoon Z23-CB - Water boiling (Short Film)