Microchip Technology DV164139 Data Sheet

Page of 54
Low Pin Count USB Development Kit User’s Guide
DS41356B-page 34
© 2009 Microchip Technology Inc.
FIGURE 2-10:
PROJECT WINDOW FOR LAB 4
9.
Next, the EUSART peripheral will need to be initialized to enable asynchronous 
communication with a baud rate of 19200. To do this, open the main.c file and 
scroll down to the InitializeUSART(). This function is called by the 
UserInit()
. Note that in this function, code has been formatted to allow 
configuration dependant on the specific device and compiler used. Copy and 
paste the contents of Example 2-10 into the section of the Initialize-
USART()
 function labeled:
//ADD C18 PIC18F14K50 EUSART INITIALIZATION CODE HERE