Project Name: µCOS-II Blackfin MediaPlayer_BF548.dpj Description: ADSP-BF527 Ez-Kit and µCOS-II Media Player demo Platform: ADSP-ADSPBF527 EZKit Lite Evaluation Board Project Type: ============= ADSP-BF527 [X] ADSP-BF533 [ ] ADSP-BF537 [ ] ADSP-BF548 [ ] ADSP-BF561 [ ] Hardware/Tools Used: ==================== ADSP-BF527 EZ-Kit Lite Rev 1.5 Analog Devices VisualDSP++ 5.0 Update 3 ADDS HPUSB-ICE µCOS-II Version: v2.85 System Services Components Used: ================================ DMA Manager [X] Deferred Callback Manager [ ] Interrupt Manager [X] Timer Module [ ] Power Management Module [X] Flag Module [X] External Bus Interface Unit Module [X] Port Module [X] File System Service [X] Overview: ========= This application demonstrates OS µCOS-II configuration and use of BF527 Ez-Kit for Media Player type projects. The application uses: - ADI's lcd driver to display the content of the USB stick. - ADI's max1233 driver to provide keypad interface to select file or directory, play and stop audio file. - ADI's Thumbwheel driver to provide user interface to increse/reduce audio volume and to play audio file. - ADI's File System Service to read MP3/AAC/Wave file from USB and plays it over the BF52xC1 codec. - ADI's Uart driver to provide debug/trace output. - ADI's AAC decoder library - ADI's MP3 decoder library - ADI's WAV decoder library - ADI's JPEG decoder library Protocols used: --------------- SPI to configure BF52xC1 registers. SPORT to handle audio dataflow. PPI to handle video dataflow. ADI Drivers and Services used: ------------------------------ services.h - system services adi_dev.h - Device manager adi_spi.h - SPI driver adi_sport.h - SPORT driver adi_ppi.h - PPI driver adi_cnt.h - Rotary(Counter) driver adi_t350mcqb01.h - Varitronix Lcd driver adi_max1233.h - KeyPad driver adi_bf52xc1.h - Codec driver adi_fss.h - File system driver Dataflow: --------- Chained with loopback dataflow Hardware Setup: =============== ADSP-BF527 Ez-Kit Lite Settings: -------------------------------- JP1 - Not connected JP2 - 1-2 JP3 - 1-2 JP5 - Not connected JP6 - 2-3 P14 - 1-2 P15 - 1-2 P16 - 1-2 SW1 : 1(OFF), 2(OFF), 3(ON), 4(OFF) SW4 : 1(OFF), 2(OFF), 3(ON), 4(OFF) SW5: 1(OFF), 2(ON), 3(OFF), 4(ON) SW7: 1(ON), 2(ON), 3(ON), 4(ON) SW8: 1(OFF), 2(OFF), 3(ON), 4(OFF) SW9: 1(OFF), 2(OFF), 3(OFF), 4(ON) SW10: 1(OFF), 2(ON), 3(OFF), 4(ON) SW11: 1(ON), 2(ON), 3(ON), 4(ON) SW13: 1(OFF), 2(OFF), 3(OFF), 4(OFF), 5(ON), 6(ON) SW17: 1(ON), 2(ON) SW18: 1(OFF), 2(ON) SW19: 1(ON), 2(OFF), 3(ON), 4(OFF) SW20: 1(ON), 2(ON), 3(ON), 4(ON) SW21: 1(OFF), 2(OFF) External connections: --------------------- Audio In(J7) Audio Out(J8) +-----------+ +-----------+ | | | | | MIC | | Line Out |<------------- headset | | | | | | | | | | | | | Line IN | | Line Out | | | | | +-----------+ +-----------+ Getting Started: ================ 1) Connect a UART serial cable form the EZ-KIT to a PC. Open a terminal emulator application and set the following: BAUD RATE: 57600 PARITY: None Stop bits: 1 Data bits: 8 2) Copy media files to a USB memory stick. Sample media files can be found in \Media\Audio and \Media\JPEG. 3) Insert USB memory stick. The following cable assembly is used: Mini A plug to Standard A socket. 4) Load Project file "MediaPlayer_BF527.dpj" 5) Build Project by selecting "Project->Rebuild Project". 6) In VDSP, select "Debug->Run". 7) Run. On the EZ-KIT LCD display, you should see the USB drives and be able to view their content. The display shows the content of the root-directory of the drives. 8) The EZ-KIT keypad provides user interface to select a file or sub-directory. - key(up arrow) = Previous(moves to the previous selection on the list). - key(#2) = Play / Pause (enter into sub-directory or play selected audio file). - key(#3) = Stop playing audio file. - key(#down arrow) = Next(moves to the next selection on the list). - key(#0) = Volume down - key(#Help) = Volume up - key(2ND) = Terminate program The EZ-KIT thumbwheel also provides user interface as follow: - turn clockwise to increase audio volume. - turn anti-clockwise to decrese audio volume. - push down to enter into sub-directory or play selected audio file 9) JPEG media files are displayed when selected and the Play keypad is pushed. The JPEG file stops displaying when the user pushes the Down Arrow or Up Arrow keypad. 10) Audio media files are decoded when selected and the Play keypad is pushed. They will stop playing at the completion of the file or when the user presses the Stop keypad. References: =========== ADSP-BF527 Hardware reference ADSP-BF527 EZ-Kit Lite Schematic WM8731-Rev4.3.pdf Audio codec