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

AT89C51 microcontroller based CAN bus-based Intelligent Node

Abstract: The CAN (Controller Area Network) bus characteristics, given CAN bus system intelligent node circuit principle and with the C51 language development program, facilitate the user to learn and master.

1 Introduction

CAN (Controller Area Network) is a controller area network, mainly used for a variety of equipment testing and control of fieldbus. BOSCH CAN bus is a German company of the 20th century and early 80's to solve a number of vehicle control and test equipment developed for data exchange between serial data communication protocol. This is a multi-master bus, both in the high-speed network nodes or in the low-cost systems, applications are extensive. As a result of a number of new technology and unique design, and Yi Ban the communication bus Xiangbi, CAN bus data communication with outstanding reliability, real time and flexibility, the following features:

● communication flexible and can work multi-master mode, any node on the network are active in any time to other nodes on the network to send information, regardless of master and slave.

● CAN node identifier only on the message filtering can achieve point to point, multipoint, and global broadcast send and receive data, the node can be divided into different priority, the priority of the node can be identified by packet break to set up the high priority data can be transmitted within 134μs to meet different real-time requirements.

● CAN bus communication format uses a short frame format, the number of bytes per frame more than 8 bytes, Keman Zu Ling Yu Zhong 控制 general industrial orders that the work Zhuangtai and test data requirements, Tong Shi, 8 bytes Buhuizhanyong bus time too long to ensure communication in real time.

● bus arbitration using non-destructive technique, when multiple nodes simultaneously send information to the bus, there are conflicts, the low priority node will take the initiative to send out data, while the high priority nodes can be affected to continue to transmit data, significant savings bus arbitration time of conflict, in the case of network overload will not occur networks.

● Direct communication distance up to 10 km (rate at 5 kb / s or less), the maximum transmission rate up to 1 Mb / s (this time from up to 40 m); up to 110 nodes, communications media can be twisted pair, coaxial cable or optical fiber.

● CAN bus with CRC testing and provides the appropriate error handling function, to ensure the reliability of data communication, the node of the serious situation in the wrong with self-closing output to other nodes on the bus operations are not affected.

2 CAN-bus system architecture

As the CAN bus multi-master mode work, I have the DCS (Distributed Control System) is not the same topology. The control system consists of computers and smart nodes shown in Figure 1. The greatest feature of this system is that all nodes can be attached to an equal status on the bus. A bus node usually include at least three parts: the task of SCM control node, the bus controller and bus driver. In this paper, a simple CAN bus intelligent node design. Intelligent node from the 89C5l MCU, SJA1000-based bus controller, 82C250-type bus driver and the PC form. In practice, the sensor can be connected to different parts, the completion of data collection and transmission.

AT89C51 microcontroller based CAN bus-based Intelligent Node

3 hardware design

I designed the CAN bus system intelligent node with Intel Corporation AT89C51 MCU as the node microprocessor. AT89C51 has a 64KB address space. Itself without the CAN controller and CAN bus, so to achieve the required communication between the external CAN controller and CAN drivers. In this design type used SJAl000 CAN bus communication controller and the AT82C250-type bus driver.

CAN bus system intelligent node hardware circuit shown in Figure 2. As can be seen from Figure 2, the hardware circuit mainly by AT89C51, SJAl000, AT82C250, 6N137 high-speed optocoupler and the MAX202 level converter device type composition. AT89C51 responsible SJAl000 initialization, control SJAl000 for data receive and transmit such communication task. MAX202 RS232 to TTL level and the level of each conversion, data can be received in the PC. SJAl000 the ADO-AD7 the P0 port to connect to the AT89C51, CS connected to the AT89C51 the P2.7. P2.7 to 0, CPU chip memory address optional in the SJA1000, CPU through the implementation of these addresses can SJAl000 corresponding read / write operations. SJAl000 the RD, WR, ALE pins are connected with the corresponding AT89C51, SJAl000's INT Access AT89C51 the INTl, AT89C51 can also be interrupted access SJA1000.
To enhance the capacity of the bus node interference, SJAl000 the TX0 and RX0 not directly related to the TXD and RXD 82C250 phase, but through 6N137 and AT82C250 phase, so well realized the bus electrical isolation between each node . However, the optocoupler circuit with the two power supply VCC and VDD must be isolated. Completely isolated power supply can be used for low power isolated modules. Although this increases the complexity of the interface circuit, but increase the stability and security of the node.

AT82C250 and bus interface has also taken certain security and anti-jamming measures. AT82C250 the CANH CANL pins each pin and through a 5 Ω resistor is connected with the bus, resistors may play a limiting role in protecting against over-current shocks AT82C250. CANH and CANL and in parallel between the two 30pF capacitors small, you can filter out high frequency noise on the bus and have some anti-electromagnetic radiation. In addition, two CAN-bus input and to pick up a difference between the lightning tubes, when two ground between input and transient interference, lightning discharge tube play a protective role. AT82C250 the RS pin then a slope of the resistor, the resistance of the size of the bus communication speed can be adjusted, usually between 16 kΩ ~ 140 kΩ.

