◗ TABLE 1: POST CODES
CPU checksum failure
Flash (ROM) checksum failure
Internal SRAM failure
CF card failure
notice, the power on self test has probably detected an error. The
POST firmware signals an error by flashing LED2 with a series of short
flashes, a long pause, and then repeats. Count the flashes and check
Table 1 to determine the failure.
Finally, we’re ready to listen to some music! Take your CompactFlash
card, format it, and copy some MP3 files to the root directory.
Remember that the firmware can only access FAT16 file systems and
it can only play files in the root directory. Recent versions of
Windows, especially Windows XP, default to FAT32 format and you
must explicitly pick “FAT” when formatting to get FAT16.
The current firmware is very simple-minded; it does not support
play lists, and it only looks for MP3 files in the root directory. All
non-MP3 files and subdirectories are ignored. Consider this an
opportunity — there’s plenty of room left in the Flash, and all it needs
is a little programming to make it smarter!
Turn off the power again and plug in the Flash card and connect
an amplifier. Be sure that you’ve set the jumpers as shown in Figure
4. You must remove power before installing the CF card. Yes, the
CompactFlash standard allows “hot swapping,” but not with
TrueIDE mode. No harm will be done if you forget and change the CF
card with the power applied, but the firmware probably won’t be able
to read the new card until you power cycle it.
Turn the power on one last time and the display will show the
copyright for a few seconds, and then it will begin playing the first
song. While playing, the display shows the file name, song title, and
artist name from the ID3 tag, if any, on the first three lines. The fourth
line will show the running time, bit rate, and sample frequency for
the song playing. If it passes the POST but doesn’t play, then the
firmware either doesn’t recognize your Flash card or it can’t find
any MP3 files there.
While playing, turning the knob will skip from one song to the
next or previous one, and pushing the knob button will alternately
pause and resume playing. That’s the extent of the current user
interface at the moment. Remember, I said that the firmware was
very simple minded! The hardware is capable of much more; adding
additional functions is simply a matter of programming. ■
See next page for Parts List.
■ The analog output circuit for the CS4334 is straight out of the
Cirrus Logic data sheet and the circuit for the STA013 is mostly
borrowed from the ST datasheet.
■ There are many, many, many MP3 player projects on the
Internet and, although this design is unique, I’ve certainly
borrowed ideas here and there. Some of the better sites are
listed in the References list included in this article.
PIC Programming Made Easy!
Proton+ PICBASIC Development Suite
Next Generation IDE
Proton IDE is a professional
and powerful visual Integrated
Development Environment (IDE)
which has been designed specifically
for the Proton Plus compiler. Proton
IDE accelerates product development
in a comfortable user environment
without compromising performance,
flexibility or control.
• Code Explorer
• Compiler Results
• Programmer Integration
• Integrated Bootloader
• Serial Communicator
• Online Updating
• Plugin Architecture
• Real Time Simulation Support
SAVE TIME WITH
END TO END
Visit www.r4systems.com to see
our latest Proton+ projects
NE W IDE - New IDE makes
development using Proton+
even faster and more intuitive!
COMPILER - The popular
Proton+ compiler has
enhanced support for I2 C,
SPI, Dallas 1- wire bus, RS232,
X10, Compact Flash
Memory Cards and USB.
VIRTUAL SIMULATION -
Simulate your project in
Real Time using the integrate
Proteus Virtual PIC Boards.
EASY TO USE
CAD TOOLS AT
Schematic and PCB Layout
• Powerful and flexible schematic capture.
• Auto-component placement. • Rip-up and Retry PCB routing.
• Polygonal gridless ground planes.
• Library of over 8000 schematic and 1000 PCB foot prints.
• Bill of materials, DRC reports and more.
Mixed Mode SPICE Circuit Simulation
• Berkeley SPICE3F5 simulator with custom extensions for true
mixed mode and interactive simulation.
• Six virtual instruments and 14 graph based analysis types.
• 6,000 models including T TL, CMOS and PLD digital parts.
• Fully compatible with manufacturers’ SPICE models.
Proteus VSM - Co-simulation & debugging for popular Micro-Controllers
• Supports PIC16 & PIC12, AVR, 8051, HC11 and ARM micro-controllers.
• Latest version includes 40 new PIC18's.
• Co-simulate target firmware with your hardware design.
• Includes interactive peripheral models for LED and LCD displays,
switches, keypads, virtual terminal and much, much more.
• Provides source level debugging for popular compilers and
assemblers from Hi Tech PICC, Crownhill, IAR, Keil and others.
• Proteus PCB design includes an interface to the Electra Gridless
FREE DOWNLOADABLE DEMO! Save Time. Save Money.
Proteus Starter Kit – $199 • Complete Systems from $499
“This is clearly superior in every respect.”
R4 Tel: 905•898•0665 SYSTEMS INC. www.r4systems.com email@example.com