PIC18F46J50 Full-Speed USB Demonstration Board User’s Guide
DS51806A-page 17
©
2009 Microchip Technology Inc.
3.2
USING THE COMPOSITE HID+MSD CLASS DEMO FIRMWARE
3.2.1
MSD Interface
The MSD (Mass Storage Device) interface displays the PIC18F46J50 Full-Speed USB
Demonstration Board in My Computer as a new drive volume, similar to a USB “thumb
drive” Flash memory device. Upon successful enumeration in Demo mode, the new
drive volume will display
Readme.txt
, a writable text file stored in the
microcontroller‘s Flash memory.
For additional information, read the text file.
If the device enumerates correctly in Demo mode and appears normal in the Device
Manager, but fails to appear as a new drive volume, see
.
3.2.2
HID Interface
The HID (Human Interface Device) interface enables generic USB data transfer to and
from an attached device. Although the HID class normally is used for interface
products, such as keyboards and mice, the HID interface alternatively can be used for
other data transfer purposes.
The HID interface on the PIC18F46J50 Full-Speed USB Demonstration Board’s default
firmware is meant to be used with the PC application project,
HID PnP Demo
Composite HID+MSD Demo only (PID=0x0054).exe
, provided in the
MCHPFSUSB Framework. The MCHPFSUSB Framework can be installed from the
CD-ROM disc that comes with the board. The latest version of the package is also
available from the Microchip USB Design Center:
If the MCHPFSUSB Framework Version 2.4 is installed in the default directory
(
C:\Microchip Solutions
), the
HID PnP Demo Composite HID+MSD Demo
only (PID=0x0054).exe
executable file is in the directory:
C:\Microchip Solutions\USB Device - Composite - HID + MSD
The demo PC application is intended to be run under Windows and was written in
Microsoft
®
Visual C++
®
2005 Express Edition. If the executable fails to launch correctly,
review the PC’s Control Panel – Add or Remove Programs list to ensure that the
.NET
Framework Version 2.0 (or later) redistributable package has been installed.
The
.NET
redistributable package is on the CD-ROM disc that comes with the
board or it can be downloaded from Microsoft. (For additional details, see issue 3 in
Appendix A. “Troubleshooting Tips”
If the USB device has been plugged in and has successfully enumerated, the device
should be detected automatically by the demo PC application. Figure 3-2 gives an
example of how the PC application appears in Windows XP.