| 전자부품 데이터시트 검색엔진 |
|
AN3997 데이터시트(PDF) 9 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3997 데이터시트(HTML) 9 Page - STMicroelectronics |
|
9 / 15 page ![]() 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. |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| 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 |