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

Based on the CAN bus ADμC812 Design of Intelligent Node

1 Introduction

CAN (Controller Area Network) bus protocol is based on the initial development and production of automotive electronics company known for the development of BOSCH, Germany, it is a distributed real-time control system to support serial communication local area network. Currently, CAN bus, with its high performance, high reliability, real-time advantages, which are widely used in the detection and control system for the implementation of data communication between agencies. CAN bus has the following technical characteristics:

● multi-master mode, adopt a non-destructive technique based on the priority bus arbitration;

● filter can be realized with more address to receive the frame transmission;

● data frame structure with a short, strong anti-interference, the information data frame error detection CRC checksum and other measures to improve;

● lost during the arbitration, or send an error Erzao because the frame can be detected automatically re-issued;

● serious mistake to turn off automatically when the bus function, so that other bus operators are not affected.

CAN bus line with ISO11898 standard, the maximum transfer rate of 1MB / s maximum transmission distance when the 40m; transmission rate 5kB / s maximum transmission distance when 10km.CAN bus transmission medium for twisted pair, coaxial cable, etc. . As the CAN bus is a very useful prospect field bus, so by Le internationally on many large firms, coupled with the hardware-based CAN bus interface, simple and convenient programming, and Ji Tong Rongyijicheng. Yinci it special for Yu System dispersive, demanding real-time, live environment interference occasions.

Based on the CAN bus ADμC812 Design of Intelligent Node

2 System Structure

As the CAN bus multi-master mode work, so it does not have the same DCS 控制 system topology. 其 system constitution by the computer and the smart nodes, as shown in Figure 1 is the system architecture. Gai system the most striking is that all nodes (including the host PC) can be attached to an equal status on the bus. a CAN bus node usually include at least three parts, namely, the MCU is responsible for mission control node, CAN bus controller and the CAN bus transceiver. This is given a complete data acquisition function of CAN node design.
3 CAN node hardware design

The CAN node circuit diagram shown in Figure 2. The three core components of the circuit is the microcontroller ADμC812 1 , independent CAN bus controller SJA1000 and the CAN bus driver PCA82C250. Which SJA1000 2 and PCA82C250 both The combination of applications have been in many of the design of CAN bus nodes used, and Ben designed the features of the Zaiyu, which yes Genju Yao complete data acquisition that specific Yaoqiu Lai Xuan Yong Weikongzhiqi ADμC812. Figure 2 serial interface Xinpian MAX232 as ADμC812 and PC, serial connection, its use is the single chip debugging features of the decision.

ADμC812 is a highly integrated, high-precision 12-bit data acquisition system, the product in its core integrated with on-chip reprogrammable non-volatile flash / electrical erase program memory, high-performance 8-bit (8051 compatible) MCU and multi-channel (8 input channels) 12-bit ADC.

As ADμC812 only through its serial port module and connect the computer's serial port without the need for additional simulator, which can make use of ADI's QUICKSTART software to implement the program online download, online debugging and on-line simulation, which greatly improves the work efficiency. This is the reason for this design using the MAX232.

Based on the CAN bus ADμC812 Design of Intelligent Node

The system at work, first of all sent from the sensor in front of industry-standard signal (4 ~ 20mA or 1 ~ 5V) through the conditioning circuit becomes 0 ~ 2.5V analog voltage signal input to the P0.0 ~ P0.7 ADμC812 (AD0 ~ AD7) pin (according to the actual situation to determine the number of ports required for AD), then control, then A / D conversion from the digital information sent through the CAN bus PCA82C250 SJA1000 and the related nodes.

SJA1000 microcontroller chip as the expansion of chip, the chip select pin CS should be connected to the P2.0 microcontroller, the CAN controller to be used to determine the address of the register. SJA1000 CAN bus drive through the link in the physical PCA82C250 bus. PCA82C250 device provides differential transmit capability to the bus and the CAN controller's differential ability to accept it in full and "ISO11898" standards-compliant. To further improve the system of anti-jamming capability, usually in the CAN bus controller SJA1000 CAN bus driver and increase access 6N137 PCA82C250 optical isolation between the chips, but not in Figure 2 that out. because of the communication signals transmitted to the wire reflection occurs when the endpoint, and the reflected signals can interfere with normal signal transmission, therefore, ends should be connected with the bus termination resistors R1, R2, to eliminate the reflected signal, the resistance and transmission lines should be roughly the same characteristic impedance.
4 CAN node software design

The node software program includes A / D converter (ADC), CAN controller initialization, CAN bus data, such as sending and receiving parts. The main program flow chart shown in Figure 3.

Based on the CAN bus ADμC812 Design of Intelligent Node

The following are the main components of this program design was elaborated.

4.1 A / D conversion section

The author used in this design is a single-step A / D conversion mode, and A / D conversion results into the specified data store. Concrete steps are as follows:

