国产成人永久免费视频_一区二区三区四区高清精品免费观看_成人午夜视频免费观看_在线电影一区二区三区_国产成人a人亚洲精品无码_欧美日韩在线观看一区_国产精品美女久久久久久_免费av手机在线观看_国产欧美日韩精品一区_国产精品日韩一区二区免费视频_亚洲一区精彩视频_youjizz在线视频

CAN Bus-PROFIBUS-DP Bus Gateway Implementation

1 Introduction

In the mid-80s, the field of automation in order to meet different application requirements, emerged with different technical characteristics of the field bus. Each has its own fieldbus applications, and are trying to expand its applications to expand the scope of its technological monopoly. However, each field bus are to one or a few large multinational corporations as the background, the company's development interests and the bus. The result of competing multiple bus co-existence. According to incomplete statistics, there are more than 200 kinds of the international field bus, which occupy the mainstream of the field bus with dozens of [1]. Fieldbus diversity, for the bus device offers users greater selection of products, but also with the bus for the bus users compatibility problems between devices. Plant expansion, renovation and other process and may be left with a very original field device bus, different standards of products, these devices the use of different field bus to each other can not be achieved between the data Gongxiang, so reducing the device between the Gongneng Jiu complementary advantages. Therefore, the objective for the coexistence of multiple bus facts on how to solve the interconnection of different field bus systems have important practical significance. This paper studies PROFIBUS-DP [2] and CAN [3] are two bus protocol conversion principles, and design a gateway to interconnect these two buses.

2 Design

For the two heterogeneous field bus, the data link layer and application layer protocol is very different to the interconnection between them, need to use the gateway to perform the conversion. Protocol conversion within the gateway is carried out by successive stratification. Fieldbus gateway device 1 to send to the data at different levels of unpacking the agreement, end up in the user data packet. Then in accordance with the Fieldbus protocol layer 2 package, and then sent to the field bus 2 device.

Gateway (gateway) is used for data link layer over layer networking devices, it is equivalent to a protocol converter, which can be two-way, it can be one-way, used to connect different network protocols. It is not the same as required bridge data link layer and application layer protocol exactly.

Fieldbus gateway usually see is a single-CPU, in this structure where, CPU bus information to complete the two kinds of transmission and control, but also the completion of two bus protocol conversion work, the heavier the burden of the program CPU control complex, with multiple nested software. Presented here, a gateway based on double-CPU design, the system has two CPU data bus protocol on each of two processing and control, and will need to pass the information on the dual-port RAM, the information sharing and transmission, this program easy to control, the software is simple, while reducing the CPU burden, and enhance reliability.
3 System hardware design

The hardware can be divided into three parts according to function, one CAN bus interface circuit, complete CAN bus data transceiver and control; second PROFIBUS-DP bus interface circuit, complete PROFIBUS bus data transceiver and control; third dual-port RAM interface circuit, the data used to complete the exchange of two buses.

3.1 CAN bus interface hardware

CAN bus interface, the overall hardware architecture shown in Figure 1. Circuit mainly composed of four parts, microcontroller 89C52 (1), independent CAN communication controller SJA1000, CAN bus transceiver 82C250 and high-speed optocoupler 6N137.

CAN Bus-PROFIBUS-DP Bus Gateway Implementation

89C52 (1) is responsible for the initialization of SJA1000, SJA1000 achieved by controlling the receive and transmit data such as communication tasks, but also with PROFIBUS bus interface for data exchange side, select the 89C52 (1) as the CPU, mainly because it not only SJA1000 CAN controller chip is compatible with, and internal integration 8k flash RAM, to meet system storage requirements, no need to expand outside the program memory.

For the CAN bus controller SJA1000. It is a stand-alone CAN controller, is the company's CA82C200 CAN controller PHILIPS alternative, it maintains the software and pin compatible with PCA82C200. It has two working modes BasicCAN and PeliCAN which BasicCAN manner compatible with the PCA82C200; PeliCAN way to expand the features, support has many new features of the CAN 2.0B protocol. SJA1000 major new features are: standard structure and the expansion of the structure to receive and send messages; 64 byte receive FIFO; standard and extended frame format has a single / dual receiver filter mask and receiving yards with receiver registers; can be read / write access to the error counter; Programmable error warning limit; most recent error code register; each CAN bus error interrupt can be generated error; has lost the arbitration arbitration lost interrupt positioning features; single mode when an error or missing arbitration is not re-issued; only heard monitor CAN bus no response means no error flag; support hot swap software driven bit rate without interference detection; hardware ban CLKOUT output.


