日韩免费一级毛片在线观看-中文日韩亚洲综合-欧美系列日韩另类-欧美激情极品日韩-午夜日韩爱爱毛片视频免费看-欧美日韩一区免费观看-欧美日韩欧美黄色三级

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, 規范 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 網絡. 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, 同時 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

高清一级淫片a级中文字幕| 日本特黄一级| 精品久久久久久影院免费| 美女免费精品高清毛片在线视| 91麻豆精品国产自产在线观看一区| 色综合久久天天综合观看| 国产一区二区精品久久91| 99久久精品国产免费| 日本特黄一级| 国产麻豆精品免费密入口| 午夜欧美成人香蕉剧场| 国产成人精品影视| 亚洲 欧美 成人日韩| a级毛片免费观看网站| 99久久精品国产免费| 韩国毛片| 国产网站免费观看| 免费国产在线视频| 青青久久精品| 欧美激情一区二区三区视频| 美女免费毛片| 精品国产一区二区三区久久久蜜臀 | 日本伦理网站| 韩国三级一区| 四虎久久影院| 免费毛片播放| 精品国产亚洲人成在线| 成人免费观看的视频黄页| 精品在线观看一区| 天天做人人爱夜夜爽2020毛片| 色综合久久天天综合绕观看| 青草国产在线观看| 美女被草网站| 精品国产三级a∨在线观看| 麻豆系列 在线视频| 超级乱淫伦动漫| 国产成人女人在线视频观看| 日本特黄特色aaa大片免费| 美女被草网站| 日本在线不卡视频| 91麻豆精品国产片在线观看| 999久久狠狠免费精品| 黄色免费三级| 尤物视频网站在线观看| 亚飞与亚基在线观看| 精品国产一区二区三区国产馆| 国产成人精品影视| 香蕉视频亚洲一级| 深夜做爰性大片中文| 精品国产一区二区三区久| 午夜激情视频在线播放| 免费的黄色小视频| 可以免费看污视频的网站| 亚飞与亚基在线观看| 你懂的日韩| 亚洲精品中文字幕久久久久久| 成人高清免费| 99热精品一区| 亚洲精品久久玖玖玖玖| 久久久久久久久综合影视网| 999久久狠狠免费精品| 日韩中文字幕一区| 你懂的日韩| 久久99这里只有精品国产| 免费国产在线观看不卡| 你懂的日韩| 日本免费看视频| 欧美大片aaaa一级毛片| 日本伦理黄色大片在线观看网站| 亚洲第一页色| 国产网站在线| 精品久久久久久中文字幕2017| 九九精品在线| 午夜家庭影院| 日日日夜夜操| 日本免费乱理伦片在线观看2018| 999精品视频在线| 久久99这里只有精品国产| a级精品九九九大片免费看| 欧美激情一区二区三区在线| 高清一级毛片一本到免费观看| 99色视频在线| 黄视频网站免费看| 91麻豆精品国产自产在线| 日韩一级黄色大片| 久久福利影视| 亚洲精品中文一区不卡| 国产高清视频免费观看| 九九久久99| 日本伦理网站| 日日爽天天| 青草国产在线观看| 免费国产在线观看| 可以在线看黄的网站| 日本伦理网站| 韩国三级视频网站| 99热视热频这里只有精品| 91麻豆精品国产自产在线| 国产不卡在线观看视频| 亚欧视频在线| 午夜欧美成人久久久久久| 国产精品自拍在线| 日韩在线观看免费| 日韩免费在线视频| 国产精品免费久久| 台湾毛片| 成人免费网站视频ww| 久久国产精品自由自在| 亚洲女人国产香蕉久久精品| 高清一级淫片a级中文字幕| 国产精品1024在线永久免费| 国产麻豆精品高清在线播放| 国产伦久视频免费观看 视频| 国产成a人片在线观看视频| 美女免费精品高清毛片在线视| 美女免费精品高清毛片在线视| 国产91精品一区| 欧美激情一区二区三区在线| 日韩一级黄色片| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 国产麻豆精品免费视频| 黄色免费三级| 欧美日本国产| a级毛片免费全部播放| 久久99这里只有精品国产| 国产高清视频免费观看| 日韩在线观看网站| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 国产不卡在线看| 一级毛片看真人在线视频| 成人av在线播放| 999久久狠狠免费精品| 999精品影视在线观看| 999久久狠狠免费精品| 天天色色网| 国产网站免费观看| 国产麻豆精品hdvideoss| 日韩在线观看免费| 日韩免费片| 国产a视频精品免费观看| 国产一区二区福利久久| 国产美女在线观看| 国产一区二区精品尤物| 韩国毛片免费| 日本伦理网站| 午夜在线观看视频免费 成人| 欧美激情一区二区三区在线播放 | 亚洲精品影院一区二区| 99热精品在线| 免费毛片基地| 日韩专区亚洲综合久久| 国产91丝袜高跟系列| 精品视频在线观看一区二区| 一本高清在线| 成人免费观看男女羞羞视频| 一级毛片视频播放| 国产成人精品综合久久久| 久久成人性色生活片| 黄视频网站在线免费观看| 久久99中文字幕| 一a一级片| 成人高清视频在线观看| 久久国产一区二区| 欧美另类videosbestsex久久| 欧美一级视频高清片| 999精品在线| 久久国产精品自由自在| 欧美爱色| 美女免费精品视频在线观看| 亚欧成人乱码一区二区| 亚洲精品中文字幕久久久久久| 尤物视频网站在线| 韩国三级视频网站| 日韩免费在线视频| 亚洲 男人 天堂| 欧美一区二区三区性| 可以免费在线看黄的网站| 久久久久久久久综合影视网| 亚洲第一视频在线播放| 国产不卡在线看| 国产成人精品影视| 国产一区二区精品久久| 青青青草视频在线观看| 久草免费在线色站| 亚洲第一页乱| 国产成人女人在线视频观看| 国产麻豆精品视频| 国产原创视频在线| 日本在线播放一区| 日韩一级黄色| 精品久久久久久免费影院| 午夜在线亚洲男人午在线| 国产91精品露脸国语对白| 麻豆午夜视频| 成人在激情在线视频| 欧美激情一区二区三区视频高清 | 久久精品店| 国产高清视频免费观看| 青青青草视频在线观看| 精品视频一区二区三区免费|