Question 3.5: Find the size of the delay in following program, if the crys...
Find the size of the delay in following program, if the crystal
frequency is 11.0592MHz.
Machine Cycle DELAY: MOV R2,#200 1 NOP 1 |
Learn more on how we answer questions.
For HERE loop, we have (4×250) x1.085 μs=1085μs.
For AGAIN loop repeats HERE loop 200 times, so we have 200×1085 μs=217000 μs. But “MOV R3,#250” and “DJNZ R2,AGAIN” at the start and end of the AGAIN loop add (3x200x1.805)=651 μs.
As a result we have 217000 + 651= 217651 μs.