DatenbogenInhaltsverzeichnisIntroduction5Document Layout5Conventions Used in this Guide6Recommended Reading7The Microchip Web Site7Customer Support8Document Revision History8Chapter 1. Overview91.1 Introduction91.2 Highlights91.3 Low Pin Count USB Development Kit Contents9Figure 1-1: Low Pin Count USB Development Kit91.4 Low Pin Count USB Development Board Construction and Layout10Figure 1-2: Low Pin Count USB Development Board101.5 PIC18F14K50 ICD Debug Header11Figure 1-3: PIC18F14K50 Populated MPLAB ICD 2 Debug Header111.6 “Getting Started with Microchip’s Low Pin Count USB Solutions” Self-Directed Course112.1 Introduction132.2 Prerequisites132.3 Resources Required to Complete Project Labs132.4 Project Lab 1 (Enumeration)142.4.1 Purpose142.4.2 Procedure142.4.2.1 BUILDING THE FRAMEWORK14Figure 2-1:15Figure 2-2: Project Window for Lab 116Figure 2-3: Configuring for Microchip USB Firmware Framework17Testing The Application212.5 Project Lab 2 (HID Mouse)222.5.1 Purpose222.5.2 Overview of the HID Mouse Firmware23Figure 2-4: Flowchart for the emulate_mouse()232.5.3 Procedure24Testing the Application252.6 Project Lab 3 (HID Keyboard)262.6.1 Overview of the HID Keyboard Firmware26Figure 2-5: State Diagram for Keyboard()272.6.2 Procedure28Testing the Application312.7 Project Lab 4 (CDC – Serial Emulator)322.7.1 Overview of the CDC – Serial Emulator Firmware33Figure 2-6: FlowChart for CDC Serial Emulator Code33Figure 2-7: CDCTxService( ) State Diagram352.7.2 Procedure35Figure 2-8: Creating a Sub-Folder in the Project Window36Figure 2-9: Adding the usb_device.c File to the USB Stack Folder36Figure 2-10: Project Window for Lab 438Installing Application Drivers41Figure 2-11: Found New Hardware Wizard Window41Figure 2-12: Selecting Software Location for Communications Port42Figure 2-13: Directing Windows to the .inf File for the CDC – Serial Emulator Application43Figure 2-14: Successful Software Installation Window43Establish Communication44Figure 2-15: Example List of Available COM Ports in the Device Manager44Figure 2-16: Hyper Terminal Connection Description45Figure 2-17: Hyper Terminal Connect to Window45Figure 2-18: Hyper Terminal COM Properties Window46Testing the Application46Figure 2-19: Confirming RS-232 to USB Communication47Chapter 2. Getting Started Project Labs13A.1 Introduction49Figure A-1: Low Pin Count USB Development Board Bill of Materals49A.2 Schematics50Figure A-2: Pickit™ 2 USB Development Schematic50Figure A-3: Pickit™ 2 Debug header51Worldwide Sales and Service54Größe: 799 KBSeiten: 54Language: EnglishHandbuch öffnen