更换语言:
Contact Us
Home  ›  CoOS › Examples

MP3 player solution's source code for Atmel ATSAM3U4E


Device:

Evaluation Board:

Complier:

Requirement:
  • 1. Copy some .wav and .mp3 files to an SD Card, then insert the SD Card into your target board;
  • 2. Connect an earphone to the HEADPHONE port in the board.

Tasks:
PlayWaveTask play the wave file
DecodeTask decode the MP3 file and play it
SDCardTask read music file (.wav or .mp3) from SD card, if it is a wave file, then switch to PlayTask and play it, otherwise switch to DecodeTask
ReadButtonTask read the key which user pressed, then switch to SDCardTask
TouchScreenTask read the status of touchscreen, and control the MP3 player
ProgbarTask display the progress bar and the time that the song have been played
GUITask initialize UCGUI and display the interface of MP3

Descriptions:
  • This MP3 could play both Wav and MP3 format's music. There is an MP3 user interface on LCD, users could select stop, play, pause, play the last song, play the next song and open the song selection interface by the touch screen. In addition, it still could display the play time, play progress and the lyrics of the song.

System Configuration:
Clock Settings:
  • XTAL   freq         = 12.00 MHz
  • SYSCLK freq       = 95428570 MHz
  • System Tick freq = 100Hz (10ms)

Download File
MP3 player solution's source code based on SAM3U4E

CooCox CoOS

© 2010 CooCox - Terms of Use         Business Model         Market             About us