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

CAN bus based on the non-intelligent adapter card design

Controller Area Network CAN (Controller Area Network) is currently approved as international standards, one of a small number of field bus. CAN network can use multi-master manner. It uses non-destructive arbitration bus technology, signaling and control with a short frame structure, which has strong anti-interference ability and low coupling; CAH network traffic rates ranging from 5 kbs/10 km ~ lMbs / / 40m , drive up to 110 nodes. It is the transmission medium can be twisted pair, coaxial cable or fiber, choose a very flexible; information for each frame has a CRC checksum and other error detection measures, and thus the data error rate is very low, reliability is high; when its transmission serious error message when the node can automatically disconnect and bus links, so that other operations on the bus is not affected.

Although PCI, USB and other bus technology has been rapid development, but a large number of applications in computer and industrial computer test, the most used or ISA (Industry Standard Architecture. Industry Standard Architecture) bus. ISA-bus with 16-bit data width, the maximum operating frequency of 8MHz, the data transfer rate up to 16MB / s, there are 24 address bus, 16MB of address addressable unit, the bus signal is divided into five categories, namely address lines, data lines, control lines, clock lines and power lines.

To address the CAN controller SJA1000 with the ISA bus with the signal lines and logic with timing problems, the author designed a CAN bus based on the non-intelligent adapter card. The adapter card has been used in the author developed "based on CAN-bus Motion Control System", run well.

Non-intelligent ISA bus adapter card, the overall structure of CAN

CAN controller SJA1000 address data bus is time division multiplexing, and by the falling edge of ALE signal can be latched on the address bus signal; ISA bus address and data bus are provided independently, it can not address directly and SJA1000 data bus. This design using address decoding circuit for decoding the address signal line so as to allocate a certain CAN adapter's port address. Then, use the 74HC373 chip latches the data latch function for the first time I / O operations through the ISA data bus transmission of data signals, so as to access CAN controller SJA1000 in the register address signal, and finally in the second I / O operations the completion of the corresponding address register SJA1000 reading and writing. The overall structure of its adapter shown in Figure 1.
74HC373 address latch port address can be seen as SJA1000 and SJA1000 SJA1000 data itself can be regarded as the port, in addition to hardware reset of the SJA1000 the reset port. Map the base address decoding circuitry to enable signal AEN as on the A2 ~ A9 address signal decoding can be the base adapter addresses; combinations available AO and A1 address signal offset of the port. SJA1000 is used for communication with the ISA of the two I / O operation, the first of a first delivery address to the address port, the second and then the data port access. Mentioned here are the address and data ports on the SJAl000 purposes, the data line through the ISA bus is available to access the SJA1000 register address and the transmission of data. Control port decoding circuit can be sent by CPU control signals and address signals at a certain combination of logical relations to generate a new set of function signals as the interface control signal. SJA1000 reset by reset circuit can SAJ1000 specific operation can be used on reset, the program reset button reset and hardware reset of three ways.

Adapter hardware design

Base address decoding circuit

Figure 2 shows the base address of a specific decoder. Under normal circumstances, according to system needs, address decoding circuitry on the ISA address lines of port address decoding, and AO ~ A9 can be expressed. Base address decoding circuitry on the A9 ~ A2 decoding, may act as a port on the card base address.

CAN bus based on the non-intelligent adapter card design

Figure 2, 74HC688 is an 8-bit comparator value, then Pi = Qi (i = 0 ... 7), P = Q of the anti-ended output low. When the ISA bus of the AEN is high, the bus working in DMA mode; time when AEN is low, CPU has control of the bus. Non-intelligent adapter cards is actually the CPU on the working process I / O operation process, during which, AEN is always low, can be used to control the strobe terminal G 74HC688 counter. Only in the I / O operation, it allows it to select the address. The use of the DIP switch, users can pre-set base address of adapter cards. The offset of each port on the card from the A1 and A0 select, and through software control, the design definition of offset address port 00, the data offset port 01, reset the port offset 11.

Control Signal

The adapter card of the control signal generation circuit shown in Figure 3. The circuit's main role is sent to CPU control lines and address lines of logic according to certain combination, to generate a new set of function signals Shu Chu. The signal can be used as interface control signals to control the SJA1000, 74HC373, 74HC245 chips such as the work of the state. Since the base address decoder circuit output signal for the P = Q of the anti-(active LOW), SJA1000 address port offset address 00H, the data port offset address 01H, therefore, according to control logic, each adapter card chip control signal logic expression is:

CAN bus based on the non-intelligent adapter card design

CAN bus based on the non-intelligent adapter card design

