DM164127 Microchip Technology, DM164127 Datasheet - Page 18
![KIT DEVELOPMENT USB 18F14/13K50](/photos/9/4/90419/dm164127_sml.jpg)
DM164127
Manufacturer Part Number
DM164127
Description
KIT DEVELOPMENT USB 18F14/13K50
Manufacturer
Microchip Technology
Specifications of DM164127
Main Purpose
Interface, USB 2.0 Slave
Embedded
Yes, MCU, 8-Bit
Utilized Ic / Part
PIC18F13K50, PIC18F14K50
Primary Attributes
Full Speed (12Mbps), MCU Based
Secondary Attributes
4 Labs: Enumeration, HID Mouse, HID Keyboard, CDC Serial Emulator
Silicon Manufacturer
Microchip
Silicon Core Number
PIC18F14K50, PIC18F13K50
Core Architecture
PIC
Core Sub-architecture
PIC18
Silicon Family Name
Piccolo
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
DM164127
Manufacturer:
Microchip Technology
Quantity:
135
Low Pin Count USB Development Kit User’s Guide
DS41356B-page 14
reference, the USB Revision 2.0 specification should be opened to Section 9-5
“Descriptors”. This section details the various components required in each type of
descriptor (device, configuration, interface etc.). This usb_descriptor.c file should
be an exact replica of the source file of the same name found in the Framework folder
C:\Microchip Solutions\USB Device - HID - Mouse\HID - Mouse –
Firmware\usb_descriptor.c
This file can be used as a reference during debugging.
16. In the MPLAB IDE Project window, select and open the usb_descriptors.c
17. Scroll down to the device descriptor section and copy and paste the code in
EXAMPLE 2-1:
18. Scroll down to the configuration, class specific and interface descriptor section.
0x12,
USB_DESCRIPTOR_DEVICE, // DEVICE descriptor type
0x0110,
0x00,
0x00,
0x00,
USB_EP0_BUFF_SIZE,
MY_VID,
MY_PID,
0x0003,
0x01,
0x02,
0x00,
0x01
Note:
//ADD CONFIGURATION, CLASS SPECIFIC AND
//INTERFACE DESCRIPTOR CODE HERE
source file.
Note #include "./USB/usb_function_hid.h" at the top of the file. If a
different class of device is being defined for a given application, the appropriate
class header file will need to be included here.
Example 2-1 between the curly brackets in the section labeled:
Copy and paste the code in Example 2-2 between the brackets between the curly
brackets in the section labeled:
//ADD DEVICE DESCRIPTOR CODE HERE
The user may wish to clean up the look of the code by spacing comment
sections accordingly. Tabs were ignored to ensure completeness for this
document.
DEVICE DESCRIPTOR FOR LAB 1
// Size of this descriptor in bytes
// USB Spec Release Number in BCD format
// Class Code
// Subclass code
// Protocol code
// Max packet size for EP0, see
// usbcfg.h
// Vendor ID
// Product ID
// Device release number in BCD format
// Manufacturer string index
// Product string index
// Device serial number string index
// Number of possible configurations
© 2009 Microchip Technology Inc.