User Manual (DM180021)Table of ContentsTable of Contents3Preface5Chapter 1. Introduction to the Starter Kit111.1 Overview111.2 Operational Requirements111.3 Initial Board Setup111.3.1 Installing the Software121.3.2 Connecting the Hardware12Figure 1-1: Starter Kit Setup12Chapter 2. The Demonstration Application132.1 Bootloader From the MicroSD™ Memory Card13Figure 2-1: Functional Block Diagram of Bootloader13Figure 2-2: Typical Sequence for Bootloader Messages142.1.1 Memory Organization142.1.2 Remapped Vectors14Figure 2-3: Program Memory Map of the PIC18F46J50 Demo152.1.3 Writing Application Code152.2 USB HID Mouse Demo152.3 USB HID Joystick Demo16Figure 2-4: Joystick Demo Properties Dialog162.4 USB HID Custom Device Demo17Figure 2-5: HID Demo Application, Visual (Left) and Numeric Tabs172.4.1 mTouch™ Calibration182.5 USB CDC Demo182.6 USB MSD Card Reader Demo18Chapter 3. Developing an Application193.1 Setting Up an Example Application for Debug20Figure 3-1: Connecting the Starter Kit Debugger/Programmer20Figure 3-2: Debugging a USB Application on the Starter Kit20Figure 3-3: Starter Kit as Debug Tool in MPLAB® IDE213.2 Running the Example Application22Table 3-1: PIC18F Starter Kit Debugger Toolbar223.3 Debugging the Example Application223.3.1 Editing Application Code23Figure 3-4: Example Project233.3.2 Using Breakpoints and Mouseovers23Figure 3-5: Example Breakpoint243.3.3 Using Watch Windows24Figure 3-6: Example Watch Window243.4 Programming the Debugged Application253.5 Creating Other Applications253.6 Determining Device Support253.7 Reserved Resources253.8 Debug Version Information253.9 Troubleshooting263.9.1 Debug Connection Problems263.9.2 Programming Problems26Chapter 4. Hardware274.1 Application Functional Overview27Figure 4-1: Application Side Block Diagram274.2 Programmer/Debugger Functional Overview28Figure 4-2: Starter Kit Programmer/Debugger Block Diagram284.3 Board Components29Figure 4-3: PIC18F starter kit Component Layout29Table 4-1: PIC18F Starter Kit Component Descriptions30Appendix A. Starter Kit Schematics33Figure A-1: Starter Kit Schematic, Sheet 1: Programmer/Debugger System34Figure A-2: Starter Kit Schematic, Sheet 2: Application Microcontroller, Soft Start Power Circuit, Accelerometer and Switches35Figure A-3: Starter Kit Schematic, Sheet 3: OLED Display, SD Interface, Application Side Usb Connector and Power Supervisor, and Other Connectors36Appendix B. USB Current Draw Requirements37B.1 USB Current Specifications37B.1.1 Inrush Current37B.1.2 Total Application Current Draw37B.1.3 Suspend Current Limitations37B.2 PIC18F Soft Start Circuitry38Figure B-1: PIC18F Starter Kit Soft Start Circuit38Figure B-2: Varying PWM Output to Slowly Cross the Linear Region of Q1’s Output39Figure B-3: The Entire Soft Start Process39B.3 Soft Start Functions and Usage39B.3.1 AppPowerEnable()39B.3.2 AppPowerReady()40B.3.3 AppPowerDisable()40B.4 USB Suspend Current Limitations for the Starter Kit41Corporate Office46Atlanta46Boston46Chicago46Cleveland46Fax: 216-447-064346Dallas46Detroit46Kokomo46Toronto46Fax: 852-2401-343146Australia - Sydney46China - Beijing46China - Shanghai46India - Bangalore46Korea - Daegu46Korea - Seoul46Singapore46Taiwan - Taipei46Fax: 43-7242-2244-39346Denmark - Copenhagen46France - Paris46Germany - Munich46Italy - Milan46Spain - Madrid46UK - Wokingham46Worldwide Sales and Service46Index43Size: 1.21 MBPages: 46Language: EnglishOpen manual