摘要
初值是单片机中定时器的主要参数,包含第一次初值和重载初值。文中首先介绍了MCS—51单片机中定时器工作方式的设置,说明了其定时原理,然后着重分析了初值的设置方法,并得出相应的设置公式,最后通过一个应用实例加以说明。该文为提高单片机定时精度提供了一种有效的方法,在工业等领域中具有重要的应用价值。
The initial value is a very important parameter of timer in single chip computers, which includes first initial value and override initial value. This paper first introduces how to set the working modes of timer in MCS-51 single chip computer and the timing principle, and then mainly analyzes the method for setting initial value and gets corresponding setting formulas; finally an application example is given. An effective way of raising timing accuracy in single chip computers is provided in this paper, which is valuable for applications in industrial domain and others.
出处
《茂名学院学报》
2003年第3期34-36,共3页
Journal of Maoming College