日韩免费一级毛片在线观看-中文日韩亚洲综合-欧美系列日韩另类-欧美激情极品日韩-午夜日韩爱爱毛片视频免费看-欧美日韩一区免费观看-欧美日韩欧美黄色三级

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

美国一区二区三区| 久久国产精品自由自在| 你懂的日韩| 精品国产亚洲人成在线| 免费一级片在线| 日韩一级黄色| 日韩专区亚洲综合久久| 久久国产影院| 欧美激情影院| 国产一区二区精品尤物| 欧美日本免费| 九九久久国产精品| 日韩中文字幕一区二区不卡| 99色视频在线观看| 日韩中文字幕在线播放| 国产一区二区精品久久91| 午夜久久网| 九九热国产视频| 国产不卡在线播放| 成人影院久久久久久影院| 天天色色网| 天天做人人爱夜夜爽2020| 欧美另类videosbestsex| 精品在线免费播放| 国产精品12| 久久国产精品永久免费网站| 国产成人精品一区二区视频| 欧美a级v片不卡在线观看| 青草国产在线| 日本在线www| 国产麻豆精品视频| 日韩一级黄色大片| 精品久久久久久中文| 九九久久99| 精品视频在线观看视频免费视频| 中文字幕Aⅴ资源网| 成人免费网站久久久| 国产综合91天堂亚洲国产| 91麻豆精品国产片在线观看| 欧美激情影院| 韩国三级香港三级日本三级la| 国产成人精品综合在线| 久久久成人网| 国产91视频网| 亚洲精品中文一区不卡 | 99久久精品国产高清一区二区 | 亚洲精品永久一区| 国产不卡在线看| 欧美激情一区二区三区视频 | 日本特黄特色aa大片免费| 日本在线不卡视频| 精品在线观看一区| 日韩中文字幕一区二区不卡| 国产一区二区精品久久91| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 中文字幕一区二区三区精彩视频| 国产视频在线免费观看| 久久99中文字幕久久| 91麻豆精品国产片在线观看| 超级乱淫黄漫画免费| 精品美女| 97视频免费在线| 免费国产一级特黄aa大片在线| 久草免费资源| 久久精品欧美一区二区| 99色视频在线| 免费国产在线观看| 精品视频免费看| 九九九国产| 精品美女| 美国一区二区三区| 四虎影视久久久| 欧美激情一区二区三区视频高清| 精品国产亚洲人成在线| 日韩免费片| 亚久久伊人精品青青草原2020| 亚洲精品永久一区| 日本伦理网站| 国产不卡在线播放| 欧美另类videosbestsex| 黄视频网站在线观看| 国产一区二区精品尤物| 日韩字幕在线| 欧美另类videosbestsex久久| 精品国产一区二区三区免费| 韩国三级视频网站| 日韩专区第一页| 精品久久久久久影院免费| 久久国产一区二区| 在线观看导航| 九九热国产视频| 黄视频网站在线观看| 国产91素人搭讪系列天堂| 黄视频网站在线观看| 国产91素人搭讪系列天堂| 免费国产在线视频| 国产一区二区精品| 欧美激情一区二区三区在线| 天堂网中文在线| 精品视频在线观看视频免费视频 | 成人高清免费| 欧美a级片免费看| 欧美另类videosbestsex久久| 99久久精品国产麻豆| 午夜久久网| 久久福利影视| 国产成人欧美一区二区三区的| 精品国产香蕉在线播出 | 夜夜操网| 一级女性全黄生活片免费| 韩国毛片| 日韩一级黄色大片| 精品久久久久久综合网| 一级片免费在线观看视频| 欧美夜夜骑 青草视频在线观看完整版 久久精品99无色码中文字幕 欧美日韩一区二区在线观看视频 欧美中文字幕在线视频 www.99精品 香蕉视频久久 | 成人免费福利片在线观看| 美国一区二区三区| 午夜激情视频在线播放| 精品美女| 欧美激情影院| 日日爽天天| 精品视频免费观看| 免费一级片在线| 久久精品店| 国产成人啪精品| 亚洲天堂在线播放| 九九九网站| 成人a大片在线观看| 国产极品白嫩美女在线观看看| 九九热精品免费观看| 精品视频在线看| 国产网站免费观看| 麻豆网站在线免费观看| 欧美激情一区二区三区视频 | 91麻豆精品国产自产在线| 亚洲精品中文一区不卡 | 99久久精品国产麻豆| 欧美激情一区二区三区视频| 国产视频一区在线| 你懂的在线观看视频| 日韩在线观看视频黄| 欧美18性精品| 日韩在线观看视频免费| 日本在线www| 欧美国产日韩在线| 91麻豆tv| 国产美女在线观看| 亚洲 国产精品 日韩| 色综合久久天天综线观看| 国产精品1024永久免费视频 | 久久精品免视看国产成人2021| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 青青久久精品| 国产一区二区精品尤物| 成人a级高清视频在线观看| 一级女性全黄久久生活片| a级毛片免费全部播放| 欧美a级成人淫片免费看| 精品视频一区二区| 国产精品1024永久免费视频 | 久久国产精品永久免费网站| 日韩一级黄色大片| 精品视频在线看 | 日韩在线观看免费完整版视频| 亚洲第一页乱| 午夜在线影院| 免费一级片在线| 亚洲 欧美 成人日韩| 韩国三级香港三级日本三级la| 日本免费乱人伦在线观看 | 日韩免费在线| 香蕉视频亚洲一级| 91麻豆精品国产自产在线观看一区 | 国产成人精品综合在线| 可以免费看毛片的网站| 精品视频在线观看一区二区| 午夜欧美成人香蕉剧场| 亚洲第一色在线| 久久精品店| 可以在线看黄的网站| 久久久久久久久综合影视网| 日本在线不卡视频| 日韩免费在线视频| 一级片片| 成人免费观看网欧美片| 好男人天堂网 久久精品国产这里是免费 国产精品成人一区二区 男人天堂网2021 男人的天堂在线观看 丁香六月综合激情 | 欧美激情一区二区三区在线| 久久国产精品自线拍免费| 国产精品免费久久| 久久久久久久久综合影视网| 色综合久久天天综合| 久久国产精品只做精品| 黄色免费三级| 成人影院一区二区三区| 成人av在线播放| 国产原创视频在线| 亚州视频一区二区| 沈樵在线观看福利| 黄视频网站免费| 国产伦久视频免费观看 视频|