DV164126 Microchip Technology, DV164126 Datasheet - Page 24

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
Low Pin Count USB Development Kit User’s Guide
DS41356B-page 20
2.5.3
This lab expands on the descriptor code developed in Lab 1.
1. Create a new project “Project Lab 2”, and build the framework as per procedure
2. Ensure that the Project Build Options are configured as was done in Lab 1 steps
3. In the Project window open the mouse.c source file.
4. Scroll down to find the variable definitions and uncomment the variables and
5. Scroll down to the private prototype section and uncomment the user function
6. Scroll down to the UserInit(). It is here that all components pertinent to the
7. Scroll down to the ProcessIO() function. Note the push button check that
8. Finally, scroll down to the Emulate_Mouse function and insert the code in
/**VARIABLES*****************************/
a) BYTE old_sw2,old_sw3;
c) BYTE movement_length;
//ADD EMULATE MOUSE CODE HERE
steps 1-15 in the previous lab, only this time use the source files found in
C:\LPCUSBDK_Labs\Lab2_files
11 through 15.
arrays that will be used by the user defined function under the section of the
source file:
b) BOOL emulate_mode;
d) BYTE vector = 0;
e) char buffer[3];
f)
g) ROM signed char dir_table[]={-4,-4,-4, 0, 4, 4, 4, 0};
prototype
application at hand are initialized. Note the variables and function calls that are
initialized. Locate the // emulate_mode = TRUE; and uncomment the flag
initialization.
toggles the emulate_mode flag. Uncomment the code:
//emulate_mode = !emulate_mode;
Example 2-7 between the curly brackets in the section marked:
void Emulate_Mouse(void);
USB_HANDLE lastTransmission;
Procedure
© 2009 Microchip Technology Inc.

Related parts for DV164126