AN1003
DS01003A-page 6
©
2005 Microchip Technology Inc.
Hardware
The PICDEM FS USB Demonstration Board is used as
the platform for developing the USB MSD application.
The PICtail™ Board for SD™ and MMC Cards is
connected on the expansion headers, J6 and J7, on the
PICDEM FS USB Demonstration Board. The USB V2.0
compliant PIC18F4550 microcontroller forms the heart
of the PICDEM FS USB Demonstration Board. The
PIC18F4550 has an on-chip USB voltage regulator,
transceivers and pull-up resistors to minimize the
number of external components and enable a low-cost
design. On a side note, the PICDEM FS USB
Demonstration Board also features a potentiometer,
simulating analog input for the controller and a digital
temperature sensor. While not being used in the USB
SD card mass storage application, these features may
be useful in developing other USB applications. More
details of the PICDEM FS USB Demonstration Board
can be found in the PICDEM FS USB Demonstration
Board User’s Guide (see
“References”
).
FIGURE 4:
PC, MSD COMMUNICATION BLOCK DIAGRAM
PC Application
(e.g., file explorer)
Win32 Subsystem
Function
Drivers
(
usbstor.sys
)
Bus Drivers
(
usbd.sys
)
Win32
®
API Calls
Hardware (Root Hub)
USB Hub Driver
(
usbhub.sys
)
Disk Drivers
(
disk.sys
,
PartMgr.sys
)
Storage Volume
Driver
(
VolSnap.sys
)
SPI™
Bus
USB Port
USB Serial Interface Engine (SIE)
SD Card Interface
(
sdcard.c
,
sdcard.h
)
USB Endpoint 0
Control
Transfer
(usbdrv.c,
usb9.c
,
usbctrltrf.c
)
USB Endpoint 1
Bulk Transfer
(
msd.c
,
msd.h
)
PIC18F4550
EP0 USB Control, EP1 SCSI Commands
PICtail™ Board for
SD™ and MMC Cards
深圳市英锐恩科技有限公司
www.enroo-tech.com