91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫

Experiments based on CAN bus electrical system design guide

Abstract: Based on the CAN (Controller Area Network) protocol and its application in research, using CAN communications controller, CAN transceiver, as well as enhanced micro-controller components, developed and developing applications based on CAN bus system - - Electrical test guidance system

Introduction

In the production of field control system, intelligent equipment and Chang Gui electrical equipment Di installation, commissioning and maintenance requires considerable technical staff Shu Liang Di electrical, how Gao Xiao, volume, 規(guī)范 to train Gao Ji Jiao electrical apparatus manufacturers Caozuorenyuan yes urgent problem. It requires equipment with communication capabilities, training process for teachers to acquire the dynamic indicators, to understand the actual experimental conditions students can control the experiment process to achieve guidance.

Based on the CAN (Controller Area Network) protocol and its application in research, using CAN communications controller, CAN transceiver, as well as enhanced micro-controller components, developed and developing applications based on CAN bus system - Electrical Engineering Laboratory guidance system, the electrical network laboratory experiment out of teaching courses, thereby changing the shortage of conventional teaching methods for students to be more independent, flexible and complete the experimental task, and can be extended according to their experimental conditions for the establishment of open experiment training facilities and lay a good foundation base, but also to make students understand the real value of the network experiments to understand the CAN bus control technology basics.

1 CAN bus network communication protocol layer model

Applications for different areas of application of choice of different norms, the general areas of application, a "command - response" model of communication protocols, we would achieve reliable and effective "master - slave" type of communication 網(wǎng)絡(luò). If you need a great deal of data exchange or communication flexible CAN network, you can use some of the standard multi-master communication protocol, such as HilonB agreement or agreements with CAN2.0 the definition of a remote frame. In the field of automotive electronics products, usually directly by reference or other standard specification J1939. Communication design in power, the regular use of DeviceNETV2.0 specification, the specification has been adopted by national standards in China. Communication in the field of intelligent buildings, the general use of Modbus protocol or continue to use the RS-485 mode of "master - slave" protocol.

The system for establishing the actual CAN bus communication network, the use of the underlying hardware to achieve the CAN physical layer, data link layer control. Application CAN2.0A / B agreement communication error detection mechanisms such as the CAN bus communication network to ensure the reliability of an established user protocol layer communication protocols, and network traffic data stream interpretation and management. The user protocol layer (application layer) communication protocol by the data frame and remote frame format defined to achieve, and are "master - slave" type of structure
2 Hardware system components and design of the hardware module

Fieldbus based electrician experimental guidance system hardware consists of the host, interface cards, smart node (slave) component. Host Zhongyou application and database, etc. Wen Jian; CAN Interface Card is the bridge to achieve communication, 同時(shí) in networking Ta also serves as a node; Zhinengjiedian You based on field bus, single chip technology for data collection and transmission modules and physical operations Jiexianzhuangzhi etc.. Node can be under the control of the computer's electrical experiments on the students intelligent guidance.

2.1 Data Acquisition and Transmission Module

Data acquisition and transmission module can be divided into five main parts, namely: the composition of the host portion of the MCU AT89S52; by the SJA1000, PCA82C250, optical isolation circuit composed of CAN bus control and interface section; from the 5V reference voltage source, driver transistor, LED lights, digital tubes, power and display parts; using four 8255 as the I / O port expansion, and with operator back-end interface circuit digital data conversion and acquisition part; actual operatives bit.

AT89S52 MCU as a host, is responsible for initialization of the SJA1000, SJA1000 achieved by controlling the receive and transmit data such as communication, the implementation of the experimental data collection, using P1 port to control the dynamic scanning display relevant data to guide the experiment. Choose 74L, S373 as an address latch with a 74LS138 on the 8255, SJA1000 for chip select.

2.1.1 CAN bus control and interface section

