MICROCHIP PICkit 2 Technical data

PICkit
TM
2
Microcontroller Programmer
USER’S GUIDE
© 2005 Microchip Technology Inc. DS51553A
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 Digit al Millennium Copyright Act. If suc h a c t s 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 Mic rochip’s products as critical components in life support systems is not authorized except with e xpress written a pproval by M icrochip. No licenses are con veyed, implicitly or otherwise, u nder any Microchip intellectual property rights.

Trademarks

The Microchip name and logo, the Microchip logo, Accuron, dsPIC, K
EELOQ, microID, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB, PICMASTER, 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, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Linear Active Thermistor, MPASM, MPLIB, MPLIN K, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel, Total Endurance and WiperLock 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.
© 2005, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 quality system certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona and Mountain View, California in October 2003. The Company’s quality system processes and procedures are for its PICmicro 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.
®
8-bit MCUs, KEELOQ
®
code hopping
DS51553A-page ii © 2005 Microchip Technology Inc.
PICkitTM 2 USER’S GUIDE
Table of Contents
Preface ...........................................................................................................................1
Chapter 1. PICkit™ 2 Overview
1.1 Introduction .....................................................................................................5
1.2 Highlight s ......... .. ............... ................ ............... ................ ............... ................ 5
1.3 PICkit™ 2 Mi cr o c o nt ro ller Programm e r Con te n ts .................... ............... ....... 5
1.4 Introducing the PICkit™ 2 Microcontroller Programmer .................................5
1.5 PICkit™ 2 Mi cr o c o nt ro ller Programme r O v e rv ie w ...... ... ............... ............... ... 6
1.6 Program min g So f tw a re ..... ... ............... ............... ................ ............... ... ........... 8
Chapter 2. Getting Started
2.1 Introduction ................................................................................................... 11
2.2 Installing the PICkit 2 Programming Software .............................................. 11
2.3 Using the PIC kit 2 Programm in g S o ftware .... .. ............................. ............... . 11
Chapter 3. PICkit™ 2 and ICSP™
3.1 Introduction ................................................................................................... 17
3.2 Isolate V
3.3 Isolate ICSPCLK or PGC and ICSPDAT or PGD pins .................................18
3.4 V
DD ............... ....................... ................... ....................... ...................... ......... 19
3.5 V
SS ............................................................................................................... 20
3.6 Other Cons id e ra tions ..... ................ ............... ................ ............... ............... . 20
PP/MCLR/Port Pin ........................................................................... 18
Chapter 4. Updating the PICkit™ 2 Operating System
4.1 Introduction ................................................................................................... 21
4.2 Updating the PICkit 2 Microcontroller Programmer ...................................... 21
Chapter 5. Troubleshooting
5.1 Introduction ................................................................................................... 23
5.2 Frequently Asked Questions ..................................... ...................................23
Appendix 6. Hardware Schematics
6.1 Introduction ................................................................................................... 25
Worldwide Sales and Service ....................................................................................28
© 2005 Microchip Technology Inc. DS51553A-page iii
PICkitTM 2 User’s Guide
NOTES:
DS51553A-page iv © 2005 Microchip Technology Inc.
PICkit™ 2 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 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 on-line help files.
INTRODUCTION
This chapter contains general information about this user’s guide and customer support that will be useful prior to using the PICkit™ 2 Microcontroller Programmer. Items discussed in this chapter include:
• Document Layout
• Conventions Used in this Guide
• Warr anty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
• Troubleshooting
®
IDE on-line help.
DOCUMENT LAYOUT
This document describes how to use the PICkit™ 2 Microcontroller Programmer. The manual layout is as follows:
Chapter 1. PICkit™ 2 Overview – An overview of the PICkit™ 2 Microcontroller Programmer.
Chapter 2. Getting St ar ted – Provides instruction on how to get started using the PICkit™ 2 Microcontroller Programmer to program Flash-based PICmicro microcontroller units (MCU).
Chapter 3: PICkit™ 2 and ICSP™ – Provides instruction on programming with the PICkit™ 2 Microcontroller Programmer using In-Circuit Serial Programming™ (ICSP™).
Chapter 4: Up dating the PI Ckit™ 2 O perat ing Sys tem – Provides instruction on how to update your PICkit™ 2 Microcontroller Programmer’s Operating System.
© 2005 Microchip Technology Inc. DS51553A-page 1
®
PICkit™ 2 USER’S GUIDE
Chapter 5: Troubleshooting – Provides resolutions for frequently asked questions that solve common problems when using the PICkit™ 2 Microcontroller Programmer.
Appendix A: Hardware Schematics – Illustrates the PICkit™ 2 Microcontroller Programmer hardware schematic diagrams.
CONVENTIONS USED IN THIS GUIDE
This manual uses the following docum entatio n conv en tion s
DOCUMENTATION CONVENTIONS
Description Represents Examples
Code (Courier font):
Plain characters Sample code
Filenames and paths Angle brackets: < > Variables <label>, <exp> Square brackets [ ] Optional arguments MPASMWIN [main.asm] Curly brackets and pipe
character: { | } Lowercase characters i n
quotes Ellipses... Used to imply (but not show) addi-
0xnnn A hexadecimal number where n is a
Italic characters A variable argument; it can b e either a
Interface (Arial font):
Underlined, italic text with right arrow
Bold characters A window or dialog button to click OK, Cancel Characters in angle
brackets < >
Documents (Arial font):
Italic characters Referenced books MPLAB
Choice of mutually exclusive argu-
ments; An OR selection
Type of data
tional text that is not relevant to the
example
hexadecimal digit
type of data (in lo wercase ch arac te rs)
or a specific example (in uppercase
characters).
A menu selection from the menu bar File > Save
A key on the keyboard <Tab>, <Ctrl-C>
#define START c:\autoexec.bat
errorlevel {0|1}
"filename"
list
"list_option...,
[
"list_option"]
0xFFFF, 0x007A
char isascii (char, ch);
®
IDE User’s Guide
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly. Sending in the Warranty Registration Card entitles users to receive new product updates. Interim software releases are available at the Microchip web site.
DS51553A-page 2 © 2005 Microchip Technology Inc.
RECOMMENDED READING
It is recommended that you become familiar with the documents listed below, prior to using the PICkit™ 2 Microcontroller Programmer.
PICkit 2 Low Pin Count Demo Board User’s Guide (DSXXXXX)
Consult this document for instructions on how to use Microchip Technology’s Low Pin Count devices (8-pin, 14-pin and 20-pin). This document includes a series of tutorials.
MPLAB
Consult this document for more information pertaining to the installation and features of the MPLAB Integrated Development Environment (IDE) Software.
®
IDE, Simulator, Editor User’s Guide (DS51025)
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web site is used as a means to make files and information easily available to customers. Accessible by using your favorite Internet browser, 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 listing
Business of Microchip – Product selector and ordering guides, latest Microchip press releases, listing of seminars and events, listings of Microchip sales offices, distributors and factory representatives
Preface
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 www.microchip.com, click on Customer Change Notification and follow the registration instructions.
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; MPASM™ and MPLAB ASM30 assemblers; MPLINK™ and MPLAB LINK30 object linkers; and MPLIB™ and MPLAB LIB30 object librarians.
Emulators – The latest information on Microchip in-circuit emulators.This includes the MPLAB ICE 2000 and MPLAB ICE 4000.
In-Circuit Debuggers – The latest information on the Microchip in-circuit debugger, MPLAB ICD 2.
MPLAB 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 and PRO MATE Plus and PICkit
®
IDE – The latest information on Microchip MPLAB IDE, the Windows®
®
®
1development programmers.
II device programmers and the PICSTART®
© 2005 Microchip Technology Inc. DS51553A-page 3
PICkit™ 2 USER’S GUIDE
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
• Development Systems Information Line 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 In additi on, t her e is a De velopm ent Sys tem s Info rma tio n Li ne wh ich l is t s the l at est ver-
sions of Microchip’s development systems software products. This line also provides information on how customers can receive currently available upgrade kits.
The Development Systems Information Line numbers are: 1-800-755-2345 – United States and most of Canada 1-480-792-7302 – Other Interna tio nal Loca tio ns
DOCUMENT REVISION HISTORY
Revision A (May 2005)
• Initial Release of this Document.
TROUBLESHOOTING
• See Chapter 5 for information on common problems.
DS51553A-page 4 © 2005 Microchip Technology Inc.
PICkitTM 2 USER’S GUIDE

