DM180021 Microchip Technology Inc., DM180021 Datasheet

no-image

DM180021

Manufacturer Part Number
DM180021
Description
MPLAB Starter Kit for PIC18F MCU
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of DM180021

Contents
MicroSD™ memory cardAcceleration sensorOLED display
Lead Free Status / Rohs Status
RoHS Compliant part

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM180021
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
DM180021
Manufacturer:
MICROCHIP
Quantity:
12 000
MPLAB Starter Kit
for PIC18F User’s Guide
© 2009 Microchip Technology Inc.
DS51852A

Related parts for DM180021

DM180021 Summary of contents

Page 1

... PIC18F User’s Guide © 2009 Microchip Technology Inc. MPLAB Starter Kit DS51852A ...

Page 2

... Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip’s quality system for the design and manufacture of development systems is ISO 9001:2000 certified. logo, MPLAB, PIC, PICmicro, PICSTART, 32 logo, REAL ICE, rfLAB, ® DSCs ® code hopping EE OQ © 2009 Microchip Technology Inc. ...

Page 3

... B.2 PIC18F Soft Start Circuitry ........................................................................... 34 B.3 Soft Start Functions and Usage ................................................................... 35 B.4 USB Suspend Current Limitations for the Starter Kit ................................... 37 Index ............................................................................................................................. 39 Worldwide Sales and Service .................................................................................... 42 © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F Table of Contents USER’S GUIDE DS51852A-page iii ...

Page 4

... MPLAB Starter Kit for PIC18F User’s Guide NOTES: DS51852A-page iv © 2009 Microchip Technology Inc. ...

Page 5

... Appendix B. USB Current Draw Requirements – This appendix briefly discusses USB current consumption specifications and the methods used by the starter kit to meet those specifications. © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F Preface NOTICE TO CUSTOMERS USER’ ...

Page 6

... Optional arguments mcc18 [options] file [options] Choice of mutually exclusive errorlevel {0|1} arguments selection Replaces repeated text var_name [, var_name...] Represents code supplied by void main (void) user { ... } © 2009 Microchip Technology Inc. Examples ® IDE User’s Guide ...

Page 7

... This document describes how to use the MPLAB IDE (Integrated Development Environment), as well as the MPLAB IDE Project Manager, MPLAB IDE Editor and MPLAB SIM Simulator. Use these development tools to help you develop and debug application code. © 2009 Microchip Technology Inc. Preface DS51852A-page 3 ...

Page 8

... MPLAB SIM Simulator, as well as general editing and debugging features. • Programmers – The latest information on Microchip programmers. These include the MPLAB PM3 device programmer and the PICSTART 2 development programmers. DS51852A-page 4 ® ® Plus, and PICkit 1 and © 2009 Microchip Technology Inc. ...

Page 9

... Local sales offices are also available to help customers. A listing of sales offices and locations is included in the back of this document. Technical support is available through the web site at: http://support.microchip.com DOCUMENT REVISION HISTORY Revision A (June 2009) • Initial Release of this Document © 2009 Microchip Technology Inc. Preface DS51852A-page 5 ...

Page 10

... MPLAB Starter Kit for PIC18F User’s Guide NOTES: DS51852A-page 6 © 2009 Microchip Technology Inc. ...

Page 11

... INITIAL BOARD SETUP With its pre-installed demo application, the MPLAB Starter Kit for PIC18F is designed to be used straight out of the box. Except for a single connection to a computer, no additional hardware or configuration is necessary. © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F ® Windows 2000 SP4, Windows XP SP2 or Windows Vista USER’ ...

Page 12

... If you do not see these messages and the starter kit does not work, try unplugging and reconnecting the USB. If this does not work, refer to Section Chapter 3. “Developing an Application”. FIGURE 1-1: DS51852A-page 8 STARTER KIT SETUP Starter Kit M MicroSD card A to mini-B USB Cable © 2009 Microchip Technology Inc. ...

Page 13

... MicroSD bootloader checks for a user request to run the bootloader (by pressing the S1 switch within a 10-second window). If this is not the case, the bootloader returns control to the application currently programmed in the microcontroller’s memory. FIGURE 2-1: © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F FUNCTIONAL BLOCK DIAGRAM OF BOOTLOADER Firmware ...

Page 14

... L button to cancel Card not detected! Please insert a valid MicroSD card to continue The following demo will be loaded: CUSTOM.HEX Press the R button to accept, or the L button to cancel PIC18F Starter Kit Mouse Demo v1.0 Press Menu to proceed © 2009 Microchip Technology Inc. ...

Page 15

... The touch pads are used for the Left and Right mouse buttons, while the scroll bar is used for the mouse scroll wheel. © 2009 Microchip Technology Inc. The Demonstration Application PROGRAM MEMORY MAP OF THE PIC18F46J50 DEMO ...

Page 16

