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

Serial Peripheral Interface (SPI) of the CAN bus isolation extended design

I. Introduction

CAN bus is an effective support for distributed control and real-time control of serial data communication protocol, it is a multi-master bus, the network nodes can be any one of its own initiative at any time other nodes on the network to send information, regardless of master and slave, the priority between the node points, which means of communication and flexible; CAN may point to point, one-to-multipoint (group), and global broadcast and other ways to send and receive data; CAN non-destructive bit arbitration technique, priority send, you can greatly reduce the time the bus arbitration of conflict, in a good performance under heavy load performance.

Serial Peripheral Interface (SPI) of the CAN bus isolation extended design

CAN on the actual number of nodes up to 110, the communication medium can be twisted pair, coaxial cable or optical fiber, direct communication distances of up to 10km (transmission rate 5kbps); maximum communication speed up to 1Mbps (transmission distance to 40m). CAN protocol is the abolition of one of the greatest features of the traditional station address code, and replace the data block to encode communications, CAN data link layer frame structure with a short, each frame is 8 bytes, easy error correction. Industrial areas to meet the usual control commands, work status and the general requirements of test data. Meanwhile, the 8 bytes will not take the bus for too long, thus ensuring real-time communication.

CAN bus has a strong error correction capability, each frame has a CRC checksum and other information error detection measures to effectively reduce the data error rate. CAN node in the error serious cases, with automatic shut down function, so that other nodes on the bus is not affected. Support the differential transceiver, thus suitable for high-jamming environment.

We designed a CAN bus master from the communication control system shown in Figure 1, the control system inside and outside the control of two separate forms of CAN network to the main console to send commands and data, through the master-slave communication module and from the CAN network node communication subsystem control units on data acquisition and control. This system enables CAN bus nodes increased n times; CAN bus transmission rate and communication range greatly increased; also significantly enhanced anti-jamming capability.

This article discusses the main CAN bus communication control system from the master-slave communication module hardware and software design and implementation methods. Master-slave communication module of the console and the control unit from the CAN network data communications between the isolated extension of the communication data processing, transmission and control of CAN networks have some reference.

Second, the hardware design

Serial Peripheral Interface (SPI) of the CAN bus isolation extended design

Master-slave communication module control block diagram shown in Figure 2, the core chip is the TI TMS320C2000 family of companies in the digital control for a DSP. It includes a single chip 10-bit ADC, on-chip flash program memory, event management, digital input and output I / O port, etc.. In order to facilitate communication with various peripheral devices, DSP also provides some interfaces: CAN interface, serial peripheral interface (SPI), serial communication interface (SCI) and so on. Which, SPI interface is the industry standard synchronous serial interface, is a full-duplex, three-wire communications systems. It allows the DSP with a variety of peripheral devices to the serial method (can be configured as a 16-bit data while simultaneously sent and received) to communicate. In the SPI interface, the data transmission needs of a clock signal and two data lines. SPI can operate in master mode or slave mode. In the main mode, each data send / receive function requires a second clock; in from the model, each data clock signals are received only after the send / receive.

3, SPI works

1) SPI signal description

Communication control part of the Figure 2 diagram, two DSP chips use four wire direct SPI interface: serial clock line (SPICLK), the main chip input / output data lines from the film SPISOMI, the main chip output / input data line from the film SPISIMO and active-low chip select lines from SPISTE.

SPICLK is the main piece of the clock line, for the MISO data to send and receive clock signal provides synchronization. Each data transmission needs 1 clock function, and thus to send or receive a byte of data needs 1 to 16 clock effect. The clock is the main piece of hardware through the main film set, and and from the film SPICLK connected.
MISO is the main piece of input / output data lines from the film. The main piece of the MISO MISO should be connected from the film were high in the former data exchange. MOSI is the master SPI SPI interface chip output / input data from the chip pin. This pin should be connected to the main piece of data output and data input from the film MOSI, were high in the former data exchange.

SPISTE only way for LOW is selected from the from the film, the main piece SPISTE corresponding pin is configured as I / O port as from the film SPI chip select input pin.

Serial Peripheral Interface (SPI) of the CAN bus isolation extended design

2) the main mode

Can simultaneously send and receive work in the main mode. The salient features of the main mode is either sent or received always SPICLK signal, sending operation is to SPIDAT (or SPITXBUF) write data triggered. In the main mode, the role of the clock signal 1 corresponds to a data transmission (M0SI) and another data reception (MISO). Shown in Figure 3, in the main film data from the shift register issued from left to right sent from the film (MOSI), while the data from a film made from right to left into the main piece (MISO), after 16 clock cycles to complete a byte to send. Input bytes remain in the shift register, then SPI INT FLAG bit automatically set bit (if interrupt settings, then generate an interrupt), the shift register data will be latched to the SPIRXBUF, the subsequent read operation on SPIRXBUF the data read out.