SJA1000, AD0-AD7 to connect to the 89C52 (1) of the P0 port, CS connected to the 89C52 (1) of P2.7, P2.7 to 0 CPU chip memory address optional in the SJA1000, CPU through these addresses can be on the implementation of the corresponding read and write operations SJA1000 SJA1000, RD, WR, ALE and 89C52 were connected to the corresponding pin.

CAN bus nodes in order to enhance anti-interference ability, SJA1000 of TX0 and RX0 not directly related to the TXD and RXD 82C250 connected, but after high-speed optocoupler 6N137 82C250 connected, so well realized the CAN bus node electrical isolation between which part of the circuit by optocoupler used two completely separate power supply VCC and VDD. Also 82C 250 and CAN bus interface parts of the safety and use of certain anti-interference measures. The CANH and CANL pin 82C250 their resistance through a 5Ω resistor connected with the CAN bus can play a limiting role in protecting the 82C250 from over-current shocks. CANH and CANL and in parallel between the two 30P small capacitance on the bus can play high-frequency interference filter and a certain ability of anti-electromagnetic radiation, while the two CAN bus access between the client and to the respective reverse a protection diode, when the CAN bus has a high negative voltage through diode overvoltage protection circuit may play a role, 82C250 of Rs one foot then the slope of resistance.

3.2 PROFIBUS-DP bus interface circuit

PROFIBUS-DP bus interface hardware also consists of four major components, micro-controller 89C52 (2), PROFIBUS-DP protocol communications controller chip SPC3, Optocoupler HCPL7101 and 6N137, RS485 bus driver circuit. Figure 2 for the PROFIBUS-DP communication controller to the RS485 bus driver of the hardware circuit diagram.

89C52 (2) is mainly responsible for control of SPC3, achieving PROFIBUS-DP bus data transfer and sharing.

SPC3 PROFIBUS-DP has been integrated data transceiver physical layer functions can be independently PROFIBUS DP protocol, while also integrating a 1.5k SPC3 internal dual port RAM, as SPC3 interface between the user program, and AT89C52 (2) can be internal RAM of the SPC3 visit.

Although the SPC3 has integrated physical layer data transfer capabilities, but it does not have the RS-485 driver interface, so adding the RS-485 driver circuit.

Also on the bus to avoid the impact of the signal on the circuit, in SPC3 and RS485 bus driver circuit with optical isolation between. TxD, RxD signal isolation devices used Hewlett Packard's high-speed optocoupler 12M HCPL710, RTS signal isolation devices use a 6N137.

3.3 pairs of port RAM interface circuit

Two bus data sharing and transfer is achieved through the dual port RAM, the system in use the device IDT7130. It is a 1K high-speed dual-port static RAM. The device provides two independent ports, each with separate control, address, and I / O pins, and allow independent asynchronous read and write access to any memory address, the power management features automatically controlled by the CE, allowing each chip a port circuit to enter a very low power modes. IDT7130 chip bus arbitration circuit is BUSY and INT are two bus arbitration. Microcontroller based on the use of models used in the system interrupt arbitration program works this way is a memory address (mail or message center) is assigned to each port. Left port interrupt flag is declared when the right port writes the memory address 3FEH, the left port memory address by visiting the 3FE clear interrupt. Similarly, when the left port write memory address 3FFH flag is declared when the right port, in order to clear the interrupt flag, the right port to access memory address 3FFH, and 3FF 3FE system in two modules of content to give a new meaning, that define two Code 0FFH and 00H. One 0FFH send representatives to send commands to request data, and 00H is sent on behalf of the other required data. System in two CPU and dual-port RAM connection shown in Figure 3. Dual-port RAM, the remaining memory cells are divided into four parts, of which 256 0000H-00FFH the unit used to store the CAN bus to the data uploaded or address, and the adjacent two units used to store a CAN sub-station of data; 0100H-01F9H the 250 units used to store the PROFIBUS bus uploaded to the data or address, the two adjacent sub-unit for storing a PROFIBUS station information, other 03FCH unit for storage of equipment to CAN bus Reading PROFIBUS site ID number, 03FDH unit for the storage of PROFIBUS bus devices to read the CAN site ID.
Can see from the diagram for dual-port RAM in the microprocessor CAN bus communication mapping address 0x7C00H-0x7FFFH, in charge of the microprocessor bus communication PROFIBUS mapping address 0x2C00H-0x2FFFH.

