摘要
针对实际测试工作的需要,为了精确测量连续脉冲信号的间隔时间,提出了一种利用两个32位计时器进行连续脉冲间隔时间的测量方法。这两个32位计时器是由89C55WD单片机内部的两个16位定时器/计数器扩展而成的。首先,将输入的信号经过高速光耦合器和采样电路处理;然后,89C55WD在中断方式下利用两个32位计时器交替对连续脉冲信号的间隔时间进行测量。通过合理分配中断资源,保证了装置工作的可靠性。该装置结构简单,频率范围广,并且达到了较高的精度,经过实际测量完全可以满足要求。
According to the operational need of daily survey works, in order to precision measuring seriate pulse time interval, this research paper introduced a measuring method of seriate pulse time interval that utilizes two 32-bit timers, these two 32-bit timers were extending of two 16-bit timer/counters within the 89C55WD single-chip structure. First the input signal processed by the high-speed optocoupler and the sample circuit, then 89C55WD using two 32- bit timers surveyed time interval of the seriate pulse in interrupt mode. Through the rational distribution interrupt resources, it guaranteed the reliability of the device. This device structure was simple, the frequency range was broad, and it achieved the high precision, it satisfied the entire request after the actual survey.
出处
《测绘科学技术学报》
北大核心
2007年第5期346-348,共3页
Journal of Geomatics Science and Technology
关键词
计时器
时间测量
单片机
光耦合器
中断源
timer
time measurement
single-chip
optocoupler
interrupt source