首页 | 本学科首页   官方微博 | 高级检索  
     

PIC单片机与C8051F020单片机的串行通讯
引用本文:陈文辉,蔡启仲,郭毅锋,周明. PIC单片机与C8051F020单片机的串行通讯[J]. 广西工学院学报, 2004, 15(4): 40-43,54
作者姓名:陈文辉  蔡启仲  郭毅锋  周明
作者单位:广西工学院电子信息与控制工程系,广西,柳州,545006;广西工学院电子信息与控制工程系,广西,柳州,545006;广西工学院电子信息与控制工程系,广西,柳州,545006;广西工学院电子信息与控制工程系,广西,柳州,545006
基金项目:广西工学院青年科学基金(030214).
摘    要:在仪器仪表和测控系统中,PIC单片机与以MCS51单片机为内核的单片机之间进行异步串行通讯时,由于各系统的晶振和计算波特率的方法都不一样,使得串行通讯过程中常由于存在波特率误差而使通讯失败。为了提高系统中串行通讯的准确性,提出重新调整系统波特率的软件插值方法,以降低波特率的误差,使各系统通讯波特率基本一致,保证了通讯的准确性,并给出了实际应用的例子。

关 键 词:PIC单片机  C8051F020单片机  串行通讯  波特率误差  插值
文章编号:1004-6410(2004)04-0040-04

Serial communication of PIC single-chip slicer and C8051F020 single-chipslicer
CHEN Wen-hui,CAI Qi-zhong,GUO Yi-feng,ZHOU Ming. Serial communication of PIC single-chip slicer and C8051F020 single-chipslicer[J]. Journal of Guangxi University of Technology, 2004, 15(4): 40-43,54
Authors:CHEN Wen-hui  CAI Qi-zhong  GUO Yi-feng  ZHOU Ming
Abstract:In the system of instruments and the control system,and when PIC single-chip slicer and the single-chip slicer conduct asynchronous serial communication which uses MSC 51 single-chip slicer as the internal core,the communications failed because of errors of baud rate during the course of the serial communication and because the crystal oscillation of various systems is different from the method of calculating baud rate.In order to raise the accuracy of the serial communication,the paper put forward a method of readjusting the software insert value of baud rate of the system so as to reduce errors of baud rate and make baud rates of respective system coincident,thus insuring the accuracy of communication.And examples of real application are given.
Keywords:PIC single-chip slicer  C8051F020 single-chip slicer  serial communication  error of baud rate  insert value  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号