4 Software Design

Gateway software can be divided into two parts, one for the CAN bus for data communication and one for data communication for PROFIBUS bus.

Each side of the process according to function and can be divided into three sub-modules: protocol chip initialization, to accept data received subroutines, data transmission subroutine. Which data to accept external interrupt trigger the execution of test routines. Following the CAN bus interface to the gateway side of the program, for example, lists the program flow chart, PROFIBUS interface program with similar side, it will not go into.

CAN-bus side of the initialization and send the program flow shown in Figure 4:

CAN Bus-PROFIBUS-DP Bus Gateway Implementation

Because SJA1000 initialization reset mode only can be, so programs will first SJA1000 interrupt mask, making it into the reset mode, and then initialize it. Content includes initialization settings for work, accept the filtering mode settings, accept the mask register and accept the code register set, the baud rate parameter is set and the interrupt register settings allow. SJA1000 completion of initialization settings, and then let it return to working condition, normal communication tasks.

In an interview with subroutine, the system queries in a way that sub-stations transmit over CAN data, the gateway to accept the buffer data area by the first byte of the contents of the judge accepted that the real data, or distributed to PROFIBUS-DP Site request to send data. If the first byte data area is 00H, then transmit the data, thus obtained under the ID look-up table corresponding to the station storage unit, and data area of the second and third bytes of the contents of the existence of the unit, ID on 7FFCH in the same time, tell each other to send data, site number; If the byte content is FFH, it indicates that the request to send data, the data area is stored in the second byte of data has been requested, the site number, will He can be placed within 7FFCH.
Send the above procedure is dual-port RAM, interrupt triggered interrupt signal is received, the contents of the first reading 7FFEH unit will interrupt the signal to eliminate, and then the contents of the unit to determine dual-port RAM and storing the data or be required to send data CAN sub-station ID. If 7FFEH content 00H, the instructions to be sent to the CAN sub-station for the normal data, then sends the first byte of the buffer is set to 00H, told the CAN sub-station to send the data, then read 7FFDH unit content, look-up table of data obtained in the dual-port RAM in the address and the address obtained from the deposit to the SJA1000 two bytes of data output buffer zone to the second, three bytes, the same time as sending the ID number 7FFDH. If 7FFDH is FFH, the instructions sent over PROFIBUS-DP have been asked to send data to CAN sub-station site number, so just put it into the send buffer SJA1000 second byte data area, and the first word Festival set to FFH, to inform the CAN site, and send the data for the ID number. Upon completion of the above, the final word by writing the command to send data.

5 Conclusion

Proven, dual-CPU-way gateway can be good Wan Cheng CAN bus and PROFIBUS-DP bus protocol conversion task, and solved the structure of the gateway in a single CPU of the data transfer rate of Di exist, the problem of poor data Kekao Xing, Manzu the CAN Bus and PROFIBUS-DP bus protocol conversion requirements. It CAN bus devices and PROFIBUS bus device connected to two kinds of fieldbus devices can be highly effective communication, data sharing and ultimately the purpose of complementary functions. And staff do not care in the course of two bus physical layer and data link layer of all, to the bus product research and development of a great convenience. Also, such a dual-CPU design programs on the other fieldbus gateway between the reference design is a useful method.

Declined comment