In the course of adapter cards, the chip's logic timing relationship is this: when the output data valid 74HC373, 74HC245 output is high impedance state; when the 74HC373 output showed a high impedance state, and SJA1000 to ISA bus data directly back to the time, 74HC245 input and output is working properly. Specifically, assuming CAN base address 300H, and visit the SJA1000 is in two I / O operation is complete, then the first data sent to port 300H can be written after the signal is locked along there 74HC373, this operation, 74HC245 and 74HC373 E, the LE side effectively, but the OE terminal is high 74HC373, 74HC373 output high impedance state; when the second time when access to the data port 301H, SJA1000 is selected, then CPU can The corresponding unit of the SJA1000 read / write operations. Specific operational process is divided into reading and writing both. When the second time I / O operation arrives, SJA1000 falling in the BALE signal the first time I / O operation, lock the data as there 74HC373 address latch, the process, 74HC245 anti-E, is high, output was high impedance state, 74HC373's OE is low against the output side effective, to transmit address signals SJA1000. When the address is latched after the SJA1000, at this time if there is to read, then read the signal in the effective period (low), 74HC373's output to allow for the high end anti-OE, 74HC373 output showed a high impedance state, which SJA1000 can be selected when the unit register contents to the data output bus, and drive into the CPU, through the 74HC245. Latch in the address after the write operation if there is, then, 74HC373 output allows side always effective, then you can write the signal in the effective period, the corresponding write data SJA1000 unit.
Computer through the ISA bus of the CAN controller SJA1000 read and write timing are shown in Figure 4 and Figure 5.

CAN bus based on the non-intelligent adapter card design

Reset Circuit

SJA1000 work before, only through the reset pin of its reliable hardware reset to the register of the SJA1000 make the correct read and write operations. So that a reliable reset SJA1000 minimum level continuous time 0.1μs, PC system level reset the duration of up to several microseconds. System, the system reset signal RESET is high when the power supply connected through inverter can be directly used to reset the SJA1000. Figure 6 shows the adapter card, reset circuit, the reset of the SJA1000 has a boot on reset, the program reset and reset button three ways.

CAN bus based on the non-intelligent adapter card design

In Figure 6, A1 and A0 through NAND gate 74LSl0, in order to generate the offset address of reset circuit 11, the address signals and IOW Counter, P = Q signal through the logic combination of anti-so, and to support programs designed to generate SJA1000 reset signal. Program designed to write only port on a data reduction procedure can be realized reset. The reset button can be run in the system when communication failures occur, directly on the CAN controller SJA1000 hardware reset.

Adapter Software

The key part of the software design is the design of CAN communication program. Communication process (process shown in Figure 7,8,9) can be divided into three parts: CAN initialization, receiving process, send process. Initialization is a prerequisite for communication, mainly to complete some of the CAN controller register settings. As the SJA1000 interrupt operations support, so you can interrupt service routine to complete the receive and transmit data to improve system efficiency.

In fact, only in the reset mode can be initialized on the SJA1000, initialization includes work settings, receive filter mode setting mask register and receive the code to receive register set, the baud rate parameter setting and interrupt Allow register settings. After the completion of initialization can be set to work SJA1000 state to carry out normal communications. Subroutine is responsible for node to send packets to send. Send when you read the status register and determine appropriate, and send the data to be combined into a specific format for a message, send the buffer zone into the SJA1000, SJA1000 and then start to send; received message subroutine is responsible for the node reception and treatment of other conditions. In dealing with the process of receiving messages, but also on the bus off, error alarm, receive overflow handling the situation.

CAN adapter interrupt communication with the computer can use. However, WIN API can not directly control the break, only the underlying operating system CAN adapter for the preparation of the virtual device driver (VxD) can use interrupts. This requires a virtual device driver will interrupt virtualization, and response functions in the interrupt event to write the necessary code, while providing access interface for applications. It should be noted: the computer through the ISA bus right on the SJA1000 CAN adapter uses a visit to two I / O operations, for the first time Wang address port to send address, the second on the data port access. The detailed codes are as follows:

/ / To the specified SJA1000 register (address addr) write a byte of data (data), CAN_BASE as the base address
void CanIRQ:: writeByte (int CAN_BASE, unsigned char addr, unsigned char data)
(
_outp (CAN_BASE, addr);
_outp (CAN_BASE +1, data);
)
/ / From the specified SJA1000 register (address addr) read a byte of data (data)
unsigned char CanIRQ:: ReadByte (int CAN_BASE, unsigned char addr)
(
unsigned char result;
_outp (CAN_BASE, addr);
result = _inp (CAN_BASE +1);
return result;
)

Visit SJA1000 program, you can directly call these two Functions. In this way, send the segment code:

