Note the following details of the code protection feature on Microchip devices:
•Microchip products meet the specification contained in their particular Microchip Data Sheet.
•Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•Microchip is willing to work with the customer who is concerned about the integrity of their code.
•Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance,
TSHARC, UniWinDriver, WiperLock and ZENA are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
T empe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
devices, Serial EEPROMs, microperipherals, nonvolatile memo ry and
analog products. In addition, Microchip’s quality system for the desig n
and manufacture of development systems is ISO 9001:2000 certified.
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs
and/or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the page number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available online help files.
®
IDE online help.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
starter kit. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This document describes how to use the PIC32 (Gen e ra l Purp os e) Starter Kit, PIC32
USB Star ter Kit II, and the PIC32 Ethernet S tar ter Kit (all also referred to as “st arter kit”)
as a development tool to emulate and debug firmware on a target board. This user’s
guide is composed of the following chapters:
• Chapter 1. “Introduction” provides a brief overview of the starter kit, highlighting
its features and uses.
• Chapter 2. “Hardware” provides the hardware descriptions of the starter kit.
• Appendix A. “Board Layout and Schematics” provides a block diagram, board
layouts, and detailed schematics of the starter kit.
This user’s guide describes how to use the starter kit. The following Microchip
documents are available and recommended as supplemental reference resources.
PIC32MX5XX/6XX/7XX Family Data Sheet (DS61156)
Refer to this document for detailed information on PIC32 devices. Reference
information found in this data sheet includes:
• Device memory maps
• Device pinout and packaging details
• Device electrical specifications
• List of peripherals included on the devices
MPLAB® C Compiler for PIC32 User’s Guide (DS51686)
This document, formerly the “MPLAB C32 C Compiler for PIC32 User’s Guide”, details
the use of Microchip’s MPLAB C Compiler for PIC32 to develop an application.
MPLAB® IDE User’s Guide (DS51519)
Refer to this document for more information pertaining to the installation and
implementation of the MPLAB IDE software, as well as the MPLAB Editor and MPLAB
SIM Simulator software that are included with it.
Universal Serial Bus Specification and Associated Documents
The Universal Serial Bus is defined by the USB 2.0 specification and its associated
supplements and class-specific documents. These documents are available from the
USB Implementers Forum. See their web site at: http://www.usb.org.
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at: http://www.microchip.com. This
web site makes files and informati on easily available to customers. Accessible by most
Internet browsers, the web site contains the following information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listings
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listings of seminars and events; and listings of Microchip sales
offices, distributors and factory representatives
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a spec ified product family or development tool of
interest.
To register, access the Microchip web site at http://www.microchip.com, click Customer Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compile rs and other language
tools. These include the MPLAB
assemblers; MPLINK™ and MPLAB 16-bit object linkers; and MPLIB™ and
MPLAB 16-bit object librarians.
• Emulators – The latest information on the Microchip MPLAB REAL ICE™
in-circuit emulator.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger , MPLAB ICD 3.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager
and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 device programmer and the PICkit™ 3 development
programmers.
®
C compiler; MPASM™ and MPLAB 16-bit
®
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sa les of fices ar e also available to help cu stomers. 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.
This is the initial release of the PIC32 USB Starter Kit II User’s Guide.
Revision B (December 2010)
This revision includes the following updates:
• All references to the PIC32 Starter Kit and PIC32 Ethernet Starter Kit have been
removed. User information on these two starter kits can be found in their
respective user’s guides, which are available from the Microchip web site.
• Formatting changes and minor text updates have been incorporated throughout
the document.
Thank you for purchasing the Microchip Technology PIC32 USB Starter Kit II. This
board provides a low-cost, modular development system for Microchip’s line of 32- bit
microcontrollers (MCUs).
The starter kit comes preloaded with demonstration software for the user to explore the
new features of the PIC32. It is also expandable through a modular expansion interface, which allows the user to extend its functionality. The starter kit also supplies
on-board circuitry for full debug and programming capabilities.
This chapter covers the following topics:
• Kit Contents
• PIC32 Functionality and Features
The preprogrammed example code on the PIC32 MCU is avai lable via download fr om
the Microchip web site at http://www.microchip.com. All project files have been included
so that the code may be used directly to restore the PIC32 MCU on the st arter kit to its
original state (i.e., if the sample device has been reprogrammed with another program).
1.1KIT CONTENTS
The PIC32 USB Starter Kit II contains the following items:
• PIC32 USB Starter Kit II Development Board
• USB mini-B to full-sized A cable – USB debug cable to debug and power the
board
• USB micro-B to full-sized A cable – PIC32 USB cable to communicate with the
PIC32 USB port
Note:If you are missing any part of a kit, contact a Microchip sales office for assis-
tance. A list of Microchip offices for sales and service is provided on the
back page of this document.
This chapter describes the hardware features of the starter kit.
2.1HARDWARE FEATURES
The key features of the PIC32 USB Starter Kit II are listed below. They are presented
in the order given in Section 1.2 “PIC32 Functionality and Features”. You can refer
to Figure 1-1 for their locations on the board.
2.1.1Processor Support
The PIC32 USB Starter Kit II is designed with a permanently mounted (i.e., soldered)
PIC32MX795F512L processor.
2.1.2Power Supply
There are two ways to supply power to the PIC32 USB Starter Kit II:
• USB bus power connected to USB debug connector J1.
• An external application board with a regulated DC power supply that provides +5V
can be connected to the J2 application board connecto r that is provided on the
bottom side of the board.
PIC32 USB STARTER KIT II
USER ’S GUIDE
One green LED (D3) is provided to show that the PIC32 microcontroller is powered up.
2.1.3Debug USB Connectivity
The PIC32 USB St arter Kit II includes a PIC32 MX440F512H USB mi crocontr oller that
provides debugger connectivity over USB. The PIC32MX440F512H is hard wired to th e
PIC32 device to provide two types of protocol translation:
• I/O pins of PIC32MX440F512H to the ICSP™ pins of the PIC32
• I/O pins of PIC32MX440F512H to the JTAG pins of the PIC32
The PIC32 USB Starter Kit II currently uses the JTAG pins of the PIC32 device for
programming and debugging.
2.1.4PIC32 USB Connectivity
There are three possible ways to connect to the PIC32 USB microcontroller:
•HOST Mode
Connect the device to the Type A connector J4, located on the top side of the
starter kit. If using the Debug USB port to power the Host port, install jumper JP2
to short the back-power prevention diode. Note that a maximum of ~400 mA can
be supplied from the Debug USB port to the Host port using this method.
If the full 500 mA supply is needed, an external supply must be connected to the
application board and jumper JP2 must be removed to pre vent back-powering the
Debug USB port.
• DEVICE Mode
First, connect the debug Mini-B USB cable to port J1. Next, c onnect t he st arter k it
to the host using a cable with a Type-B Micro plug to the starter kit’s Micro A/B
port J5, located on the bottom side of the starter kit. The other end of the cable
must have a Type-A plug. Connect it to a USB host. Jumper JP2 should be
removed.
•OTG Mode
Connect the starter kit to the OTG device using an OTG Micro A/B cable to the
Micro A/B port J5, located on the bottom side of the starter kit. The starter kit provides an on-board power supply capable of prov iding 1 20 mA Max. This supply is
controlled by the PIC32MX795F512L microcontroller. Jumper JP2 should be
removed.
2.1.5Switches
Push button switches provide the following functionality:
• SW1: Active-low switch connected to RD6
• SW2: Active-low switch connected to RD7
• SW3: Active-low switch connected to RD13
The switches do not have any debounce circuitry and require the use o f internal pull-up
resistors; this allows you to investigate software debounce techniques. When Idle, the
switches are pulled high (+3.3V). When pressed, they are grounded.
2.1.6LEDs
The RD0 through RD2 LEDs are connected to PORTD of the processor. The PORTD
pins are set high to light the LEDs.
2.1.7Oscillator Options
The installed microcontroller has an oscillator circuit connected to it. The main oscillator
uses an 8 MHz crystal (Y2) and functions as the controller’s primary oscillator. Use of
an external crystal is required to develop USB applications. The USB specification
dictates a frequency tolerance of ±0.25% for full speed. Non-USB applications can use
the internal oscillators. The starter kit also has provisions for an external secondary
oscillator (Y3); however, this is not populated.
The PIC32MX440F512H is independently clocked and ha s its own 8 MHz crystal (Y1).
2.1.8120-Pin Modular Expansion Connector
The PIC32 USB Starter Kit II has been designed with a 120-pin modular expansion
interface, which allows the board to provide basic generic functionality now, and easy
extendability to new technologies as they become available.