Preprogrammed Firmware
FIGURE 3-2:
HID DEMO APPLICATION
The demo PC application provides a simple graphical user interface for sending and
receiving small amounts of example data to and from the HID interface on the USB
device. Full source code for both this PC application and the demo firmware are
included in the MCHPFSUSB Framework. Assuming the MCHPFSUSB Framework
has been installed in the default location, the source code for both the firmware and PC
application are found in the following directory:
C:\Microchip Solutions\USB Device - Composite - HID + MSD
The demo PC application can be used to toggle the LEDs on the demo board,
determine the RB2 push button state and measure the analog voltage on the micro-
controller’s RA0 I/O pin. The analog voltage on RA0 is measured by the ADC of the
microcontroller and graphically displayed by the “ANx/POT Voltage” bar, as shown in
If the PIC18F46J50 Full-Speed USB Demonstration Board is used as a stand-alone
device, it is recommended that an adjustable external power supply (between 0V and
3.3V) be attached to the RA0 pin to provide a more interesting demo experience. If the
board is used in conjunction with the PIC18 Explorer Board or the PICDEM HPC
Explorer Board, the analog potentiometer on those boards, tied to RA0, can be
adjusted to alter the HID demo’s voltage display bar.
3.3
USING THE HID BOOTLOADER FIRMWARE
The PIC18F46J50 Full-Speed USB Demonstration Board is preprogrammed with HID
class USB bootloader firmware as well as the USB composite HID+MSD demo firmware.
The HID bootloader is independent of the composite HID+MSD demo firmware.
The bootloader firmware can be used to update the Flash memory contents of the
PIC18F46J50 microcontroller, similar to using a dedicated ICSP based programmer.
When the bootloader is used, a new .hex file can be programmed into the device by
sending it directly over the USB cable to the PIC18F46J50.
The HID bootloader firmware uses self-programming operations to update the Flash
memory contents of the microcontroller.
To use the HID bootloader:
1. Launch the HID bootloader application by selecting:
Start>Programs>Microchip>MCHPFSUSB v2.4>USB HID Bootloader .
The dialog box, shown in Figure 3-3, appears. (This dialog box appears when-
ever the USB device is not yet attached or the firmware is not in Bootloader
mode.)
? 2009 Microchip Technology Inc.
DS51806A-page 18
相关PDF资料
MA180028 MOD PLUG-IN PIC18F87K22 PIM
MA2-4-34-625-2-A32-7C CIRCUIT BREAKER MAG 25A PANEL MT
MA240013 MODULE PLUG-IN PIC24 44-PIN
MA240017 MODULE PLUG-IN PIC24F16KA102 PIM
MA240021 MOD PLUG-IN PIC24FJ256GB210
MA240025-1 MOD PIM PIC24EP512GU810 GP
MA240026 MODULE PLUG-IN PIC24FJ16MC102
MA300013 MODULE DSPIC30F SAMPLE 80QFP
相关代理商/技术参数
MA180025 功能描述:子卡和OEM板 PIM for PIC18F87J90 w/ Cap Touch buttons RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180026 功能描述:子卡和OEM板 PIC18F45K20 44P TQFP to 84P PIM RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180027 功能描述:子卡和OEM板 PIC18F87K90 PIM w/ Cap Touch RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180028 功能描述:子卡和OEM板 PIC18F87K22 Plug-In Module RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180029 功能描述:子卡和OEM板 PIC18F47J53 FS USB Demo Board RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180030 功能描述:子卡和OEM板 PIC18F47J31 Plug-in Module RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180031 功能描述:子卡和OEM板 PIC18F46K80 PIM RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
MA180032 功能描述:子卡和OEM板 PIC18F66K80 PIM RoHS:否 制造商:BeagleBoard by CircuitCo 产品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit