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, Accuron,
dsPIC, K
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro,
PICSTART, PRO MATE, rfPIC and SmartShunt are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
SEEVAL, SmartSensor 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, In-Circuit Serial
Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,
PICDEM.net, PICtail, PIC
32
logo, PowerCal, PowerInfo,
PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total
Endurance, UNI/O, 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.
© 2008, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
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
®
MCUs and dsPIC
®
DSCs, K
EE
L
OQ
®
code hopping
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.
DS61146B-page ii
©
2008 Microchip Technology Inc.
GETTING STARTED WITH PIC32
Table of Contents
Preface ........................................................................................................................... 1
Chapter 1. PIC32 Features
1.1 Introduction ..................................................................................................... 7
1.2 Highlights ........................................................................................................ 7
Chapter 2. PIC32 Product Family
2.1 Introduction ..................................................................................................... 9
Chapter 3. PIC32 Architecture
3.1 Introduction ................................................................................................... 11
Chapter 4. PIC32 Tools
4.1 Introduction ................................................................................................... 15
4.2 Highlights ...................................................................................................... 15
4.3 MPLAB
®
IDE ................................................................................................ 15
4.4 MPLAB
®
C32 C Compiler ............................................................................. 16
4.5 Peripheral Libraries ...................................................................................... 17
4.6 Software Solutions ....................................................................................... 19
4.7 Demonstration, Development and Evaluation Boards .................................. 20
4.8 Technical Documentation ............................................................................. 20
Chapter 5. Step-by-Step Procedures to Setup, Build, and Run a Demo Project
5.1 Introduction ................................................................................................... 21
5.2 Highlights ...................................................................................................... 21
5.3 MPLAB IDE Setup ........................................................................................ 21
5.4 Step-by-step Guide Overview ...................................................................... 22
5.5 Selecting the Device ..................................................................................... 23
5.6 Creating the Project ...................................................................................... 24
5.7 Setting Up Language Tools .......................................................................... 25
5.8 Naming the Project ....................................................................................... 26
5.9 Adding Files to the Project ........................................................................... 27
5.10 Attaching the Debugger .............................................................................. 31
5.11 Building the Project .................................................................................... 32
5.12 Testing the Code ........................................................................................ 32
Chapter 6. Technical Support Resources
6.1 Introduction ................................................................................................... 37
Index ............................................................................................................................. 39
Worldwide Sales and Service .................................................................................... 40
©
2008 Microchip Technology Inc.
DS61146B-page iii
GETTING STARTED WITH PIC32
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 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
®
IDE online help.
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
This document is intended to enable new PIC32 users to get a basic hardware and soft-
ware understanding of the PIC32 architecture and quickly get started with software
development for PIC32 products.
This document is primarily written for anyone wanting to get overview knowledge of
PIC32 microcontrollers and associated technical collateral provided by Microchip and
its third party tools partners. A basic understanding of embedded systems development
and 'C' programming knowledge is required, if you are planning to follow step-by-step
instructions provided later in this document.
This chapter contains general information that will be useful to know before using the
PIC32. 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
©
2008 Microchip Technology Inc.
DS61146B-page 1