From the machine running the process, as required to complete a number of host CPU tasks requires a certain degree of flexibility at the same time, the system needs to have some scalability, therefore, the CAN controller from the machine selection Philips company SJA1000. Chosen as the CAN bus PCA82C250 transceiver, it is the physical layer CAN protocol controller and the question of interface, with anti-transient, anti-RF and anti-electromagnetic interference performance, internal limiting circuit with short circuit on the transmission output level protection functions. In the node (station machine) was inserted between the coupler and the media circuit, that is, the TX0 and RX0 SJA1000 is not directly related to the TXD and RXD 82C250 connected, but after high-speed optocoupler 6N137 connected with 82C250. 6N137 separated for high-speed optical devices, as the outside line and asked the isolation system, using two completely separate power supply VCC and VDD are two parts of the optocoupler circuit power supply, so as to achieve complete isolation between the signals, so that effectively improve the system of anti-jamming capability and internal security of the system. SJA1000 of ADO ~ AD7 the P0 port to connect to the AT89S52, CS connected to the Y4 74LS138 port, Y4 is 0, CPU chip memory address optional in the SJA1000, CPU through these addresses can perform the appropriate read and write operations SJA1000, SJA1000 of RD, WR, ALE AT89S52 respectively connected to the corresponding pin can be connected INT AT89S52 the INT0 or INT1. AT89S52 can be interrupted or query access SJA1000, INT can also be connected to other ports AT89S52 using query access SJA1000. Interface circuit shown in Figure 1.
2.1.2 Data Conversion and acquisition part

1) Data Conversion Circuit

According to electrical control theory analysis and research, from which optimized kind of general wiring methods, to the point Dui Ying Yi Ci by order of operations to the CPU's I / O port provides Yidingguize the 5 V level, you can 完成 Cai Yang and Shu Zi amount of conversion. Students for the operator and the actual position of the positive terminal connector, the rear is connected to the signal line, signal line and the other end of the port 8255 of a fixed phase.

2) the sampling circuit

Station side machine 4 8255 as I / O port expansion, and through 20 kΩ pull-down resistor and the corresponding back-end operator position terminal phase. Initialization in 8255, allowed to work in the way of ordinary time, this time, if a terminal is high, then the corresponding 8255 I / O port can be collected high. If all terminals are high, then the total current will be close to 7805 the maximum output current. Therefore, the need to use split-phase, sub-circuit method, the experiment guide operation, completion of the pilot's guidance tasks. 2.1.3 MCU access to the hardware addresses of the various parts of the circuit

Hardware circuit design is completed, the access address can be determined according to the specific situation. In this paper, P2.5 ~ 2.7 port to control 74LS138, 8255, respectively 4 and SJA1000 to chip select and access. The access address as shown in Table 1.

Experiments based on CAN bus electrical system design guide

3 CAN-bus electrical system node test software

3.1 Data acquisition and display in the node to achieve

In this paper, AT89S52 MCU as the station (node) system control, data acquisition and display of the core, using Keil uVision2 integrated development environment for software development and debugging.

As the machine needs to be done from the display, data acquisition and transmission capabilities, so at least by two interrupt source control, the INT0 and T0. Of which: INT0 is used to indicate CAN Bus data reception and transmission process such as external interrupt; T0 control display scan clock. Data sampling process is divided into two situations: First, automatic initialization of the initial sampling; Second, during the running of the program, when the received data frame, the automatic implementation of a sample.
1) showed that some of the functions and process analysis

Shows there are three kinds of circuit function: display initialization is successful, the experimental error and the steps the students instructions and other information. This information is user-based hardware and software needs of their own definitions. In this paper, 74LS47 decoder driver IC to drive and display control. By software running, so P1 port control 6, respectively yang side of the digital control off, while the P0 port to the 74LS47 decoder driver circuit to provide data to realize the display of dynamic scan control. Initializing a custom display for the normal 004 321, during normal operation display issue number, phase number, grade or step wiring error number when an error flag.

2) the principle of data acquisition and process analysis

The principles of data collection is: CPU through the port P2 corresponding Qi pin control to its counterpart in the Fenxiang first terminal Tigong 5 V Dianping, the other contacts by Yi Ding Xiang Lian Yongxinhaoxian rules so that each power level Duan Zi Shang Chuxian 0 or high, so the corresponding terminal state can be read by 8255. That a certain sequence of wiring can be read in the corresponding 8255 data in different sampling. 8255 Each port can read an 8-bit binary number (1 byte), these steps associated with the experimental data, so that each operation have different data. The system needs 4 8255, obtained a sample of 12 8-bit binary number.

