簡易檢索 / 詳目顯示

研究生: 張國輝
Chang, Guo-Huei
論文名稱: 結合暫停開關電路和直接記憶體存取控制器之增強串列周邊介面匯流排通訊
Enhanced SPI Communication by Combining Pause-Switch Circuit and Direct Memory Access Controllers
指導教授: 周百祥
Chou, Pai H.
口試委員: 蔡明哲
Tsai, Ming-Jer
易志偉
Yi, Chih-Wei
學位類別: 碩士
Master
系所名稱: 電機資訊學院 - 資訊工程學系
Computer Science
論文出版年: 2011
畢業學年度: 99
語文別: 英文
論文頁數: 44
中文關鍵詞: 序列周邊介面暫停開關電路
外文關鍵詞: SPI, Pause-Switch Circuit
相關次數: 點閱:3下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 本論文擴展了在串列周邊介面(SPI)匯流排上被動裝置到被動裝置交易接合技術。交易接合技術可以完全重疊大量傳輸,而且效能幾乎增加了標準的串列周邊介面的一倍。雖然直接記憶體存取(DMA)控制器無法不透過記憶體實現從被動裝置到被動裝置的傳輸,但它可以減少微處理器控制串列周邊介面的費用。
    結合交易接合技術和直接記憶體的效能超過標準的串列周邊介面的五倍,它還降低能源消耗且不需要任何記憶體暫存資料。我們以最低的硬體和軟軟開銷描述了一個真正實作並且同時保留完全兼容現有的串列周邊介面設備。在實作上使用了複雜可程式邏輯裝置(CPLD),實作結果得知只需幾個邏輯單元即可,因此我們只需極少的成本即可集成到一個晶片上,如微處理器。我們介紹了實際世界的案例研究,其中包括12導聯心電圖系統,當使用的低端微控制器,該系統是非常需要的增強型串列周邊介面,否則就會有串列周邊介面效能的瓶頸。藉由使用低端微控制器,它可以達到省電和和節省成本的功效,而且使用我們的方法,串列周邊介面的效能是高於高端微控制器使用標準串列周邊介面的效能。實驗結果可以發現改善了450%的延遲和處理能力。藉由消除這個瓶頸,幾乎所有基於串列周邊介面的設計中,我們可以節省電能且同時滿足延遲和處理能力的要求。


    This thesis extends a transaction-splicing technique for slave-to-slave transfers on the Serial Peripheral Interface (SPI) bus. Transaction-splicing technique can completely overlap in the bulk transfer, thereby nearly doubling the performance of standard SPI bus transaction. Although direct memory access (DMA) controllers cannot perform slave-to-slave transfers without going through the memory, it can decrease the MCU overhead of SPI bus transactions.
    The combination of splicing transactions and involving DMA is more than quintuples the performance of standard SPI bus transaction. It also decreases energy consumption and does not need any memory to cache data. We describe a real implementation with minimal hardware and software overhead while retaining full compatibility with existing SPI devices. It is implemented with a dedicated CPLD, and it can be integrated into a chip such as a microcontroller with few minimal additional cost of only a few logic cells. We present real-world case studies including a 12-lead ECG system, which is sorely in need of enhanced SPI when implemented using low-end MCUs, which would otherwise have plenty of performance without the SPI bottleneck. By using low-end MCUs, it can enable power and cost savings, and the performance of SPI bus transactions with our work is higher than that of high-end MCUs. The evaluation can present about 450% improvement in latency and throughput. By eliminating this bottleneck in virtually all SPI-based designs, we are able to save power while meeting both latency and throughput requirements.

    Abstract i Contents i Acknowledgments vi 1 Introduction 1 1.1 Motivation . . . . . . . . . . . . . . . . . . . . 1 1.2 SPI Bus Transaction with DMA controllers . . . . 2 1.3 Transaction Splicing . . . . . . . . . . . . . . . 2 1.4 Contributions . . . . .. . . . . . . . . . . . . . 3 1.5 Organization . . . . . . . . . . . . . . . . . . . 3 2 Background 4 2.1 SPI . . . . . . . . . . . . . . . . . . . . . . . 4 2.2 Double-Transaction Problem . . . . . . . . . . . . 5 2.3 MCU Overhead . . . . . . . . . . . . . . . . . . . 5 3 Related Work 7 3.1 DMA, QSPI, and Multiple-SPI . . . . . . . . . . . 7 3.2 Enhanced SPI Bus Communication with PSC . . . .. . 8 3.3 I2C . . . . . .. . . . . . . . . . . . . . . . . . 9 4 Technical Approach 11 4.1 SPI Bus Transactions with DMA Controllers . . . . 11 4.2 Combining DMA with a PSC in SPI Transactions . . 12 4.3 SCK Generation by PSCs . . . . . . . . . . . . . . 13 4.4 Scalability of Switched SPI Bus . . . . . . . . . 14 5 Implementation 16 5.1 Dedicated CPLD . . . . . . . . . . . . . . . . . . 16 5.2 Combining DMA with PSCs . . . . . . . . . . . . . 19 5.3 Fully Embedded PSC . . . . . . . . . . . . . . . . 20 6 Case Study 22 6.1 Application: Wearable ECG . . . . . . . . . . . . 22 6.2 System Designs . . . . . . . . . . . . . . . . . . 24 7 Evaluation 29 7.1 Latency . . . .. . . . . . . . . . . . . . . . . . 29 7.2 Throughput . . . . . . . . . . . . . . . . . . . . 33 7.3 Energy Savings . . . . . . . . . . . . . . . . . . 36 7.4 Improvement by involving DMA . . . . . . . . . . . 38 8 Conclusions and Future Work 42 8.1 Conclusions . . . . . . . . . . . . . . . . . . . 42 8.2 Future Work . . . . . . . . . . . . . . . . . . . 43

    [1] ALTERA, INC. EPM240 lowest power, lowest cost CPLD family data sheet. http://www.altera.com/literature/hb/max2/max2_mii5v1.pdf, August 2009.
    [2] ASA, N. S. Nordic 2.4GHz RF System-on-Chip Microcontroller nRF24LE1 datasheet.http://www.nordicsemi.com/eng/content/download/2443/29442/file/nRF24LE1_Product_Specification_rev1_6.pdf, March 2009.
    [3] CHIEN-YING CHEN, YU-TING CHEN, YI-HSUAN TU, SHUN-YAO YANG, AND PAI H.CHOU. EcoSpire : An application development kit for an ultra-compact wireless sensing system. http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=5345851&tag=1,Oct , 2009.
    [4] CHINGIS TECHNOLOGY CORPORATION. Pm25LV512A/010A/020/040 SPI serial flash datasheet. http://www.chingistek.com/resource_center/docs/Pm25LV512A-010A-020-040%20v3.5.pdf, February 2009.
    [5] MAXIM. MAXIM +1.2v to +5.5v, 15kv ESD-protected, 0.1uA, 35Mbps, 8-channel level translators MAX3000E/MAX3001E/MAX3002-MAX3012. http://datasheets.maxim-ic.com/en/ds/MAX3000E-MAX3012.pdf, 2006.
    [6] MAXIM WEBSITE. MAX1377 MAX1379 MAX1383 dual, 12-bit, 1.25msps simultaneoussampling ADCs with serial interface data datasheet. http://datasheets.maxim-ic.com/en/ds/MAX1377-MAX1383.pdf.
    [7] NEWHAVEN DISPLAY INTERNATIONAL. NHD-C0216CZ-FSW-FBW-3V3 chip-on-glass LCD module data datasheet. http://www.swarthmore.edu/NatSci/echeeve1/Class/e15/DL/NHD-C0216CZ-FSW-FBW-3V3.pdf.
    [8] NORDIC SEMICONDUCTOR ASA. Single chip 2.4GHz transceiver nRF24L01 product specification. http://www.nordicsemi.com/files/Product/data_sheet/nRF24L01_Product_Specification_v2_0.pdf, September 2006.
    [9] PAN, L. Enhanced spi bus communication with pause-switch circuit. Master’s thesis, University of California, Irvine, 2008.
    [10] SD ASSOCIATION. Secure Digital Input/Output (SDIO) card specification. http://www.sandisk.com/Assets/File/OEM/Manuals/SD_SDIO_specsv1.pdf, October 2001.
    [11] TEXAS INSTRUMENTS. CC2420 ZigBee RF transceiver data datasheet. http://www-mtl.mit.edu/Courses/6.111/labkit/datasheets/CC2420.pdf.
    [12] TEXAS INSTRUMENTS. 24-bit analog front-end for biopotential measurements ADS1298 data sheet. http://focus.ti.com/lit/ds/symlink/ads1298.pdf, February 2011.
    [13] TEXAS INSTRUMENTS. CC2520 2.4-GHz Bluetooth low enrergy system-on-chip. http://focus.ti.com/lit/ds/symlink/cc2540.pdf, May , 2011.

    無法下載圖示 全文公開日期 本全文未授權公開 (校內網路)
    全文公開日期 本全文未授權公開 (校外網路)

    QR CODE