检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.166