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 t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
rfPIC and UNI/O are registered trademarks of Microchip
Technology Incor porated 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.
logo, REAL ICE, rfLAB, Select Mode, Total
Endurance, TSHARC, UniWinDriver, WiperLock and ZENA
are trademarks of Microchip Tec hnology Incorporat ed 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
Tempe, 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 memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
A.4 PIC32 USB Starter Kit II Development Board Block Diagram .....................60
A.5 PIC32 USB St a rter Kit II Board Layo u t ........................................................ 61
A.6 PIC32 USB St a rter Kit II Board Sch e m a tic s ............ .. .................................. 63
A.7 PIC32 Ethe rn e t St a rte r Ki t B lo c k D ia g r a m .. .. ............................................... 66
A.8 PIC32 Ethe rN e t St a rt e r K it B o a rd La y o u t ......... ........................................ .. . 67
A.9 PIC32 Ethe rn e t St a rte r Ki t B o ar d Sc h em a t ics .................. ........................... 69
Index .............................................................................................................................75
Worldwide Sales and Service ....................................................................................78
2010 Microchip Technology Inc.DS61159A-page 3
PIC32 Starter Kit User’s Guide
NOTES:
DS61159A-page 4 2010 Microchip Technology Inc.
PIC32 STARTER KIT
USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
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 p age 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 (General Purpose) Starter Kit, PIC32
USB Starter Kit II, and the PIC32 Ethernet Starter Kit (all also referred to as “starter 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 each starter kit,
highlighting their features and uses.
• Chapter 2. “Tutoria l” provides step-by-ste p instructions f or installing a st arter kit an d
using the Microchip MPLAB I DE to build an d r un the tutorial program on a starter kit.
• Chapter 3. “Create a New Project” provides step-by-step instructions for creating
a new project using the MPLAB
• Chapter 4. “Starter Kit Demos” provides a brief description of each demo
provided with the PIC32 Starter Kit CD.
• Chapter 5. “Hardwa re ” provides the hardware descriptions of each starter kit.
• Appendix A. “Board Layout and Schematics” provides a block diagram, board
layouts, and detailed schematics of each starter kit.
®
IDE and loading it on to a starter kit.
2010 Microchip Technology Inc.DS61159A-page 5
PIC32 Starter Kit User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following docum entat io n conven tion s:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Arial font:
®
Italic charactersReferenced booksMPLAB
Emphasized text...is the only compiler...
Initial capsA windowthe Output window
A dialogthe Settings dialog
A menu selectionselect Enable Programmer
QuotesA field name in a window or dialog “Save project before build”
Underlined, italic text with right
A menu pathFile>Save
angle bracket
Bold charactersA dialog buttonClick OK
A tabClick the Power tab
Text in angle brackets < >A key on the keyboardPress <Enter>, <F1>
Courier New font:
Plain Courier New
Sample source code
Filenames
File paths
Keywords
Command-line options
Bit values
Constants (in source code)
Italic Courier NewA variable argument
arguments; an OR selection
Ellipses...Replaces repeated text
Represents code supplied by user
mcc18 [options] file
[options]
errorlevel {0|1}
var_name [, var_name...]
void main (void)
{ ...
}
IDE User’s Guide
file can be any
DS61159A-page 6 2010 Microchip Technology Inc.
RECOMMENDED READING
This user’s guide describes how to use the starter kit. The following Microchip
documents are available and recommended as supplemental reference resources.
Release Notes for Starter Kit
For the latest information on the starter kit, open the PIC32 Starter Kit Release
The file generally contains the most current update information, as well as any issues
that may not have been available when this user’s guide was published.
PIC32MX3XX/4XX Family Data Sheet (DS61143) and
PIC32MX5XX/6XX/7XX Family Data Sheet (DS61156)
Consult these documents for detailed information on PIC32 devices. Reference
information found in these data sheets includes:
• Device memory maps
• Device pinout and packaging details
• Device electrical speci fic ati on s
• List of peripherals included on the devices
located in either the root directory of the PIC32 Starter Kit CD or (default):
Preface
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)
Consult 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 Specificati on 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 website 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 information 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
2010 Microchip Technology Inc.DS61159A-page 7
PIC32 Starter Kit User’s Guide
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 specified 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 instructi ons.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers and other language
tools. These include the MPLAB C18 and MPLAB C30 C compilers, and MPLAB
C Compiler for PIC32; ASM32, MPASM™ and MPLAB ASM30 assemblers;
MPLINK™, and MPLAB LINK30, MPLAB LINK32 object linkers; and MPLIB™
and MPLAB LIB30 object librarians.
• Emulators – The latest information on Microchip in-circuit emulators. This
includes the MPLAB REAL ICE™ and MPLAB ICE 2000 in-circuit emulators.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debuggers. This includes the MPLAB ICD 3 and PICkit™ 2.
• 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 IDE Project Manager, MPLAB Editor and
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
PICkit 2 developm ent pr ogrammers.
®
Plus, PICkit™ 1 and
®
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 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
DS61159A-page 8 2010 Microchip Technology Inc.
DOCUMENT REVISION HISTORY
Revision A (January 2010)
This is the initial release of the PIC32 Starter Kit User’s Guide.
Preface
2010 Microchip Technology Inc.DS61159A-page 9
PIC32 Starter Kit User’s Guide
NOTES:
DS61159A-page 10 2010 Microchip Technology Inc.
PIC32 STARTER KIT
USER’S GUIDE
Chapter 1. Introduction
Thank you for purchasing a Microchip T echnology PIC32 starter kit. The board included
in the starter kit (PIC32 (General Purpose) Starter Kit, PIC32 USB Starter Kit II, or
PIC32 Ethernet Starter Kit) provides a low-cost, modular development system for
Microchip’s line of 32-bit microcontrollers.
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 available via download from
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 starter kit to its
original state (i.e., if the sample device has been reprogrammed with another program)
or so you can use the tutorial code as a platform for further experimentation. Refer to
2.2 “Installing the Starter Kit Software” for download and installation instructions.
1.1KIT CONTENTS
1.1.1PIC32 (General Purpose) Starter Kit
The PIC32 Starter Kit contains the following items:
• PIC32 Starter Kit Board
•USB Mini-B cable
• PIC32 Starter Kit Installation CD-ROM
1.1.2PIC32 USB Starter Kit II
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
2010 Microchip Technology Inc.DS61159A-page 11
PIC32 Starter Kit User’s Guide
1.1.3PIC32 Ethernet Starter Kit
The PIC32 Ethernet Starter Kit contains the following items:
• PIC32 Ethernet Starter Kit 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
• RJ-45 CAT5 Ethernet patch cable – Ethernet CAT5 cable to communicate with the
PIC32 Ethernet 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.
DS61159A-page 12 2010 Microchip Technology Inc.
1.2PIC32 FUNCTIONALITY AND FEATURES
M
7
6
5
4
3
2
1
10
8
8
8
9
9
9
1.2.1PIC32 (General Purpose) Starter Kit
A representation of the layout of the PIC32 Starter Kit is shown in Figure 1-1. The board
includes these key features, as indicated in the diagram:
1. PIC32MX360F512L 32-bit microcontroller.
2. Green power indicator LED.
3. Regulated +3.3V power supply for powering the starter kit board via USB or
expansion board.
4. On-board crystal for precision microcontroller clocking (8 MHz).
5. USB connectivity for on-board debugger communications.
6. PIC18LF4550 USB microcontroller for on-board debugging.
7. Orange Debug indicator LED.
8. Three push-button switches for user-defined inputs
9. Three user-defined indicato r LED s.
10. Connector for connecting various expansion boards (on the underside of board).
For details on these features, refer to Chapter 5. “Hardware”.
FIGURE 1-1:PIC32 STARTER KIT DEMO BOARD LAYOUT
.
2010 Microchip Technology Inc.DS61159A-page 13
PIC32 Starter Kit User’s Guide
4
5
6
6
6
7
7
7
1
3
8
2
9
1.2.2PIC32 USB Starter Kit II
Representations of the layout of the PIC32 USB Starter Kit II are shown in Figure 1-2
and Figure 1-3.
The top assembly of the board includes these key features, as indicated in Figure 1-2:
1. PIC32MX795F512L 32-bit microcontroller.
2. Green power indicator LED.
3. On-board crystal for precision microcontroller clocking (8 MHz).
4. USB connectivity for on-board debugger communications.
5. Orange debug indicator LED.
6. Three push button switches for user-defined inputs.
7. Three user-defined indicato r LED s.
8. USB Type A receptacle connectivity for PIC32 host-based applications.
9. HOST mode power jumper.
Note:When running USB device applications, open the jumper JP2 to prevent
possibly back-feeding voltage onto the V
another (or from one host to another).
FIGURE 1-2:PIC32 USB STARTER KIT II LAYOUT (TOP SIDE)
BUS from one port on the host to
DS61159A-page 14 2010 Microchip Technology Inc.
The bottom assembly of the board includes these key features, as indicated in
3
1
4
2
5
Figure 1-3:
1. PIC32MX440F512H USB microcontroller for on-board debugging.
2. Regulated +3.3V power supply for powering the starter kit via USB or expansion
board.
3. Connector for various expansion boards.
4. USB Host and OTG power supply for powering PIC32 USB applications.
5. USB Type Micro-AB receptacle for OTG and USB device connectivity for PIC32
OTG/device-based applications.
FIGURE 1-3:PIC32 USB STARTER KIT II LAYOUT (UNDERSIDE)
2010 Microchip Technology Inc.DS61159A-page 15
PIC32 Starter Kit User’s Guide
T able 1-1 shows the 100-pin to J2 connector serial communication mapping for the key
digital modules available on the PIC32 device.
Serial communication module pins are multiplexed. These pins can be used for a single
serial communication module or can be split between two serial communication
modules. For example, four pins can be selected for the UART module with flow
control, or the UART module can be selected without flow control, which uses only two
pins, leaving two pins available for use by the I
TABLE 1-1:J2 CONNECTOR MAP FOR SERIAL COMMUNICATIONS
T able 1-2 shows the 100-pin to J2 connector serial communication mapping for the key
digital modules available on the PIC32 device.
Serial communication module pins are multiplexed. These pins can be used for a single
serial communication module or can be split between two serial communication
modules. For example, four pins can be selected for the UART module with flow
control, or the UART module can be selected without flow control, which uses only two
pins, leaving two pins available for use by the I
2
C, SPI or ECAN modules.
TABLE 1-2:J2 CONNECTOR MAP FOR SERIAL COMMUNICATIONS
This chapter is a self-paced tutorial to get you started using the starter kit. Items
discussed in this chap ter inc lud e :
• Host Computer Requirements
• Installing the Starter Kit Software
• Using the Starter Kit Out of the Box
• Starting the Tutorial Project
• Building the Project
• Programming the Device
• Running the Program
• Tutorial Program Operation
2.1HOST COMPUTER REQUIREMENTS
To communicate with and program the starter kit, the following hardware and software
requirements must be met:
• PC-compatible system
• Two available USB ports on PC or powered USB hub
• Microsoft Windows
Ethernet Starter Kit has not been tested on the Windows NT
®
2000
operating systems.)
®
XP® or Windows Vista® operating system (The PIC32
PIC32 STARTER KIT
USER’S GUIDE
®
and Windows
2010 Microchip Technology Inc.DS61159A-page 21
PIC32 Starter Kit User’s Guide
2.2INS TALLING THE STARTER KIT SOFTW A RE
As a USB device, the starter kit requires very little effort to install; most of the work is
done by the operating system. Begin by closing all applications.
2.2.1Install the Tools and Projects
1. Insert the PIC32 Starter Kit CD into your CD-ROM drive and click the Insta ll from
CD menu option. If the installation application does not automatically start,
navigate to the files on the CD and open
The following window appears:
FIGURE 2-1:INSTALLING THE PIC32 STARTER KIT BOARD
setup.exe.
2. Reboot your system when prompted to do so.
Note:The dialog also provides an option to check the Microchip web site for
newer versions of the starter kit software.
2.2.2View the Getting Started Tutorial
Perform the following steps to view the tutorial:
1. After your computer has rebooted, the Getting Started Tutorial menu opens.
2. View the tutorial instructions for connecting to the starter kit board and running
the tutorial project.
If you performed the installation steps as you followed along in the Getting Started
tutorial, skip to Section 2.4 “Starting the Tutorial Project” on page 27.
If you did not, continue to the next page for instructions about how to connect the board
and install the device driver.
DS61159A-page 22 2010 Microchip Technology Inc.
2.2.3Connect the Starter Kit Board
Using the supplied USB cable, connect the board to an open USB port on your computer. (A USB hub that is not bus-powered can also be used.) Connect the other end
of the cable into the USB connector on the starter kit board.
Check the board: the green power LED D3 should be lit. If it is not, check the
connections at the port, hub and board.
2.2.4Install the USB Device Driver
Note:The USB driver installation steps described here refer specifically to
installing the driver on a Microsoft Windows XP operating system.
Perform the following steps to install the USB device driver:
1. When the USB cable is connected, the “Found New Hardware Wizard” dialog
box opens, as shown in Figure 2-2. When asked whether to install the software
automatically or install from a list or specific location, select “Install software
automatically” and then click Next.
FIGURE 2-2:FOUND NEW HARDWARE WIZARD
2010 Microchip Technology Inc.DS61159A-page 23
PIC32 Starter Kit User’s Guide
2. As shown in Figure 2-3, the next dialog box tracks the wizard as it searches for
the device. (This activity may take several seconds.) When it is done, click Next.
FIGURE 2-3:HARDWARE WIZARD – SEARCHING FOR DEVICE
3. If prompted to select a driver, select
Next to continue.
FIGURE 2-4:HARDWARE WIZARD – SELECTING THE DRIVER
mp32mxsk.inf, as shown in Figure 2-4. Click
DS61159A-page 24 2010 Microchip Technology Inc.
Loading...
+ 54 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.