Abstract: This paper uses the disassembly tool of IAR Embedded Workbench for 8051 to first analyze the assembly code of the for statement, then calculate the total number of instructions of the two nested for loops, then determine the optimal number of two loops by solving equations, and finally use NOP instructions to fine-tune the total number of instructions to achieve accurate delay. The simulation results of IAR C-SPY show that the calculated total number of instructions for calling the delay function is correct. This method is generally applicable to accurate software delay of various types of microcontrollers.
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore