USB-MSD-RD
U S B M
A S S
S
T O R A G E
D
E V I C E
R
E F E R E N C E
D
E S I G N
K
I T
U
S E R
’
S
G
U I D E
1. Kit Contents
CF, SD, MMC Memory Expansion Board (AB5)
256 MB SD Card
Straight DB9 serial cable (RS-232 cable)
Quick-start Guide
Reference Design Kit CD-ROM containing the following items:
USB Mass Storage Device Reference Design Programmer's Guide (AN282), and associated software (AN282SW.zip)
Keil Software 8051 Development Tools (evaluation assembler, 2 kB limited compiler, and linker)
All C8051F340 and USB MSD related documentation in PDF format
2. Requirements
The USB MSD Reference Design Kit has been designed for use with a C8051F340DK Development Kit. The
development kit can be purchased separately from Silicon Laboratories (www.silabs.com). The following are the
requirements to use this Reference Design Kit as described in this User's Guide.
C8051F340DK Development Kit (contents shown below):
C8051F340-TB Target Board
USB Debug Adapter
6' USB Cable
AC to DC Power Adapter
PC with the following features:
Operating system: Windows 2000/XP/Server2003
Available ports: One serial port (RS232) and one USB port
Note:
A full version of the Keil tool chain is required in order to modify and recompile the code provided with this reference
design because the code size is greater than evaluation tool chain's code size limits. No tool chain is required for the
demonstration or for debugging because an object file (*.OMF) is provided with the reference design.
3. USB Mass Storage Device Reference Design Kit Overview
The USB Mass Storage Device (MSD) Reference Design Kit includes the AB5 Expansion Board (shown in
Figure 1) that can be connected directly to the expansion connector of a C8051F340-TB Target Board. The
connected setup with a SD memory card is shown in Figure 2. This hardware and the included 'F340 firmware fully
demonstrate how an application can benefit from implementing the USB MSD device class. The firmware is
described in Section “4. USB MSD RD Firmware”. Step-by-step demonstration instructions are provided in Section
“5. USB MSD Reference Design Kit Demonstration”. Detailed descriptions of the components and API functions
are included in “AN282: USB Mass Storage Device Reference Design Programmer's Guide". The board hardware
is described in sections 6, 7, and 8.
Rev. 0.1 5/06
Copyright © 2006 by Silicon Laboratories
USB-MSD-RD
USB-MSD-RD
4. USB MSD RD Firmware
The USB MSD RD includes all the 'F340 firmware necessary to handle the following:
USB enumeration and standard requests
MSD class requests
SCSI command set
Media access - SD, MMC and CompactFlash card formats
FAT16 file system support
Also included is an example application that can perform the following tasks:
Present an interactive command shell via the UART
Measure temperature using the on-chip temperature sensor and ADC
Monitor the state of the two push-button switches on the target board
Log the temperature and button state information to log files in the memory card
The USB MSD RD System Architecture shown in Figure 3 gives an overview of the various components that
constitute the USB MSD RD firmware. The code space usage chart in Figure 4 shows the amount of code space
used by the firmware components. Detailed descriptions of the components and API functions are included in
“AN282: USB Mass Storage Device Reference Design Programmer's Guide".
To implement your own application based on this USB MSD Reference Design, you can customize the blocks
labeled 'Application', 'Other HW Peripherals', and 'App. Specific Hardware' (all shown in blue in Figure 3). Source
code for all the other firmware blocks is also provided, but typically there is no need to customize these blocks.
Rev. 0.1
3