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

SHARC DSP with the SJA1000 CAN-bus interface

Abstract: This paper discusses the DSP and the CAN controller SJA1000 bus interface differences, proposed SJA1000 and the SHARC DSP family of simple interface design methods and general methods. Tests show that this method has good stability, high transmission efficiency.

Introduction

Currently, there are a number of CAN controllers will microprocessor embedded into a system, but there are still a lot of people are not familiar with CAN controller microprocessor. Combined use of microprocessors and CAN controller design to be necessary, and, CAN controller with CAN bus communication protocol to complete all the necessary functions required, therefore, CAN controller interface with other microprocessor design a CAN bus system design priority. This article focuses on the core with SHARC DSP, based on SJA1000 CAN-bus interface.

SHARC DSP with the SJA1000 CAN-bus interface

Figure 1 SJA1000 and CAN bus connection

SHARC DSP with the SJA1000 CAN-bus interface

Figure 2 ADSP21062 and simplified design SJA1000

SHARC DSP with the SJA1000 CAN-bus interface

Figure 3 CPLD-based design ADSP21062 and SJA1000

SHARC DSP with the SJA1000 CAN-bus interface

Figure 4 CPLD logic diagram

About SJA1000

SJA1000 is a stand-alone CAN controller, for moving targets and general industrial environments Controller Area Network (CAN). It is the company's early Philips CAN controller PCA82C200 (Basic CAN) alternatives, but also adds a new mode (PeliCAN), this model has many new features to support the CAN2.0B agreement.

SJA1000 interface with the microprocessor by the eight major time-multiplexed data and address lines to complete: AD0 ~ AD7, ALE / AS,, / E,,, MODE, and, where MODE select signal for the interface mode can be set to Intel or in Motorola mode. The difference is: Intel mode, the processor on the SJA1000 to write, use, as read, write data signals, ALE falling edge latches address (address signal at this time to guarantee the basic set up to keep time), only in reading, writing data low; Motorola mode, read, write signal with distinction (high read, low write), with / E data strobe (falling edge latched), AS and CS is similar to the ALE and Intel. Popular MCS51/96 MCU provides a convenient way of direct interface to Intel, for general considerations, it describes the interface design is based on Intel models.

DSP interface signals and timing

Difference with earlier processors, DSP chips are pin-chip address lines and data lines by separating the design, without using time-multiplexed address data line, and no ALE signal, so give CAN controller and the DSP made it difficult to interface, and different DSP external pins and timing are slightly different. CAN controller and the DSP to design the interface, we must first compare the timing DSP and CAN controller.

This optional DSP-ADSP21062, clocked at 40MHz, single-cycle (zero wait) to access memory, the required memory response (read or write) cycle is less than 17ns, but many of the response speed of memory or peripherals not so fast, so should be extended by adding wait to visit. Wait ADSP2106x supports two ways, namely, to wait (soft wait) and wait outside (hard to wait).

SJA1000 and the CAN bus connection

Select 82C250 as a transceiver, select 6N137 optical isolators to achieve high-speed CAN bus system and isolation. The connection method shown in Figure 1. This design not only do electrical isolation, but also ensures the data transmission speed.

CAN controller and DSP interface design

SJA1000 data and address signals to time division multiplexing, while the DSP for data and address signal separation structure, and the DSP does not provide ALE signal, the key is to design DSP address SJA1000 should write at the same time as the data generated ALE signal. Required to read and write signals of the shortest effective time, due to low to read data valid for a maximum of 50ns, so read signals to ensure effective for at least 50ns, ADSP21062 in wait with two soft, its low time to 62.5ns (25ns / 2 2 × 25ns), just to meet the requirements.

ADSP21062 and SJA1000 interface to simplify the design

In the case of small peripheral devices connected, the interface circuits can be achieved using several logic gates. As the access to external data, the low 16-bit data bus is not used, so use the data line starting from the DATA16. When Flag1 = 1 時(shí), SJA1000 the WR is always 1, the ALE for the DSP of the WR reverse, when the DSP writes data to addresses as SJA1000, the low level DSP-WR signal is converted into a high level of the ALE, and the falling edge of ALE latches the data. When Flag1 = 0 時(shí), ALE is always 0, no address latch operation. SJA1000, WR directly affected by DSP-WR signal. Flag2 direct control by the CS. The connection shown in Figure 2.
ADSP21062 and SJA1000 simplified interface design of the corresponding procedures are as follows:

