Project Name: µCOS-II Blackfin MediaPlayer_BF548.dpj Description: ADSP-BF548 Ez-Kit and µCOS-II Media Player demo Platform: ADSP-ADSPBF548 EZKit Lite Evaluation Board Project Type: ============= ADSP-BF533 [ ] ADSP-BF537 [ ] ADSP-BF548 [X] ADSP-BF561 [ ] Hardware/Tools Used: ==================== ADSP-BF548 EZ-Kit Lite Rev 1.3 Analog Devices VisualDSP++ 5.0 Update 2 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 BF548 Ez-Kit for Media Player type projects. The application uses: - ADI's lcd driver to display the content of the harddisk. - ADI's Keypad driver to provide user 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/Wave file from HDD and plays it over AD1980 AC'97 Audio 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 The application configures AD1980 in Slot-16 mode and enables Pseudo Multi-Channel Audio playback. AD1980/AC97 driver supports almost all industry standard sampling rates (96kHz, 88.2kHz, 64kHz, 48kHz, 44.1kHz, 32kHz, 24kHz, 22.05kHz, 16kHz, 12kHz, 11.025kHz and 8kHz) Protocols used: --------------- AC'97 SPORT ADI Drivers and Services used: ------------------------------ services.h - system services adi_dev.h - Device manager adi_cnt.h - Rotary(Counter) driver adi_lq043t1dg01.h - Lcd driver adi_kpad.h -KeyPad driver adi_ac97.h - AC'97 driver adi_ad1980.h - AD1980 driver adi_sport.h - SPORT driver Dataflow: --------- Chained dataflow Hardware Setup: =============== ADSP-BF548 Ez-Kit Lite Settings: -------------------------------- JP1 - Not connected SW2 : 1(ON), 2(ON), 3(ON), 4(ON), 5(ON), 6(ON), 7(ON), 8(ON) SW4 : 1(ON), 2(ON), 3(ON), 4(OFF) SW5: 1(ON), 2(ON), 3(ON), 4(ON) SW8: 1(OFF),2(OFF), 3(OFF),4(OFF),5(OFF),6(OFF) SW14: 1(ON), 2(ON), 3(ON), 4(ON) SW16: 1(ON), 2(ON), 3(ON), 4(ON) SW17: 1(ON), 2(OFF), 3(ON), 4(OFF) **** NOTE: for flash programming **** ------------------------------------- If the user should ever want to program this application to flash please change SW16 to SW16: 1(ON), 2(ON), 3(ON), 4(OFF) External connections: --------------------- Audio In Audio Out +-----------+ +-----------+ | | | | | MIC | | Center/ | | | | LFE | Audio Out | | | | +-----------+ | | | | | | | Line IN | | Surround | | Line Out |<------------- headset | | | | | | +-----------+ +-----------+ +-----------+ 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 FAT16/FAT32 formatted HDD, SD Card, or USB Memory stick. Sample media files can be found in \Media\Audio and \Media\JPEG. File transfers from PC to/from HDD can be done via a VDSP example program. \Blackfin\Examples\ADSP-BF548 EZ-KIT Lite\Drivers\usb\mass_storage_app The HDD can be formatted via a VDSP example program. \Blackfin\Examples\ADSP-BF548 EZ-KIT Lite\Services\File System\HardDisk\HardDiskFormat 3) Attach removable media (SD or USB memory stick if applicable) 4) Load Project file "MediaPlayer_BF548.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 local 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 increse 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-BF548 Hardware reference ADSP-BF548 EZ-Kit Lite Schematic AC'97 Component Specification Revision 2.3 Rev 1.0 AD1980 Codec Spec