Microchip Technology DV164139 数据表

下载
页码 54
© 2009 Microchip Technology Inc.
DS41356B-page 13
12. Click on the Directories tab and select Output Directory and click New to add 
a new path. Click on the 
 button, navigate to 
C:\LPCUSBDK_Labs\Lab1_files
 and create a new folder called output
Highlight the folder and click OK. This will now be the folder where the output files 
are placed. 
13. Within the Show directories for drop-down menu, select the “Include Search 
Path directory. Ensure that the C:\MCC18\h directory path is listed. Select 
New and navigate to C:\Microchip Solutions\Microchip\Include and 
click OK to add to the directory. Repeat these steps to add the application folder 
C:\LPCUSBDK_Labs\Lab1_files
.
14. In the “show directories for:” drop-down menu, select Library Search Path. 
Ensure that the C:\MCC18\lib is listed. Next, select the Linker-Script Path 
and ensure that the path points to C:\MCC18\lkr directory.
FIGURE 2-3:
CONFIGURING FOR MICROCHIP USB FIRMWARE 
FRAMEWORK
15. Click Apply, followed by OK to apply these settings and close the Build Options 
window. 
At this point, Framework has been built. 
DEFINING PROJECT DESCRIPTORS
Double click the enumeration.c source file in the project window to open. Scroll 
down to the ProcessIO(). Note it is empty. Therefore, this application will do noth-
ing. The intention of this lab is to introduce the user to properly configure the firmware 
so that the PIC18F14K50 will enumerate as a HID mouse once connected to the Host 
PC. Therefore, the usb_descriptors.c file will need to be altered accordingly. As a