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

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

91精品综合久久久久久五月天_国产精品一区电影_中文字幕欧美日韩一区二区_亚洲一区二区三区精品动漫
日本在线视频www色| 欧美专区一二三| 欧美乱大交xxxxx潮喷l头像| 国产精品91久久| 亚州av一区二区| 91免费视频网站在线观看| 一本久道久久综合狠狠爱亚洲精品 | 青青草原一区二区| 久久久久久香蕉网| 日韩美女免费视频| 国产精品日韩欧美一区二区三区| 欧美大香线蕉线伊人久久国产精品| 国产精品免费一区| 国产一区免费在线| 欧美激情xxxxx| 国产精品91久久| 热re99久久精品国99热蜜月| 国产精品涩涩涩视频网站| 蜜桃91精品入口| 欧美日韩成人在线观看| 91免费在线观看网站| 欧美综合在线观看视频| 国产精品第3页| 91精品国产高清久久久久久91裸体 | 国产精品人人妻人人爽人人牛| 国产女主播自拍| 午夜精品久久久久久久无码| 日韩在线中文字幕| 国产欧美高清在线| 日韩av电影在线播放| 国产精品日韩欧美| 99www免费人成精品| 欧美日韩一区在线视频| 中文字幕精品在线播放| 国产成人aa精品一区在线播放| 激情五月亚洲色图| 亚洲国产精品日韩| xxx一区二区| 国产精品一区专区欧美日韩| 日韩av免费在线播放| 欧美精品一区三区| 国产传媒一区二区三区| 国产片侵犯亲女视频播放| 日本午夜精品一区二区三区| 不卡av电影院| 国产成人一区二区三区别 | 国产精品丝袜久久久久久不卡| 国产精品一区二区不卡视频| 日韩一二三区不卡在线视频| 欧美精品久久一区二区| 国产成人久久婷婷精品流白浆| 国产伦精品一区二区三区视频黑人 | 国精产品一区一区三区有限在线| 亚洲国产一区二区三区在线| 久久精品人人做人人爽| 91国产精品91| 国产欧美精品久久久| 日韩精品第1页| 亚洲欧洲久久| 国产精品第100页| 久久久久久久久久久91| 91久久国产精品| 国产日韩一区二区在线| 欧美日韩国产免费一区二区三区| 亚洲v欧美v另类v综合v日韩v| 欧美日韩高清在线观看| 国产精品手机在线| 日韩视频免费大全中文字幕| 久久免费国产视频| av免费观看久久| 国产免费色视频| 美女一区视频| 激情五月婷婷六月| 欧美有码在线观看视频| 日韩中文在线字幕| 亚洲免费不卡| 亚洲最大av在线| 在线一区日本视频| 萌白酱国产一区二区| 国产精品国产自产拍高清av水多| 国产成人精品午夜| 日韩中文字幕网址| 久久久噜久噜久久综合| 国产妇女馒头高清泬20p多| 国产精品99久久久久久久久久久久 | 国产脚交av在线一区二区| www国产黄色| 国产欧美一区二区三区四区| 国内精品一区二区| 国内精品**久久毛片app| 欧美人与动牲交xxxxbbbb| 日韩激情视频一区二区| 人妻夜夜添夜夜无码av| 欧洲精品国产| 欧美一区免费视频| 欧美亚洲国产日韩2020| 欧美亚洲第一页| 狠狠色综合欧美激情| 欧美凹凸一区二区三区视频| 国内少妇毛片视频| 国产一二三区在线播放| 国产美女久久精品香蕉69| 国产区二精品视| 成人福利网站在线观看11| www.中文字幕在线| 114国产精品久久免费观看| 久久久一本精品99久久精品| 久久亚洲a v| 久久久久久综合网天天| 精品国产一区二区三区四区在线观看| 久久精品欧美视频| 国产精品极品美女粉嫩高清在线| 久久伊人色综合| 欧美精品久久久久a| 亚洲二区三区四区| 日本精品一区二区三区高清 久久 日本精品一区二区三区视频 | 日本一区视频在线观看免费| 日韩欧美国产综合在线| 青春草国产视频| 国内精品美女av在线播放| 国产美女作爱全过程免费视频| 99热一区二区三区| 久久av综合网| 国产精品果冻传媒潘| 欧美激情图片区| 欧美一级免费看| 黄色一级视频播放| 国产伦精品一区二区三区视频孕妇| 99视频免费观看| 久久精品国产一区二区三区不卡 | 国产淫片av片久久久久久| 成人福利网站在线观看| 国产成人黄色片| 国产精品人人做人人爽| 亚洲午夜精品国产| 日韩精品在线观看av| 久久综合一区| 91久久久久久国产精品| 精品中文字幕视频| 国产欧美精品日韩精品| 激情六月丁香婷婷| 免费黄色福利视频| 国产又粗又猛又爽又黄的网站| 国产日韩欧美影视| 国产精品夜夜夜一区二区三区尤| 粉嫩av一区二区三区免费观看 | 色综合久久久久久久久五月| 91精品在线观| 97精品国产97久久久久久免费| 日韩一级黄色av| 在线视频福利一区| 欧美国产综合在线| 国产精品99蜜臀久久不卡二区| 神马国产精品影院av| 在线观看国产一区| 欧美日韩国产精品一卡| 91精品视频在线| 国产精品久久久久9999| 肉大捧一出免费观看网站在线播放| 国模精品一区二区三区| 久久琪琪电影院| 欧美情侣性视频| 欧洲中文字幕国产精品| 97人人爽人人喊人人模波多| 国产精品日本一区二区| 日韩资源av在线| 国产狼人综合免费视频| 久久精品免费电影| 亚洲精品永久www嫩草| 免费观看国产精品视频| 久久国产午夜精品理论片最新版本 | 国产专区一区二区| 国产黄视频在线| 伊人色综合久久天天五月婷| 国内精品国产三级国产在线专 | 久久国产主播精品| 中文字幕免费在线不卡| 国内精品久久国产| 久久久久久久激情视频| 亚洲人成无码www久久久| 国产日韩中文字幕| 国产精品入口尤物| 欧美午夜精品久久久久久蜜 | 国产拍精品一二三| 国产精品欧美在线| 日韩人妻一区二区三区蜜桃视频| 成人av在线亚洲| 欧美成人免费va影院高清| 人妻熟女一二三区夜夜爱| 91国内揄拍国内精品对白| 一本色道久久99精品综合 | 狠狠噜天天噜日日噜| 日韩中文有码在线视频| 日韩wuma| 国产激情片在线观看| 天堂va久久久噜噜噜久久va| 97精品免费视频| 亚洲精品中文字幕乱码三区不卡| 成人在线国产精品| 亚洲午夜精品国产|