... Rotate the potentiometer to change the rotation. 4. Buttons 1 and 2: Of the 13 buttons displayed, buttons 1 and 2 are controlled using the L and R touch pads, respectively. Press and hold the pad to turn on (light up) the corresponding joystick indicator. DS51852A-page 12 JOYSTICK DEMO PROPERTIES DIALOG © 2009 Microchip Technology Inc. ...

Page 17

... The state of the touch pads (pressed or not) is displayed in the Visual tab; all of the raw data is displayed in the Numeric tab. FIGURE 2-5: © 2009 Microchip Technology Inc. The Demonstration Application HID DEMO APPLICATION, VISUAL (LEFT) AND NUMERIC TABS ...

Page 18

... Obtain the hot fix available from Microsoft • Manually reassign the conflicting drive volume (such as a mapped network drive) with a drive letter that is later in the alphabet (such as “Z”) DS51852A-page 14 ® ® Visual C the executable fails to launch correctly, © 2009 Microchip Technology Inc. ...

Page 19

... Programming the Debugged Application • Creating Other Applications • Determining Device Support • Reserved Resources • Debug Version Information • Troubleshooting © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F USER’S GUIDE ® IDE, the free integrated DS51852A-page 15 ...

Page 20

... USB port on the PC or power hub, then to the starter kit at the mini-B receptacle, J3, on the application side of the board (Figure 3-2). FIGURE 3-2: DS51852A-page 16 CONNECTING THE STARTER KIT DEBUGGER/PROGRAMMER DEBUGGING A USB APPLICATION ON THE STARTER KIT Starter Kit mini-B USB Cable Starter Kit mini-B USB Cables © 2009 Microchip Technology Inc. ...

Page 21

... Debug code must be programmed into the target device to use the in-circuit debugging capabilities of the starter kit. FIGURE 3-3: STARTER KIT AS DEBUG TOOL IN MPLAB © 2009 Microchip Technology Inc. Developing an Application ® IDE DS51852A-page 17 ...

Page 22

... Watch windows, to aid in application code debugging. This section includes: • Editing Application Code • Using Breakpoints and Mouseovers • Using Watch Windows DS51852A-page 18 PIC18F STARTER KIT DEBUGGER TOOLBAR Run Halt Animate Step Into Step Over Reset Toolbar Buttons © 2009 Microchip Technology Inc. ...

Page 23

... Note: This feature must be set up. From the menu bar, select Edit>Properties; from the Properties dialog, select the Tooltips tab and then click the checkbox for “Enable Variable Mouseover Values”. © 2009 Microchip Technology Inc. Developing an Application EXAMPLE PROJECT DS51852A-page 19 ...

Page 24

... Watch window, or click in the “Address” column and enter an absolute address. A Watch window populated with the SFRs and Symbols will look like Figure 3-6. For more on using Watch windows, see MPLAB IDE Help. FIGURE 3-6: DS51852A-page 20 EXAMPLE BREAKPOINT EXAMPLE WATCH WINDOW © 2009 Microchip Technology Inc. ...

Page 25

... Firmware Version: The version of firmware on the starter kit board. • Debug Exec Version: The version of the debug executive that is loaded into the PIC18 device program memory to enable debug operation. © 2009 Microchip Technology Inc. Developing an Application DS51852A-page 21 ...

Page 26

... If during the course of developing your own application, you can no longer program the device on the starter kit, you may have set device Configuration bits to code-protect or some other state that prevents programming. To view the settings of the Configuration bits, select Configure>Configuration Bits. DS51852A-page 22 © 2009 Microchip Technology Inc. ...

Page 27

... Microchip Memory Disk Drive file system. The precompiled demos use substantial parts of the Microchip USB Stack Library. The applications accept user inputs from three sources: the capacitive touch pad, S1 (A5), the acceleration sensor, U6 (A4), and the potentiometer, R24 (A7). © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F Chapter 4. Hardware PIC18F46J50 ...

Page 28

... Power is provided via the USB cable; the nominal 5 volt unregulated supply is regulated by a Microchip MC1727 3.3 volt, Low Dropout (LDO) linear regulator. Proper main system power is indicated by the green LED (D2). DS51852A-page 24 Debug 12 MHz Crystal LED ICSP™ USB Data PIC18F67J50 SPI Serial EEPROM 25LC010A To Application Side (PIC18F46J50) © 2009 Microchip Technology Inc. ...

Page 29

... A Microchip 25LC010A serial EEPROM is used to store the starter kit’s serial number and debug control information. 4.3 BOARD COMPONENTS Figure 4-3 identifies the key hardware components for the starter kit. FIGURE 4-3: PIC18F STARTER KIT COMPONENT LAYOUT A8 A11 D4 © 2009 Microchip Technology Inc ...

Page 30

... Capacitive Touch Pad (S1) A6 mini-B USB (Peripheral) Receptacle (J3) A7 Potentiometer (R24) A8 Bootloader Reset Push Button Switch (S1) A9 MCP1727 Voltage Regulator (U5) A10 Soft Start Circuit (Q1) A11 OLED Voltage Boost Cicuitry , either from the Application or Programmer/Debugger side. BUS © 2009 Microchip Technology Inc. ...

