摘要
在单片机控制系统中,常用到软件延时方法,通常设计一个满足一定精度的延时程序往往反复测试多次。提出了一种规范化的计算方法,对不同延时时间的几种形式的汇编语言延时程序,可由要求的延时时间,快速、准确地计算出延时程序的循环次数,并能保证误差最小。
In the MCU control system commonly used to the software delay methods,usually to design a program to meet certain precision of the delay test is often repeated several times.The paper presents a standardized method of calculating the time delay of several different forms of assembly language delay procedures,the delay time can be requested quickly and accurately calculate the number of cycles to delay proceedings,and to ensure the minimum error.
出处
《电脑编程技巧与维护》
2011年第8期82-84,共3页
Computer Programming Skills & Maintenance
关键词
单片机
软件延时
汇编语言
C51语言
Microcontroller
Software delay
Assembly language
C51 language