一種單片機(jī)語(yǔ)音錄入和播放系統(tǒng)設(shè)計(jì)英文文獻(xiàn)3 - 副本.doc_第1頁(yè)
一種單片機(jī)語(yǔ)音錄入和播放系統(tǒng)設(shè)計(jì)英文文獻(xiàn)3 - 副本.doc_第2頁(yè)
一種單片機(jī)語(yǔ)音錄入和播放系統(tǒng)設(shè)計(jì)英文文獻(xiàn)3 - 副本.doc_第3頁(yè)
一種單片機(jī)語(yǔ)音錄入和播放系統(tǒng)設(shè)計(jì)英文文獻(xiàn)3 - 副本.doc_第4頁(yè)
一種單片機(jī)語(yǔ)音錄入和播放系統(tǒng)設(shè)計(jì)英文文獻(xiàn)3 - 副本.doc_第5頁(yè)
已閱讀5頁(yè),還剩8頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

A single-chip voice input and playback systemApplication of SCM for Embedded System Experimental test of modern electronic technology is an important direction of development. To the system as development platform for voice processing technology can experiment, including voice recording and playback, voice compression coding and decoding, voice recognition and other content designed experiment. There are two general ways to design: one is the Microprocessor Design; the other is by means of specialized voice processing chips. SCM is often not achieve such a common complex process and algorithms, even if we manage to achieve a lot of peripheral devices also increases. Although specialized voice processing chips have more, but the specific function of voice processing chips relatively simple, other than in the application of speech is very difficult。1 IntroductionThrough the full use of processor features its own characteristics and development boards provide a wealth of peripheral circuits, constructed the corresponding test and tested system, integrated electronic technology to improve the analysis of experimental ability and practical ability of positive significance. Articles for voice input and playback system is proposed based on the application of experimental SPCE061A SCM solutions, hardware and software design based on the completed SPR4096 PDIUSBD12 chip external memory and external USB devices and expansion, and USB between SCM and SPR4096 communication, to achieve a system of voice input and playback functions.Sunplus Technology Company introduced a voice playback chip SPCE061A hardware conditions, software algorithms on Sunplus offers a large number of voice function library available, which makes the voice playback is very easy to implement. But SPCE061A-chip FLASH memory is only 32K, a large number of voice resources in the broadcast the needs of expanding memory. This paper discusses the use of Sunplus Technology, Inc. SPR4096 as external memory expansion, combined with SPCE061A Play voice. When we use SPR4096 Sunplus Education Center through the new ResWriter on SPR4096 reading and writing.SPCE061A is sunplus technology r&d and production of high performance to price ratio of a site, use it can be very convenient and flexible realization of voice recording system,the chip has 8 10-bit precision ADC, which transform the way for the audio channel, and built-in automatic gain circuit. This provides a convenient voice entry hardware conditions. Two 10-accuracy DAC, only need an external power amplifier (SPY0030A) to complete the voice of the play. Does not require specialized voice processing chip, to simplify circuit design and improve work efficiency is very effective. Also Sunplus 16 MCU with easy-efficient instruction set and integrated development environment. In this environment, support the standard C language, can achieve C language and assembly language Sunplus call each other and provide a voice record of the library function, as long as the understanding of the use of library function, you can easily complete voice recorders, which are software development provides convenient conditions.Features: 16 位 nSP microprocessor; Operating voltage: core operating voltage VDD is 3.0 3.6V (CPU), I / O port voltage VDDH to VDD 5.5V (I / O); CPU clock : 0.32MHz 49.152MHz; Built-2K words SRAM; Built-in 32K Flash ROM; programmable audio processing; crystal oscillator; system is in standby mode (the clock is stopped), power consumption is less than 2A 3.6V; 2 16-bit programmable timer / counter (automatically preset the initial count); 2 10-bit DAC (Digital - analog conversion) output channels; 32-bit general purpose programmable input / output port; 14 interrupt sources can be from the timer A / B, time base, two external clock source input, key wake-up; wake-up functions with the touch; use of audio coding SACM_S240 Sunplus way (2.4K bits / seconds), which can hold 210 seconds of voice data; oscillator phase-locked loop PLL system clock signal; 32768Hz Real Time Clock; 7-channel 10-bit voltage-mode - digital converter (ADC) and single-channel audio module - digital conversion device; sound module - digital converter input channels built-in microphone amplifier and automatic gain control (AGC) function; have a serial device interface; Low voltage reset (LVR) and low-voltage monitoring function (LVD) function; within Purchase Online Simulation board (ICE, In-Circuit Emulator) interfaces2 Structure and principle of the hardware systemSystem hardware includes: SPCE061A development board, SPR4096 memory modules, USBD12 module, EZ-Probe download cable, PC machine.System uses the offline mode of voice playback system. Voice recorders set by SPCE061A key to achieve the development board. At the same time, the system can realize the basic functions USB: USB devices through memory chips in the audio files uploaded to the PC machine, the software will convert the WAV files sound files and play them in the PC machine; USB devices can also be the PC, the audio files downloaded to the memory module by key select Play.Voice Input System institutions part of the speech acoustic signal through the microphone and amplifier into a certain range of the analog signal, and then transform the computer to store, handle the digital signal. Voice broadcast system is voice data stored in memory the order of removal, through the MCU for D / A converter output, after filtering through the capacitor, to restore the original audio waveform, by driving the speaker playback. System for speech signal processing is the discrete analog (continuous) number of element of the sound waveform (discrete), to facilitate digital computer for processing. The digital audio processing includes sampling and quantization of two parts. As the system uses own A / D, D / A circuits for analog signal and microcontroller SPCE061A conversion between digital signals, so the main work on the development of voice input and playback system program design, microprocessor and memory modules to connect and function and the MCU and USB module to achieve connectivity and functionality to achieve.System hardware consists of the following three components: (1) voice recorders circuit; (2) SPR4096 (memory) module; (3) PDIUSBD12 (USB) module.Audio circuit from the audio output and audio input of two parts. The experiment with the audio output circuit is built-in 2-way 10-bit precision DAC, only an external amplifier circuit to complete the voice of the play, the maximum output power up to 700 mW. Some have integrated audio input Audio input dedicated ADC and AGC amplifier, A / D converter with 8 channels, one of which is the MIC-IN input, it is dedicated to the voice signal is sampled.SPR4096 circuit in the main by the ResWriter on the programming circuit and SPR4096 SPR4096 working circuit. SPR module reserved for the two interfaces, an interface is the EZ-probe, which is in use ResWriter SPR4096/1024 to the programming tool used to connect the other 10PIN emission lines, mainly to provide power and connection with the use of SPCE061A . Support SPR4096 SPR module circuit and SPR1024, but only one chip at the same time use. SPR module has two basic configurations, one for the board plus SPR4096 chip, another chip for the board plus SPR1024, and when in use must be equipped with download cable to use.SPR4096 is Sunplus Technology R & D cost-effective production of high performance 512K * 8-bit FLASH memory, and built-in 4K * 8-bit SRAM. With BMI (Bus Memory Interface) interface SIO (Serial Interface) interfaces. SPR4096 offers two power supply VDDI and VDDQ. VDDI power supply range of 2.25V to 2.75V, is the internal FLASH and logic controller power. VDDQ power supply range of 2.25V to 3.6V, only the I / O port power supply. SPR4096 maximum operating frequency of 5.0MHz, the maximum read current is 2mA maximum erase, burn current of 6mA.Characteristics: 512K * 8 bit FLASH, 256 sectors, each sector can be repeated for the 2K-byte Can be repeated 20,000 times rewrit Under natural conditions, the data retained for 10 years 4K * 8-bit SRAM Power requirements : VDDI: 2.25V-2.75V VDDQ: 2.25V-3.6V Maximum operating frequency: 5.0MHz maximum erase, programming current: 6.0mA maximum read current: 2.0mASPR module Caution: use the 3.3V power supply module, be careful not to take anti-power; modules must meet the download cable to use; in the use ResWriter the programming tool SPR4096/SPR1024 chip modules when the need for SPR power supply; not at the same time SPR4096 SPR1024 to the programming with.ResWriter tool main function: SPR1024/4096 Flash Memory recorder: The PC printer port programming through Easy Probe SPR1024/4096, basic operations including Blank Check (blank check), Erase (delete data), Read (read data) , Program (burn, write data), Verify (check, check is written is correct); document integration: the number of small documents into one big document, as the burning of data Flash.In order to facilitate the use of data, time to burn data files to index, so that you can know when to use the data stored in the address which you can manipulate files.Voice resources, taking into account the actual storage usage, the index table includes four bytes of a specific code, integrated document the start address, end address, the total number of pre-integration, integration of each file before starting address end of the address. These items in order of priority. 4 bytes of a specific code for the SPRW (Sunplus Read Write) the ASCII code. The main function of a specific code is read from the chip, save the data back into the file, tool use ResWriter opened for testing. Code if the file exists in a particular note is the use of the data chip burning ResWriter tools, so files can be displayed correctly in ResWriter tool.USB module circuit functions: (1) W indows system configuration, enumeration of USB peripherals, SPCE061A send, receive relevant information on USB devices; (2) W indows system configuration, enumeration of USB peripherals is successful, the receiving to the ID, make the appropriate operation from the control action.3 System SoftwareSystem software modules from the voice recorders, SPR4096 reading and writing module, USB module operation and key operation module. Voice recorders program flow diagram shown in Figure 3. The program consists of two parts to achieve: (1) keyboard scanning processing. Mainly to solve the key operation detection according to what key. In the system, provides for the Key1 recording key 0x01, 0xx2 to Key2 stop button, 0x04 for the Key3 Play button. Access key is to determine what operators want to operate. If you press the Record button on the home state for the record; If you press the stop button, you judge the current state is the state to stop recording or playback mode stop; if you press the play button, it is set to playback mode. (2) (2) the current state judgments. Judgement in the keyboard scanning process based on the current state of response, this part of the need to consider the recording, playback and stop the three kinds of state. System through the keyboard scanning process to determine the current status, and on the recording, playback or stop the three kinds of state of real-time control. System programming process, development environment provided by unSP IDE debugger for software debugging.Based on IDE2 software engineering through the compile, link after the end of the output in the OutPut window information includes the works of the memory occupancy information, the simulation results to verify the correctness.4 ConclusionThrough the system operation, in SPCE061A development board basis, through three key K1, K2, K3, and completed by extending the SPR4096 module voice input and playback system to achieve, and realized through the USB module development board and SPCE061A PC, voice and data communications between the. Development of MCU-based voice input and playback system, involving systems analysis, SPCE061A MCU hardware structure, MCU programming language, USB device communication, audio compression algorithms, such as integrated test subjects, on the analog and digital integrated circuits and embedded with a microcontroller system design ability of positive significance.一種單片機(jī)語(yǔ)音錄入和播放系統(tǒng)設(shè)計(jì)應(yīng)用單片機(jī)進(jìn)行嵌入式系統(tǒng)實(shí)驗(yàn)是現(xiàn)代電子技術(shù)實(shí)驗(yàn)的一個(gè)重要發(fā)展方向。以該系統(tǒng)為開(kāi)發(fā)平臺(tái),可以進(jìn)行語(yǔ)音處理技術(shù)實(shí)驗(yàn),包括語(yǔ)音的錄制和播放、語(yǔ)音的壓縮編碼和解碼、語(yǔ)音的識(shí)別等設(shè)計(jì)型實(shí)驗(yàn)內(nèi)容。設(shè)計(jì)一般有兩個(gè)途徑:一種是單片機(jī)擴(kuò)展設(shè)計(jì);另一種是借助于專門的語(yǔ)音處理芯片。普通的單片機(jī)往往不能實(shí)現(xiàn)這么復(fù)雜的過(guò)程和算法,即使勉強(qiáng)實(shí)現(xiàn)也要加很多外圍器件。專門的語(yǔ)音處理芯片雖比較多,但是專門的語(yǔ)音處理芯片功能比較單一,在語(yǔ)音之外的其他方面應(yīng)用難度很大。1 引言 通過(guò)充分利用處理器本身的功能特點(diǎn)和開(kāi)發(fā)板所提供的豐富的外圍電路,構(gòu)造相應(yīng)的測(cè)試和被測(cè)系統(tǒng),對(duì)于提高電子技術(shù)綜合實(shí)驗(yàn)的分析能力和動(dòng)手能力具有積極意義。文章針對(duì)語(yǔ)音錄入和播放系統(tǒng),提出了基于SPCE061A單片機(jī)的應(yīng)用實(shí)驗(yàn)解決方案,在硬軟件設(shè)計(jì)的基礎(chǔ)上,完成了SPR4096外置存儲(chǔ)器和PDIUSBD12芯片外置USB設(shè)備的擴(kuò)展以及單片機(jī)與SPR4096和USB之間的通信,實(shí)現(xiàn)了系統(tǒng)的語(yǔ)音錄入和播放功能。凌陽(yáng)科技公司推出的SPCE061A芯片具有語(yǔ)音播放的硬件條件,在軟件算法上凌陽(yáng)科技公司提供了大量的語(yǔ)音函數(shù)庫(kù)可供使用,這使得語(yǔ)音播放很容易實(shí)現(xiàn)。但是SPCE061A片內(nèi)的FLASH存儲(chǔ)器只有32K,在播放大量語(yǔ)音資源時(shí)需要外擴(kuò)存儲(chǔ)器。本論文討論使用凌陽(yáng)科技公司的SPR4096作為外擴(kuò)存儲(chǔ)器,與SPCE061A結(jié)合播放語(yǔ)音。在使用SPR4096時(shí)我們通過(guò)凌陽(yáng)教育推廣中心新推出的ResWriter對(duì)SPR4096進(jìn)行讀寫操作。SPCE061A是凌陽(yáng)科技研發(fā)生產(chǎn)的性價(jià)比很高的一款十六位單片機(jī),使用它可以非常方便靈活的實(shí)現(xiàn)語(yǔ)音的錄放系統(tǒng),該芯片擁有8路10位精度的ADC,其中一路為音頻轉(zhuǎn)換通道,并且內(nèi)置有自動(dòng)增益電路。這為實(shí)現(xiàn)語(yǔ)音錄入提供了方便的硬件條件。兩路10精度的DAC,只需要外接功放(SPY0030A)即可完成語(yǔ)音的播放。不需要專門的語(yǔ)音處理芯片,對(duì)于簡(jiǎn)化電路設(shè)計(jì),提高工作效率十分有效。另外凌陽(yáng)十六位單片機(jī)具有易學(xué)易用的效率較高的一套指令系統(tǒng)和集成開(kāi)發(fā)環(huán)境。在此環(huán)境中,支持標(biāo)準(zhǔn)C語(yǔ)言,可以實(shí)現(xiàn)C語(yǔ)言與凌陽(yáng)匯編語(yǔ)言的互相調(diào)用,并且,提供了語(yǔ)音錄放的庫(kù)函數(shù),只要了解庫(kù)函數(shù)的使用,就會(huì)很容易完成語(yǔ)音錄放,這些都為軟件開(kāi)發(fā)提供了方便的條件.特性: 16位nSP微處理器; 工作電壓:內(nèi)核工作電壓VDD為3.03.6V(CPU),I/O口工作電壓VDDH為VDD5.5V(I/O); CPU時(shí)鐘:0.32MHz49.152MHz; 內(nèi)置2K字SRAM; 內(nèi)置32K閃存ROM; 可編程音頻處理; 晶體振蕩器; 系統(tǒng)處于備用狀態(tài)下(時(shí)鐘處于停止?fàn)顟B(tài)),耗電小于2A3.6V; 2個(gè)16位可編程定時(shí)器/計(jì)數(shù)器(可自動(dòng)預(yù)置初始計(jì)數(shù)值); 2個(gè)10位DAC(數(shù)-模轉(zhuǎn)換)輸出通道; 32位通用可編程輸入/輸出端口; 14個(gè)中斷源可來(lái)自定時(shí)器A / B,時(shí)基,2個(gè)外部時(shí)鐘源輸入,鍵喚醒; 具備觸鍵喚醒的功能; 使用凌陽(yáng)音頻編碼SACM_S240方式(2.4K位/秒),能容納210秒的語(yǔ)音數(shù)據(jù); 鎖相環(huán)PLL振蕩器提供系統(tǒng)時(shí)鐘信號(hào); 32768Hz實(shí)時(shí)時(shí)鐘; 7通道10位電壓模-數(shù)轉(zhuǎn)換器(ADC)和單通道聲音模-數(shù)轉(zhuǎn)換器; 聲音模-數(shù)轉(zhuǎn)換器輸入通道內(nèi)置麥克風(fēng)放大器和自動(dòng)增益控制(AGC)功能; 具備串行設(shè)備接口; 低電壓復(fù)位(LVR)功和低電壓監(jiān)測(cè)(LVD)功能; 內(nèi)置在線仿真板(ICE,In- Circuit Emulator)接口。2 硬件系統(tǒng)結(jié)構(gòu)與原理系統(tǒng)硬件包括: SPCE061A開(kāi)發(fā)板, SPR4096存儲(chǔ)器模組, USBD12模組, EZ-Probe下載線,PC機(jī)。系統(tǒng)采用脫機(jī)工作模式下的語(yǔ)音錄放系統(tǒng)。語(yǔ)音錄放通過(guò)SPCE061A開(kāi)發(fā)板上的設(shè)置按鍵實(shí)現(xiàn)。同時(shí),系統(tǒng)可以實(shí)現(xiàn)USB的基本功能:通過(guò)USB設(shè)備將存儲(chǔ)芯片中的語(yǔ)音文件上傳到PC機(jī)中,通過(guò)軟件將語(yǔ)音文件轉(zhuǎn)換成WAV文件,并在PC機(jī)中播放出來(lái);也可以通過(guò)USB設(shè)備將PC機(jī)中的語(yǔ)音文件下載到存儲(chǔ)器模組中,通過(guò)按鍵選擇播放。系統(tǒng)機(jī)構(gòu)中語(yǔ)音錄入部分是把語(yǔ)音聲波信號(hào)經(jīng)過(guò)話筒和放大器轉(zhuǎn)換成具有一定幅度的模擬電信號(hào),再轉(zhuǎn)換成計(jì)算機(jī)能夠存貯、處理的數(shù)字量信號(hào)。系統(tǒng)語(yǔ)音播放是將存儲(chǔ)器中存儲(chǔ)的語(yǔ)音數(shù)據(jù)順序取出,通過(guò)MCU進(jìn)行D/A轉(zhuǎn)換輸出,經(jīng)過(guò)電容濾波后,恢復(fù)原始語(yǔ)音波形,通過(guò)驅(qū)動(dòng)揚(yáng)聲器放音。系統(tǒng)中對(duì)于語(yǔ)音信號(hào)的離散處理是將模擬(連續(xù))的聲音波形數(shù)字元化(離散化),便于數(shù)字計(jì)算機(jī)進(jìn)行處理。而數(shù)字音頻的處理主要包括采樣和量化兩個(gè)部分。由于系統(tǒng)采用自帶A/D、D/A電路單片機(jī)SPCE061A實(shí)現(xiàn)模擬信號(hào)與數(shù)字信號(hào)之間的相互轉(zhuǎn)換,所以開(kāi)發(fā)的主要工作放在語(yǔ)音錄入和播放系統(tǒng)程序設(shè)計(jì)、單片機(jī)與存儲(chǔ)器模組連接和功能實(shí)現(xiàn)以及單片機(jī)與USB模組的連接和功能實(shí)現(xiàn)。系統(tǒng)的硬件電路由以下3部分組成:(1)語(yǔ)音錄放電路; (2) SPR4096(存儲(chǔ)器)模組; (3) PDIUSBD12(USB)模組。音頻電路由音頻輸出和音頻輸入兩部分組成。實(shí)驗(yàn)中采用的音頻輸出電路為內(nèi)置2路10位精度的DAC,只需要外接功放電路即可完成語(yǔ)音的播放,最大輸出功率可達(dá)700 mW。音頻輸入部分已經(jīng)集成了音頻輸入專用ADC以及AGC放大電路, A/D轉(zhuǎn)換器有8個(gè)通道,其中一個(gè)是MIC-IN輸入,它專門用于對(duì)語(yǔ)音信號(hào)進(jìn)行采樣。SPR4096模組電路主要由ResWriter對(duì)SPR4096燒寫電路和SPR4096的工作電路組成。SPR模組預(yù)留兩個(gè)接口,一個(gè)接口是EZ-probe,這是在使用ResWriter工具對(duì)SPR4096/1024進(jìn)行燒寫時(shí)連接使用的,另一個(gè)是10PIN的排線,主要提供電源以及與SPCE061A連接使用。SPR模組電路支持SPR4096和SPR1024,但只能同時(shí)對(duì)其中一種芯片進(jìn)行使用。SPR模組有兩種基本配置,一種為電路板加SPR4096芯片,另一種為電路板加SPR1024芯片,而且在使用時(shí)必須配備下載線使用。SPR4096是凌陽(yáng)科技公司研發(fā)生產(chǎn)的性價(jià)比很高的512K*8位的高性能FLASH存儲(chǔ)器,同時(shí)內(nèi)嵌4K*8位的SRAM。具有BMI(Bus Memory Interface)接口與SIO(Serial Interface)接口。SPR4096提供兩種電源供電VDDI與VDDQ。VDDI供

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論