©
2009 Microchip Technology Inc.
DS51806A-page 15
PIC18F46J50 FULL-SPEED USB
DEMONSTRATION BOARD
USER’S GUIDE
Chapter 3. Preprogrammed Firmware
3.1
OVERVIEW
Microchip provides a wide variety of USB related example firmware projects, PC
application projects, drivers, and other related resources for developing complete USB
peripheral and host devices. These resources are included in the MCHPFSUSB
Framework distribution package.
The free package is on the CD-ROM disc that comes with the board. It can also be
downloaded from the Microchip USB Design Center:
Many of the USB device demonstrations and projects in the MCHPFSUSB Framework
are specifically intended for the PIC18F46J50 Full-Speed USB Demonstration Board,
so they require no hardware or other modifications.
Some example USB firmware is preprogrammed on the PIC18F46J50 Full-Speed USB
Demonstration Board. The microcontroller contains both demo firmware and a USB
bootloader that is independent of the demo firmware. The bootloader can be used to
program a new application’s firmware
*.hex
files into the microcontroller’s Flash
memory, eliminating the need for a dedicated In-Circuit Serial Programming™
(ICSP™) programmer.
To enter the Bootloader mode, hold down the S2 push button and momentarily press
and release the MCLR push button. The microcontroller firmware checks the RB2 I/O
pin state once after coming out of Reset. (For more information on the USB bootloader,
see
Section 3.3 “Using the HID Bootloader Firmware”
The microcontroller firmware will enter the demo mode if the RB2 push button is not
pressed during power-up or Reset. If the microcontroller is not in the Bootloader mode,
it is in Demo mode. (For more information on the composite HID+MSD demo firmware,
see
Section 3.2 “Using the Composite HID+MSD Class Demo Firmware”
When a Demo mode device is plugged into a host PC, the device should automatically
enumerate as a USB “composite” HID (Human Interface Device) and MSD (mass
storage device). Common operating systems (including Windows
®
, Mac OS
®
and
Linux) ship with built-in HID and MSD class USB drivers. Additional drivers should not
be needed to use the default demo firmware programmed on the PIC18F46J50
microcontroller.
With successful enumeration in Demo mode, under the Windows operating system,
additional entries should appear in the Windows Device Manager dialog box.
Figure 3-1 shows how the dialog box appears in the Windows XP
®
operating system
with arrows indicating the new entries listed for the board. (The dialog box’s
appearance may vary in other versions of the Windows operating systems, such as
Windows Vista
®
or Windows 7.)