Download Simple AV System Board User Manual
Transcript
AN706-00040-2v0-E USB-MSC device connection/ disconnection judgement Timer interrupt(ch.2)(1ms) Was media disconnected? Media files select.jpg picture1.jpg picture2.jpg picture3.jpg picture4.jpg picture5.jpg No Switch detection module Yes JPEG file Stop MP3 play Play/Stop switch Close MP3 file Switch chattering processing Selection previous switch Selection next switch End file system music1.mp3 Change to initialization state music2.mp3 music3.mp3 music4.mp3 music5.mp3 Switch state Swith press detection Was the Play/Stop switch pressed? No Timer interrupt(ch.2)(1ms) Yes Touch panel control driver module Stop MP3 play Close MP3 file Area 1 Area 2 Area 3 Read all JPEG files and display images for selection on LCD Area 4 Area 5 Area 6 Change to audio data playback stop state Area 7 Area 8 Area 9 Touch panel state Touch panel detection Was touch of touch panel detected? No Yes No Stop MP3 play Close MP3 file Are there enough empty area in the input buffer? Yes Read all JPEG files and display images for selection on LCD Read MP3 data from media and copy in the input buffer Change to audio data playback stop state One frame of the data in the input buffer is decoded, then store it to the RAW buffer DMA interrupt(ch.2) Sampling data output module PCM data I2S output No Was one frame decoded successful? Output buffer Yes Up-sample the RAW buffer data and copy it to the output buffer PCM data Figure 49 Application Operation Flow (Audio Playback Status, Case of MP3) 68