Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Voice Flash

Voice Flash

Ratings: (0)|Views: 6 |Likes:
Published by Ravi Teja

More info:

Published by: Ravi Teja on Aug 17, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

08/17/2011

pdf

text

original

 
Application Report 
SLAA123 – January 2001
1
Solid State Voice Recorder Using Flash MSP430 
Murugavel RajuMixed Signal Controller
ABSTRACT
The promise of cost-effective re-programmable MSP430 MCU systems has recently cometo fruition with the integration of In-System Programmable (ISP) flash memory. Firmwaredelivered just in time during manufacturing, updateable code in field-deployed systems,and the elimination of discrete EEPROMs are now design realities. This application reportdemonstrates the flexibility of in-system programmable flash by implementing a solid statevoice recorder. Not only does the MSP430 convert the analog voice pattern to digital withthe integrated analog-to-digital converter, but also the voice data is stored real-time in theMCU Flash memory and played back. This application demonstrates the ability to use thesame memory array for both program execution and dynamic data storage.
Contents1 Introduction....................................................................................................................................12 Hardware........................................................................................................................................2
2.1System Overview......................................................................................................................22.2Analog Hardware......................................................................................................................32.3Digital Hardware........................................................................................................................5
3 Software.........................................................................................................................................64 Code F149 Voice Demo.s43 ..........................................................................................................7References..........................................................................................................................................12FiguresFigure 1. Block Diagram..................................................................................................................2Figure 2. Microphone Pre-amplifier and Filter...............................................................................3Figure 3. Serial DAC and Filter.......................................................................................................4Figure 4. Audio Power Amplifier.....................................................................................................5Figure 5. MSP430F149 Schematic..................................................................................................5
1 Introduction
The introduction of the flash MSP430 microcontrollers has opened up flexibility in today’smicrocontroller application designs. The in-system programmability of the flash and retentiontime of data in flash for tens of years makes the device ideally suited for these applications. Thisapplication is designed using the MSP430F149, the member of the 1xx family of MSP430 flashmicrocontrollers. This device was chosen as it has 60K bytes of flash memory to hold up to 10seconds of speech and integrated 12-bit A/D converter to digitize the analog voice signal.This application demonstrates the following:
 In-system erasing and programming of flash memory in flash MSP430
 
SLAA123 
2
Solid State Voice Recorder Using Flash MSP430 
 Real-time Flash programming in MSP430
 Running the MSP430x13x / 14x using XT2 HF XTAL
 Using the integrated A/D converter ADC12 in real-time data conversion
 Interfacing TI data converter TLV5616 with MSP430
 Application of TI opamp TLV2252 and power amplifier TPA721 in MSP430 mixed signalcircuits
 MSP430 mixed-signal operation with 3-V battery
2 Hardware
2.1 System Overview
Figure 1. Block Diagram
Figure 1 shows the block diagram of the application setup. The analog and digital blocks aremarked accordingly. Arrowheads show the signal path from the microphone to the speaker. Theperipherals used actively in this application are shown internal to the MSP430F149 block. Noticethe integrated 12-bit analog to digital converter ADC12. The analog multiplexer integrated in theMSP430F149 allows 8 channels of analog data to be input to the ADC12. In this application onlyone channel ‘A0’ is used as analog input. The pre-amplified and filtered analog voice signal isdirectly input to the analog input ‘A0’ of the MSP430. During record, only the first two blocks areactive and during playback the last two blocks are the active blocks. During playback the storedvoice signal data is sent to the serial DAC via the MSP430 USART SPI. The active filter filtersthe edges from the digital to analog converter output. This filtered signal is then amplified by theamplifier section and drives a speaker to play back the stored voice information.
MicrophonePre-amp&FilterMSP430F149
CPUSPIFlashRAMTimBADC12
SerialDACActiveFilterAmplifierSpeaker
Mux
AnalogDigitalAnalog
 
SLAA123 
Solid State Voice Recorder Using Flash MSP430 
3
2.2 Analog Hardware
Figure 2. Microphone Pre-amplifier and Filter
Figure 2 shows the microphone pre-amplifier and the filter circuit. The condenser microphonepicks up the voice and converts it into an analog signal. The analog voice signal is then amplifiedby a TI opamp TLV2252. Reference [3] is the datasheet for this device. The TLV2252 is a low-voltage and low-power dual opamp, one of which is used for microphone signal amplification andthe other in an active low-pass filter circuit associated with the DAC. The TLV2252 is chosenbecause of its capability to operate at 3 Volts with a low operating current. The amplified analogsignal is bandwidth limited to the required voice spectrum before it is input to the integrated A/Dconverter of the MSP430F149. A simple RC filter at the output does the bandwidth limiting with acutoff frequency approximately 2.7 KHz. The capacitor C4 across the feedback path alsoprovides some high frequency roll-off. Technically this filter is the antialiasing filter and isrequired to avoid frequency aliasing of the input signal after sampling. Bandwidth limiting to 2.7KHz is essential to satisfy the Nyquist requirement as a sampling frequency of 5.5 KHz is usedin this application. The sampling frequency of 5.5 KHz is chosen as a tradeoff between voicequality and maximum duration of voice that can be stored in the flash memory. With the abovevalues, approximately six seconds of speech can be stored in the flash. The digitized 12-bitvoice data is directly stored in the flash without any compression. Compressing the voice datausing A-law or
µ
-law to 8-bits doubles the storage time to 12 seconds.
R5 56KR21K1C14.7
µ
fC24.7
µ
fR318KR418KR6 18KC35.6nFTo A0 ChannelOf ADC12Pin 59 Of F149AV
CC
AV
CC
-+IC1aElectret MICTLV2252AV
CC
R11K1C4470pF
++

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->