Page 31

... USB specification. See Appendix B. “USB Current Draw Requirements” for more information. A11. MCP1727 Voltage Regulator (U5): The 3.3V linear regulator regulates the USB unregulated voltage to 3.3 volts (with respect to V with system power. © 2009 Microchip Technology Inc. Hardware . DC ) and supplies the starter kit ...

Page 32

... MPLAB Starter Kit for PIC18F User’s Guide NOTES: DS51852A-page 28 © 2009 Microchip Technology Inc. ...

Page 33

... Figure A-1: Programmer/Debugger System Application: • Figure A-2: Application Microcontroller, Touch Switches and Associated Components • Figure A-3: OLED Display, LED and Application Side USB Connectors © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F USER’S GUIDE DS51852A-page 29 ...

Page 34

... MPLAB Starter Kit for PIC18F User’s Guide FIGURE A-1: STARTER KIT SCHEMATIC, SHEET 1: PROGRAMMER/DEBUGGER SYSTEM DS51852A-page 30 © 2009 Microchip Technology Inc. ...

Page 35

... FIGURE A-2: STARTER KIT SCHEMATIC, SHEET 2: APPLICATION MICROCONTROLLER, SOFT START POWER CIRCUIT, ACCELEROMETER AND SWITCHES © 2009 Microchip Technology Inc. Starter Kit Schematics DS51852A-page 31 ...

Page 36

... MPLAB Starter Kit for PIC18F User’s Guide FIGURE A-3: STARTER KIT SCHEMATIC, SHEET 3: OLED DISPLAY, SD INTERFACE, APPLICATION SIDE USB CONNECTOR AND POWER SUPERVISOR, AND OTHER CONNECTORS DS51852A-page 32 © 2009 Microchip Technology Inc. ...

Page 37

... The first self-powered device and only draw current from the power supply. The second is to implement a software controlled method for reducing the current to below the 2.5 mA limit. © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F USER’S GUIDE DS51852A-page 33 ...

Page 38

... Note that the gate voltage decreases slowly and constantly over the entire potential threshold voltage range of Q1. DS51852A-page 34 PIC18F STARTER KIT SOFT START CIRCUIT +3.3V R21 C16 100k 0.1 μF R20 Q1 1.5k IRLML6402PBF APP_VDD RC0 © 2009 Microchip Technology Inc. ...

Page 39

... In light of the Total Application Current Draw specification of 100 mA, this function should not be called until after the device is enumerated. See the following section for more details. © 2009 Microchip Technology Inc. USB Current Draw Requirements VARYING PWM OUTPUT TO SLOWLY CROSS THE LINEAR REGION OF Q1’ ...

Page 40

... After the device resumes from suspend, the AppPowerEnable() and AppPowerReady() functions are used again to restart the application power. In this demo, that is done through the same calls in the ProcessIO() function that initially powered the device on start-up. DS51852A-page 36 USING AppPowerReady()TO CONTROL APPLICATION START-UP USING AppPowerDisable() © 2009 Microchip Technology Inc. ...

Page 41

... USB suspend specification. This can be achieved by switching to a lower clock frequency or placing the microcontroller into Sleep mode, among other possible methods. © 2009 Microchip Technology Inc. USB Current Draw Requirements DS51852A-page 37 ...

Page 42

... MPLAB Starter Kit for PIC18F User’s Guide NOTES: DS51852A-page 38 © 2009 Microchip Technology Inc. ...

Page 43

... Charge Time Measurement Unit (CTMU) ................ 24 Code Examples Using AppPowerDisable()................................. 36 Using AppPowerReady() to Control Application Start-up ............... 36 Customer Change Notification Service ...................... 4 Customer Support ...................................................... 5 D Debug ........................................................................ 7 Executive .......................................................... 17 Reserved Resources ........................................ 21 Setup ................................................................ 16 © 2009 Microchip Technology Inc. MPLAB STARTER KIT FOR PIC18F Index Debugger Toolbar Animate............................................................. Halt.................................................................... 18 Reset................................................................. 18 Run ................................................................... 18 Step Into ...

Page 44

... T Troubleshooting ....................................................... 22 U Unable to Enter Debug Mode .................................. 22 USB Current Specifications....................................... 33 Suspend Current Limitations ............................ 37 W Warranty Registration ................................................ 2 Watch Window ......................................................... 18 WWW Address........................................................... 4 © 2009 Microchip Technology Inc. Index DS51852A-page 40 ...

Page 45

... NOTES: © 2009 Microchip Technology Inc. Index DS51852A-page 41 ...

Page 46

... Fax: 886-3-6578-370 Taiwan - Kaohsiung Tel: 886-7-536-4818 Fax: 886-7-536-4803 Taiwan - Taipei Tel: 886-2-2500-6610 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 © 2009 Microchip Technology Inc. EUROPE Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 France - Paris Tel: 33-1-69-53-63-20 ...

Related keywords