Question: Write a nicely formatted and commented subroutine in AVR Assembly labeled DELAY 1 S that takes 1 s ( within + - 1 . 0
Write a nicely formatted and commented subroutine in AVR Assembly labeled DELAYS
that takes within of time to execute including the time needed for the
call or relative call on an TmegaPB with a clock.
The subroutine should be efficient with program memory meaning use nested loops
whenever possible versus a long sequence of instructions and protect "outside" values
in General Purpose Registers used by the subroutine. Show how the number of nested
loops was calculatedpredicted when bit registers are used to track iterations in each
loop, tune the subroutine to meet the specifications, and provide a snapshot from the
simulatordebugger in Microchip Studio that confirms the subroutine's number of cycles
and execution time.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