(1) by setting the ADC control register (ADCCON1 and ADCCON2) to determine the value of A / D converter sampling the work of state and channel number;

(2) enable ADC interrupt, set bit SCONV bit to start the single-step A / D conversion;

(3) wait for the ADC interrupt response, and enter the interrupt service routine;

(4) to sample data from the ADC-DATAH from ADCDATAL and remove the two special registers, and into pre-chip data memory, and then exit the interrupt service routine;

(5) to determine whether the required channel sampling is completed, if not completed, then set the sample channel and return to Step No. (2), if completed, has withdrawn from A / D conversion routines.

Through the program at any time based on the actual need to change the sampling channels, and sampling results directly into a designated data store, that in the future to send the data CAN bus facilitate.

4.2 SJA1000 initialization

CAN communication protocol is mainly completed by the CAN controller, and therefore, in order to achieve CAN node of data transfer, the initialization of the CAN controller is critical. This step directly determine the type of CAN Network Systems nodes are common comply with the agreement. initialized on the SJA1000 is in fact through its on-chip microcontroller registers write control word in all the process, the registers include the following:

REG CONTROL-internal control register address;

REG COMMAND-internal command register address;

REG STATUS - the internal status register address;

REG INTERRUPT-internal interrupt register address;
REG ACR-internal acceptance code register address;

REG AMR-internal acceptance mask register address;

REG BTR0-bus timing register 0;

REG BTR1-bus timing register 1;

REG OCR-output control register.

Of which: BTR0, BTR1 register contents can be used to determine the baud rate and the CAN system communication protocol physical layer synchronization jump width, therefore, a system for all nodes, the contents of two registers must be the same (including upper machine), or will not be able to communicate; OCR register used to determine the contents of the output of CAN controller mode; and write ACR, AMR will have to register according to the actual content of network systems and message identifier to decide. The design of , the author uses a BasicCAN mode.

Based on the CAN bus ADμC812 Design of Intelligent Node

After the completion of initialization, CAN controller can be running, but the data transceiver to achieve specific tasks, must also prepare a specific collection, hair procedures.

4.3 CAN bus to send and receive data

(1) to send part of the program design

