摘要
针对C语言代码的执行时间的可预见性差,结合Keil C51开发工具,分析了在Keil C51开发工具中利用C语言实现精确的延时程序的设计,指出了常用延时方法优缺点。并通过一些实例分析了延时时间的计算方法,使C语言代码的延时时间可以被预见。C语言中嵌套汇编语言是一种有效的方法,可以充分发挥出各语言的优势特点、提高开发效率。
C programming In view language of the poor predictability of the execution time of the C programming language code, we use to achieve the accurate design of delay procedure in detail, and point out the advantages and disadvantages of the usual delay methods. Besides, introduce the calculation of the delay time through some we take advantage of some powerful functions of Keil C51 to examples so that the delay time of the C programming lan- guage code can be predicted. Nesting the assembly language into C programming language can give full play to the advantages of all kinds of language and thus improving the development efficiency
出处
《电子科技》
2012年第12期103-106,共4页
Electronic Science and Technology