摘要
介绍了单片机的串口通信方式和时钟中断定时方法,采用89S52的定时器0中断实现时钟秒、分、时的控制,使用单片机的串口通信中断对时钟进行调节,设计了硬件电路,编写了软件程序,实现了计算机对时钟的实时控制。
This paper introduces serial communication mode and interrupt timing method of single chip microcomputer, that is to realize the control of the seconds, minutes and hours of clock by using 89S52 timer's 0 interrupt and to adjust the clock by using serial communication interrupt of single chip microcomputer, designs the hardware circuit, and writes the software program, realizing the real-time control of computer to the clock.
出处
《山西科技》
2013年第1期92-95,共4页
Shanxi Science and Technology
关键词
单片机
串口中断
定时器
时钟设计
single chip microcomputer
serial port interrupt
timer
clock design