4 Software Design

4.1 Network Communication Rules

CAN bus multi-master work, the network took a node can be active at any time to other nodes on the network to send information, regardless of master and slave, and flexible communication. To prohibit bus conflict, CAN bus, bus arbitration using non-destructive technique, each node needs to be set according to different priorities, and to the identifier ID calibration, the smaller the value, the higher the priority. Bus nodes can communicate with each other in real time, when a node needs to receive another one node of the data, only the contents of its code register set and the other one the same node identifier can be. If you register for the identifier and the contents of the code set is inconsistent, then ignore the data issued by the node.
4.2 SJAl000 work mode settings

SJAl000 There are two operating modes: reset mode and work mode. In the reset mode, can receive a code to receive screening, the bus timing register 1 and the output O and control register set. CAN initialization generally more complete register set, when the CAN into work mode, their values will not change. In the operating mode can send and receive data. With particular attention to is this: When hardware reset or the controller will automatically reset when off-line mode, so that no normal CAN communication, which requires monitoring of the reset bit. The event of a hardware reset or reset the controller off-line mode to enter when requested to reset the position to 0 and enter the pattern, so that CAN will be able to send and receive normal.

4.3 software programming language based on C

System software design is the system power and SJAl000 AT89C51 after the first initialization, to determine the working frequency, baud rate, the output characteristics. Which Renyi Zhi can be adopted by the node can use the query from the CAN bus SJAl000 get the required data and to transmit the data to the PC display, while on the bus can send data to other intelligent nodes for receiving display. The following is a concrete realization process.

AT89C51 microcontroller based CAN bus-based Intelligent Node

AT89C51 microcontroller based CAN bus-based Intelligent Node

Is to test the above procedure, in which the main controller AT89C52 reg51.h is specially prepared for the library function, which is readily available in the Keil software, as long as included with # include statements can come in; intrins.h is empty after the call function _nop_ () to prepare for it which includes a statement similar to the assembly language of the NOP; CAN_TOUWENJIAN.h is the header file for the definition of the relevant registers. Tx_DATA_CAN () function is used to send data to the bus, REC_DATA_CAN () function is used to receive data from the bus, SERIAL () is used between the PC and the smart nodes communicate with each other. Space is limited, send and receive routines are given no specific subroutine.

5 Conclusion

The development of CAN bus in the test process, I mastered the CAN bus intelligent node, and has been applied in practice. By applying proven, CAN bus has the following advantages: network free, expandability; automatic error defined, simplifying the operation of the communication; can determine the data content of the priority to address the problem of real-time communication. In addition, CAN network has a number of industrial control system applications, especially in the high transmission speed and reliability but also for demanding real-time occasion, CAN bus will have broad application prospects. This article comes from "a certain type of control system to improve the signal of information transmission," discussion group, team leader is Professor Liu Yonghong, deputy director is Associate Professor Wen-Hung Chang, the main participants Professor Huang Chenfu, Zhao Yong Lecturer, Li Jingang graduate.