3) From the model

Send and receive work simultaneously from the mode. The salient features from the model are: whether sending or receiving the signal must always be under the effect of the SPICLK and SPISTE signal must be valid. When SPISTE signal fails, the data sent and enter the data can not be regarded as invalid. This is because the input clock signal is the logical and operation with SPICLK, but SPICLK signal is SPISTE reversal. So that when SPISTE is high, there is no clock signal input. Send and receive data, the process of Figure 3 shows, similar to the main mode, only the data out shift register and enter the opposite direction.
4, software design

SPI communication with a CAN message sent 5 bytes as a unit of information exchange. Main chip control SPICLK signal can start at any one time packet transmission; from the film before sending the packet through the port line to the main chip to send an external interrupt request, the request success Houzhu chip output SPICLK signal to start from the film packet transmission. SPI interrupt from the film in major film to receive the message sent to; the main piece to complete the external interrupt reception of messages from the film. When the main piece and the film also has a message from the transmission, the system first major film packet transmission, and then send packets from the film.

1, the main chip to send, to receive messages from the film

The main chip to send messages, receiving messages from the chip software flow chart shown in Figure 4. The main chip to send a message from the film before the prohibition of the external interrupt, which is prohibited to send messages from the film. CAN transmit buffer and then take a message to send into the SPI register in, and then send the register from the SPI data were obtained from a byte write SPITXBUF start SPISIMO register data pins to send the same time, SPI interrupt from the piece started to receive a response to the main piece of data is sent, when a byte received from the film after triggering the main line through the mouth piece of XINT1 external interrupt to inform the main piece of data has been received, the main piece to respond to this XINT1 external After the break, and then send the next byte of data, when a packet transmission is completed, the main piece to the external interrupt is enabled to receive messages. End message received from the film after the completion flag set to receive messages to CPU for packet processing.

Serial Peripheral Interface (SPI) of the CAN bus isolation extended design

2, sent from the film, the main piece to receive messages

