摘要
文章介绍了使用PIC单片机实现RS-232转CAN通信适配卡的一种设计方法。利用CAN总线组网的优势解决了RS-232总线不能直接组建多点通信网络的问题,并将PC作为终端连入CAN网络。板卡还能将采集的数据通过CAN总线传输,并通过RS-232上传给上位机。目前国内大多用51系列的单片机来控制CAN控制器SJA1000T,考虑到Microchip公司的PIC单片机拥有广泛的市场以及它自身的优点,所以采用PIC16F877A作为微控制器。
This paper introduces a way to convert RS-232 communication network into CAN communication network with PIC MCU. It resolves the problem of that the RS-232 interface can not directly establish a multipoint communication network. And it can remote communicate and communicate with PC as terminal. The adapter card can gather data and upload it to the upper computer through CAN-BUS. Nowadays it is a popular method that use 51MCU to control SJAI000T. Considering the wide market and the advantages of PIC MCU's, we chose PIC16F877A as MCU of the board.
出处
《四川理工学院学报(自然科学版)》
CAS
2007年第1期55-59,共5页
Journal of Sichuan University of Science & Engineering(Natural Science Edition)