1) # define CANADDR 0x400000
2) bit set mode2 FLG1O | FLG2O;
/ / Set Flag1, Flag2 the output
3) r1 = 0x00047800; dm (SYSCON) = r0;
/ / Set the size of outer space
4) r0 = 0x21a8c429; dm (WAIT) = r0;
/ / Wait to visit with two soft-MS0
5) bit set astat ASTAT_FLG1;
/ / Flag1 = 1,
6) r0 = addr; dm (CANADDR) = r0; / / write to internal address to access the SJA1000
7) bit clr astat ASTAT_FLG1;
/ / Flag1 = 0
8) bit clr astat ASTAT_FLG2;
/ / Flag2 = 0, CS = 0
9) i0 = CANADDR; r0 = dm (i0, 0);
/ / Read the corresponding address data SJA1000
10) r1 = 3; dm (i0, 0) = r1;
/ / Write data to the appropriate address SJA1000
11) bit set astat ASTAT_FLG2;
/ / Flag2 = 1, CS = 1,5

To illustrate the convenience of the instruction code. The cost of operating instructions 5,7,8,11 25ns, run the command 6,9,10 the cost 100ns, so complete a read or write be 300ns.

CPLD-based interface design ADSP21062 and SJA1000

When connecting multiple peripheral devices, the decoding circuit is rather complicated, you can use the CPLD logic decoding complete control. CAN signals generated using address data of the ALE, CS and other signals. The advantages of multiple bus devices, the CPLD can be a complete decoding of all bus devices, this method has better applicability. The connection method shown in Figure 3.

DSP programming is as follows:

1) # define CANNCS 0x400100
/ / Clear CANCS address, this address is invalid operation to CAN's CS
2) # define CANCS 0x400200 / / set CANCS address, which address the CS effective action to CAN
3) # define CANALE 0x400500
/ / Set CANALE address, which address the ALE operation can be changed to CAN
4) # define CANNALE 0x400600
/ / Clear CANALE address, which address the ALE CAN constant operation to lower
5) # define CANRW 0x400900
/ / This address operation is complete CAN data reading and writing
6) r1 = 0x00047800; dm (SYSCON) = r0; / / set the outer space
7) r0 = 0x21a8c429; dm (WAIT) = r0;
/ / Wait to visit with two soft-MS0
8) r7 = 0x07; dm (CANALE) = r7;
/ / ALEhigh = 1, CANALE to CANWE of taking anti-
9) r4 = addr; dm (CANRW) = r4;
/ / Write to access the internal register space address SJA1000
10) r7 = dm (CANNALE);
/ / ALEhigh = 0, CANALE total is 0
11) r7 = 0x07; dm (CANCS) = r7;
/ / CANCS = 0
12) r3 = dm (CANRW);
/ / Read the corresponding address data SJA1000
13) r1 = 3; dm (CANRW) = r1;
/ / Write data to the appropriate address SJA1000
14) r7 = dm (CANNCS);
/ / CANCS = 1

The cost of operating instructions 8,9,11,13 100ns, run the command 10,12,14 the cost 75ns, so complete a read or write be 525ns. Faster than before, a simplified design to be a little slower, but this design is more conducive to expansion, for various peripheral interfaces, while saving two Flag pins. When working at maximum speed SJA1000 1Mbit / s, due to be in a data frame into other frames of about 42bit signal, so the completion of 8bit transfer time is about 50 s. The speed of the first two designs were 167 times and 95 times its. Therefore, both the design can meet SJA1000 transmission speed requirements.

CPLD Programming

Figure 4, with 74 138 for decoding, generation ALE, CS and other signals. When the implementation of the Directive 6, set the size of outer space, in the visit will address 0x400000 ~ 0x4fffff time to MS0, 74138 of G2AN will be effective. When the address A11 ~ A8 = 0001, Y1N = 0, CANCS the clear control by the DSP of RD, RD signal low will CANCS = 0, command 11 to complete this feature. When the address A11 ~ A8 = 0010, data D19 ~ D16 = 1000, then Y2N = 0, DSP of the WR signal will CANCS = 1, instruction 14 to complete this function; when the address A11 ~ A8 = 0101, data D19 ~ D16 = 0111, the Y5N = 0, DSP's WR signal along will ALEhigh = 1, then CANWE always maintain 1, CANALE to take anti-WR, instruction 8 to complete this function; when the address A11 ~ A8 = 0110, then Y6N = 0, RD signal low will ALEhigh = 0, then CANALE always remain 0, CANWE for the WR, command 10 to complete this feature.