Send a message from the film, the main piece to receive messages software flowchart in Figure 5. From the film in sending messages, through a port line to the main chip to send a XINT1 external interrupt request packets to send, when the main piece to respond to this disruption, send a pseudo-data (such as # 0FFFFh) to tell from the film can begin to report send text from the test piece to the request packet receiving flag is set, then send the buffer from the CAN take a message to send into the SPI register in, and then send the register from the SPI, fetch a byte Data written to SPITXBUF register, through the mouth piece to the main line to send XINT1 external interrupts, asking permission to take the data chip, the main piece in the XINT1 interrupt service routine in the monitoring of the interrupt flag is set, the sending false data # 0FFFFh (start data from the chip sent SPICLK clock), then received byte into SPI buffer received from the film in turn will send a message is complete, clear message received flag. Completed a master piece after receiving messages, set message reception complete flag, and exit the external interrupt to CPU for packet processing.

Serial Peripheral Interface (SPI) of the CAN bus isolation extended design

3, the key technology of processing

CAN bus the transmission of information laws are not random, so I realize with SPI master and slave systems of information transmission must be considered when the data is transmitted from DSP1 to DSP2, we should prohibit the data from DSP2 DSP1 send to the contrary also natural. Otherwise, the data transfer process will be of mutual mistake or lost, affecting the normal operation of CPU. In order to avoid the main message is sent from the process of conflict, the main piece in the XINT1 interrupt service routine to complete a packet to receive, from the film in the SPI interrupt service routine to complete packet reception. During packet transmission, whether the main piece or from the film only when a packet transmission is completed, to proceed to the next frame message transmission. Lord, send the completed from the film every one byte of data, there is a response signal back to flags (see flag meaning) of the judge, in order to confirm whether the integrity of the data sent or received.

As the main chip holds the packet transmission clock signal that the initiative, so the main chip can always send packets. In the message sent from the film, we should first confirm whether the transmission is idle at this time the main piece, if this time the main chip is sending packets, waiting for the main piece from the film will send a complete packet, and then to transmit packets; if the main piece is in idle state transfer from the film can begin to send messages.

V. Conclusion

The CAN bus master from the communication control system plus a number of auxiliary control unit (such as the display control unit, keyboard, etc.) can be used as the main controller from the CAN network using CAN network anomalies in the console does not work, can assist control subsystem operation, the control system design has been applied.

Declined comment

日韩国产精品一区二区三区| 欧美人禽zoz0强交| 一区二区三区在线免费观看视频| 欧美经典一区二区三区| 亚洲精品电影在线观看| 日韩精品无码一区二区三区| 干b视频在线观看| 国产米奇在线777精品观看| 精品久久久网站| 久久这里精品国产99丫e6| 成人精品999| 国产精品一二三四| 亚洲精品视频久久| 51xx午夜影福利| 免费黄色av片| 岛国视频午夜一区免费在线观看| 国产有码一区二区| 亚洲欧美色图视频| a级精品国产片在线观看| 最近2019年手机中文字幕 | 亚洲欧美日韩精品一区| 一起草av在线| 亚洲第一在线综合网站| 国产日韩在线一区| 中文字幕伦理片| 日韩av片永久免费网站| 中文字幕 日韩 欧美| 亚洲男人的天堂av| 欧美在线一区二区三区四| 少妇高潮一69aⅹ| 国产麻豆日韩欧美久久| 国产一区二区三区精品欧美日韩一区二区三区 | 国内外成人在线| 在线精品国产欧美| 艹b视频在线观看| 日韩二区三区四区| 在线观看免费高清视频97| 日本男人操女人| 日本强好片久久久久久aaa| 亚洲天堂av综合网| 中文字幕22页| 成人国产亚洲欧美成人综合网| 欧美国产在线电影| 在线黄色免费网站| 欧美极品美女视频| 亚洲精品欧美日韩| 久久久久久久久久久久久久免费看 | 久久综合伊人77777麻豆| 精品人妻无码一区二区性色| 欧美日韩亚州综合| 国产成人永久免费视频| 日韩1区2区日韩1区2区| 欧美多人乱p欧美4p久久| 日韩中文字幕电影| 亚洲女子a中天字幕| 成人动漫在线观看视频| 波多野结衣二区三区| 特级特黄刘亦菲aaa级| 少妇精品高潮欲妇又嫩中文字幕| 国产亚洲精品va在线观看| 91视频福利网| 中文字幕日韩一区| 亚洲高清一区二| 国产日韩成人内射视频 | 日韩成人一区二区三区在线观看| 久久精品国产亚洲精品2020| 国产成人精品无码免费看夜聊软件| 自拍偷拍国产精品| 日韩av一区二区三区在线| 亚洲精品一区二区三区新线路| 中文日韩电影网站| av永久免费观看| 狠狠色狠狠色综合日日小说| 99久久99久久精品| 国产激情一区二区三区桃花岛亚洲| 国产91色在线免费| 波多野结衣黄色| 在线看国产精品| 小早川怜子久久精品中文字幕| 精品福利樱桃av导航| 黄色一级视频在线播放| 久草视频一区二区| 国产亚洲精品久久久久久777| 97人妻精品一区二区三区免费| 亚洲一区视频在线观看视频| 四虎4hu永久免费入口| 国产精品66部| 精品麻豆av| 三级影片在线观看欧美日韩一区二区| 久久久久久香蕉网| 精品欧美一区二区三区免费观看 | 国产在线精品一区二区中文 | 国产精品视频你懂的| 日本精品一区二区三区视频| 久草中文在线视频| 一区二区三区视频在线看| 99久re热视频精品98| 大胆亚洲人体视频| 日韩高清dvd| 国产成人福利片| 蜜桃导航-精品导航| 国精产品一区一区三区mba桃花| 国产精品一区专区欧美日韩| 国产丰满美女做爰| 国产精品视频导航| 人妻一区二区三区| 亚洲一区二区三区sesese| 天天综合在线视频| 亚洲一区中文字幕在线观看| 久久久亚洲一区| 91观看网站| 日韩电影在线观看网站| 懂色一区二区三区av片| 国产综合一区二区| 视频一区亚洲| 国产拍欧美日韩视频二区| www.国产在线播放| 一区二区在线免费| 中文字幕在线视频精品| 欧美三级一区二区| 性欧美精品男男| 亚洲精品在线91| 日韩精品国产一区二区| 国模精品视频一区二区三区| 国产色视频在线| 国产日韩换脸av一区在线观看| 久久久亚洲一区| 麻豆传媒一区| 国产欧美一区二区精品性色| 日日鲁鲁鲁夜夜爽爽狠狠视频97 | 欧美日韩一区二区三区四区| www.自拍偷拍| 亚洲天堂av女优| 国产免费a视频| 国产欧美精品日韩精品| 国产乱码字幕精品高清av| 中文字幕一区二区三区有限公司| 亚洲欧洲日产国码二区| 国产大学生av| 亚洲欧洲国产伦综合| 波多野结衣视频观看| 成人免费福利在线| 99精品视频在线播放观看| 免费欧美一级视频| 欧美精品一二三| 久久久久久久极品内射| 91爱爱小视频k| 久久99在线观看| 欧美高清中文字幕| 欧美日韩精品欧美日韩精品一综合| 超碰人人干人人| 91国语精品自产拍在线观看性色 | 人妻一区二区三区| 亚洲精品欧美精品| 欧美日韩黄色大片| 日本爱爱小视频| 欧美在线视频在线播放完整版免费观看 | 久久久中精品2020中文| 免费一区二区视频| 日韩中字在线观看| 日韩一区二区免费视频| 在线免费观看av的网站| 免费看a级黄色片| 久久久一区二区三区| 玖玖爱这里只有精品| 精品欧美乱码久久久久久1区2区| 新91视频在线观看| 黄色录像免费观看| 2019精品视频| 91丝袜美腿高跟国产极品老师| 日本在线播放视频| 黄瓜视频污在线观看| 欧美区视频在线观看| 亚洲欧洲日本在线| 国产精品一区二区不卡| 无码久久精品国产亚洲av影片| 亚洲美女高潮久久久| 国产精品久久成人免费观看| 中文字幕亚洲一区二区三区五十路 | 男人天堂视频在线| 国产精品最新在线观看| 久久久久久夜精品精品免费| 国产123在线| 99在线观看视频| 97高清免费视频| 日韩电影网在线| 国产成人免费在线视频| www.国产欧美| 日韩黄色精品视频| 欧美a视频在线观看| 国产sm主人调教女m视频| 神马久久久久久久久久| 青青草av在线播放| 日日骚av一区| 亚洲国产精品欧美一二99| eeuss鲁片一区二区三区在线观看 eeuss影院一区二区三区 | 91社区国产高清| 亚洲国产私拍精品国模在线观看| 色系列之999| 欧美视频一区二区在线| 狠狠综合久久av| 91精品久久久久久综合乱菊| 成人精品gif动图一区| 亚洲毛片在线播放| 在线观看亚洲黄色| 国精品人妻无码一区二区三区喝尿| 99久久伊人久久99| 香蕉影视欧美成人| 亚洲图片在区色| 欧美女孩性生活视频| 中文字幕在线不卡国产视频| 国产乱理伦片在线观看夜一区| 亚洲成人久久精品| 怡红院成永久免费人全部视频| 三级黄色在线观看| 中文视频一区视频二区视频三区| 亚洲欧美国产日韩天堂区| 18成人在线观看| 日韩影院免费视频| 国产成人无码精品久在线观看 | 精品无码国产污污污免费网站| 国产性猛交96| 大乳护士喂奶hd| 亚洲国产999| 亚洲精品视频自拍| 日韩av电影中文字幕| 日本中文字幕一级片| 美女扒开腿免费视频| 欧美18—19性高清hd4k| 免费一级a毛片夜夜看| 国产又爽又黄的视频| a级片免费观看| 亚洲精品成av人片天堂无码| 国产一区二区在线观看视频| 国产专区欧美精品| 日本丰满少妇做爰爽爽| 日韩精品无码一区二区三区久久久 | 一级片视频免费看| 希岛爱理中文字幕| 国产福利拍拍拍| 日韩精品1区2区3区| 中文字幕av不卡| 久久久国产精品视频| 少妇性饥渴无码a区免费| av免费在线不卡| 亚洲午夜精品一区二区三区他趣| 久久久极品av| 亚洲永久免费观看| 99re8这里只有精品| 国产午夜大地久久| 久久久免费电影| 成人信息集中地欧美| 成人一对一视频| 变态另类丨国产精品| 日本在线一二三区| 污视频网址在线观看| 91n.com在线观看| 爱豆国产剧免费观看大全剧苏畅| 亚洲一二三区av| 欧美卡一卡二卡三| 亚洲人永久免费| 丝袜美腿精品国产二区| 成人在线视频网| 成人免费毛片网| 日韩欧美在线观看免费| 精品国产网站在线观看| 久久人妻精品白浆国产| 亚洲av少妇一区二区在线观看| 色av一区二区| 亚洲欧美日产图| 久草中文在线视频| 久久黄色网页| 国产精品每日更新| 亚洲国产精品专区久久| 2020久久国产精品| 国产乱女淫av麻豆国产| 亚洲 小说区 图片区| 亚洲一区二区三区高清视频| av在线综合网| 国产亚洲一区二区精品| 糖心vlog在线免费观看| 天天综合网久久| 亚洲免费在线视频观看| 亚洲专区一二三| 91亚洲精品丁香在线观看| 99一区二区三区| 亚洲精品一区二区18漫画| 国产精品无码久久久久成人app| 亚洲国产aⅴ成人精品无吗| 国产片侵犯亲女视频播放| 国产在线精品不卡| 秋霞av国产精品一区| 啪啪小视频网站| 亚洲激情第一页| 欧洲熟妇精品视频| 免费观看成人毛片| 欧美日韩亚洲精品一区二区三区| 欧美精品一区二区三区国产精品 | 欧日韩精品视频| 精品在线视频一区二区三区| 久久午夜精品视频| 无码人妻精品一区二区三区不卡| 精品自拍偷拍视频| 欧美性做爰毛片| 性欧美长视频免费观看不卡| 一本二本三本亚洲码| 日本爱爱小视频| 亚洲乱亚洲乱妇无码| 丰满少妇被猛烈进入高清播放| 国产亚洲综合av| 婷婷久久伊人| 日韩avvvv在线播放| 久久精品中文字幕一区| 国产资源在线免费观看| 日韩 欧美 精品| 亚洲丝袜制服诱惑| 国产综合在线观看视频| 欧美精品99久久久| 香蕉加勒比综合久久| 久久久天堂国产精品| 日本一二三区视频| 成人av综合一区| 亚洲第一男人天堂| 国产精品久久久久av福利动漫| 日本wwwwwww| 国产一区二区三区精品欧美日韩一区二区三区| 777午夜精品视频在线播放| 少妇高潮毛片色欲ava片| 久久成人18免费观看| 精品亚洲国产视频| 日本888xxxx| 国产精品乱码一区二区三区软件| 国产精品自产拍在线观看| 日韩黄色三级视频| 中文字幕亚洲欧美日韩在线不卡| 瑟瑟视频在线观看| 亚洲午夜私人影院| 97中文在线观看| 特级毛片www| 日韩欧美视频在线| 天天色综合天天色| 波多野结衣中文字幕一区二区三区| 91福利在线观看| 日本一区二区三区四区高清视频| 在线免费观看视频网站| 欧美激情中文网| 秋霞网一区二区| 亚洲福利av在线| 国产成人久久精品77777综合| 欧美日韩美少妇| 手机av在线网| 欧美精品一二三| 三级黄色片免费看| 性欧美8khd高清极品| 亚洲色图美腿丝袜| 一区二区视频免费看| 精品国产乱码久久| www.com亚洲| 精品成人av一区二区在线播放| 久久国产黄色片| 夜夜躁很很躁日日躁麻豆| 国内老熟妇对白hdxxxx| 蜜桃av中文字幕| 久久99在线观看| 成人黄色777网| 国产精品免费aⅴ片在线观看| 亚洲精品成人在线| 欧美在线制服丝袜| 精品国产百合女同互慰| 亚洲欧美国产制服动漫| 久久中文字幕国产| 国产成人精品综合| 国产免费一区二区三区| 亚洲欧美国产不卡| 亚洲精品乱码久久久久久自慰| 日韩 国产 一区| 成人激情五月天| 91蜜桃视频在线观看| 国产黄色一级大片| 国产在线精品免费av| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 中文字幕一区日韩电影| 久久久久久久久久久av| 成人免费在线网址| 视频在线精品一区| 国模杨依粉嫩蝴蝶150p| 超碰caoprom| 国产一级特黄视频| 精品国产av鲁一鲁一区| 免费高清不卡av| 国产亚洲短视频| 在线精品视频一区二区| 亚洲欧美日本另类| 欧美亚洲激情在线| 免费看国产精品一二区视频| 国产精品无码一区二区在线| 久久久男人的天堂| 国产精彩视频在线| 韩国中文字幕hd久久精品| 99久久精品免费精品国产| 亚洲成人激情综合网| 精品国产欧美一区二区| 97视频在线观看视频免费视频 | 91在线第一页| www.毛片com| 欧美亚洲精品在线观看| 国产日本欧美一区二区| 欧美喷潮久久久xxxxx| 欧美老少做受xxxx高潮| 久久精品人成|