User Manual

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