ADSP21062 only three external interrupts, the number of peripherals linked to resource constraints when they appear. Figure 4, active low or falling edge interrupt signal can be an effective relationship and connected to an interrupt on, DSP in response to failure, read the corresponding number of peripherals, to judge from which peripherals, such can be extended further disruption.

Conclusion

SJA1000 interface address / data multiplexed mode, DSP processors usually address / data bus structure of the separation, this paper provides two different interfaces of the ideas and methods. Tests show that this method is feasible, transmission efficiency.

Declined comment

久久久久一区| 成年人免费观看的视频| 国产亚洲欧美色| 激情五月深爱五月| 成人av色在线观看| 国产精品色哟哟| 欧美日韩在线观看成人| 亚洲精品影院| 国产女人水真多18毛片18精品视频| 在线观看免费av网址| 精品国产免费人成电影在线观看四季| 国产乱码精品一区二区| 国产一二三四区在线观看| 亚洲精品suv精品一区二区| 国产精品一区二区黑人巨大| 日本精品久久久久久久久久| 中文字幕精品在线| 国产一级不卡毛片| 欧美三级电影网站| 天堂av资源网| 香蕉视频1024| 亚洲aaaaaa| 亚洲国产成人porn| 在线播放精品视频| 日本一道在线观看| 九九热这里只有精品免费看| av福利精品导航| 毛片aaaaa| 久久久久久久久久久视频| 欧美激情视频一区| 一区二区高清在线| 欧美性受xxxx狂喷水| 国产精品第七页| 欧美一区1区三区3区公司| 日韩精品黄色网| 久久九九全国免费| 在线免费观看中文字幕| mm1313亚洲国产精品无码试看| 国产成人在线一区二区| 午夜激情综合网| 国产在线精品免费| 黄色一级片在线| 国产人妻777人伦精品hd| 91福利视频网| 欧美狂野另类xxxxoooo| 国产一区美女在线| 麻豆久久久久久久久久| 亚洲色精品三区二区一区| 99国产精品久久久久老师| 精品无人区太爽高潮在线播放| 中文欧美字幕免费| 日韩电影在线观看一区| 国产精品午夜影院| www黄色av| 狠狠色狠狠色综合人人| 久久久久久久久久国产精品| 亚洲第一激情av| 丁香另类激情小说| 精品国产av鲁一鲁一区| 免费黄色国产视频| 欧美美女性视频| 一区二区三区av| 亚洲综合社区网| 在线看欧美日韩| 91精品国产入口| 成人午夜免费在线| 欧美电影免费提供在线观看| 少妇荡乳情欲办公室456视频| 天天干天天综合| 国产欧美一区二区三区久久人妖| 亚洲奶大毛多的老太婆| 亚洲欧美日韩国产中文在线| 在线观看毛片网站| 蜜桃av.com| 日韩精品视频一区二区在线观看| 日韩美女免费线视频| 亚洲三级 欧美三级| 亚洲成av人片在线观看香蕉| 亚洲猫色日本管| 久久夜色精品国产欧美乱极品| 久久精品电影| 亚洲一区二区激情| 久久国产精品二区| 99自拍偷拍视频| 成人做爰www看视频软件| xxxx一级片| 少妇性饥渴无码a区免费| 99久久99久久精品| 日本一区二区三不卡| av日韩免费电影| 91精品视频在线看| 国产精品久久97| 777精品视频| 韩国日本不卡在线| 欧美日韩不卡合集视频| 日韩亚洲欧美成人| 中文字幕久久亚洲| 中文国产成人精品久久一| 日韩精品在线观| 日韩av在线最新| 日韩毛片中文字幕| 亚洲欧美中文日韩v在线观看| 日韩精品专区在线影院重磅| 91精品国产免费| 精品少妇一区二区三区免费观看| 日韩精品专区在线影院重磅| 精品国产一区二区三区av性色| 91精品国产高清一区二区三区| 欧美高清www午色夜在线视频| 欧美日韩精品一区二区三区四区| 欧美午夜免费电影| 91精品在线观看入口| 精品国产一二三| 日韩av一区二区在线| 少妇高潮久久久久久潘金莲| 久热爱精品视频线路一| 国内精品400部情侣激情| 国产成人一区二区三区| 国产91精品一区二区绿帽| 精品免费日产一区一区三区免费| 国产一区二区免费在线观看| 日本精品一区二区三区视频| av磁力番号网| 精品视频一区在线| 亚洲欧美国产一区二区| 日韩a∨精品日韩在线观看| 日韩美女视频中文字幕| 中文字幕人妻一区二区三区视频| 蜜桃av乱码一区二区三区| 亚洲麻豆一区二区三区| 极品人妻videosss人妻| 亚洲一区 欧美| 精品成人免费视频| 加勒比婷婷色综合久久| 亚洲一区二区天堂| 人成网站在线观看| 国产综合色精品一区二区三区| 日韩影院免费视频| 天堂一区二区在线免费观看| av激情亚洲男人天堂| 最新热久久免费视频| 欧美综合在线视频| 日韩成人小视频| 韩国国内大量揄拍精品视频| 国产精品视频99| 中文字幕一区二区三区在线乱码| 国产日韩亚洲欧美在线| 污网站免费观看| 久久婷婷综合国产| 国产jzjzjz丝袜老师水多 | 狠狠色丁香久久婷婷综合_中| 最新热久久免费视频| 欧美日韩国产乱码电影| 中文字幕不卡在线视频极品| 亚洲在线一区二区| 成年人视频观看| 精品国产av色一区二区深夜久久| 国产主播在线播放| 久国产精品韩国三级视频| 香蕉乱码成人久久天堂爱免费| 亚洲国产精品专区久久| 8050国产精品久久久久久| 日韩欧美99| 一级性生活毛片| 91丨九色丨丰满| 91麻豆精品一区二区三区| 91麻豆精品91久久久久久清纯 | 中文字幕第315页| 国产女人水真多18毛片18精品视频| 欧美精品久久久久久久多人混战| 青青a在线精品免费观看| 日日夜夜精品网站| 人人人妻人人澡人人爽欧美一区| 欧美熟妇另类久久久久久不卡| 亚洲蜜臀av乱码久久精品蜜桃| 亚洲香蕉成人av网站在线观看| 国产一区二区三区av在线| 中国极品少妇xxxx| 亚洲乱码在线观看| 中文字幕人成不卡一区| 久久影院免费观看| 亚洲一区在线免费| 久久中文字幕在线观看| 久久久久综合网| 亚洲视频在线视频| 免费在线黄网站| 国产免费观看av| 亚洲精品视频免费看| 欧洲日韩成人av| 最新中文字幕免费视频| 99热这里只有精| 97伦伦午夜电影理伦片| 五月花丁香婷婷| 午夜精品久久久久久久爽| 午夜精品福利在线| 久久久久久久一| 天天操夜夜操很很操| 狂野欧美一区| 日韩免费高清视频| 国内视频一区二区| 91社区视频在线观看| 国产免费成人在线视频| 青青草国产精品一区二区| 中国黄色片一级| 国产曰批免费观看久久久| 在线观看国产欧美| 欧美日韩一区二区在线免费观看 | 欧美超碰在线观看| 色婷婷久久久久swag精品| 国产日韩在线视频| 91免费公开视频| 亚洲一区在线免费观看| 国产欧美日韩亚洲| 久久国产精品波多野结衣| 亚洲欧美电影一区二区| 福利视频久久| 日本少妇一区二区| 91亚洲午夜精品久久久久久| 色综合久久悠悠| 亚洲成色777777在线观看影院| 国产精品一区=区| 成人国产精品久久久网站| 欧美国产一区视频在线观看| 成人国产精品免费视频| 久久成人国产精品入口| 精品视频一区三区九区| 伊人再见免费在线观看高清版 | 欧美三级理论片| av在线不卡免费看| 成人做爽爽免费视频| 免费观看一区二区三区毛片 | 中文字幕精品国产| 精品人伦一区二区三电影| 一区二区三区国产| 手机看片日韩国产| 日本免费不卡视频| 91精品国产91久久久久久久久| 欧美黄色免费观看| 欧美日韩亚洲国产综合| 国产亚洲天堂网| 中文字幕在线不卡| 亚洲欧洲一区二区福利| 麻豆91精品视频| 成人福利在线视频| 国产精品热久久| 久久免费精品视频| 欧美三级一区二区三区| 国产午夜精品麻豆| bl动漫在线观看| 欧美日韩免费在线视频| 亚洲视频在线不卡| 亚洲色图在线视频| 一本二本三本亚洲码| 91原创在线视频| 国产91av视频在线观看| 91在线精品一区二区| 日本高清xxxx| 国产女人18毛片水真多成人如厕 | 精品高清一区二区三区| 69堂免费视频| 国产精品电影一区二区| 丁香婷婷综合激情| 国产精品国产三级国产三级人妇| 欧美精品久久久| 成人小视频在线观看| 中文字幕免费在线不卡| 99精品视频一区| 欧美日韩另类在线| 亚洲乱码日产精品bd在线观看| 久久精品欧美日韩| 老太脱裤让老头玩ⅹxxxx| 国产精品国产三级国产aⅴ入口| 日本一区不卡| 国产精品污网站| 黄色片在线免费| 欧美三级电影网站| 亚洲av无码久久精品色欲| 欧美一级欧美三级| 五月婷婷一区二区| 国产做受高潮69| 天堂国产一区二区三区| 国产高清自拍一区| 91免费在线视频观看| 国产a视频免费观看| 欧美日韩在线综合| 天海翼在线视频| 久久久在线免费观看| 午夜在线视频免费| 亚洲乱码一区二区三区| 日本一区二区在线不卡| 色呦色呦色精品| 日韩一级黄色片| 日本一级特级毛片视频| 97碰碰碰免费色视频| 激情亚洲综合在线| 一区二区视频在线免费| 欧美视频在线观看 亚洲欧| 黑人と日本人の交わりビデオ| 国产亚洲美女久久| jlzzjlzz亚洲女人18| 亚洲精美视频| 在线观看精品一区| 日本三级片在线观看| 91九色蝌蚪成人| 综合久久久久久| www.免费av| 久久成人亚洲精品| 欧美性猛交 xxxx| 蜜臀av.com| 色老汉av一区二区三区| 78色国产精品| 激情图区综合网| 伊人成色综合网| 亚洲欧美日韩国产中文| 污视频软件在线观看| 国产91在线免费| 精品国产不卡一区二区三区| 91青青草视频| 欧美 另类 交| 欧美一区二区三区人| 国产美女明星三级做爰| 亚洲不卡1区| 91精品国产一区二区三区| 国产成人免费看一级大黄| 男女日批视频在线观看| 亚洲区免费影片| 日韩电影在线免费| 成人天堂噜噜噜| 亚洲第一成人在线| 久久久久久久福利| 成人免费视频网站入口| 性做久久久久久免费观看| 国产三级精品三级在线观看| 国产综合动作在线观看| 欧美日韩一区二区三区高清| 国产又黄又粗又猛又爽| 五码日韩精品一区二区三区视频| 日韩视频一区二区三区在线播放| 伊人久久国产精品| 亚洲欧美在线精品| 日本不卡高字幕在线2019| 亚洲精品国产一区二区精华液 | 五月婷婷开心网| 亚洲美女自拍偷拍| 日韩三级成人av网| 成人av资源站| 日本三级黄色大片| 国产3p露脸普通话对白| 久久久97精品| 久久精品综合网| 永久免费看片直接| 图片区小说区区亚洲五月| 亚洲欧美综合区自拍另类| 久久久久亚洲蜜桃| 青青草视频在线观看免费| 超碰影院在线观看| 成人久久久久爱| 精品久久久影院| 久久久久亚洲蜜桃| 日本高清www免费视频| 91看片就是不一样| 91精品国产自产在线| 精品动漫一区二区三区在线观看| www.欧美精品一二区| 成人a v视频| 免费欧美一级视频| 91网免费观看| 精品不卡在线视频| 亚洲欧洲性图库| 亚洲精品无码久久久| 中国美女乱淫免费看视频| 91手机在线观看| 久久精品电影网站| 欧美午夜在线一二页| 国产白丝网站精品污在线入口| 性欧美精品男男| 一区二区三区韩国| 你懂的视频在线一区二区| 欧美本精品男人aⅴ天堂| 国产婷婷色一区二区三区在线| 亚洲va天堂va欧美ⅴa在线| 久久久视频6r| 色噜噜狠狠永久免费| 亚洲国产一区二区在线| 国产精品视频99| 久久精品一偷一偷国产| 日韩欧美你懂的| 一本色道久久综合亚洲aⅴ蜜桃| 久久精品在线免费观看| 国精品**一区二区三区在线蜜桃| 曰批又黄又爽免费视频| 国产成人免费看| 欧美xxxxx少妇| 情侣黄网站免费看| 8x8ⅹ国产精品一区二区二区| 91免费看网站| 国产精品女主播| 91精品国产高清| 久久亚洲电影天堂| 亚洲人午夜精品| 日韩av在线网址| 亚洲电影在线观看| 亚洲精品在线电影| 欧美变态凌虐bdsm| 亚洲精品在线电影| 日韩欧美国产综合在线一区二区三区| 在线亚洲精品福利网址导航| 欧美午夜www高清视频| 红桃av永久久久| 色88888久久久久久影院按摩|