已閱讀5頁,還剩8頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
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.一種單片機語音錄入和播放系統(tǒng)設(shè)計應(yīng)用單片機進(jìn)行嵌入式系統(tǒng)實驗是現(xiàn)代電子技術(shù)實驗的一個重要發(fā)展方向。以該系統(tǒng)為開發(fā)平臺,可以進(jìn)行語音處理技術(shù)實驗,包括語音的錄制和播放、語音的壓縮編碼和解碼、語音的識別等設(shè)計型實驗內(nèi)容。設(shè)計一般有兩個途徑:一種是單片機擴展設(shè)計;另一種是借助于專門的語音處理芯片。普通的單片機往往不能實現(xiàn)這么復(fù)雜的過程和算法,即使勉強實現(xiàn)也要加很多外圍器件。專門的語音處理芯片雖比較多,但是專門的語音處理芯片功能比較單一,在語音之外的其他方面應(yīng)用難度很大。1 引言 通過充分利用處理器本身的功能特點和開發(fā)板所提供的豐富的外圍電路,構(gòu)造相應(yīng)的測試和被測系統(tǒng),對于提高電子技術(shù)綜合實驗的分析能力和動手能力具有積極意義。文章針對語音錄入和播放系統(tǒng),提出了基于SPCE061A單片機的應(yīng)用實驗解決方案,在硬軟件設(shè)計的基礎(chǔ)上,完成了SPR4096外置存儲器和PDIUSBD12芯片外置USB設(shè)備的擴展以及單片機與SPR4096和USB之間的通信,實現(xiàn)了系統(tǒng)的語音錄入和播放功能。凌陽科技公司推出的SPCE061A芯片具有語音播放的硬件條件,在軟件算法上凌陽科技公司提供了大量的語音函數(shù)庫可供使用,這使得語音播放很容易實現(xiàn)。但是SPCE061A片內(nèi)的FLASH存儲器只有32K,在播放大量語音資源時需要外擴存儲器。本論文討論使用凌陽科技公司的SPR4096作為外擴存儲器,與SPCE061A結(jié)合播放語音。在使用SPR4096時我們通過凌陽教育推廣中心新推出的ResWriter對SPR4096進(jìn)行讀寫操作。SPCE061A是凌陽科技研發(fā)生產(chǎn)的性價比很高的一款十六位單片機,使用它可以非常方便靈活的實現(xiàn)語音的錄放系統(tǒng),該芯片擁有8路10位精度的ADC,其中一路為音頻轉(zhuǎn)換通道,并且內(nèi)置有自動增益電路。這為實現(xiàn)語音錄入提供了方便的硬件條件。兩路10精度的DAC,只需要外接功放(SPY0030A)即可完成語音的播放。不需要專門的語音處理芯片,對于簡化電路設(shè)計,提高工作效率十分有效。另外凌陽十六位單片機具有易學(xué)易用的效率較高的一套指令系統(tǒng)和集成開發(fā)環(huán)境。在此環(huán)境中,支持標(biāo)準(zhǔn)C語言,可以實現(xiàn)C語言與凌陽匯編語言的互相調(diào)用,并且,提供了語音錄放的庫函數(shù),只要了解庫函數(shù)的使用,就會很容易完成語音錄放,這些都為軟件開發(fā)提供了方便的條件.特性: 16位nSP微處理器; 工作電壓:內(nèi)核工作電壓VDD為3.03.6V(CPU),I/O口工作電壓VDDH為VDD5.5V(I/O); CPU時鐘:0.32MHz49.152MHz; 內(nèi)置2K字SRAM; 內(nèi)置32K閃存ROM; 可編程音頻處理; 晶體振蕩器; 系統(tǒng)處于備用狀態(tài)下(時鐘處于停止?fàn)顟B(tài)),耗電小于2A3.6V; 2個16位可編程定時器/計數(shù)器(可自動預(yù)置初始計數(shù)值); 2個10位DAC(數(shù)-模轉(zhuǎn)換)輸出通道; 32位通用可編程輸入/輸出端口; 14個中斷源可來自定時器A / B,時基,2個外部時鐘源輸入,鍵喚醒; 具備觸鍵喚醒的功能; 使用凌陽音頻編碼SACM_S240方式(2.4K位/秒),能容納210秒的語音數(shù)據(jù); 鎖相環(huán)PLL振蕩器提供系統(tǒng)時鐘信號; 32768Hz實時時鐘; 7通道10位電壓模-數(shù)轉(zhuǎn)換器(ADC)和單通道聲音模-數(shù)轉(zhuǎn)換器; 聲音模-數(shù)轉(zhuǎn)換器輸入通道內(nèi)置麥克風(fēng)放大器和自動增益控制(AGC)功能; 具備串行設(shè)備接口; 低電壓復(fù)位(LVR)功和低電壓監(jiān)測(LVD)功能; 內(nèi)置在線仿真板(ICE,In- Circuit Emulator)接口。2 硬件系統(tǒng)結(jié)構(gòu)與原理系統(tǒng)硬件包括: SPCE061A開發(fā)板, SPR4096存儲器模組, USBD12模組, EZ-Probe下載線,PC機。系統(tǒng)采用脫機工作模式下的語音錄放系統(tǒng)。語音錄放通過SPCE061A開發(fā)板上的設(shè)置按鍵實現(xiàn)。同時,系統(tǒng)可以實現(xiàn)USB的基本功能:通過USB設(shè)備將存儲芯片中的語音文件上傳到PC機中,通過軟件將語音文件轉(zhuǎn)換成WAV文件,并在PC機中播放出來;也可以通過USB設(shè)備將PC機中的語音文件下載到存儲器模組中,通過按鍵選擇播放。系統(tǒng)機構(gòu)中語音錄入部分是把語音聲波信號經(jīng)過話筒和放大器轉(zhuǎn)換成具有一定幅度的模擬電信號,再轉(zhuǎn)換成計算機能夠存貯、處理的數(shù)字量信號。系統(tǒng)語音播放是將存儲器中存儲的語音數(shù)據(jù)順序取出,通過MCU進(jìn)行D/A轉(zhuǎn)換輸出,經(jīng)過電容濾波后,恢復(fù)原始語音波形,通過驅(qū)動揚聲器放音。系統(tǒng)中對于語音信號的離散處理是將模擬(連續(xù))的聲音波形數(shù)字元化(離散化),便于數(shù)字計算機進(jìn)行處理。而數(shù)字音頻的處理主要包括采樣和量化兩個部分。由于系統(tǒng)采用自帶A/D、D/A電路單片機SPCE061A實現(xiàn)模擬信號與數(shù)字信號之間的相互轉(zhuǎn)換,所以開發(fā)的主要工作放在語音錄入和播放系統(tǒng)程序設(shè)計、單片機與存儲器模組連接和功能實現(xiàn)以及單片機與USB模組的連接和功能實現(xiàn)。系統(tǒng)的硬件電路由以下3部分組成:(1)語音錄放電路; (2) SPR4096(存儲器)模組; (3) PDIUSBD12(USB)模組。音頻電路由音頻輸出和音頻輸入兩部分組成。實驗中采用的音頻輸出電路為內(nèi)置2路10位精度的DAC,只需要外接功放電路即可完成語音的播放,最大輸出功率可達(dá)700 mW。音頻輸入部分已經(jīng)集成了音頻輸入專用ADC以及AGC放大電路, A/D轉(zhuǎn)換器有8個通道,其中一個是MIC-IN輸入,它專門用于對語音信號進(jìn)行采樣。SPR4096模組電路主要由ResWriter對SPR4096燒寫電路和SPR4096的工作電路組成。SPR模組預(yù)留兩個接口,一個接口是EZ-probe,這是在使用ResWriter工具對SPR4096/1024進(jìn)行燒寫時連接使用的,另一個是10PIN的排線,主要提供電源以及與SPCE061A連接使用。SPR模組電路支持SPR4096和SPR1024,但只能同時對其中一種芯片進(jìn)行使用。SPR模組有兩種基本配置,一種為電路板加SPR4096芯片,另一種為電路板加SPR1024芯片,而且在使用時必須配備下載線使用。SPR4096是凌陽科技公司研發(fā)生產(chǎn)的性價比很高的512K*8位的高性能FLASH存儲器,同時內(nèi)嵌4K*8位的SRAM。具有BMI(Bus Memory Interface)接口與SIO(Serial Interface)接口。SPR4096提供兩種電源供電VDDI與VDDQ。VDDI供
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 第五單元 晚晴時期的內(nèi)憂外患與救亡圖存 單元測試(含解析)-2024-2025學(xué)年高中歷史統(tǒng)編版(2019)必修中外歷史綱要上冊
- 《折臂式秸稈還田機》編制說明
- “兩學(xué)一做”特別節(jié)目《榜樣》觀后感
- 黨章黨規(guī)知識競賽題庫
- 構(gòu)筑美滿人生-中國人壽保險公司全新健康保障課件:新康寧系列產(chǎn)品介紹
- 《中國人壽保險公司健康險產(chǎn)品培訓(xùn)課程模板課件-康寧守護(hù)重大疾病保障計劃》
- 2025廣告演員合同范文
- 2025年度知識產(chǎn)權(quán)授權(quán)使用合同3篇
- 2025自動離職解除勞動合同協(xié)議書
- 2025燕晗大廈挖孔樁勞務(wù)合同
- 機械年終考核述職報告
- 2024年實驗室保密協(xié)議
- 頌缽療愈師培訓(xùn)
- 財經(jīng)素養(yǎng)知識考試題及答案
- 2024年云南大理州鶴慶縣農(nóng)業(yè)農(nóng)村局招聘農(nóng)技人員6人歷年高頻500題難、易錯點模擬試題附帶答案詳解
- -長峰醫(yī)院火災(zāi)事故教育
- 《經(jīng)濟法基礎(chǔ)》全套教學(xué)課件
- 2024年618調(diào)味品銷售數(shù)據(jù)解讀報告-星圖數(shù)據(jù)x味動中國組委會-202406
- 雙方結(jié)清賠償協(xié)議書
- 2024年河北省中考物理試卷附答案
- 安徽省安慶四中學(xué)2024年中考猜題數(shù)學(xué)試卷含解析
評論
0/150
提交評論