• AVR Freaks

Mp3Pic32 player

Author
pirev
Starting Member
  • Total Posts : 35
  • Reward points : 0
  • Joined: 2004/12/17 04:25:56
  • Status: offline
2010/04/14 09:08:48 (permalink)
5 (2)

Mp3Pic32 player

Hi every one,

last week I built successfully LibMAD based MP3 player with PIC32 MIPS core. I'm using Explorer 16 development board, AV16/32 PICTailPlus card, RealICE and Microchip MPLAB C32 compiler version 1.10(b), Microchip FAT16/32 library. Output audio has 10-bit resolution and it is synthesized from OCx modules using DMA or non DMA transfer. Processor is PIC32MX595F512L, sysclk=80MHz, pbclk=80MHz. I'm using TMR45 to measure CPUload, at 320kbps stereo stream depend of song CPUload is between 39% and 60%. Code is 'gamma' version, there is a lot of works to reach 'beta' phase. It is under GNU GPL license. Code can be optimized to fit in 32kb RAM, because now spend 49.5kb RAM

Project was born after I read Lucio Di Jasio's book Programming 32-bit Microcontrollers in C . I bought his AV16/32 board and started with experiments. First micro was PIC32MX460F512L but unfortunately it has only 32kb RAM and LibMAD doesn't fit in this RAM. A weeks after that Microchip start sales of MA320003 board with PIC32MX795F512L on it, I bought one and I ran successfully LibMAD MP3 decoder.

Please, don't ask me how works LibMAD, answer is simple: I don't know . For more info about LibMAD please visit http://www.underbit.com/products/mad/

That's it, enjoy : Mp3Pic32

Best wishes,
Svetoslav



#1

4 Replies Related Threads

    Neiwiertz
    Super Member
    • Total Posts : 2094
    • Reward points : 0
    • Joined: 2004/09/01 02:58:52
    • Status: offline
    RE: Mp3Pic32 player 2010/04/14 11:49:14 (permalink)
    0
    I located the - Mp3Pic32 player - at the Explorer 16 Favorites Gallery

    E16 Audio and Speech

    Cool

    Flying With --|Explorer 16|HardWare|SoftWare|-- Fav(s) Gallery Lists
    #2
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    RE: Mp3Pic32 player 2010/04/16 03:27:32 (permalink)
    0
    nice indeed Smile

    thank you!

    GENOVA :D :D ! GODO
    #3
    RISC
    Super Member
    • Total Posts : 5376
    • Reward points : 0
    • Status: offline
    RE: Mp3Pic32 player 2010/04/16 13:31:58 (permalink)
    0
    Hi Pirev,

    Brilliant job Smile !!!

    Could you please confirm that the list of hardware boards below are necessary to run your MP3 decoder SW ?

    * DM240001    Explorer 16 Development Board
    * MA320003    PIM - PIC32 CAN-USB PIM (PIC32MX795F512L)
    * AC164129    Audio PICtail Plus Daughter Card
    * AC164122    PICtail Board for SD & MMC

    regards

    #4
    pirev
    Starting Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2004/12/17 04:25:56
    • Status: offline
    RE: Mp3Pic32 player 2010/04/16 16:11:38 (permalink)
    0
    Hi RISC,

    Actually I use DM240001, MA320003 and AV16/32, because it has SD/MMC card socket and stereo audio output onto the board. Of course you can use AC164129  and AC164122  instead of AV16/32, but your audio will be mono. Also you must redefine in HardwareProfile.h SD_CS, SD_CS_TRIS, SD_WP and SD_WP_TRIS. AV16/32 uses SPI2 module to interface SD card, I'm not 100% sure, but I think AC164122 uses SPI1, just check on AC164122 schematic which SPI module it use and choose MDD_USE_SPI_1 or MDD_USE_SPI_2

    Regards,
    Pirev
    post edited by pirev - 2010/04/16 16:13:03
    #5
    Jump to:
    © 2019 APG vNext Commercial Version 4.5