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

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

美女免费精品高清毛片在线视 | 午夜欧美成人久久久久久| 可以免费看毛片的网站| 美女免费精品高清毛片在线视 | 国产伦理精品| 国产成人啪精品| 九九免费高清在线观看视频| 欧美激情在线精品video| 精品国产亚一区二区三区| 国产麻豆精品视频| 你懂的日韩| 精品国产一区二区三区精东影业 | 精品久久久久久中文| 青青青草视频在线观看| 天天色色色| 国产不卡高清| 精品国产一区二区三区免费 | 国产91精品一区二区| 日韩av成人| 欧美大片a一级毛片视频| 国产伦精品一区二区三区在线观看| 国产91精品一区二区| 韩国三级香港三级日本三级la| 一本伊大人香蕉高清在线观看| 国产亚洲精品成人a在线| 亚欧乱色一区二区三区| 国产精品1024永久免费视频| 人人干人人草| 久久精品道一区二区三区| 国产网站免费观看| 日韩在线观看免费完整版视频| 国产91丝袜高跟系列| 国产原创中文字幕| 九九久久99综合一区二区| 久久国产一久久高清| 四虎影视库国产精品一区| 国产伦精品一区二区三区无广告 | 亚洲www美色| 在线观看成人网| 精品国产亚洲人成在线| 国产一区二区精品尤物| 韩国毛片| 成人影院一区二区三区| 欧美激情一区二区三区视频高清| 精品国产一区二区三区国产馆| 国产国语对白一级毛片| 成人高清视频免费观看| 可以免费看毛片的网站| 一 级 黄 中国色 片| 青青青草影院| 欧美大片aaaa一级毛片| 四虎影视久久久| 国产不卡在线观看视频| 成人影院久久久久久影院| 黄视频网站在线免费观看| 日韩专区一区| 精品视频在线看 | 成人影院一区二区三区| 欧美另类videosbestsex视频 | 国产国产人免费视频成69堂| 91麻豆tv| 成人a大片在线观看| 日韩中文字幕一区二区不卡| 99久久精品费精品国产一区二区| 天天色成人网| 亚洲精品中文一区不卡| 日本在线www| 国产视频一区二区在线观看| 韩国毛片免费| 九九九国产| 可以免费看污视频的网站| 日韩中文字幕在线亚洲一区| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 美国一区二区三区| 国产美女在线观看| 九九精品影院| 九九九在线视频| 日本在线www| 精品国产亚洲人成在线| 国产视频网站在线观看| 一级女性全黄久久生活片| 国产高清在线精品一区a| 黄色免费三级| 午夜在线亚洲| 韩国毛片免费大片| 99热精品在线| 免费一级片网站| 国产一区二区精品久久91| 亚洲天堂一区二区三区四区| 精品视频在线看 | 国产麻豆精品高清在线播放| 亚洲第一页色| 国产福利免费视频| 一级片免费在线观看视频| 日韩一级黄色大片| 精品国产一区二区三区久久久蜜臀| 成人免费一级毛片在线播放视频| 国产成人精品综合久久久| 欧美另类videosbestsex| 999精品影视在线观看| 国产视频网站在线观看| 精品在线免费播放| 国产成人精品综合久久久| 日韩专区亚洲综合久久| 99热精品在线| 免费国产在线观看| 沈樵在线观看福利| 日本免费区| 999久久狠狠免费精品| 99色视频在线| 99久久精品国产高清一区二区| 国产视频在线免费观看| 色综合久久天天综合| 久久国产精品永久免费网站| 日韩在线观看网站| 四虎影视久久久| 二级特黄绝大片免费视频大片| 国产视频网站在线观看| 国产精品12| 天天做日日爱| 色综合久久久久综合体桃花网| 国产极品精频在线观看| 国产高清在线精品一区a| 成人免费网站视频ww| 精品视频免费观看| 亚洲第一页色| 成人免费福利片在线观看| 亚久久伊人精品青青草原2020| 中文字幕97| 国产精品1024永久免费视频| 欧美1卡一卡二卡三新区| 99久久精品国产免费| 91麻豆精品国产自产在线| 欧美爱色| 四虎影视精品永久免费网站| 国产一区免费观看| 香蕉视频久久| 毛片的网站| 久久精品免视看国产成人2021| 国产不卡在线看| 国产原创中文字幕| 国产高清视频免费观看| 国产精品自拍亚洲| 国产一区免费观看| 欧美激情一区二区三区视频高清| 999久久66久6只有精品| 99热精品在线| 欧美激情一区二区三区中文字幕| 日本免费区| 国产综合成人观看在线| 青青青草影院| 日本在线不卡视频| 精品毛片视频| 可以免费看污视频的网站| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 国产视频久久久久| 99色视频在线| 国产一区二区精品尤物| 欧美爱爱动态| 四虎影视库| 国产不卡福利| 一级毛片视频播放| 国产国语在线播放视频| 亚洲精品影院一区二区| 日本免费乱人伦在线观看 | 成人高清视频在线观看| 黄色免费三级| 免费毛片播放| 日韩av成人| 精品久久久久久影院免费| 国产综合91天堂亚洲国产| 成人免费高清视频| 国产不卡在线观看视频| 黄视频网站免费| 国产视频一区二区在线观看| 国产综合成人观看在线| 国产精品自拍亚洲| 高清一级做a爱过程不卡视频| 午夜在线观看视频免费 成人| 亚洲女人国产香蕉久久精品| 国产91精品系列在线观看| 亚洲天堂免费| 欧美a级片视频| 99久久精品费精品国产一区二区| a级毛片免费全部播放| 精品视频在线看| 国产视频网站在线观看| 国产网站免费视频| 高清一级做a爱过程不卡视频| 国产一区免费在线观看| 国产激情一区二区三区| 尤物视频网站在线| 国产成a人片在线观看视频| 国产a免费观看| 精品久久久久久中文| 欧美大片aaaa一级毛片| 黄色免费三级| 欧美大片一区| 四虎久久精品国产| 欧美a免费|