摘要
针对在RS422网络中各个单片机高精度的时钟同步问题,提出一种相对时钟同步方案。应用在以C8051F120单片机作为主控芯片的RS422网络中,多个单片机通过发送带有时间信息的报文完成时钟同步;并且应用单片机自带的定时器设计了一个速率可调的时钟,不仅可以大大减少不同单片机间的时间偏差,而且不会增加额外的硬件成本,充分利用了单片机上的片上资源。
Aimming at the high-precision synchronization problem of microcontrollers in RS422 network,a relative clock synchronization scheme is proposed.Microcontrollers achieve the clock synchronization by sending messages with time information in RS422 network,using C8051F120 as the main control chip.An adjustable-rate clock is designed making use of a timer built in the microcontroller,greatly reducing the time deviation between different microcontrollers with no additional hardware costs,making full use of on-chip resources.
出处
《单片机与嵌入式系统应用》
2009年第11期21-23,共3页
Microcontrollers & Embedded Systems