›› 2012, Vol. 25 ›› Issue (12): 103-.

• Articles • Previous Articles     Next Articles

Design  of a Precise Delay Program  Based on Keil C51

WU Ting-Yun, LIN Cheng-He   

  1. (School of Physics and Communication Engineering,Shaanxi University of Technology,Hanzhong 723000,China)
  • Online:2012-12-15 Published:2013-02-28

Abstract:

In view of the poor predictability of the execution time of the C programming language code,we use C programming language to achieve the accurate design of delay procedure in detail,and point out the advantages and disadvantages of the usual delay methods.Besides,we take advantage of some powerful functions of Keil C51 to introduce the calculation of the delay time through some examples so that the delay time of the C programming language 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.

Key words: Keil C51;C language;delay by the software;MCU

CLC Number: 

  • TN912.3