RAM space in the microcontroller to set up a 20-byte array as a collection of data storage space. In the power-on reset, so that 8255 are initialized to the ordinary reading methods to initialize the array to write data. Normal operation, each received a data frame to conduct a data collection. The data collected directly by CAN bus communication frame format, the contents of the array is updated, to prepare to read and upload. Data acquisition memory address and content shown in Table 2.

Experiments based on CAN bus electrical system design guide

3.2 Communication Software

Main points in this article using PC15121 interface card as the interface device, in communication with the protocol established, the main station and the communication from the station can call the interface functions of the product to achieve. From the station (station) CAN nodes control software is modular in design. There are five modules: SJA1000 initialization module, SJA1000 receive data module, SJA1000 send data module, SJA1000 error processing module; systems and other mission modules.

3.3 The procedures for the operation of smart nodes

From the main function for hardware initialization, enter the normal display, waiting for an interrupt event occurs, receive data frames, data processing and delivery was, waiting to receive remote frames and return the required data frames and data acquisition. The main program flow shown in Figure 2. External interrupt service program flow shown in Figure 3.

Experiments based on CAN bus electrical system design guide

In the host program design, interface and data processing algorithms process design is the key. Among them, the host interface card can be used as an intelligent node, network, data communication is mainly the card operation.

4 Conclusion

This article on the CAN bus network hardware and software systems analysis and research, using one kind of networking protocol based on CAN bus and data transmission mode and experimental Zhidao 其 used in electrical systems to "Zhu 1 from" Tongxinmoshi Network communication, to achieve the expected goal. Equipment to meet the test environment.

