DV164126 Microchip Technology, DV164126 Datasheet - Page 29

KIT DEVELOPMENT USB W/PICKIT 2

DV164126

Manufacturer Part Number
DV164126
Description
KIT DEVELOPMENT USB W/PICKIT 2
Manufacturer
Microchip Technology
Datasheets

Specifications of DV164126

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
Part Number:
DV164126
Manufacturer:
Microchip Technology
Quantity:
135
© 2009 Microchip Technology Inc.
EXAMPLE 2-8:
Next, the keyboard.c source file will be configured.
6. In the Project window, open the keyboard.c source file and scroll down to the
UserInit(). Uncomment the port and ADC initialization code. The user is
urged to review the PIC18F14K50 data sheet as to the significance of these
initializations for the appropriate peripheral.
// ADCON0=0x29;
// ADCON1 = 0X00;
// ADCON2=0x3F;
Scroll down to the keyboard() and copy and paste the code in Example 2-9
between the curly braces in the switch at:
//ADD STATE MACHINE CODE HERE
0x05, 0x01,
0x09, 0x06,
0xa1, 0x01,
0x05, 0x07,
0x19, 0xe0,
0x29, 0xe7,
0x15, 0x00,
0x25, 0x01,
0x75, 0x01,
0x95, 0x08,
0x81, 0x02,
0x95, 0x01,
0x75, 0x08,
0x81, 0x03,
0x95, 0x05,
0x75, 0x01,
0x05, 0x08,
0x19, 0x01,
0x29, 0x05,
0x91, 0x02,
0x95, 0x01,
0x75, 0x03,
0x91, 0x03,
0x95, 0x06,
0x75, 0x08,
0x15, 0x00,
0x25, 0x65,
0x05, 0x07,
0x19, 0x00,
0x29, 0x65,
0x81, 0x00,
0xc0
REPORT DESCRIPTOR FOR KEYBOARD()
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
USAGE_MINIMUM (Reserved (no event indicated))
USAGE_PAGE (Generic Desktop)
USAGE (Keyboard)
COLLECTION (Application)
USAGE_PAGE (Keyboard)
USAGE_MINIMUM (Keyboard LeftControl)
USAGE_MAXIMUM (Keyboard Right GUI)
LOGICAL_MINIMUM (0)
LOGICAL_MAXIMUM (1)
REPORT_SIZE (1)
REPORT_COUNT (8)
INPUT (Data,Var,Abs)
REPORT_COUNT (1)
REPORT_SIZE (8)
INPUT (Cnst,Var,Abs)
REPORT_COUNT (5)
REPORT_SIZE (1)
USAGE_PAGE (LEDs)
USAGE_MINIMUM (Num Lock)
USAGE_MAXIMUM (Kana)
OUTPUT (Data,Var,Abs)
REPORT_COUNT (1)
REPORT_SIZE (3)
OUTPUT (Cnst,Var,Abs)
REPORT_COUNT (6)
REPORT_SIZE (8)
LOGICAL_MINIMUM (0)
LOGICAL_MAXIMUM (101)
USAGE_PAGE (Keyboard)
USAGE_MAXIMUM (Keyboard Application)
INPUT (Data,Ary,Abs)
DS41356B-page 25

Related parts for DV164126