CAN bus to send data using the flow chart shown in Figure 4. In fact, in running the process, often sending a frame of data found on one of the data has not been fully completed to send (you can check status registers REG STATUS The first four BIT TCS's obvious, hidden states can transmit data about the previous situation). Therefore, the author used approach is: to send by command utilization startup after this time, stop to check on the status register to determine the time to send is complete until the OK is completed. This will provide convenience for the next send, but also conducive to the smooth implementation of procedures to avoid errors.

(2) to receive part of the program design

Based on the CAN bus ADμC812 Design of Intelligent Node

Figure 5 shows part of the system to receive the software flow chart.

In fact, the response speed is not too high occasions, to check to design the receiving subroutine is the simplest, most reliable way. If you have data on the bus sent to the node, the first by querying the status register 1 BIT_RBS the bit state, will be aware of receive buffer (RXFIFO) the available information, then the software will RXFIFO the data one by one "moved" to a designated on-chip storage space can be. For such a key to data collection capabilities based CAN node, the data is mostly from the CAN network in the "control center" made to the control signal, designed to leave them for further processing on it ADμC812.

It should also be noted are: receiving inquiry, to "observe" whether You bus Guanbi, bus error, buffer overload Deng receiving state, if any, must go through corresponding "error" Chuli, otherwise they could no data received, there is a question about the remote frame handling. limited space, this is not an introduction.

5 Conclusion

Practice shows that: the CAN bus described in this article intelligent node can implement the industry standard analog output signals on the collection as well as other nodes on the CAN bus communication. As the node is based on the MCU ADμC812 development, so it's small size and expansion flexibility. I believe that the microcontroller based on the various bus nodes will be widely used.

Declined comment

日本特黄特黄aaaaa大片 | 美女免费毛片| 天天做人人爱夜夜爽2020毛片| 日日夜夜婷婷| 人人干人人插| 日韩中文字幕在线观看视频| 韩国三级一区| 九九免费精品视频| 日日日夜夜操| 国产极品精频在线观看| 日本特黄特色aaa大片免费| 91麻豆爱豆果冻天美星空| 毛片高清| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 国产极品白嫩美女在线观看看| 四虎久久影院| 国产视频久久久| 亚洲 国产精品 日韩| 国产精品自拍一区| 99久久精品国产麻豆| 欧美日本免费| 午夜在线亚洲男人午在线| 国产a毛片| 免费的黄视频| 日本特黄特黄aaaaa大片 | 黄色福利片| 亚洲 国产精品 日韩| 日韩在线观看免费| 精品在线观看一区| 一级女性全黄久久生活片| 国产一区二区精品| 亚洲精品影院| a级黄色毛片免费播放视频| 日本在线不卡视频| 成人a级高清视频在线观看| 成人在激情在线视频| 精品视频在线观看一区二区三区| 国产a一级| 国产高清在线精品一区a| 国产一区二区精品在线观看| 午夜激情视频在线观看| 欧美a免费| 国产91丝袜在线播放0| 精品国产三级a| 久久99爰这里有精品国产| 精品久久久久久中文| 色综合久久久久综合体桃花网| 美女免费精品高清毛片在线视| 精品国产香蕉伊思人在线又爽又黄| 日韩在线观看免费| 国产精品1024在线永久免费| 精品视频免费看| 成人免费观看的视频黄页| 欧美激情在线精品video| 99久久视频| 久草免费在线色站| 亚洲 激情| 夜夜操网| 国产一区二区高清视频| 一a一级片| 天天做人人爱夜夜爽2020毛片| 欧美一级视| 日韩中文字幕一区| 99色视频在线| 国产成人精品影视| 日本免费区| 九九免费精品视频| 精品视频一区二区三区免费| 日本特黄特黄aaaaa大片 | 欧美大片a一级毛片视频| 久久福利影视| 在线观看成人网| 日本免费乱人伦在线观看| 91麻豆精品国产高清在线| 日本在线不卡视频| 麻豆污视频| 日日爽天天| 久久国产一区二区| 欧美激情伊人| 日韩中文字幕在线亚洲一区| 欧美日本国产| 国产伦久视频免费观看 视频| 高清一级片| 精品视频在线看 | 精品久久久久久中文字幕2017| 欧美电影免费| 国产一级强片在线观看| 国产高清在线精品一区a| 久久精品欧美一区二区| 美女免费精品视频在线观看| 精品视频在线观看一区二区| 青青久久精品国产免费看| 欧美a级片免费看| 日本在线不卡视频| 成人免费福利片在线观看| 麻豆网站在线看| 久久精品免视看国产明星| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 国产伦理精品| 国产美女在线一区二区三区| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 久久国产影视免费精品| 日日夜夜婷婷| 久久国产一久久高清| 国产网站免费在线观看| 欧美电影免费| 成人a大片在线观看| 免费毛片基地| 成人av在线播放| 日日夜夜婷婷| 九九干| 青青久热| 免费毛片基地| 韩国毛片基地| 美国一区二区三区| 精品视频免费看| 999久久狠狠免费精品| 久久99中文字幕久久| 午夜在线亚洲男人午在线| 黄色免费三级| 色综合久久天天综合| 国产a毛片| 亚洲天堂免费| 亚洲精品影院久久久久久| 精品久久久久久中文字幕一区| 黄色福利片| 国产一区免费在线观看| 欧美国产日韩在线| 欧美a级大片| 沈樵在线观看福利| 国产麻豆精品| 国产成+人+综合+亚洲不卡 | 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 黄色福利片| 999精品视频在线| 久久国产影院| 久久国产影视免费精品| 精品国产亚一区二区三区| 国产麻豆精品| 国产成+人+综合+亚洲不卡 | 九九干| 久久成人综合网| 日韩中文字幕一区二区不卡| 精品视频一区二区三区免费| 久久国产精品只做精品| 精品国产一区二区三区免费 | 久久99爰这里有精品国产| 国产伦精品一区二区三区无广告 | 国产一区二区精品尤物| 欧美爱色| 日韩中文字幕一区二区不卡| 日韩在线观看免费| 夜夜操网| 日韩欧美一二三区| 沈樵在线观看福利| 91麻豆爱豆果冻天美星空| 九九九国产| 国产成人精品一区二区视频| 国产成人啪精品| 亚洲精品影院一区二区| 日本免费区| 亚洲第一视频在线播放| 精品视频在线看 | 国产精品自拍一区| 美女免费毛片| 国产亚洲精品成人a在线| 精品视频在线看| 国产精品1024永久免费视频| 日本特黄特黄aaaaa大片 | 黄色免费三级| 亚洲第一视频在线播放| 日韩在线观看视频免费| 99色视频| 日韩av成人| 在线观看成人网| 九九干| 久久国产一久久高清| 超级乱淫伦动漫| 国产91丝袜高跟系列| 美女免费毛片| 亚欧乱色一区二区三区| 国产麻豆精品高清在线播放| 天天做日日干| 美女免费精品高清毛片在线视| 一本伊大人香蕉高清在线观看| 沈樵在线观看福利| 人人干人人插| 高清一级做a爱过程不卡视频| 国产a视频| 日韩在线观看网站| 欧美爱色| 天天做人人爱夜夜爽2020| 午夜在线观看视频免费 成人| 天天做人人爱夜夜爽2020毛片| 天天色成人网| 亚欧视频在线| 一 级 黄 中国色 片| 欧美国产日韩久久久| 日本久久久久久久 97久久精品一区二区三区 狠狠色噜噜狠狠狠狠97 日日干综合 五月天婷婷在线观看高清 九色福利视频 | 可以免费看污视频的网站|