Bool CanIRQ:: CanTrans (int CAN_BASE, unsigned char * pTransBuf)
(
status = ReadByte (CAN_BASE, SR); / / SR for the status register address
for (i = 0; i
(
WriteByte (CAN_BASE, * pTFansBuf, ptbuf; / / pTransBuf to send buffer address
ptbuf + +; pTransBuf + +;
)
)

Conclusion

ISA bus by addressing the computer and CAN controller SJA1000 with the logic of coordination and timing to be completed by non-intelligence based on CAN Bus Adapter. The adapter has been successfully applied to the author by the development of CAN bus-based measurement and control system. In fact, if the increase in the adapter card CAN communication controller, you can get more than a cassette CAN bus, to increase the network node, expand the network scale. In addition, you can also adapter applications, depending on the application system requires the preparation of various control procedures to extend the system functionality.

Declined comment

中文字幕第一区二区| 国产视频在线观看免费 | 色噜噜久久综合伊人一本| 欧洲日韩一区二区三区| 久久精品一区二区三区中文字幕| 成人av电影在线播放| av综合在线播放| 国产日本欧美一区二区| 欧美一级片在线视频| 国产精品情侣呻吟对白视频| 经典三级在线一区| 欧美国产极速在线| 大黑人交xxx极品hd| 国产精品亚洲第一区在线暖暖韩国| 日韩精品一区二区三区三区免费| 亚洲精品综合精品自拍| 久久在线观看视频| 琪琪亚洲精品午夜在线| 欧美高清性xxxxhdvideosex| 国产精品青草久久久久福利99| 久久精品国产久精国产一老狼 | 精品福利视频一区二区三区| 91成人在线视频| 一区二区在线观看免费| 久久久久久久久久亚洲| 瑟瑟视频在线观看| 国产精品毛片久久久久久久| 中文精品视频一区二区在线观看| 日韩熟女一区二区| 久久99精品一区二区三区| 99国产精品久久久| 日韩欧美大尺度| 中文字幕日韩视频| 日韩免费黄色av| 精品国产拍在线观看| 精品无码三级在线观看视频| 国产av一区二区三区精品| 国产在线一区二区| 中文字幕欧美区| 欧美精品日韩综合在线| 日韩一区二区三区免费看| 亚洲欧洲午夜一线一品| 91麻豆精品国产91久久久久久久久 | 国产人妖乱国产精品人妖| 亚洲国产精品一区二区久久恐怖片 | 国产真实乱子伦精品视频| 一区二区日韩在线观看| 女人裸体性做爰全过| 久久久久国产精品www| 欧美一区二区三区爽大粗免费| 日日摸夜夜添夜夜添国产精品| 欧美日韩高清在线播放| 成人黄色午夜影院| 久草热视频在线观看| 久久久久久久久黄色| 成人激情免费网站| 视频一区国产视频| 亚洲最新在线观看| 日本男人操女人| 777一区二区| 国产免费黄色一级片| 欧美国产一级片| 男女污污的视频| 国产精品综合二区| 国产精品网址在线| 日本女优在线视频一区二区| 视频一区视频二区视频三区高| 国产同性人妖ts口直男| 国产成人av在线| 在线不卡的av| 欧美一二三区在线| 国产伦精品一区二区三区免| αv一区二区三区| 亚洲不卡的av| 欧美不卡一区二区三区| 久久久一本精品99久久精品66| a天堂中文字幕| av日韩中文字幕| а 天堂 在线| 成人白浆超碰人人人人| 国产精品久久久久久久app| 91玉足脚交白嫩脚丫| 国产一区二区0| 一本一道精品欧美中文字幕| 欧美精品一级二级| 亚洲视频在线二区| 精品久久久久久中文字幕人妻最新| 成人免费视频入口| 综合久久久久久| 中文字幕日韩三级片| 日韩综合小视频| 国产91在线视频| 高潮毛片又色又爽免费 | 丝袜亚洲精品中文字幕一区| 久久一区免费| 在线观看国产日韩| 青青国产在线视频| 久久精品国产96久久久香蕉| 国产亚洲黄色片| 中文字幕一区二区三区有限公司 | 久久久蜜桃一区二区| 国产一区二区h| 国产91精品在线播放| www.国产高清| 亚洲乱码中文字幕| 三上悠亚久久精品| 欧美日韩一区二区三区四区五区 | 日韩精品中文字幕一区| 国产精品久久777777换脸| 久久久久久久久国产精品| 完美搭档在线观看| 亚洲欧美日韩国产另类专区| 日本一区视频在线播放| 国产黄色片av| 亚洲图片欧美激情| 欧美日韩色婷婷| 免费看的黄色录像| 欧美成人官网二区| 欧美日韩乱国产| 亚洲精品suv精品一区二区| 2018国产在线| 在线视频综合导航| 久久高清无码视频| 天天操天天摸天天爽| 91精品久久久久久久久| 色综合一个色综合亚洲| 免费av中文字幕| 久久久伊人日本| www深夜成人a√在线| 精品视频1区2区| 国产网站无遮挡| 一级做a爰片久久毛片美女图片| 999国产在线| 国产三级在线观看完整版| 久久一日本道色综合| 欧美夫妻性生活视频| 欧美日韩一二三四区| 岛国视频一区免费观看| 91一区二区三区在线播放| 一区二区传媒有限公司| 欧美三级中文字幕| 亚洲女同志亚洲女同女播放| av天堂一区二区| 亚洲精品国产精品国自产观看| 久久视频在线观看免费| 久久精品国产秦先生| 亚洲精品9999| 国产成人在线色| 亚洲第一精品区| 在线中文字幕一区二区| 91高清免费看| 日韩欧美成人网| 国产情侣第一页| 国产一区二区毛片| 91国语精品自产拍在线观看性色 | 精品久久香蕉国产线看观看gif| 久久精品亚洲| 日韩精品成人在线| 亚洲熟女一区二区| 91久热免费在线视频| 91丨porny丨国产入口| www插插插无码视频网站| 欧美性猛交一区二区三区精品| 麻豆亚洲av熟女国产一区二| 91精品黄色片免费大全| 免费视频91蜜桃| 91中文在线视频| 永久555www成人免费| 日韩精品成人一区二区在线| av在线网址导航| 国产精品久久久久久av| 免费成人美女女在线观看| 国产精品午夜av在线| 精品国产成人系列| 亚洲一区二区三区在线看| 久久久国产一区二区三区四区小说| 久久久蜜桃一区二区人| 国产午夜小视频| 麻豆精品国产传媒| 91丨九色porny丨蝌蚪| 视频区 图片区 小说区| 亚洲视频777| 99r国产精品| 偷偷操不一样的久久| 亚洲国产精品久久精品怡红院| 岛国av免费观看| 亚洲人成在线播放| 一级片在线免费播放| 国产日韩欧美成人| 亚洲美女av在线| 久久久精品中文字幕麻豆发布| 日韩av片网站| 国产精品欧美日韩久久| 欧美自拍偷拍一区| 午夜精品久久久久久久蜜桃app| 中文字幕一区二区三区视频| 亚洲欧美日韩中文播放| 波多野结衣中文字幕一区二区三区 | 丁香五六月婷婷久久激情| 久久99久久98精品免观看软件| 亚洲高清精品中出| 久久91精品国产| 午夜国产不卡在线观看视频| 亚洲性图第一页| 欧美精品18videos性欧| 亚洲av成人无码网天堂| 97超碰在线人人| 亚洲精品国产综合久久| 欧美日韩三级一区| 国产欧美日韩不卡免费| 国产无套在线观看| 这里只有久久精品| 一区二区三区四区影院| 五月天免费网站| 一本到在线视频| 国产精品538一区二区在线| 99精品视频在线观看| 亚洲色图 校园春色| 色欲狠狠躁天天躁无码中文字幕| 成人黄色片视频网站| 精品不卡在线视频| **欧美大码日韩| 亚洲h视频在线观看| 国产一级生活片| 国产伊人精品在线| 欧美日韩国产综合视频在线观看中文| 国产无遮挡裸体免费视频| 国产精品无码电影在线观看| 日韩精品一区二区视频| 在线成人av网站| 色综合网色综合| 自拍偷拍国产精品| 91麻豆福利精品推荐| 日韩精品成人一区二区三区| 99热一区二区三区| 亚洲综合123| 中文字幕在线看高清电影| 丝袜美腿小色网| 国产一二三四五区| 免费无码不卡视频在线观看| 国产精品丝袜白浆摸在线 | 亚洲精品www久久久久久| 国产一区一区三区| 成人欧美一区二区三区黑人孕妇| 国产精品久久久一区二区三区| 欧妇女乱妇女乱视频| 欧美精品久久久| 久久伊人精品一区二区三区| 美女精品久久久| 午夜精品蜜臀一区二区三区免费 | 天天色综合成人网| 精品欧美乱码久久久久久| 69久久夜色精品国产69| 欧美成人免费在线观看视频| 欧美成人免费看| 久久视频一区| 六月婷婷综合网| 另类专区欧美蜜桃臀第一页| 国产av无码专区亚洲av| 中文 欧美 日韩| 国产一级一级片| 欧美精品一区二区成人| 亚洲第一页综合| 少妇一级黄色片| 日韩久久一级片| 欧美亚洲爱爱另类综合| 国产精品视频一| 久久久精品在线| 日韩精品免费在线视频| 美女精品一区二区| 成人午夜激情片| 国产精品亚洲人在线观看| 久久综合九色综合欧美98 | 国产一区二区在线网站| 国产女人18毛片水真多18| 日本在线免费观看| 喷水一区二区三区| 91香蕉国产在线观看软件| 91在线免费视频观看| 91色视频在线| 黄色免费av网站| 色婷婷av一区二区三| 成人免费视频一区| 久久久久久黄色| 26uuu色噜噜精品一区二区| 国产精品传媒入口麻豆| 欧美精品高清视频| 国产亚洲二区| 97超碰在线资源| 日韩精品人妻中文字幕| 国产乱码精品一区二区三区忘忧草| 亚洲日本在线观看| 国产麻豆午夜三级精品| 国内精品免费**视频| 在线看日本不卡| 欧美日韩第一页| www.国产区| 18禁免费无码无遮挡不卡网站| 男人天堂2024| 欧美视频第一页| 欧美日本韩国在线| 日韩中文字幕二区| 日韩精品成人在线| 麻豆精品一二三| 日韩欧美成人精品| 91av在线国产| 国产精品久久中文字幕| 亚洲图片小说视频| 日本xxxx人| 成人a免费在线看| 国产在线播放一区| 国产成人精品一区二区三区网站观看 | 凸凹人妻人人澡人人添| 国产视频第一页| 手机av在线免费观看| 久久久久久亚洲av无码专区| www.超碰在线观看| 久久亚洲成人av| 亚洲av无码乱码国产精品fc2| 日韩中文字幕观看| 激情久久五月天| 欧美极品视频在线观看| 99热手机在线| 欧美一区二区视频在线| 国内精品视频在线| 亚洲国产精品嫩草影院久久| 一区二区三区91| 成人黄色大片在线观看 | 日本福利片在线观看| 999这里有精品| 男女猛烈激情xx00免费视频| 精品高清视频| 国产中文字幕91| 97成人超碰免| 在线亚洲欧美视频| 精品黑人一区二区三区久久| 姬川优奈aav一区二区| 久久日一线二线三线suv| 九色porny丨国产精品| 亚洲av无码乱码国产麻豆| 最新中文字幕一区| 黄色录像二级片| www.日本高清| 69久久精品无码一区二区| 国产美女无遮挡网站| 在线免费一区| 久久免费视频1| 翡翠波斯猫1977年美国| 国产精品一区二区三区成人| 97人人做人人爱| 欧美激情18p| 欧美成人性色生活仑片| 一道本无吗dⅴd在线播放一区 | 国产精品美女久久福利网站| 国产成人av福利| 国产综合色视频| 久久国产精品免费| 美女www一区二区| 午夜黄色小视频| 午夜视频在线免费播放| 亚洲av无码乱码在线观看性色 | 日韩在线中文视频| 亚洲午夜精品视频| 亚洲人成电影在线播放| 亚洲黄色免费三级| 亚洲国产天堂久久国产91| 678五月天丁香亚洲综合网| 欧美午夜一区二区三区| 欧美日韩色婷婷| 日本韩国精品在线| 欧美制服丝袜第一页| 在线免费亚洲电影| 欧美另类z0zxhd电影| 5858s免费视频成人| 日韩欧美亚洲国产另类| 精品91自产拍在线观看一区| 欧美α欧美αv大片| 亚洲丁香久久久| 亚洲人av在线影院| 日韩中文字在线| 欧美精品免费在线观看| 97高清免费视频| 国产精品日韩久久久久| 91久久中文字幕| 久久久综合亚洲91久久98| 亚州欧美一区三区三区在线 | 久久国产精品亚洲va麻豆| 日本成人三级电影网站| 美女黄色片网站| 免费欧美一级视频| 91精产国品一二三产区别沈先生| 日本黄色www| 一区二区精品免费| 黄色一级视频免费观看| 在线观看免费国产视频| 国产免费www| 成人av无码一区二区三区| 五月天丁香视频| 国产精品一区在线观看你懂的| 97精品视频在线观看自产线路二 | 肉肉av福利一精品导航| 国产精品一区二区三区99| 91丨porny丨最新| 一区二区三区欧美| 在线免费不卡电影| 亚洲成人黄色在线观看| 久久影院资源网| 成人啪啪免费看| 在线观看亚洲视频啊啊啊啊| 欧美亚洲另类色图|