Chapter 1. PICkit™ 2 Overview

1.1 INTRODUCTION

This chapter introduces the PICkit™ 2 Microcontroller Programmer and describes the PICkit™ 2 Microcontroller Programmer features and menu functions.

1.2 HIGHLIGHTS

This chapter discusses:
• The PICkit™ 2 Contents
• The PICkit™ 2 Overview
• PICkit™ 2 Programming Software

1.3 PICkit™ 2 MICROCONTROLLER PROGRAMMER CONTENTS

The PICkit™ 2 Microcontroller Programmer Kit contains the following items:
1. The PICkit™ 2 Microcontroller Programmer
2. USB cable
3. PICkit™ 2 Starter Kit CD ROM

1.4 INTRODUCING THE PICkit™ 2 MICROCONTROLLER PROGRAMMER

The PICkit™ 2 Microcontroller Programmer is a low cost development programmer. It is capable of programming most of Microchip’s Flash microcontrollers. For specific products supported, see the README file included on the PICkit™ 2 Starter Kit CD ROM.
The PICkit™ 2 Microcontroller Programmer Operating System (firmware) can be easily upgraded from the programming software. New device support can be added by updating the operating system. The latest firmware is available on Microchip’s web site, www.microchip.com.
Note: The PICkit™ 2 Microcontroller Programmer is intended for development
programming. For production programming, please consider the MPLAB PM3 Programmer or other third party programmers designed for the production environment.
© 2005 Microchip Technology Inc. DS51553A-page 5
PICkitTM 2 User’s Guide

1.5 PICkit™ 2 MICROCONTROLLER PROGRAMMER OVERVIEW

The PICkit™ 2 Microcontroller Programmer overview is shown in Figure 1-1.

FIGURE 1-1: PICkit™ 2 MICROCONTROLLER PROGRAMMER

3
2
1
4
6
Legend:
1 – Status LEDs 3 – Lanyard Connection 5 – Pin 1 Marker 2 – Push Button 4 – USB Port Connection 6 – Programming Connector
5
1.5.1 USB Port Connection
The USB Port Connection is a USB mini-B connector. Connect the PICkit™ 2 Microcontroller Programmer to the PC using the supplied USB cable.
1.5.2 Status LEDs
The Status LEDs indicate the status of the PICkit™ 2 Microcontroller Programmer.
1. Power (green) – Power is applied to the PICkit™ 2 Microcontroller Programmer via the USB port.
2. Target (yellow) – The PICkit™ 2 Microcontroller Programmer is powering the target device.
3. Busy (red) – The PICkit™ 2 Microcontroller Programmer is busy with a function such as Program mode or is alerting that a function is in progress.
1.5.3 Push Button
The push button is for initiating a function and presently not implemented.
DS51553A-page 6 © 2005 Microchip Technology Inc.
Loading...
+ 22 hidden pages