数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN3997 数据表(PDF) 9 Page - STMicroelectronics

部件名 AN3997
功能描述  Audio playback and recording using the STM32F4DISCOVERY
PDF  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3997 数据表(HTML) 9 Page - STMicroelectronics

Back Button AN3997 Datasheet HTML 5Page - STMicroelectronics AN3997 Datasheet HTML 6Page - STMicroelectronics AN3997 Datasheet HTML 7Page - STMicroelectronics AN3997 Datasheet HTML 8Page - STMicroelectronics AN3997 Datasheet HTML 9Page - STMicroelectronics AN3997 Datasheet HTML 10Page - STMicroelectronics AN3997 Datasheet HTML 11Page - STMicroelectronics AN3997 Datasheet HTML 12Page - STMicroelectronics AN3997 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 15 page
background image
AN3997
Application overview
Doc ID 022390 Rev 1
9/15
This application reads all wave files from the USB Key and displays only the .WAV files that
have the following format:
●
Audio format: PCM (an uncompressed wave data format in which each value
represents the amplitude of the signal at the time of sampling)
●
Sample rate: such 8000, 11025, 16000, 22050, 44100 Hz or 48000 Hz.
●
Bits per sample: 16 bits (audio sample data values are in the range [0-1024])
●
Number of channels: 2 (stereo)
The wave from the USB Key is parsed to detect the sample rate in order to configure the
I2S accordingly. When the play back begins the blue LED starts toggling.
The playback is managed with double buffering. A first buffer is used to store the wave data
retrieved from the USB Key, using the FatFs file system.
Once this buffer is filled:
●
The DMA sends its content to the I2S peripheral which transfers it to the external audio
codec DAC
●
The data from the USB key is stored in a second buffer
Then these two buffers are swapped indefinitely, till end of the playback process.
At any time, if the USB Key is disconnected from the DISCOVERY board, the blue LED is
off, the audio DAC is stopped and red LED goes on.
When the USB Key is reconnected again to the DISCOVERY board, the red LED goes off
and the last running application starts again.
2.3.2
Playback from internal Flash
In this demonstration, the wave file is stored in the internal Flash as a const array declared
in the audio_sample.c file.
After a reset, the playback application starts playing the wave stored in the internal Flash
after initializing the Audio DAC.
2.4
Audio record application
The flowchart in Figure 5 describes the recording application. It is based on a MEMS
microphone. Audio record is available only when USB key is selected as mass storage
media.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com