Declined comment

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
欧美做受高潮1| 国产成人无码av在线播放dvd| 天堂精品视频| 一本久道综合色婷婷五月| 精品久久久久亚洲| 欧美精品一本久久男人的天堂| 国产精品电影一区| 欧美精品性视频| 在线视频不卡一区二区三区| 亚洲一卡二卡区| 亚洲欧美国产一区二区| 亚洲精品久久区二区三区蜜桃臀| 亚洲最新免费视频| 亚洲黄色成人久久久| 日韩av免费在线| 日韩美女在线观看一区| 欧美a在线视频| 蜜桃网站成人| 国产免费一区| 97精品伊人久久久大香线蕉| 国产精品1234| 国产精品免费看一区二区三区 | 亚洲最大激情中文字幕| 亚洲欧美久久久久一区二区三区| 日本在线一区| 黄色一级一级片| 成人免费视频a| 久久人人九九| 国产精品电影一区| 亚洲国产欧洲综合997久久| 日本高清不卡三区| 国产淫片av片久久久久久| 99视频网站| 色妞在线综合亚洲欧美| 欧美精品情趣视频| 亚洲mm色国产网站| 欧美成人蜜桃| 91久久久在线| 久久精品国产69国产精品亚洲| 国产精品久久久久久久av大片| 中文精品无码中文字幕无码专区| 天堂资源在线亚洲资源| 欧美激情专区| 91精品国产高清自在线| 国产精品视频26uuu| 亚洲伊人久久综合| 黄色大片中文字幕| 69久久夜色精品国产69乱青草| 久久视频中文字幕| 婷婷久久伊人| 国内精品视频久久| 国产成人精品久久二区二区91| 久久夜色精品国产亚洲aⅴ| 午夜伦理精品一区| 国产亚洲黄色片| 久久精品99国产精品酒店日本| 亚洲日本精品一区| 韩国成人一区| 日韩中文视频免费在线观看| 亚洲一区二区三区乱码aⅴ蜜桃女| 欧美精品久久久久久久久久久| 产国精品偷在线| 国产精品户外野外| 欧美一区二区影视| 久久频这里精品99香蕉| 精品国产乱码久久久久久蜜柚| 欧美亚洲另类久久综合| 久久久99国产精品免费| 欧美精品成人91久久久久久久| 狠狠色综合色区| 色青青草原桃花久久综合| 亚洲一区二区三区乱码| 国产在线一区二| 日韩一区二区精品视频| 视频在线精品一区| 97免费在线视频| 国产99视频精品免视看7| 精品一区二区三区无码视频| 久久久久久久久久久久久久久久av| 亚洲乱码国产一区三区| 国产乱码精品一区二区三区卡| 国产精品成久久久久三级| 欧美日韩国产综合在线| 色妞久久福利网| 青青视频在线播放| 久久久久久久久久久免费| 日本欧美一级片| 国产成人精彩在线视频九色| 婷婷亚洲婷婷综合色香五月| 国产精品91久久| 亚洲a级在线播放观看| 91精品视频在线免费观看| 亚洲精品日韩成人| 久久久天堂国产精品| 亚洲精品免费av| 国产精品18久久久久久首页狼| 亚洲a级在线播放观看| 久久久免费高清电视剧观看| 无码av天堂一区二区三区| 久久久www免费人成黑人精品| 五月天婷亚洲天综合网鲁鲁鲁| 91精品国产综合久久香蕉最新版 | 国产aaa免费视频| 国产一区二区高清视频| 不卡av电影院| 国产精品一区二区三区精品| 亚洲综合中文字幕在线| 高清视频在线观看一区| 亚洲va欧美va在线观看| 久久青青草原一区二区| 日韩欧美一区二区三区久久婷婷| 国产成人黄色av| 青青草国产精品一区二区| 国产精品人人妻人人爽人人牛| 国内精品**久久毛片app| 国产精品高清网站| www日韩在线观看| 日本一区二区免费高清视频| 国产精品视频免费一区二区三区 | 欧美一区二区影视| 不卡av在线播放| 国产精品直播网红| 亚洲第一页在线视频| 日韩视频―中文字幕| 麻豆精品传媒视频| 亚洲精品国产一区| 色老头一区二区三区| 国产片侵犯亲女视频播放| 亚洲熟女乱色一区二区三区 | 精品国产日本| …久久精品99久久香蕉国产| 欧美资源在线观看| 欧美精品国产精品日韩精品| 久久视频免费在线| 黄色高清无遮挡| 亚洲7777| 久久成年人视频| 国产激情一区二区三区在线观看| 黄色三级中文字幕| 岛国视频一区| 精品国产一区二区三区四区vr| 97精品国产97久久久久久春色| 日韩欧美精品一区二区三区经典 | 日本欧美在线视频| 欧美成人中文字幕| 久久精品国产第一区二区三区最新章节| 精品视频在线观看一区二区 | 伊人久久大香线蕉av一区| 久久久久这里只有精品| 国产一级片91| 青青草综合在线| 亚洲精品在线视频观看| 久久久国产一区| 久久久人成影片一区二区三区| 国产综合久久久久久| 日韩亚洲欧美一区二区| 亚洲色婷婷久久精品av蜜桃| 国产精品成人v| www.日本久久久久com.| 2019日韩中文字幕mv| 成人精品一二区| 国产在线观看一区二区三区| 欧美一区在线直播| 日本精品久久久久久久久久| 亚洲伊人久久综合| 九九热精品视频| 久久天天躁狠狠躁夜夜躁2014| 久久人91精品久久久久久不卡| 成人在线国产精品| 国产美女永久无遮挡| 免费在线一区二区| 欧美中文在线观看国产| 三年中文高清在线观看第6集| 久久久久国产精品一区| 欧美精品在线网站| 久久的精品视频| 国产精品国模在线| 国产精品久久久一区二区三区| 日韩视频一区在线| 日韩色av导航| 日韩综合中文字幕| 久久久精品网站| 久久久久久久av| 久久久久久久色| 久久波多野结衣| 色av中文字幕一区| 久久精品国产久精国产思思| 国产成人久久精品| www.国产一区| 国产精品久久久久免费| 国产精品久久..4399| 国产精品日韩在线观看| 国产精品视频内| 国产精品美女诱惑| 精品乱码一区二区三区| 欧美激情伊人电影| 亚洲一区二区三区加勒比| 亚洲最大激情中文字幕| 亚州av一区二区| 日韩成人手机在线|