Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

The Super-Simple pocket size mp3 player!

The Super-Simple pocket size mp3 player!

It is based on the PIC 16LF877 with plenty of processor time to spare. There is a bare bones assembly version, and a new C version with more features and stability. It uses compact flash cards up to over 100 gigabytes including microdrives. It uses the vs1001k decoder chip.
The first thing to do is to format the CF card FAT32 and load the root directory with songs. Use a standard reader/writer like the Zio. It plugs into a USB port. Drag and drop the files onto the card in windows. The order that you put them onto the card is the order that they play. All files must be on the root directory, I haven’t added directory support.

First, the pic resets the CF card and the decoder chip. Then it sends the required spi commands to the decoder to set it up (volume, soft reset, data bit order and clock edge polarity). The pic sends a “read sector” command to the compact flash card to get some information from the boot block. It then figures where the FAT and the root directory are, and reads each file in the root directory one by one.

Once it has located a file, it clocks the card 512 times per sector sending all the information one byte at a time to the decoder chip. The decoder chip simply needs a valid data stream to be clocked in, and sound comes out of the built in DAC/headphone amp. The decoder has a data request line, so it asks for bytes when it needs them. All communication is sychronous, using the PIC’s built in USART for data and SPI for commands/setup.

Visit Here for more.







 

More Articles to Read

App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits
Big F’n 3D printer build
Big F’n 3D printer build
Temperature alarm for boiling milk
Temperature alarm for boiling milk
QuadBot is a 3D-printable walking robot for everyone
QuadBot is a 3D-printable walking robot for everyone

Top


Shares