Declined comment

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
精品国产乱码久久久久久久软件| 天天夜碰日日摸日日澡性色av| 日韩激情视频一区二区| 色综合导航网站| 久久精品国产99精品国产亚洲性色| 欧美精品一区二区三区久久| 一区二区三区四区视频在线观看| 国产精品日韩电影| 国产精品丝袜久久久久久高清| 91精品久久久久久久久久入口| 黄色免费福利视频| 国产综合在线观看视频| 久久久久久久999| 欧美日韩亚洲一| 欧美另类一区| 欧美精品一区二区视频| 欧美最大成人综合网| 青草青草久热精品视频在线网站| 色之综合天天综合色天天棕色| 又大又硬又爽免费视频| 国产精品美女久久久免费| 国产精品久久久久aaaa九色| 国产精品美女黄网| 精品国产aⅴ麻豆| 伊人网在线免费| 亚洲精品一区二区三| 无码人妻精品一区二区三区99v| 亚洲a∨日韩av高清在线观看| 亚洲xxxx做受欧美| 日本成人精品在线| 激情视频综合网| 国产欧美日韩中文字幕在线| 国产伦精品一区二区三区照片 | 亚洲精品日韩av| 亚洲人成网站在线观看播放| 亚洲影院色在线观看免费| 亚洲国产日韩综合一区| 日本亚洲精品在线观看| 国内精品久久久久久影视8 | 久久成年人视频| 一卡二卡三卡视频| 日韩亚洲欧美精品| 国产一级大片免费看| 国产免费一区二区视频| 国产精品av在线播放 | 激情小视频网站| 黄色免费高清视频| 高清欧美性猛交xxxx| 国产不卡一区二区在线播放| 国产精品久久久久久av| 中文字幕无码精品亚洲资源网久久| 亚州成人av在线| 免费国产一区| 国产成人精品电影久久久| 久久夜色精品国产亚洲aⅴ| 亚洲色欲综合一区二区三区 | 欧美人与性禽动交精品| 国产精品亚洲精品| 国产高清一区二区三区| 色综合导航网站| 欧美一区二区在线视频观看| 成人短视频在线观看免费| 日韩在线视频观看| 欧美人成在线视频| 日韩人妻精品无码一区二区三区| 97精品国产97久久久久久免费| 国产精品夫妻激情| 国产日韩久久| 国产欧美欧洲| 国产精品色午夜在线观看| 日本一级淫片演员| 欧美性大战久久久久xxx| 久久另类ts人妖一区二区| 国产精品高潮呻吟视频| 欧美日韩黄色一级片| 久久亚裔精品欧美| 日本高清久久一区二区三区| 成人www视频在线观看| 精品国产一区二区三区日日嗨| 欧美h视频在线| 色av中文字幕一区| 欧美一二三区| 视频在线观看99| 日韩男女性生活视频| 久精品国产欧美| 日韩精品福利视频| 久久久精品视频在线观看| 日本国产一区二区三区| 7777精品久久久久久| 亚洲高清乱码| 久久青青草原一区二区| 日韩视频在线观看国产| 久久99影院| 欧美夜福利tv在线| 久久天天躁夜夜躁狠狠躁2022| 国产一区免费| 亚洲一区二区三区精品动漫| 国产精品av一区| 日韩视频 中文字幕| 国产精品无码专区av在线播放 | 欧美视频在线观看网站| 久久琪琪电影院| 欧美在线一区视频| 国产精品国语对白| 国产精品一区=区| 岛国视频一区免费观看| 色狠狠av一区二区三区香蕉蜜桃| 欧美无砖专区免费| 不用播放器成人网| 7777精品久久久久久| 日韩激情视频| 精品中文字幕乱| 国产精品1234| 国产情侣av自拍| 亚洲黄色成人久久久| 日日骚久久av| 国产伊人精品在线| 一区二区精品视频| 久久九九有精品国产23| 成人免费网视频| 人偷久久久久久久偷女厕| 久热精品在线视频| 国产精品2018| 国产三级精品网站| 日本一区二区三区在线视频| 久久在精品线影院精品国产| 久久久综合香蕉尹人综合网| 国产一区红桃视频| 日韩福利在线| 在线免费一区| 日韩在线精品视频| 99一区二区三区| 激情六月丁香婷婷| 视频一区二区视频| 亚洲一卡二卡三卡| 国产精品乱子乱xxxx| 国产福利精品视频| 国产精品一区二区久久| 加勒比海盗1在线观看免费国语版| 免费观看亚洲视频| 国产精品高清在线观看| 91精品视频大全| 国产自偷自偷免费一区| 性欧美长视频免费观看不卡| 天天干天天操天天干天天操| 欧美激情在线视频二区| 久久波多野结衣| 欧美日韩一区在线播放| 欧美不卡视频一区发布| 久久久久久久久久久久久国产精品 | 激情综合在线观看| 日韩精彩视频| 91精品久久久久久久久久另类| 亚洲精品不卡| 久操成人在线视频| 久久久国产精彩视频美女艺术照福利| 99超碰麻豆| 国产精品无av码在线观看| 成人羞羞国产免费| 国产免费一区二区三区在线能观看| 欧美与黑人午夜性猛交久久久| 亚洲在线观看视频| 国产精品久久色| www.精品av.com| 久久在线中文字幕| av不卡在线免费观看| 欧美激情小视频| 日韩在线小视频| 久久精品99久久久久久久久| 久久久国产精品一区| 国产精品视频网站在线观看| 精品国产一区二区三区久久久 | 久久av二区| 日韩在线资源网| 国产精品免费久久久久影院 | 久久99久久99精品中文字幕| 欧美乱妇40p| 久操成人在线视频| 亚洲一区二区高清视频| 亚洲黄色网址在线观看| 欧美一级在线播放| 欧美有码在线观看视频| 韩国v欧美v日本v亚洲| 国内精品久久久久久久果冻传媒| 日本高清一区| 品久久久久久久久久96高清 | 国产a级黄色大片| 国产精品视频内| 久久99久久99精品免观看粉嫩 | 久久亚洲成人精品| 亚州欧美日韩中文视频| 欧美一级二级三级九九九| 国产人妻互换一区二区| 国产精品av免费| 久久久久五月天| 欧美日本高清一区| 日韩欧美激情一区二区| 国产伦理久久久| 日韩中文字幕国产| 亚洲精品国产精品国自产|