Keil C下用软件精确延时的实现  

REALIZATION OF SOFTWARE PRECISE TIME DELAY UNDER KEIL C

在线阅读下载全文

作  者:鲁庆宾[1] 邵艳玲[1] 

机构地区:[1]南阳理工学院,河南南阳473004

出  处:《南阳理工学院学报》2010年第4期17-19,共3页Journal of Nanyang Institute of Technology

摘  要:在单片机的应用系统中,经常需要用到不同精度的时间延时,在不同场合下,延时时间可能从几微秒到几秒。实现延时的方法有很多种,在汇编语言中很容易实现高精度的时间延时,在高级语言中,循环延时的精度很难计算。本文对比常用的延时方法,给出在Keil C下不同的指令对应的汇编指令,计算其执行时间,得到延时时间的精确计算,以满足不同场合的需求。In MCU application system,different precision time delay is used frequently. In different occasions,delay time may be from a few microseconds to several seconds. There is variety of ways to realize delay. In assembly language,it is very easy to realize high precision time delay. But in high-level language,time delay precision is difficult to calculate. The common methods of delay are compared in this article,different instructions under Keil C and assembly are given,the execution time is calculated,and precise calculation is got in order to satisfy the needs of different occasions.

关 键 词:KEIL C 汇编语言 单片机 精确延时 定时器 

分 类 号:TP309.05[自动化与计算机技术—计算机系统结构]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象