User Manual (DV007004)Table of ContentsPreface7Documentation Conventions9Chapter 1. MPLAB PM3 Overview131.1 Introduction131.2 What is MPLAB PM3?131.3 What MPLAB PM3 Does131.4 MPLAB PM3 System Components14Figure 1-1: MPLAB® PM3 Device Programmer141.5 MPLAB PM3 CE Compliance141.6 How MPLAB PM3 Helps You151.7 MPLAB PM3 Operating with a PC151.8 MPLAB PM3 Operating without a PC (Stand-alone)151.9 MPLAB Integrated Development Environment151.10 MPLAB Development Tools16Chapter 2. Installing MPLAB PM3172.1 Introduction172.2 Installing MPLAB PM3 Software172.2.1 MPLAB IDE Software Installation172.2.2 USB Driver Installation182.3 Installing MPLAB PM3 Hardware18Figure 2-1: Back view of MPLAB® PM3182.3.1.1 For USB Communications192.3.1.2 For RS-232 Communications19Figure 2-2: Top view of MPLAB® PM3202.3.3.1 Socket Module Installation202.3.3.1.1 For MPLAB PM3 Socket Modules202.3.3.1.2 For PRO MATE II Socket Modules202.3.3.2 ICSP Cable Installation212.3.3.3 MPLAB PM3 Card Insertion212.4 Powering Up MPLAB PM321Table 2-1: Status LED indications22Table 2-2: Power LED222.5 Configuring MPLAB IDE for Use with MPLAB PM3222.5.1 Starting MPLAB IDE22Figure 2-3: MPLAB® IDE Desktop22Figure 2-4: Select Programmer Menu232.5.3.1 Serial Communications24Figure 2-5: Communications Port Setup Dialog242.5.3.2 USB Communications25Figure 2-6: USB Port25Figure 2-7: Select Device Dialog26Figure 2-8: Enable Programmer26Figure 2-9: Communications Error Dialog27Chapter 3. Tutorial293.1 Introduction293.2 Before You Begin293.3 Programming Overview293.4 Selecting the Device30Figure 3-1: Selecting the Device303.5 Creating the Project30Figure 3-2: Project Wizard Welcome Screen30Figure 3-3: Project Wizard – Select Device313.6 Setting Up Language Tools32Figure 3-4: Project Wizard – Select Language Tools323.7 Naming the Project33Figure 3-5: Project Wizard – Name Project333.8 Adding Files to the Project34Figure 3-6: Project Wizard – Select Template File34Figure 3-7: Project Wizard – Select Linker Script35Figure 3-8: Project Wizard – Summary35Figure 3-9: Project Window363.9 Building the Initial Project36Figure 3-10: Initial Build Results Window363.10 Creating Code37Figure 3-11: Template File37Figure 3-12: Template File – Main37Figure 3-13: Template File – Add Code38Figure 3-14: Template File – Add Variables393.11 Building the Project40Figure 3-15: Build Output window403.12 Enabling MPLAB PM341Figure 3-16: Viewing Program Memory413.13 Programming the Device42Figure 3-17: Programming Results423.14 Verifying the Programming423.15 Tutorial Summary42Chapter 4. Using MPLAB PM3 with MPLAB IDE434.1 Introduction434.2 Before You Begin434.3 MPLAB PM3 Dialogs434.4 Setup for Programming a Device434.5 Programming a Device44Figure 4-1: Configuration Bits Dialog44Figure 4-2: User ID Memory Dialog45Figure 4-3: Program Memory — Hex Code Display464.5.3.1 Imported Hex Files and EEPROM Data46Figure 4-4: Windowed Device47Table 4-1: Memory Ranges Tab Options484.6 Verifying the Programming484.7 Reading a Device494.8 Special Programming494.8.1 SQTP494.8.2 ICSP Programming50Figure 4-5: ICSP™ options50Chapter 5. Using MPLAB PM3 in Stand-Alone Mode515.1 Introduction515.2 Getting Started in Stand-alone Mode515.2.1 Installing a Socket Module515.2.2 Downloading a Hex File into MPLAB PM3 Memory515.3 Programming a Device52Figure 5-1: MPLAB® PM3 Main Menu525.3.2.1 Program/Verify Device52Chapter 6. Using the MPLAB PM3 Card556.1 Introduction556.2 MPLAB PM3 Environment56Figure 6-1: Layout of an Environment56Figure 6-2: Save Environment Dialog576.2.2.1 Using MPLAB IDE to Load an Environment586.2.2.2 Using Stand-alone Mode to Load an Environment586.3 MPLAB PM3 Card596.3.1 MPLAB PM3 Card Through MPLAB IDE596.3.2 MPLAB PM3 Card Through MPLAB PM3 Programmer59Chapter 7. MPLAB PM3 – MPLAB IDE Reference617.1 Introduction617.2 MPLAB PM3 Toolbar61Figure 7-1: MPLAB® PM3 Toolbar61Table 7-1: MPLAB® PM3 Toolbar commands627.3 Configure Menu62Table 7-2: Configure Menu627.4 MPLAB PM3 Programmer Menu63Table 7-3: MPLAB® PM3 Menu637.4.2.1 Output Window647.4.2.2 Program Memory window64Figure 7-2: Program Memory window647.5 Programmer Settings68Figure 7-3: Memory Ranges Tab68Table 7-4: Memory Ranges Options69Figure 7-4: Voltages Tab69Table 7-5: Flash Devices70Table 7-6: Non-Flash Devices70Table 7-7: All Devices70Table 7-8: Voltage Settings71Figure 7-5: SQTP Tab72Table 7-9: SQTP Menu727.5.4.1 Serial Communication73Figure 7-6: Serial Com Port737.5.4.2 USB Communications74Figure 7-7: USB Port747.5.4.3 Switching the Communication Mode747.5.5.1 Automatic Download75Figure 7-8: Configuration Tab75Figure 7-9: Manual Download767.6 Special Programming767.6.1 Using SQTP76Figure 7-10: SQTP Tab77Table 7-10: SQTP Menu777.6.2.1 Using Low Voltage Program78Figure 7-11: Low Voltage Program Option797.7 Files Used by MPLAB PM3807.7.1 Using Hexadecimal Record Formats80Table 7-11: PICmicro® MCU Device Family File FormatS80Table 7-12: Hex Data Record Format807.8 Upgrading the MPLAB PM3 Operating System81Chapter 8. Stand-Alone Reference838.1 Introduction838.2 MPLAB PM3 LCD and Keys83Figure 8-1: MPLAB® PM3 Front Panel838.2.1 LCD838.2.2 Keys848.3 Start-Up Sequence848.4 Main Menu848.4.1 Recently Used848.4.2 Select Device84Figure 8-2: Checksum Calculation Screen85Figure 8-3: Device ID Option Screen86Figure 8-4: Blank Check Override Screen86Figure 8-5: Go Pin Functionality Screen878.5 Command Menu888.5.1 Program Verify Device888.5.2 Verify Device88Table 8-1: All Functions Menu888.5.3.7.1 Pgm/Vfy Settings908.5.3.7.2 ICSP Settings918.5.3.7.3 Adjust Voltages918.5.3.7.4 Reset Voltages918.5.3.7.5 Reset Statistics Count918.5.3.7.6 Safe Mode91Chapter 9. MPLAB PM3 Card Reference939.1 Introduction939.2 MPLAB PM3 Card93Figure 9-1: Back view of MPLAB® PM3939.3 MPLAB PM3 Card Through MPLAB IDE939.3.1 Environment94Figure 9-2: Environment Submenu94Figure 9-3: Save Environment Dialog95Figure 9-4: Environment Destination WIndow96Figure 9-5: Copy Environment Dialog96Figure 9-6: Select Environment Window97Figure 9-7: View Environment Window98Figure 9-8: Example of Viewing an Environment98Figure 9-9: Load Environment Window99Figure 9-10: Delete Environment Window100Figure 9-11: List FIles Window101Figure 9-12: Format PM3 Card DIalog101Figure 9-13: MPLAB® PM3 Card Properties1029.4 MPLAB PM3 Card in Stand-alone Mode1039.4.1.1 Load an Environment1039.4.1.2 View an Environment1039.4.1.3 View Disk Contents1039.4.1.4 Open a Text File1039.4.1.5 Card Properties103Table 9-1: All Functions Menu104Table 9-2: MPLAB® PM3 Card Functions104Appendix A. Hardware Specifications105A.1 Introduction105A.2 Connecting to a PC via the Serial Port105Table A-1: PC Host to MPLAB® PM3 Signals105A.3 Programmer Specifications106A.3.1 Physical Dimensions and Layout106Figure A-1: MPLAB® PM3 Top View106Figure A-2: MPLAB® PM3 Back View106Table A-2: General Specifications107A.4 ICSP Hardware Specifications107A.4.1 ICSP Header and Cable Pinout107Figure A-3: ICSP™ Header Configuration107Table A-3: ICSP™ Cable Pinout107Table A-4: Power via MPLAB® PM3108Table A-5: Power via Target108Table A-6: ICSP™ I/O Operating Characteristics109Table A-7: PASS/FAIL Signals109Table A-8: Go Signal109A.5 Socket Module Specifications110A.5.1 Socket Specifications110Table A-9: Socket Vdd/Vpp Operating Characteristics110Table A-10: Socket I/O Operating Characteristics110Figure A-4: Socket Module Alignment111Table A-11: Socket Life Expectancy and Cleaning Method111A.5.4.1 Manufacturer111A.5.4.2 Insertions112A.5.4.3 Cleaning Method – Methyl Alcohol112Table A-12: Typical Programming Times in Stand-alone Mode112Appendix B. Troubleshooting113B.1 Introduction113B.2 Troubleshooting Hardware113B.3 Troubleshooting Operational Problems114B.3.1 Reading a Device Master in Stand-Alone Mode114B.3.2 Device Pin Damage114B.4 Troubleshooting Software114B.4.1.1 Serial Port Communications114B.5 Common Problems116B.5.1 Failure to Establish Communication with Programmer116B.5.2.1 Modem Interaction117B.5.2.2 Problems with a Serial Mouse117B.6 Error Messages – PC119B.6.1 Could Not Open the Communications Port119B.7 Error Messages – LCD120B.7.1 BIOS Errors120Table B-1: MPLAB® PM3 Beep Codes120Table B-2: BIOS Error Codes121B.8 Limitations122B.8.2.1 MPLAB PM3 Limitations for PIC18C601/801122B.8.2.2 MPLAB PM3 Limitations for All Devices122Glossary123Index137Worldwide Sales and Service140Size: 2.06 MBPages: 140Language: EnglishOpen manual