Digital and Embedded Systems, Bräunl 2015
Calculate the time it takes to execute the following program, from start to end, at a clock frequency of 16 MHz.
Use the timing information from the Atmel instruction set summary. Look under the "cycles" heading for the number of cycles for that instruction
start |
ldi |
R16, 250 |
;250 decimal |
|
loop |
sts |
$0400, R16 |
|
|
|
nop |
|
|
|
|
dec |
R16 |
|
|
|
brne |
loop |
|
|
end |
..... |
|
|
|