DV164126 Microchip Technology, DV164126 Datasheet - Page 30

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 26
EXAMPLE 2-9:
//delay to allow the hold capacitor on the ADC to charge
case 0:
case 1:
case 2:
case 3:
if(++delaycounter>9000)
{
}
break;
ADCON0bits.GO_DONE = 1; //Start an ADC conversion
state = 2;
break;
{
}
break;
HIDoutput = ADRESH>>3;//shift the result in ADRESH
if(HIDoutput<=4) HIDoutput = 4;
if(HIDoutput>=29) HIDoutput = 29;
//Can the SIE transmit?
if((HIDTxHandleBusy(lastTransmission) == 0))
{
//Send the 8 byte packet over USB to the host.
(BYTE*)hid_report_in, 0x08);
state = 0;
}
break;
if(ADCON0bits.GO_DONE == 0) //Check if conversion is
lastTransmission = HIDTxPacket(HID_EP,
KEYBOARD() STATE MACHINE CODE
delaycounter = 0;
state = 1;
state = 3;
//Load the HID buffer
hid_report_in[0] = 0;
hid_report_in[1] = 0;
hid_report_in[2] = HIDoutput;
hid_report_in[3] = 0;
hid_report_in[4] = 0;
hid_report_in[5] = 0;
hid_report_in[6] = 0;
hid_report_in[7] = 0;
//left by three
//completed
© 2009 Microchip Technology Inc.

Related parts for DV164126