Microchip Technology DV164139 Data Sheet
Low Pin Count USB Development Kit User’s Guide
DS41356B-page 10
© 2009 Microchip Technology Inc.
2.
The C18 compiler can be found at:
3.
The most current version of the PICkit 2 programmer software.
4.
5.
A copy of the “Microchip USB Device Firmware Framework User’s Guide”
(DS51679)
(DS51679)
6.
A copy of the PIC18F13K50/14K50 data sheet (DS41350)
7.
A copy of the USB Revision 2.0 Specification available for download from:
This will prove useful as reference throughout the labs.
8.
http://www.usb.org/developers/devclass_docs/Hut1_12.pdf
9.
http://www.usb.org/developers/hidpage/dt2_4.zip
10. A copy of the Universal Serial Bus Class Definitions for Communications Devices
document available for download at:
http://www.usb.org/developers/devclass_docs
11. Unzipped the LPCUSBDK_Labs.zip file to the C: directory.
2.4
PROJECT LAB 1 (ENUMERATION)
2.4.1
Purpose
The purpose of this lab is intended to introduce the user to creating a project in the
MPLAB IDE using Microchip’s Full-Speed USB Firmware Framework. Though many
application examples in the Framework can be used to create original code, building
the Framework from scratch is a great way to get familiar to the overall functionality of
this multitasking tool.
MPLAB IDE using Microchip’s Full-Speed USB Firmware Framework. Though many
application examples in the Framework can be used to create original code, building
the Framework from scratch is a great way to get familiar to the overall functionality of
this multitasking tool.
The user will create a project, ensure that the IDE is configured accordingly, and alter
the usb_descriptor.c file to enable the enumeration of the PIC18F14K50 as a HID
mouse device.
the usb_descriptor.c file to enable the enumeration of the PIC18F14K50 as a HID
mouse device.
2.4.2
Procedure
2.4.2.1
BUILDING THE FRAMEWORK
1.
Open the MPLAB IDE by selecting Start>Programs>Microchip>MPLAB IDE
vx.xx>MPLAB IDE
vx.xx>MPLAB IDE
2.
Once in the MPLAB IDE, start the Project Wizard by selecting Project>Project
Wizard
Wizard
3.
Select the PIC18F14K50 as the device, select the MPLAB C18 C Compiler as
the language toolsuite, and create a new project folder in the following directory:
C:\Microchip Solutions\Project Lab 1\Project Lab 1
the language toolsuite, and create a new project folder in the following directory:
C:\Microchip Solutions\Project Lab 1\Project Lab 1
Note:
In this and all subsequent project labs, the USB cable must be discon-
nected from the USB mini-B connector on the Low Pin Count USB Devel-
opment Board when programming with the PICkit 2 programmer.
nected from the USB mini-B connector on the Low Pin Count USB Devel-
opment Board when programming with the PICkit 2 programmer.