DV164126 Microchip Technology, DV164126 Datasheet - Page 39

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-10:
The reader is encouraged to review the data sheet for the PIC18F14K50 EUSART
section for more information on the specifics of the configuration code.
Next, the application specific code will be added that will implement the flowchart
shown in Figure 2-6.
10. Scroll down to the ProcessIO()and copy and paste the contents of
As per the flowchart in Figure 2-6, this code will ensure that the buffer containing the
data transmitted from the RS-232 has been sent to the USB firmware. If so, the code
then checks for any new RS-232 data that has been stored in the buffer.
Example 2-11 into the section labeled:
/*****************************************************
ADD CODE TO CHECK IF RS232 HAS
BEEN SENT ALONG USB
AND THE CODE TO CHECK IF
ANY NEW RS232 TRANSMISSION
HAS BEEN RECEIVED AND STORED
******************************************************/
#endif
#if defined(__18CXX)
#if defined(__18F14K50)
#endif
UART_TRISRx=1;
UART_TRISTx=0;
TXSTA = 0x24;
RCSTA = 0x90;
SPBRG = 0x70;
SPBRGH = 0x02;
BAUDCON = 0x08;
c = RCREG;
unsigned char c;
ANSELHbits.ANS11 = 0;
INITIALIZEUSART() CODE
// Make RB5 digital so USART can
//use pin for Rx
// RX
// TX
// TX enable BRGH=1
// Single Character RX
// 0x0271 for 48MHz -> 19200 baud
// BRG16 = 1
// read
DS41356B-page 35

Related parts for DV164126