簡易檢索 / 詳目顯示

研究生: 張世昌
Shih-Chang Chang
論文名稱: 嵌入式系統之多聲道WAVE檔音源輸出研究與實現
Design and Implementation of Multi-Channel WAVE-Format Audio Output in an Embedded System
指導教授: 林昌鴻
Chang-Hong Lin
口試委員: 陳維美
Wei-Mei Chen
沈中安
Chung-An Shen
林其誼
Chi-Yi Lin
學位類別: 碩士
Master
系所名稱: 電資學院 - 電子工程系
Department of Electronic and Computer Engineering
論文出版年: 2015
畢業學年度: 103
語文別: 中文
論文頁數: 102
中文關鍵詞: WAVE檔嵌入式系統音源輸出多聲道5.1聲道
外文關鍵詞: WAVE file, audio output, I2S, 5.1 channel
相關次數: 點閱:173下載:2
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 現今數位資訊時代,隨著科技產業不斷推陳出新,人類對多媒體影音的需求也越來越重視。其中聲音訊號是最基本及原始溝通與訊息傳遞的媒介之一,也是人類彼此最重要的溝通橋樑。而如有身(聲)歷其境的環境則更能讓人們更清楚感受到訊息與資訊的真實性。
    本論文將透過目前市場上主流的ARM Cortex-M微控器,來解析5.1多聲道WAVE檔資料格式,並透過此嵌入式系統讀取出多聲道之脈衝編碼調變(PCM)資料,隨後透過I2S介面傳輸至後端DAC解碼輸出。在多聲道資料處理上利用軟體演算法將各聲道資料重組後輸出,因為錯誤的聲道資料輸出將導致聲音失真不連續。本文將逐步解析多聲道WAVE檔的資料並正確的將PCM資料輸出至每一聲道。


    As the innovations in the technology industry keep on growing, the demands of multimedia in everyday life increase tremendously in the digital information era. Among them, the audio signal is a basic and native interface for communication and information delivery, as well as an important message exchange channel to human beings. An immersive sound environment can help people feel more clearly about the authenticity of the message and information.
    In this thesis, the ARM Cortex-M micro-processor, which is a popular platform in embedded system, is used to implement a multi-channel WAVE-format audio output system. The purpose of this study is to analyze the 5.1 multi-channel audio data format and generate PCM data output to back-end DAC through the I2S (Inter-IC Sound) interface. A software algorithm is needed to reallocate multi-channel data to the output because wrong data output will cause the audio distortion and intermittent signals. In this thesis, a systematic way of how to correctly parse the multi-channel WAVE file format is presented.

    摘要 ............................................................ i Abstract ........................................................ii 誌謝 ...........................................................iii 目錄 ............................................................iv 圖目錄 ..........................................................vi 表目錄 ........................................................ viii 第一章 導論 ..................................................... 1 1.1 前言 ....................................................... 1 1.2 研究動機 ................................................... 1 1.3 論文實現與貢獻 ............................................. 2 1.4 論文架構 ................................................... 2 第二章 各類音訊檔格式介紹 ........................................ 3 2.1 音頻數位化 ................................................. 3 2.2 各類音訊檔格式 ............................................. 4 2.3 音訊壓縮無損格式............................................10 2.4 壓縮有損格式 ...............................................11 2.3 WAVE 檔格式介紹.............................................14 2.3.1 RIFF 資源交換檔案標準介紹 ...............................14 2.4 WAVE 檔各組塊(Chunk)介紹 ....................................15 2.4.1 Format Chunk – “fmt”組塊介紹 .........................16 2.4.2 Data Chunk – “data”組塊介紹 ..........................22 2.4.3 Fact Chunk – “fact”組塊介紹 ..........................23 2.4.4 Silent Chunk – “slnt”組塊介紹 ........................23 2.4.5 Cue Chunk – “cue”組塊介紹 ............................24 2.4.6 Playlist Chunk – "plst"組塊介紹 ........................26 2.4.7 Associated Data List Chunk – “list”組塊介紹 ...........27 2.4.8 Label Chunk – “labl”組塊介紹 .........................28 2.4.9 Note Chunk - "note"組塊介紹 .............................29 2.4.10 Labeled Text Chunk - "ltxt"組塊介紹 ....................30 第三章 STM32F411-Discovery 開發板功能介紹 .........................33 3.1 STM32F411 主晶片功能 .......................................33 3.2 DMA 功能介紹 ...............................................34 3.2.1 DMA 特性................................................34 3.2.2 DMA 傳輸種類 ............................................38 3.2.3 DMA FIFO ...............................................41 3.2.4 DMA Double buffer 模式 ..................................42 3.3 I2S 傳輸介面介紹 ............................................43 3.4 STM32F411 嵌入式軟件介紹 ...................................46 第四章 多聲道音源輸出周邊裝置功能控制與介紹 .......................50 4.1 LCD module 控制介紹 ........................................50 4.2 6 通道DAC CS4361 介紹 .......................................58 第五章 多聲道音源輸出實現 ........................................65 5.1 硬體系統方塊圖與功能介紹 ...................................65 5.2 軟體規劃流程 ...............................................69 5.3 多聲道WAVE 檔輸出量測驗證 ..................................72 5.4 開發板實驗結果 .............................................83 第六章 結論 .....................................................94 參考資料及文獻 ...................................................95 附錄 ............................................................97

    [1] FileInfo, “Audio File Types” , 2014. [On line]. Available:
    http://fileinfo.com/filetypes/audio.
    [2] “Format Descriptions for Sound” , Library of Congress, [On Line].
    Available: http://www.digitalpreservation.gov/formats/fdd/sound_fdd.shtml.
    [3] “Creating Content for iPod + iTunes” , Apple Education , Apple Co.,2007.
    [4] Andreas Spanias, Ted Painter and Venkatraman Atti, “Audio signal
    processing and coding” , John Wiley & Sons, Inc., Publication, 2007.
    [5] 蕭鈞庭, “以Linux 為核心的MP3 音樂隨選播放系統實作 The
    Implementation of Linux-based MP3 Music-On-Demand system” , 國立中
    山大學資訊工程學系, 碩士論文, 2004.
    [6] 沙宇杰, “MPEG-2 AAC 編碼器的SoC 設計 An SoC Design of MPEG-2
    AAC Encoder” , 國立中央大學電機工程學系碩士論文, 2011.
    [7] 張芷燕, “MP3 編碼法之研究與實現 Research and Implementation of MP3
    Encoding Algorithm” , 國立交通大學電機與控制工程系, 碩士論文, 2002.
    [8] J.-H. Chen and J. Thyssen, “The Broadvoice Speech Coding Algorithm” ,
    in IEEE, Acoustics, Speech and Signal Processing, 2007. ICASSP 2007.
    IEEE International Conference, Irvine, California, USA, 2007.
    [9] J.-H. Chen, “Novel Codec Structures For Noise Feedback Coding Of
    Speech” , in Acoustics, Speech and Signal Processing, 2006. ICASSP
    2006 Proceedings. 2006 IEEE International Conference, Broadcom
    Corporation, Irvine, California, USA, 2006 .
    [10] “Multimedia Programming Interface and Data Specifications 1.0” , Issued
    as a joint design by IBM Corporation and Microsoft Corporation, 1991.
    [11] “New Multimedia Data Types and Data Techniques ,Revision 3.0” ,
    Microsoft, 1994.
    [12] Rieck, T. Höss and T. Rieck, “WAV-Audio-Format” , 2000. [On Line].
    Available: https://web.archive.org/web/20101207002408/http://www.it.fhtesslingen.
    de/~schmidt/vorlesungen/mm/seminar/ss00/HTML/node107.ht
    ml.
    [13] P. Kabal, “Audio File Format Specifications” , McGill University, 2015.
    [On Line]. Available: http://wwwmmsp.
    ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html.
    [14] “Multiple channel audio data and WAVE files” , Microsoft Co., 2007.
    [15] DM00115249, “STM32F411xC STM32F411xE Data sheet” ,
    STMicroelectronics, 2014.
    [16] RM0383, “Reference manual STM32F411xC/E advanced ARM®-based
    32-bit MCUs Rev.1” , STMicroelectronics, 2014.
    [17] AN4031, “Using the STM32F2 and STM32F4 DMA controller” ,
    STMicroelectronics, 2014.
    [18] “I2S bus specification” , NXP (Philips semiconductors) Co., Feb. 1996.
    [19] UM1021, “STM32F105xx, STM32F107xx, STM32F2xx and STM32F4xx
    USB On-The-Go host and device library” , STMicroelectronics, 2012.
    [20] “Microsoft FAT Specification” , Microsoft Co. , August 30 2005
    [21] UM1721, “Developing Applications on STM32Cube with FatFs” ,
    STMicroelectronics, 2014.
    [22] “Specifications for LCD Module AC-162B” , AMPIRE Co., LTD., 2000.
    [23] 張義和, “例說89S51-C 語言(第三版)” , 新文京, 2010.
    [24] Data sheet, “CS4361 6-Channel D/A Converter” , Cirrus Logic, 2011.
    [25] AN3997, “Audio playback and recording using the STM32F4DISCOVER“,
    STMicroelectronics, 2011.

    QR CODE