摘要
开关控制电路采用CAN总线,有助于减少布线,适用于远距离控制.为了将开关信号转变为CAN总线的信息,以江苏启东计算机厂生产的DVCC-51NET开发板为基础,单片机采用STC89C52芯片,选用SJA1000、TJA1050芯片分别作为CAN通信设备的控制器和收发器,以双掷开关作为输入设备,低功率LED灯作为输出设备,用8255A芯片扩展STC89C52端口,构建CAN通信系统.拟定了以CAN总线为基础,将开关作为输入信号,对LED灯的异地控制方案.阐述了开关对LED灯的控制原理,理清了CAN总线控制软件设计思路,实现了这一控制过程.
The switch control circuit can reduce the wiring and is suitable for remote control by using the CAN bus. In order to transform the switch signal into the information of the CAN bus, based on the DVCC-51NET development board produced by the Qidong computer factory in Jiangsu, and TC89C52 chip is used in single chip microcomputer, SJA1000 and TJA1050 chips are used as controllers and transceivers for CAN communication devices, respectively. By using the double throw switch as the input device, and the low power LED lamp is used as the output device, and the 8255A chip is used to expand the STC89C52 port, and the CAN communication system is constructed. Based on the CAN bus, the switch is used as the input signal and the special control scheme for the LED lamp is proposed. The control principle of switch on LED lamp is expounded, and the design idea of CAN bus control software is clarified, and the control process is realized.
作者
徐志山
XU Zhi-shan(Department of Mechanical and Automotive Engineering, Xuancheng Vocational and Technical College, Xuancheng 242000, Chin)
出处
《西安文理学院学报(自然科学版)》
2018年第2期44-49,共6页
Journal of Xi’an University(Natural Science Edition)