天堂√在线观看一区二区| 91久久久免费一区二区| 国产精品高清在线| 秋霞欧美一区二区三区视频免费| 少妇视频一区二区| 亚洲国产精品日韩| 中文字幕视频三区| 国产熟妇搡bbbb搡bbbb| 国产三级午夜理伦三级| 天天爱天天做天天操| 欧美国产欧美亚洲国产日韩mv天天看完整| 中文字幕欧美日韩一区| 国产成人在线观看| 9191国产精品| 亚洲国产精品久久久久秋霞不卡 | gv天堂gv无码男同在线观看| 久久久无码精品亚洲日韩按摩| 91传媒视频在线观看| 黄色录像二级片| 日本欧美在线看| 蜜臀久久99精品久久久久宅男| 91麻豆蜜桃一区二区三区| 91精品国产色综合久久ai换脸| 欧美裸体网站| 日韩一区国产在线观看| 999在线免费视频| 欧美日韩在线高清| 亚洲天堂视频网站| 国产日韩欧美不卡在线| 午夜精品一区二区三区在线播放| 老司机午夜性大片| 久久亚洲捆绑美女| 国产二区不卡| 国产视频1区2区3区| 精品视频在线观看一区| 欧美一区二区视频在线| 91免费人成网站在线观看18| 亚洲国产私拍精品国模在线观看| 日韩欧美三级一区二区| jizz国产免费| 91免费看片在线观看| 精品国产av无码| 免费一级片91| 精品奇米国产一区二区三区| 久99久在线| 97人妻人人揉人人躁人人| 国产精品白丝av| 亚洲剧情一区二区| 一区二区三区四区不卡| 日韩xxx高潮hd| 亚洲私人影院在线观看| 国产91色在线免费| 在线免费看黄色片| 国产成人av资源| 综合激情国产一区| 日韩中文字幕二区| www.热久久| 日韩一区和二区| 中文字幕在线观看一区二区三区| 成人精品免费在线观看| 精品毛片网大全| 国产成人成网站在线播放青青| 日本高清黄色片| 久久久精品2019中文字幕之3| 国内伊人久久久久久网站视频 | 久久99久久99精品免观看粉嫩| 99热自拍偷拍| 亚欧在线观看视频| 亚洲成年网站在线观看| 国产肉体ⅹxxx137大胆| 韩国av永久免费| 日韩av在线免费| 波多野结衣乳巨码无在线| 婷婷五月综合激情| 一区二区三区视频在线| 国产无遮挡猛进猛出免费软件| 久久精品国产999大香线蕉| 精品国模在线视频| 91人人澡人人爽| 99精品一区二区| 热99精品里视频精品| 黄色片网站免费| 亚洲欧美日韩一区| 精品一区日韩成人| 中文有码在线播放| 精品第一国产综合精品aⅴ| 国产午夜福利在线播放| 精品一区二区三区日韩| 久久久久久91| 干b视频在线观看| 亚洲丝袜美腿综合| 精品久久精品久久| 国产日韩欧美一区二区东京热| 亚洲精品短视频| 玖玖爱视频在线| 337p粉嫩大胆色噜噜噜噜亚洲| 国产精品丝袜一区二区三区| 久久久久久久国产精品毛片| 精品视频一区三区九区| 你懂的av在线| 国产高清不卡一区二区| 国产精品免费网站| 亚洲激情视频一区| 欧美一区二区久久| 热久久精品免费视频| 26uuu亚洲| 久久国产精品免费一区| 草草视频在线播放| 久久综合久中文字幕青草| 波多野结衣片子| 色综合久久久久综合| 久久久天堂国产精品| 国产麻豆视频精品| 亚洲精品免费在线视频| 亚洲中文一区二区三区| 一色桃子一区二区| 欧美激情久久久久久久| 欧美疯狂做受xxxx富婆| 天天做天天干天天操| 亚洲天堂免费在线观看视频| 宅男av一区二区三区| 国产一区中文字幕| 国产在线播放一区二区| 葵司免费一区二区三区四区五区| 欧美一级淫片播放口| 五月婷婷激情视频| 乱亲女秽乱长久久久| 欧美成人精品一区二区免费看片 | 亚洲黄色免费电影| 免费的av在线| 2022国产精品视频| 一区二区三区四区五区视频| 国产91精品一区二区麻豆网站| 粉嫩高清一区二区三区精品视频 | 亚洲www在线| 免费a视频在线观看| 久久久久久一区二区三区| www亚洲视频| 欧美精品在线免费观看| 91玉足脚交嫩脚丫在线播放| 一个人www欧美| 久久久久性色av无码一区二区| 精品亚洲一区二区三区在线播放| 国产sm调教视频| 日韩美女视频在线| 国产黄色大片免费看| 欧美精品一区二区不卡 | 欧美在线一区二区三区| 欧美高清精品一区二区| 欧美日韩精品一区视频| 国产激情在线免费观看| 欧美精品一区视频| 久久久久久视频| 日韩中文有码在线视频| 无码人妻精品一区二区三区9厂| 欧美激情小视频| 中文字幕有码无码人妻av蜜桃| 欧美做爰性生交视频| 成人免费视频国产| 国产经典一区二区三区| 成人天堂资源www在线| 日本精品福利视频| 尤物在线观看一区| 午夜性福利视频| 欧美成人精精品一区二区频| 朝桐光av在线| 久久青草福利网站| 手机av免费在线观看| 国产精品一级久久久| www.亚洲国产| 国产精彩免费视频| 欧美精品色综合| av女人的天堂| 久久色精品视频| 亚洲奶汁xxxx哺乳期| 国内精品视频免费| 中文字幕第一页久久| 亚洲一级片免费| 欧美一区二区视频观看视频 | 人妻av一区二区三区| 亚洲高清av在线| 亚洲 欧美 日韩 在线| 成人午夜激情网| 99久久99久久综合| 91pony九色| 欧美精品一区二区三区一线天视频| 国产午夜小视频| 国产精品日韩欧美| 成人性生交大片免费看视频在线| 国产一区二区三区精彩视频| 欧美一区二区三区免费大片 | 欧美日韩一级大片| 日韩男女性生活视频| 国产传媒久久文化传媒| 狠狠操精品视频| 欧美精品一区二区三区久久久| 波多野结衣视频免费观看| 成人资源av| 亚洲三级小视频| 三上悠亚影音先锋| 97超级碰在线看视频免费在线看| 国产在线精品一区二区三区不卡| 可以在线看的黄色网址| 欧美精品一区视频| 亚洲av无码专区在线| 久久久久久久久影视| 91精品国产91久久久久久一区二区 | 午夜激情视频在线播放| 欧美孕妇与黑人孕交| 99久久99久久精品国产片果冻| 在线观看视频你懂得| 欧美噜噜久久久xxx| 国产精品一级片| 樱花草www在线| 风流老熟女一区二区三区| 日韩二区三区在线| 欧美自拍偷拍第一页| 黄色一级片在线看| 亚洲精品www久久久久久广东| 黑人精品一区二区| 欧美成人免费高清视频| 自拍偷拍亚洲一区| 国产福利不卡视频| 日韩少妇一区二区| 国产精品高潮呻吟久久av黑人| 久久久久久毛片| 欧美激情视频二区| 91黄色国产视频| 色综合咪咪久久| 91视频久久久| 国产盗摄视频在线观看| 亚洲高清在线观看| 久久99精品国产麻豆不卡| 曰本三级日本三级日本三级| 91禁国产网站| 中文字幕一区二区三区不卡在线 | 欧美一卡2卡3卡4卡| 欧美一级做性受免费大片免费| 国产乱子夫妻xx黑人xyx真爽| 最近2019中文字幕一页二页| 国产.欧美.日韩| 久久久久久成人网| 国产精品中出一区二区三区| 欧美日韩精品专区| 久久美女性网| 手机免费看av片| 国产精品视频白浆免费视频| 一区二区免费在线| 亚洲一级视频在线观看| 国产精品沙发午睡系列| 欧美日本亚洲视频| 亚洲免费在线视频| 91国内精品视频| 91欧美视频在线| 欧美日韩不卡合集视频| 亚洲同性gay激情无套| 日韩精品国产一区二区| 成年在线观看视频| 不卡av在线播放| 亚洲精品精品亚洲| 91国内精品视频| 国产成人av免费观看| 91九色综合久久| 欧美一区二区精品久久911| 国产一区不卡在线| 成人啪啪免费看| 国产亚洲欧美色| 国产精品午夜影院| 丁香啪啪综合成人亚洲| 国产精品三级美女白浆呻吟| 欧美高清性hdvideosex| 成人午夜免费av| 亚洲男人的天堂在线视频| 成年人视频观看| 国产精品99久久久久久www | 国产精品美女久久久久aⅴ| 中文字幕免费在线观看视频| 六月激情综合网| 国产欧美日韩免费| 亚洲国产成人精品女人久久久| 久久综合久久鬼色| 91丨porny丨在线中文| 亚欧精品在线视频| 欧美午夜欧美| 欧美黑人一级爽快片淫片高清| 亚洲大片在线观看| 激情综合五月天| 午夜毛片在线观看| 超碰中文字幕在线观看| 欧洲精品在线一区| 韩国三级日本三级少妇99| 欧美美女一区二区三区| 99re66热这里只有精品3直播 | 五月天综合激情网| 国产5g成人5g天天爽| 久久涩涩网站| 欧美黄色片在线观看| 欧美日韩亚洲不卡| 国产日产欧美精品一区二区三区| 性猛交富婆╳xxx乱大交天津| 少妇人妻好深好紧精品无码| 成年人网站国产| 91美女福利视频高清| 中文字幕av一区| 欧美亚洲丝袜传媒另类| 国产亚洲成av人在线观看导航| 性色av蜜臀av| 欧美片一区二区| 人妻精品久久久久中文字幕69| 亚洲一区二区三区欧美| 国产精品九九久久久久久久| 日韩精品视频在线观看网址| 欧美日韩一区二区三区在线免费观看| 岛国一区二区在线观看| 不卡视频免费在线观看| 国产亚洲精品成人| 大尺度做爰床戏呻吟舒畅| 少妇高潮毛片色欲ava片| aa成人免费视频| 国内精品中文字幕| 亚洲欧美日韩国产中文专区| 欧美日韩中文视频| 日韩av在线一区二区三区| 国产精品免费久久久久久| 久久精品国产清自在天天线| 3d成人动漫网站| 第一福利永久视频精品 | 日韩高清中文字幕一区| 在线观看色网站| 久久午夜鲁丝片午夜精品| 最近日本中文字幕| 无尽裸体动漫2d在线观看| 996这里只有精品| 日本午夜精品电影| 69174成人网| 日本精品免费观看| 久久99热精品| 一区二区亚洲欧洲国产日韩| 欧美xingq一区二区| 一本到不卡精品视频在线观看 | 欧美国产欧美亚州国产日韩mv天天看完整| 日本欧美一区二区在线观看| 国产ts变态重口人妖hd| 久久夜色精品国产噜噜亚洲av| 99精品中文字幕| 国产aⅴ激情无码久久久无码| 美女又黄又免费的视频| 国产高清视频网站| 妺妺窝人体色www在线小说| 国产91在线亚洲| 日韩视频一二三| 热舞福利精品大尺度视频| 精品一区二区三区国产| 动漫精品视频| av一本久道久久波多野结衣| 国产一区私人高清影院| 欧美最猛性xxxxx免费| 亚洲 日韩 国产第一| 精品国产依人香蕉在线精品| 最新91在线视频| 中日韩美女免费视频网址在线观看| 日韩欧美国产午夜精品| 欧美一区二区私人影院日本| 欧美一二三四在线| 日韩午夜小视频| 欧美精品一区二区三区蜜桃 | 蜜桃av免费在线观看| 中文字幕免费高清| 一级黄色片网址| 成熟的女同志hd| 国产一级视频在线播放| 国产成人无码精品亚洲| 伊人手机在线视频| 亚洲综合成人av| 99久久久久久久| 无码精品人妻一区二区| 蜜桃视频一区二区三区在线观看| 久久精品国产精品亚洲精品| 国产剧情av麻豆香蕉精品| 成人小视频在线| 国产日韩亚洲欧美综合| 一本色道久久亚洲综合精品蜜桃 | 日韩欧美三级电影| 无码人妻精品一区二区三区99v| 日本福利视频在线观看| 自拍日韩亚洲一区在线| 午夜剧场在线免费观看| 国产麻豆剧传媒精品国产av| 中文字幕有码在线播放| 久久精品视频9| 在线播放国产一区| 无码精品一区二区三区在线 | 久久99精品久久久久久久久久久久| 捆绑调教一区二区三区| av在线播放一区二区三区| 中文成人av在线| 一本色道亚洲精品aⅴ| 精品国产网站在线观看| 久久久精品网站| 国产精品在线看| 日本在线视频不卡| 免费国产a级片| xxxx黄色片| 日本熟妇一区二区| 狠狠躁夜夜躁av无码中文幕| 国产电影精品久久禁18| 亚洲精品成人悠悠色影视| 91精品国产高清一区二区三区蜜臀 | 另类少妇人与禽zozz0性伦| 国产精品亚发布|