MPLAB® PM3 USER’S GUIDE © 2006 Microchip Technology Inc.
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.
MPLAB® PM3 USER’S GUIDE Table of Contents Preface ........................................................................................................................... 1 Chapter 1. MPLAB PM3 Overview 1.1 Introduction ..................................................................................................... 7 1.2 What is MPLAB PM3? .................................................................................... 7 1.3 What MPLAB PM3 Does ...................................................
MPLAB® PM3 User’s Guide Chapter 4. Using MPLAB PM3 with MPLAB IDE 4.1 Introduction ................................................................................................... 37 4.2 Before You Begin ......................................................................................... 37 4.3 MPLAB PM3 Dialogs .................................................................................... 37 4.4 Setup for Programming a Device .................................................................
Appendix A. Hardware Specifications A.1 Introduction .................................................................................................. 99 A.2 Connecting to a PC via the Serial Port ........................................................ 99 A.3 Programmer Specifications ........................................................................ 100 A.4 ICSP Hardware Specifications ................................................................... 101 A.5 Socket Module Specifications .........
MPLAB® PM3 User’s Guide NOTES: DS51464C-page vi © 2006 Microchip Technology Inc.
MPLAB® PM3 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.
MPLAB® PM3 User’s Guide DOCUMENT LAYOUT This document describes how to use MPLAB PM3 as a development tool to emulate and debug firmware on a target board. The manual layout is as follows: • Chapter 1. MPLAB PM3 Overview – Describes MPLAB PM3 and how it works. • Chapter 2. Installing MPLAB PM3 – Describes how to install MPLAB PM3 hardware and MPLAB software. Explains how to set up MPLAB IDE and MPLAB PM3 to work together and how to start MPLAB PM3 from MPLAB. • Chapter 3.
Preface CONVENTIONS USED IN THIS GUIDE This manual uses the following documentation conventions: DOCUMENTATION CONVENTIONS Description Arial font: Italic characters Initial caps Quotes Underlined, italic text with right angle bracket Bold characters N‘Rnnnn Text in angle brackets < > Courier New font: Plain Courier New Represents Referenced books Emphasized text A window A dialog A menu selection A field name in a window or dialog A menu path MPLAB® IDE User’s Guide ...is the only compiler...
MPLAB® PM3 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. RECOMMENDED READING This user's guide describes how to use the MPLAB PM3 programmer. Other useful documents are listed below. The following Microchip documents are available and recommended as supplemental reference resources.
Preface THE MICROCHIP WEB SITE Microchip provides on-line 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.
MPLAB® PM3 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 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.
MPLAB® PM3 USER’S GUIDE Chapter 1. MPLAB PM3 Overview 1.1 INTRODUCTION This chapter presents an overview of the features and requirements of MPLAB PM3. Topics covered in this chapter: • • • • • • • • • 1.
MPLAB® PM3 User’s Guide 1.4 MPLAB PM3 SYSTEM COMPONENTS The MPLAB PM3 device programmer system consists of the following: • MPLAB PM3 device programmer (see Figure 1-1) • Module sockets Note: • • • • • A complete line of socket modules is available. The socket modules may be ordered separately for the devices that will be programmed.
MPLAB PM3 Overview 1.6 HOW MPLAB PM3 HELPS YOU With the MPLAB PM3 device programmer, you can program Microchip devices from a PC Host, or you can use the device programmer as a stand-alone unit. • MPLAB PM3 is easy to use and flexible in programming Microchip devices and package types.
MPLAB® PM3 User’s Guide 1.10 MPLAB DEVELOPMENT TOOLS MPLAB IDE integrates several tools to provide a complete development environment. • MPLAB Project Manager The Project Manager is used to create a project and work with the specific files related to the project. When using a project, source code is rebuilt and downloaded to the simulator or emulator with a single mouse click. • MPLAB Editor The MPLAB Editor is used to create and edit text files such as source files, code and linker script files.
MPLAB® PM3 USER’S GUIDE Chapter 2. Installing MPLAB PM3 2.1 INTRODUCTION This chapter describes how to install MPLAB PM3 hardware and software. Topics covered in this chapter include: • • • • 2.
MPLAB® PM3 User’s Guide 2.2.2 USB Driver Installation NOTICE Do not allow the Windows OS to pick a USB driver. MPLAB PM3 will not work with this driver. You must follow the procedure specified at MPLAB IDE software installation to set up the USB driver or to fix an improper driver installation. Install MPLAB IDE first. The USB driver installation instructions will pop up at the end of MPLAB IDE installation. Follow those instructions to install the USB driver.
Installing MPLAB PM3 2.3.1.1 FOR USB COMMUNICATIONS • Connect one end of the USB cable to a USB port on your PC. • Connect the cable from the PC USB port to the corresponding USB connector on the back of MPLAB PM3. Note: 2.3.1.2 If you are using USB and a “New Hardware Detected” notice appears on your PC, you must follow the directions on installing the proper driver or your MPLAB PM3 will not work.
MPLAB® PM3 User’s Guide 2.3.3 Installing a Socket Module or ICSP Cable Socket modules are sold separately. MPLAB PM3 comes with an 18-inch ICSP cable for ICSP programming. See Figure 2-2 for location of socket module connectors and ICSP connector. TOP VIEW OF MPLAB® PM3 FIGURE 2-2: MPLAB® PM3 Device Programmer LCD ICSP Connector LEDs STATUS POWER ESC ENTER M Socket Module Connectors Keys/Buttons 2.3.3.
Installing MPLAB PM3 1. 2. 3. 4. Align the connectors on the adapter with the connectors on MPLAB PM3. Push the adapter down evenly mating the connectors. Align the socket module with the adapter on MPLAB PM3. Tighten the two socket module thumb screws evenly and simultaneously. Avoid over tightening; they should be finger-tight only. Note: The gold connector strips on the PRO MATE II socket module are relatively fragile.
MPLAB® PM3 User’s Guide 2.4.1 Indicator Lights and Buzzer Two indicator lights (LEDs) are located on the front of the programmer. A buzzer, for audio indication, is incorporated into the programmer as well. TABLE 2-1: STATUS LED INDICATIONS LED Condition Red Booting up, Programming Failed, Other Error Orange Working/Busy Green Programming Passed TABLE 2-2: POWER LED LED 2.4.
Installing MPLAB PM3 2.5.2 Selecting MPLAB PM3 as the Programmer In addition to MPLAB PM3, the PRO MATE II and PICSTART Plus device programmers are supported under MPLAB IDE. However, only one programmer can be used at a time. Select Programmer>Select Programmer>MPLAB PM3 to select MPLAB PM3 from the list of available programmers (Figure 2-4). After MPLAB PM3 is selected: • The Programmer menu changes to include the MPLAB PM3 Programmer Menu and Settings. • The MPLAB PM3 Toolbar is revealed.
MPLAB® PM3 User’s Guide 2.5.3 Setting Up the Communications Port You can set up MPLAB PM3 to communicate with MPLAB IDE through one of the serial COM ports (1-4) or USB. 2.5.3.1 SERIAL COMMUNICATIONS From the MPLAB Programmer menu, select Programmer>Settings and click on the Communications tab. A dialog similar to the one shown in Figure 2-5 will display. FIGURE 2-5: COMMUNICATIONS PORT SETUP DIALOG The Communications Port Setup dialog shows the possible PC serial and USB communication ports.
Installing MPLAB PM3 2.5.3.2 USB COMMUNICATIONS To use USB communications between the PC and the MPLAB PM3 device programmer, select the USB port (Figure 2-6). Click OK. CAUTION Do not allow the Windows OS to pick a USB driver; it will not work and you will then not be able to install the proper driver. Follow the procedure specified in Section 2.2 “Installing MPLAB PM3 Software”.
MPLAB® PM3 User’s Guide 2.5.4 Selecting a Device in MPLAB IDE Chose Configure>Select Device to select the device you wish to program from the list of available devices (Figure 2-7). When you select a device, indicators next to the Microchip Tools names show the level of support for that device: • Green – supports the device • Yellow – limited (advance) support • Red – no support. If the selected device is supported by MPLAB PM3, click OK. FIGURE 2-7: 2.5.
Installing MPLAB PM3 If MPLAB PM3 is not found on the selected port, the Communications Error dialog (Figure 2-9) will appear. FIGURE 2-9: COMMUNICATIONS ERROR DIALOG If you cannot establish communications between the PC and MPLAB PM3, please make sure you have installed the hardware and software correctly. If you still cannot establish communications between the PC and MPLAB PM3, refer to Appendix B. “Troubleshooting”. If you have been using another programmer (e.g.
MPLAB® PM3 User’s Guide NOTES: DS51464C-page 22 © 2006 Microchip Technology Inc.
MPLAB® PM3 USER’S GUIDE Chapter 3. Tutorial 3.1 INTRODUCTION The tutorial in this chapter leads you through the steps involved in programming the PIC18F452 PICmicro device using MPLAB IDE Project Wizard. 3.2 BEFORE YOU BEGIN Before you can begin this tutorial, you must: 1. Install the MPLAB IDE software. See Section 2.2 “Installing MPLAB PM3 Software”. 2. Install the MPLAB PM3 hardware. See Section 2.3 “Installing MPLAB PM3 Hardware”. 3.
MPLAB® PM3 User’s Guide 3.4 SELECTING THE DEVICE If you have not already selected the device in MPLAB IDE, do so by selecting Configure>Select Device to open the Select Device dialog (Figure 3-1) and select the PIC18F452 device. Under Microchip Programmer Tool Support, verify that this device is supported (green light) by MPLAB PM3. Click OK. FIGURE 3-1: 3.5 SELECTING THE DEVICE CREATING THE PROJECT In order to program the device, you’ll need a hex file.
Tutorial The next dialog allows you to select the device, which we’ve already done. Make sure that it says PIC18F452. If it does not, select the PIC18F452 from the drop down menu. Click Next>. FIGURE 3-3: © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide 3.6 SETTING UP LANGUAGE TOOLS Step Two of the Project Wizard sets up the language tools that are used with this project. Select “Microchip MPASM Toolsuite” in the Active Toolsuite list box. Then “MPASM” and “MPLINK” should be visible in the Toolsuite Contents box. Click on each one to see its location. If MPLAB IDE was installed into the default directory, the MPASM assembler executable will be: C:\Program Files\Microchip\MPASM Suite\MPAsmWin.
Tutorial 3.7 NAMING THE PROJECT Step Three of the wizard allows you to name the project and put it into a folder. This sample project will be called 18F452Proj. Using the Browse button, place the project in a folder on the C drive named My Projects. Click Next>. FIGURE 3-5: © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide 3.8 ADDING FILES TO THE PROJECT Step Four of the Project Wizard allows file selection for the project. A source file has not yet been selected, so we will use an MPLAB IDE template file. The template files are simple files that can be used to start a project. They have the essential sections for any source file, and contain information that will help you write and organize your code. These files are in the MPLAB IDE folder, which by default is in the Program Files folder on the PC.
Tutorial Next, add the second file for our project, the linker script. There is a linker script for each device. These files define the memory configuration and register names for the various parts. The linker scripts are in the folder named LKR under the MPASM Suite folder. Use the file named 18F452.lkr The full path is: C:\Program Files\Microchip\MPASM Suite\LKR\18F452.lkr To copy this linker script into our project, click on the check box.
MPLAB® PM3 User’s Guide After pressing the Finish button, review the Project window on the MPLAB IDE desktop. It should look like Figure 3-9. If the Project window is not open, select View>Project. FIGURE 3-9: 3.9 PROJECT WINDOW BUILDING THE INITIAL PROJECT From the Project menu, we can assemble and link the current files. They don’t have any of our code in them yet, but this ensures that the project is set up correctly. Click back on the 18f452Proj.mcw window to make it the active window.
Tutorial 3.10 CREATING CODE Open the template file in the project by double clicking on its name in the Project window (see Figure 3-11). The file has some comments at the beginning, and this area can be used as a standard comment information header for the file. For now, you’ll leave this as it is, but if this were a real project, you could put information about your design here. FIGURE 3-11: TEMPLATE FILE Scroll down to the bottom of the file.
MPLAB® PM3 User’s Guide When any source file is opened, you are automatically in the editor.
Tutorial In this bit of code, we used three variables named COUNT, DVAR and DVAR2. These variables need to be defined in the template file in the UDATA section for uninitialized data. There are already three variables in this section of the template file, ours can be added at the end using the same format. Each variable is an 8-bit variable, so they only need to reserve 1 byte each. FIGURE 3-14: TEMPLATE FILE – ADD VARIABLES Add these three lines © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide 3.11 BUILDING THE PROJECT Select Project>Build All to assemble and link the code. If the code assembled with no errors, the Output window will look like Figure 3-15. FIGURE 3-15: BUILD OUTPUT WINDOW Save your project by selecting File>Save Workspace. If these do not assemble and link successfully, check the following items and then build the project again: • Check the spelling and format of the code entered in the Editor window.
Tutorial 3.12 ENABLING MPLAB PM3 If you haven’t already started the MPLAB PM3 device programmer, select Programmer>Enable Programmer. The MPLAB PM3 toolbar will appear when the programmer is enabled. Select View>Program Memory and click on Opcode Hex at the bottom of the window (see Figure 3-16) to view the hex code you’ve just built. You can resize or move the Program Memory window on your display. You may wish to close the Build Results window. FIGURE 3-16: © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide 3.13 PROGRAMMING THE DEVICE Now that you have your data in program memory, you can program the device. Make sure your PIC18F452 device is inserted in the appropriate socket on MPLAB PM3. Then, select Programmer>Program. The MPLAB IDE window will indicate the progress and, when finished, the Output window will display the results (see Figure 3-17). FIGURE 3-17: 3.
MPLAB® PM3 USER’S GUIDE Chapter 4. Using MPLAB PM3 with MPLAB IDE 4.1 INTRODUCTION This chapter describes the main steps in programming and reading a device using the MPLAB PM3 device programmer. Topics covered in this chapter include: • • • • • • • 4.2 Before You Begin MPLAB PM3 Dialogs Setup for Programming a Device Programming a Device Verifying the Programming Reading a Device Special Programming BEFORE YOU BEGIN Before using MPLAB PM3, you must have performed the following initialization steps: 1.
MPLAB® PM3 User’s Guide 4.5 PROGRAMMING A DEVICE The steps to program a device include: • Setting up the Configuration bits in the Configuration Bits dialog • If needed, editing the ID in the User ID Memory dialog • Loading the hex code into program memory or building the project into program memory • Checking for a blank device (non-flash devices) • Programming the device • Verifying the programming • Reading a device 4.5.
Using MPLAB PM3 with MPLAB IDE 4.5.2 User ID Memory Dialog Select Configure>ID Memory to edit the user ID memory address. You can also use the __IDLOCS directive to set the ID bytes from MPASM assembler. Each time you rebuild your project or reload your hex file, the ID locations will be set according to the values from the __IDLOCS directive. An ID value set in the User ID Memory dialog (Figure 4-2) overrides any value set in the program. FIGURE 4-2: USER ID MEMORY DIALOG To change the User ID: 1.
MPLAB® PM3 User’s Guide 4.5.3 Loading the Hex Code into Program Memory If you have a hex file (e.g., code.hex) ready for programming into a microcontroller, open the Program Memory window if it is not already open. To do so, from the MPLAB IDE menu, select View>Program Memory. Then, select File>Import... to browse for the file you want to load into the MPLAB IDE Program Memory window. Note: There is no warning for importing files with invalid hex values.
Using MPLAB PM3 with MPLAB IDE 4.5.4 Checking For a Blank Device (Non-Flash Devices) You can perform a Blank Check by selecting Programmer>Blank Check All from the MPLAB PM3 menu. This check will verify that the device is completely blank (all bits are set to a ‘1’) and all Configuration bits are set to a ‘1’ (unprogrammed state). If you are using a One-Time Programmable (OTP) device, some Configuration bits (e.g., oscillator bits) might have already been programmed at the factory.
MPLAB® PM3 User’s Guide 4.5.5 Programming the Device You are ready to program your device. Select Programmer>Program to program the entire device (i.e., all of the program memory, Configuration bits, etc.). If you want to program selectively (e.g., part of program memory, only Configuration bits), select Programmer>Settings to open the Programmer Settings dialog. Click the Memory Ranges tab (see Table 4-1 and Section 7.5.1 “Memory Ranges Tab”) and select the options for programming.
Using MPLAB PM3 with MPLAB IDE 4.7 READING A DEVICE To copy the firmware from a programmed device into an unprogrammed device, read the programmed firmware (program memory, Configuration bits, etc.) into MPLAB IDE, then program the new device based on this information. To read the entire device (i.e., all of program memory, Configuration bits, etc.), click Programmer>Read. To read selectively (e.g.
MPLAB® PM3 User’s Guide 4.8.2 ICSP Programming The ICSP (In-Circuit Serial Programming) socket is an extension of the MPLAB PM3 device programmer that allows you to program PICmicro microcontroller devices that are already installed in the target board. MPLAB PM3 comes equipped with an ICSP header and cable. You can locate this connector under where a socket module would be installed. See Section A.4 “ICSP Hardware Specifications” for header and cable pinout information. To program a device using ICSP: 1.
MPLAB® PM3 USER’S GUIDE Chapter 5. Using MPLAB PM3 in Stand-Alone Mode 5.1 INTRODUCTION This chapter briefly describes how to use the MPLAB PM3 device programmer in Stand-Alone mode. The device programmer provides a graphical LCD interface that gives complete control over a programming session. Topics covered in this chapter include: • Getting Started in Stand-alone Mode • Programming a Device See Chapter 8. “Stand-Alone Reference” for detailed descriptions on how to use MPLAB PM3 in Stand-Alone mode. 5.
MPLAB® PM3 User’s Guide 5.3 PROGRAMMING A DEVICE After applying power to MPLAB PM3, the unit briefly displays the MPLAB PM3 splash screen and versions screen. Then, MPLAB PM3 displays the Main menu. FIGURE 5-1: MPLAB® PM3 MAIN MENU MPLAB® PM3 Recently Used Select Device MPLAB PM3 Card Programmer Settings Help • • • • • Recently Used Select Device MPLAB PM3 Card (if inserted) Programmer Settings Help 5.3.1 Recently Used Select “Recently Used” to retrieve the last device used in MPLAB PM3.
Using MPLAB PM3 in Stand-Alone Mode Programming is performed at the VDD Applied, the VDD minimum and maximum voltages (OTP devices) or VDD Nominal that has been established as the default per operating range for the device. See Section 8.5.3.7.3 “Adjust Voltages” if the verification needs to be performed at different voltage settings. Verification of the device against the MPLAB PM3 image occurs immediately after programming, along with the display of the resulting checksum if both have been successful.
MPLAB® PM3 User’s Guide 5.3.3 MPLAB PM3 Card If a memory card is inserted into MPLAB PM3, the Main menu included the MPLAB PM3 Card option. Selecting this option displays these additional options. Refer to Section 9.4 “MPLAB PM3 Card in Stand-alone Mode” for details on these options: • • • • • Load an Environment View an Environment View Disk Contents Open a test File (*.txt) Card Properties 5.3.4 Programmer Settings From the Programmer Settings option on the Main menu, you can access these options.
MPLAB® PM3 USER’S GUIDE Chapter 6. Using the MPLAB PM3 Card 6.1 INTRODUCTION This chapter describes the MPLAB PM3 Card functions and introduces the concept of an Environment. The MPLAB PM3 Card is a multimedia, stamp-sized, Flash memory card that weighs approximately 2 grams.
MPLAB® PM3 User’s Guide 6.2 MPLAB PM3 ENVIRONMENT The MPLAB PM3 device programmer uses a new concept called an MPLAB PM3 Environment. An Environment is a snapshot of the current programming settings for a specific device. It contains all the necessary information to recreate the current programming state, including a binary image of the device’s memory data, links to an optional SQTP file, specific part information and optional miscellaneous files.
Using the MPLAB PM3 Card 6.2.1 Creating an MPLAB PM3 Environment on the MPLAB PM3 Card An Environment can be created in MPLAB IDE and saved to the MPLAB PM3 Card, your hard drive or other storage device. Multiple Environments can be created, each with its unique name and settings. When an Environment is created and saved, the environment file and all associated files are saved into the same folder. To create and save an MPLAB PM3 Environment on the MPLAB PM3 Card using MPLAB IDE: 1.
MPLAB® PM3 User’s Guide 6. Enter a name for your environment into the “Environment Name” field. The Environment name can be a maximum of 127 characters. 7. (Optional) Click Browse in the “Misc. Files” field and select a maximum of 10 files (.txt, .hex, etc.) you want to associate with the Environment. 8. (Optional) Enter a brief description into the “Description” field. 9. Click Browse in the “Destination” field and select “MPLAB PM3 CARD” as the destination.
Using the MPLAB PM3 Card 6.3 MPLAB PM3 CARD The MPLAB PM3 Card is an MMC card formatted, FAT16-based file system for cross-readability through an external reader. MPLAB IDE is able to communicate to the MPLAB PM3 Card through both serial and USB interfaces. The MPLAB PM3 Card can also be accessed through the MPLAB IDE software or through the MPLAB PM3 programmer in Stand-Alone mode. 6.3.
MPLAB® PM3 User’s Guide NOTES: DS51464C-page 54 © 2006 Microchip Technology Inc.
MPLAB® PM3 USER’S GUIDE Chapter 7. MPLAB PM3 – MPLAB IDE Reference 7.1 INTRODUCTION This chapter describes the dialogs, windows, menus and options of the MPLAB PM3 development system. Topics covered in this chapter include: • • • • • • • 7.
MPLAB® PM3 User’s Guide Position the mouse pointer over the toolbar item to display the name. Table 7-1 lists the items on the toolbar. MPLAB® PM3 TOOLBAR COMMANDS TABLE 7-1: Symbol 7.3 Command Description Blank Check All Checks that the device is completely blank (all bits are set to ‘1’). This will also check that all Configuration bits are set to ‘1’ (unprogrammed state). (Same as Programmer>Blank Check All.) Read Reads the device. (Same as Programmer>Read.) Program Programs the device.
MPLAB PM3 – MPLAB IDE Reference 7.4 MPLAB PM3 PROGRAMMER MENU Once the MPLAB PM3 programmer is selected, the full programmer menu displays (see Table 7-3). The programmer must be enabled to make additional options available. Some of the MPLAB PM3 options are accessible through the MPLAB PM3 Toolbar. TABLE 7-3: MPLAB® PM3 MENU Selection Select Programmer Description Lists the available programmers. Enable Programmer Enables the programmer. Disable Programmer Disables the programmer.
MPLAB® PM3 User’s Guide 7.4.1 Select Programmer To select the MPLAB PM3 programmer, select Select Programmer>MPLAB PM3. Once the programmer is selected, the Output window opens. 7.4.2 Enable Programmer To enable the MPLAB PM3 programmer, select Programmer>Enable Programmer. If updates are available for the programmer firmware, MPLAB IDE may display a prompt to update. If auto download has been set in the Configuration dialog, MPLAB IDE will automatically update the necessary files.
MPLAB PM3 – MPLAB IDE Reference You can view the Program Memory as hex code, machine code or disassembled with symbols (if available). Change the display mode by clicking on the Display Option button in the lower left corner of the window. When the MPLAB ICE emulator is selected as the Debugger, the Program Memory window shows the data that is in the emulation memory of the MPLAB ICE pod. This memory is read by the MPLAB ICE probe when run, single stepped or traced using the emulator.
MPLAB® PM3 User’s Guide 7.4.6 Read To copy the firmware from a programmed PIC MCU device into an unprogrammed device, read the programmed firmware (program memory, Configuration bits, etc.) into MPLAB IDE, then program the new device based on this information. To read the entire device (i.e., all of program memory, Configuration bits, etc.), click Programmer>Read. To read selectively (e.g.
MPLAB PM3 – MPLAB IDE Reference If the EPROM device is not blank, erase it before programming, or select another device: 1. Remove any labels covering the device window. A non-windowed device cannot be reprogrammed. A windowed version of all EPROM devices may be ordered by requesting the JW package. 2. Place the device in an Ultraviolet (UV) EPROM Eraser.
MPLAB® PM3 User’s Guide 7.5 PROGRAMMER SETTINGS Select Programmer>Settings to display the Programmer Settings dialog. • • • • • Memory Ranges Tab Voltages Tab SQTP Tab Communications Tab Configuration Tab 7.5.1 Memory Ranges Tab Select Programmer>Settings and click on the Memory Ranges tab to select device memory areas for programming (see Figure 7-3 and Table 7-4). FIGURE 7-3: DS51464C-page 62 MEMORY RANGES TAB © 2006 Microchip Technology Inc.
MPLAB PM3 – MPLAB IDE Reference TABLE 7-4: MEMORY RANGES OPTIONS Selection Description Program Memory Start Address Type the start address for the range of program memory (in hex). Program Memory End Address Type the end address for the range of program memory (in hex). Reset Addresses Click this button to reset the program memory addresses. Program Memory Select this check box to program Program Memory. The program memory range is determined by the Program memory start and end address fields.
MPLAB® PM3 User’s Guide Certain voltages may be viewed/set for Flash devices (see Table 7-5) and Non-Flash devices (see Table 7-6). Other voltages are applicable to both types of devices (see Table 7-7). For Information on changing voltage settings and using low voltage programming, see Section 7.5.2.1 “Changing Voltage Settings” and Section 7.5.2.2 “Using Low Voltage Program”, respectively.
MPLAB PM3 – MPLAB IDE Reference 7.5.2.1 CHANGING VOLTAGE SETTINGS Change voltage settings only if the application runs at the extreme voltage operating range. Most users will never need to change the default voltage settings. • Flash Devices: VDD APP is the voltage that a Flash device will be verified. • Non-Flash Devices: VDD MAX and VDD MIN are the voltages at which programmed microcontroller devices will be verified. • VDD NOM is the voltage at which the device will be programmed.
MPLAB® PM3 User’s Guide 7.5.3 SQTP Tab Use Serial Quick Turn Programming (SQTP) to program a unique serial number into each device. This number can be used as an entry code, password or ID number. Select Programmer>Settings and click on the SQTP tab to view or set up SQTP programming for the device (Figure 7-5). Also see Section 7.6.1 “Using SQTP”.
MPLAB PM3 – MPLAB IDE Reference 7.5.4 Communications Tab To set the port for communications between the programmer and the PC, select Programmer>Settings and click on the Communications tab. Communications between the programmer and the PC may be either over a serial connection or a USB connection. Note: Do not physically connect both. The Windows COM port setup requires special attention. The proper drivers must be installed and the port may need to be set up manually.
MPLAB® PM3 User’s Guide 7.5.4.2 USB COMMUNICATIONS To use USB communications between the PC and the MPLAB PM3 device programmer, select the USB port (Figure 7-7). Click OK. CAUTION Do not allow the Windows OS to pick a USB driver. Follow the procedure specified in Section 2.2 “Installing MPLAB PM3 Software”. FIGURE 7-7: USB PORT To make sure the port is set up properly, follow the instructions in the “For USB Communications” subsection in Section 2.3.1 “Installing the Communications Cable”. 7.5.4.
MPLAB PM3 – MPLAB IDE Reference 7.5.5 Configuration Tab 7.5.5.1 AUTOMATIC DOWNLOAD To set MPLAB PM3 to automatically download any firmware updates, select Programmer>Settings and click on the Configuration tab (Figure 7-8). Then, select the Auto Download Firmware check box for new firmware to be automatically downloaded upon starting MPLAB PM3. FIGURE 7-8: CONFIGURATION TAB If you do not want firmware updates to automatically download, leave the checkbox empty.
MPLAB® PM3 User’s Guide 7.5.5.2 MANUAL DOWNLOAD It is recommended that MPLAB PM3 automatically detect and notify of any upgrades. Normally, it is not necessary to manually update the OS Suite for the MPLAB PM3 programmer; however, if you need to revert to an earlier OS Suite version, select Programmer>Settings and click on the Configuration tab. Then, click the Manual Download button. If this option is selected, the system will prompt with an auto update notice (Figure 7-9).
MPLAB PM3 – MPLAB IDE Reference 7.6.1.1 GENERATING THE SQTP FILE 1. Select Programmer>Settings and click on the SQTP tab to view or select the SQTP settings (Figure 7-10). FIGURE 7-10: SQTP TAB 2. Fill in the appropriate values for the type of SQTP file. TABLE 7-10: SQTP MENU Selection Description Random Select this option to generate unique, random numbers for each part.
MPLAB® PM3 User’s Guide 7.6.1.2 ACTIVATING SERIALIZATION Select Programmer>Load SQTP File to choose the SQTP file to use. Click Open to enable serialization for the current programming session. After enabling serialization, the serial number that will be programmed into the next device can be seen at the program memory address specified when the SQTP file was generated. Look for the RETLW instruction in the Program Memory window. 7.6.1.
MPLAB PM3 – MPLAB IDE Reference To use low voltage programming: 1. Select the device to program using Configure>Select Device and choosing the device. 2. Select and enable MPLAB PM3. 3. Go to Programmer>Settings and click on the Voltages tab. 4. In the ICSP Options area, select the Low Voltage Program checkbox (Figure 7-11). FIGURE 7-11: © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide 7.7 FILES USED BY MPLAB PM3 MPLAB PM3 can use information directly from MPLAB IDE projects without any intermediate steps. MPASM assembler can be used separately from MPLAB IDE to produce hex files for MPLAB PM3. Alternatively, devices can be programmed with hex files from any PICmicro MCU-compatible cross-assembler or cross-compiler.
MPLAB PM3 – MPLAB IDE Reference 7.8 UPGRADING THE MPLAB PM3 OPERATING SYSTEM It may be necessary to upgrade the MPLAB PM3 operating system if: • MPLAB IDE indicates that there is a newer version of the MPLAB PM3 operating system when attempting to enable MPLAB PM3 If Automatic Update is enabled (see Section 7.5.5 “Configuration Tab”), the following message will appear in the Output window if an upgrade is found: An upgrade for your MPLAB PM3 has been detected and is being downloaded now.
MPLAB® PM3 User’s Guide NOTES: DS51464C-page 76 © 2006 Microchip Technology Inc.
MPLAB® PM3 USER’S GUIDE Chapter 8. Stand-Alone Reference 8.1 INTRODUCTION This chapter describes how to use the MPLAB PM3 device programmer in Stand-Alone mode. The device programmer provides an LCD interface that gives you complete control over a programming session. Topics covered in this chapter include: • • • • 8.2 MPLAB PM3 LCD and Keys Start-Up Sequence Main Menu Command Menu MPLAB PM3 LCD AND KEYS The front panel of the programmer looks similar to Figure 8-1.
MPLAB® PM3 User’s Guide 8.2.2 Keys MPLAB PM3 provides four keys for navigation. The function of each key is: • • • • 8.3 – return to the previous menu or entry. – moves the selection bar up one line each time it is pressed. – moves the selection bar down one line each time it is pressed. – performs the selected function. START-UP SEQUENCE When power is applied to the MPLAB PM3 programmer, it initiates a start-up sequence.
Stand-Alone Reference 8.4.3.1 SCREEN CONTRAST This option enables you to select the default, darker or lighter setting to adjust the contrast on your screen. Sample text lines are provided so you can see the results of your selection. • Normal (default) – to reset the contrast to the default settings, select “Default” and press once. • Darker – to increase the contrast, select “Darker” and press until you achieve the desired contrast.
MPLAB® PM3 User’s Guide If you set the checksum calculation option to “Calculate Checksum” for a codeprotected device, the checksum will be displayed with the results of a program or verify operation. 8.4.3.5 DEVICE ID OPTION (BETA) This option checks that the selected device is inserted in the socket module. When you select this menu option, a message appears asking if you want to check device IDs, states the current setting and offers two options (see Figure 8-3).
Stand-Alone Reference 8.4.3.7 GO PIN FUNCTIONALITY This option allows the user to change the functionality of the go pin. When you select this menu option, a message appears with the current setting and offers four options (see Figure 8-5).
MPLAB® PM3 User’s Guide 8.5 COMMAND MENU After a device is selected, the device programmer displays the Command menu: • Program Verify Device • Verify Device • All Functions The functions on the Command menu allow you to perform the basic user tasks for programming a microcontroller device. Pressing repeatedly will return you to the Main menu. 8.5.1 Program Verify Device The Program Verify Device option erases (if Flash device), programs and verifies the device (see Section 8.5.3.7 “Settings”).
Stand-Alone Reference 8.5.3.2 PROGRAM VERIFY DEVICE To program a device, select “Program Verify Device” and press . This command programs the device in the socket module with the contents of the internal memory of the device programmer (image). For non-Flash devices, the device programmer checks to see if the installed microcontroller device is blank. If the device is not blank, the device programmer asks if you want to continue. Answer “Yes” to continue. Answer “No” to return to the Command menu.
MPLAB® PM3 User’s Guide the device (how small the memory cells are). 3. Before attempting to program the device, perform the Blank Check again to verify that it is blank. Note: 8.5.3.5 If the device is EEPROM or Flash, you do not have to erase it before reprogramming it. These devices are electrically erased before programming. ERASE DEVICE To erase a Flash device, select All Functions>Erase Device, press . Press a second time to erase the device. When completed, the LCD displays “Done.
Stand-Alone Reference 8.5.3.7.2 ICSP Settings These options will be available only if the selected device supports ICSP. 1. ICSP Power Source – MPLAB PM3 displays the current ICSP power source and provides two options: • Power from MPLAB PM3 – programming the device will be powered through MPLAB PM3. • Target has own supply – programming the device will be powered from the target’s own power supply. 2.
MPLAB® PM3 User’s Guide NOTES: DS51464C-page 86 © 2006 Microchip Technology Inc.
MPLAB® PM3 USER’S GUIDE Chapter 9. MPLAB PM3 Card Reference 9.1 INTRODUCTION This chapter explains how to use the MPLAB PM3 Card in the MPLAB PM3 device programmer. The MPLAB PM3 Card can be accessed through the MPLAB IDE software and directly in the MPLAB PM3 programmer in Stand-Alone mode. This chapter covers only those commands specifically for the MPLAB PM3 Card. For other MPLAB IDE commands, refer to Chapter 7. “MPLAB PM3 – MPLAB IDE Reference”. For other Stand-Alone mode commands, refer to Chapter 8.
MPLAB® PM3 User’s Guide 9.3.1 Environment Select Programmer>Environment to display the submenu options (Figure 9-2). FIGURE 9-2: ENVIRONMENT SUBMENU The Environment option on the MPLAB IDE Programmer menu offers several operations that can be performed through MPLAB IDE: • • • • • DS51464C-page 88 Save Copy View Load Delete © 2006 Microchip Technology Inc.
MPLAB PM3 Card Reference 9.3.1.1 SAVE This options enables you to save an Environment to the MPLAB PM3 Card, your hard drive or another location. Select Programmer>Environment>Save to open the Save Environment dialog (Figure 9-3) and perform these steps: FIGURE 9-3: SAVE ENVIRONMENT DIALOG 1. In the “Environment Name” field, type a name (maximum 127 characters) for the Environment you wish to save. 2.
MPLAB® PM3 User’s Guide FIGURE 9-4: ENVIRONMENT DESTINATION WINDOW 6. Select the MPLAB PM3 Card to save the Environment to the MPLAB PM3 Card, or select another destination to save it to another location. Click OK to close the Environment Destination window and return to the Save Environment dialog. 7. In the Save Environment dialog, the “Destination” field will display the selected location. Click Save to save the Environment. Click Close to close the dialog.
MPLAB PM3 Card Reference 1. In the Environment Source field, click Browse to open the Select Environment window (Figure 9-6). FIGURE 9-6: SELECT ENVIRONMENT WINDOW 2. Locate and select the *.pm3 file you wish to copy and click OK. (You may have to expand the directories to locate the file you want.) The Select Environment window closes and returns you to the Copy Environment dialog. The location now displays in the “Environment Source” field. 3.
MPLAB® PM3 User’s Guide 9.3.1.3 VIEW Use this option to view an Environment before loading, copying or other functions. Select Programmer>Environment>View to open the View Environment window (Figure 9-7). Use this dialog to view or load environments. FIGURE 9-7: VIEW ENVIRONMENT WINDOW 1. Select the Environment (*.pm3) you wish to view and click OK. (You may need to expand the directories to display the file.
MPLAB PM3 Card Reference 9.3.1.4 LOAD This option load the Environment file from the MPLAB PM3 Card into the MPLAB PM3 Programmer. Select Programmer>Environment>Load to open the Load Environment window (Figure 9-9). FIGURE 9-9: LOAD ENVIRONMENT WINDOW Expand the directories to display the *.pm3 files to be loaded into MPLAB IDE and click OK. The Environment file is loaded into MPLAB IDE and a confirmation message is displayed in the Output window. © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide 9.3.1.5 DELETE This option deletes the selected Environment file from the specified location. If the directory is empty after deleting the environment file, the directory is also deleted. Select Programmer>Environment>Delete to open the Delete Environment window (Figure 9-10). FIGURE 9-10: DELETE ENVIRONMENT WINDOW Expand the directories to display the *.pm3 file you wish to delete from the specified location and click OK.
MPLAB PM3 Card Reference 9.3.2.1 LIST FILES This option enables all of the files in an Environment to be viewed so the files can be reviewed before performing another action, such as loading, copying or deleting. Select Programmer>MPLAB PM3 Card>List Files to open the List Files window (see example in Figure 9-11). Expand the directories to display all the files. Click OK or Close after viewing the listing. FIGURE 9-11: 9.3.2.
MPLAB® PM3 User’s Guide 9.3.2.3 PROPERTIES This option lists information about the inserted MPLAB PM3 Card, including capacity, number of free bytes, used bytes and cluster size. Select Programmer>MPLAB PM3 Card>Properties to display the properties in the Output window (see example in Figure 9-13). FIGURE 9-13: DS51464C-page 96 MPLAB® PM3 CARD PROPERTIES © 2006 Microchip Technology Inc.
MPLAB PM3 Card Reference 9.4 MPLAB PM3 CARD IN STAND-ALONE MODE There are two ways to access the MPLAB PM3 Card in through the MPLAB PM3 programmer in Stand-Alone mode: • through the MPLAB PM3 Card Menu from the Main menu • through the All Functions Menu after a device is selected 9.4.1 MPLAB PM3 Card Menu In Stand-Alone mode, with the MPLAB PM3 Card inserted, the Main menu has several options: • • • • • Recently Used (see Section 8.4.1 “Recently Used”) Select Device (see Section 8.4.
MPLAB® PM3 User’s Guide 9.4.2 All Functions Menu Once a device is selected, the device’s menu is displayed: • Program Verify Device (see Section 8.5.1 “Program Verify Device”) • Verify Device (see Section 8.5.2 “Verify Device”) • All Functions When the MPLAB PM3 Card is inserted, the All Functions option displays a submenu with the selections listed in Table 9-1. Note that there is an additional option for the MPLAB PM3 Card at the end of the list. For all other functions listed, refer to Section 8.5.
MPLAB® PM3 USER’S GUIDE Appendix A. Hardware Specifications A.1 INTRODUCTION This appendix describes MPLAB PM3 to PC connections, programmer hardware and socket module hardware. Contents of this appendix include: • • • • A.2 Connecting to a PC via the Serial Port Programmer Specifications ICSP Hardware Specifications Socket Module Specifications CONNECTING TO A PC VIA THE SERIAL PORT MPLAB PM3 interfaces to the PC via a standard RS-232 port with a DB9 connector. The unit defaults to a 57.6K baud rate.
MPLAB® PM3 User’s Guide A.3 PROGRAMMER SPECIFICATIONS This section discusses the following topics: • Physical Dimensions and Layout • General Specifications Note: A.3.1 Values are specified under normal operation and represent recommended operating conditions. Absolute maximum ratings have not been published at this time. Physical Dimensions and Layout The MPLAB PM3 device programmer has the physical dimensions of 8 3/8″ L x 6 5/16″ W x 13/16″ H.
Hardware Specifications A.3.2 General Specifications TABLE A-2: GENERAL SPECIFICATIONS Component A.4 Description Power Supply 20.3W Dual Output +3.3VDC/5A, +5.0VDC/0.
MPLAB® PM3 User’s Guide Information on using ICSP for a specific device is described in the device’s programming specification. You can find programming specifications on the Microchip web site. Note: A.4.2 Since MPLAB PM3 has ICSP built-in, you cannot use the PRO MATE II ICSP Socket Module (AC04004) and the MPLAB PM3-to-PRO MATE II device adapter.
Hardware Specifications TABLE A-6: ICSP™ I/O OPERATING CHARACTERISTICS Parameter Conditions VDD Supply Voltage Range VIH Minimum High-level Input Voltage VIL Maximum Low-level Input Voltage VDD Min Max 2.00 5.50 2.0 1.50 3.0 2.10 5.5 3.85 2.0 0.50 3.0 0.90 5.
MPLAB® PM3 User’s Guide A.5 SOCKET MODULE SPECIFICATIONS This section discusses the following topics: • • • • • Socket Specifications MPLAB PM3 Socket Module Insertion Compatibility with MPLAB PRO MATE II Socket Modules Socket Life Expectancy and Cleaning Method Typical Programming Times A.5.1 Socket Specifications TABLE A-9: SOCKET VDD/VPP OPERATING CHARACTERISTICS Parameter Value VPP Range 9-14V in 125 mV steps IPP Range 150 mA max VDD Range 2-5.
Hardware Specifications A.5.2 MPLAB PM3 Socket Module Insertion MPLAB PM3 utilizes socket modules to accommodate various Microchip devices. MPLAB PM3 socket modules have two interface connectors on the programmer. (Figure A-4). FIGURE A-4: SOCKET MODULE ALIGNMENT Socket Module Programmer A.5.3 Compatibility with MPLAB PRO MATE II Socket Modules MPLAB PM3 can accept PRO MATE II socket modules with the use of an adapter module.
MPLAB® PM3 User’s Guide A.5.4.2 INSERTIONS The expected life for manual insertions has been found to be less than the manufacturer’s reported number. The number of manual insertions depends on the socket condition and how often the socket is cleaned. Careless insertions or dirty socket conditions can bring the number of insertions down to less than 5,000.
MPLAB® PM3 USER’S GUIDE Appendix B. Troubleshooting B.1 INTRODUCTION The troubleshooting information in this chapter can help you resolve typical problems or obstacles in programming microcontroller devices. Topics covered in this appendix: • • • • • • • B.
MPLAB® PM3 User’s Guide B.3 TROUBLESHOOTING OPERATIONAL PROBLEMS Problems involving the basic operation of MPLAB PM3 include: • Reading a Device Master in Stand-Alone Mode • Device Pin Damage B.3.1 Reading a Device Master in Stand-Alone Mode When reading a device master in Stand-Alone mode, the Device Programmer asks the question: “Code Protect Parts” being programmed. Answer Yes to code-protect the parts that you will be programming. B.3.
Troubleshooting 5. Make sure that a COM port is properly set up exclusively for use by MPLAB PM3. Check the resources to ensure they are operating properly and that there are no conflicts with other devices. This commonly happens when you have a modem or other serial device that is improperly configured. Consult your Windows manual or other reference literature. You can try removing, reconfiguring or disabling the conflicting device, but do so only if you are familiar with those procedures. 6.
MPLAB® PM3 User’s Guide B.5 COMMON PROBLEMS Some common problems you may have include: • • • • Failure to Establish Communication with Programmer Advanced Serial Communications Help Device Pin Damage (see Section B.3.2 “Device Pin Damage”) No Programmer Options Visible (see Section B.4.2 “No MPLAB PM3 Menu Visible”) • MPLAB PM3 Card Option Not Available on Programmer Menu B.5.
Troubleshooting 2. Make sure that a COM port is properly set up exclusively for use by the programmer. Check the resources to ensure they are operating properly and that there are no conflicts with other devices. This commonly happens when you have another device that is improperly configured. Consult your Windows manual or other reference literature. You can try removing, reconfiguring or disabling the conflicting device, but do so only if you are familiar with those procedures. 3.
MPLAB® PM3 User’s Guide B.5.2.4 THIRD PARTY COMMUNICATIONS DRIVERS The programmers are designed to run with the drivers shipped with the Windows operating system. Third party drivers may or may not work. Check your SYSTEM.INI file. Under [OPTIONS] you should have a line that reads: COMM.DRV=COMM.DRV If this line reads differently, you are using a third party driver. B.5.2.5 MANUALLY SETTING UP THE PORT On some systems, the programmer is unable to set up the communications port.
Troubleshooting B.6 ERROR MESSAGES – PC These are some error messages you may receive: • • • • • • Could Not Open the Communications Port USB Communication Could Not Be Established Device is Code-Protected Parity Error Found in Program Memory Program Memory Contains Code-Protected Data Invalid Checksum B.6.1 Could Not Open the Communications Port If the communications port cannot be opened, it is either because another application has opened the port, or the port does not exist.
MPLAB® PM3 User’s Guide B.6.5 Program Memory Contains Code-Protected Data Program memory contains data that was read from a code-protected device. Most or all of this data is not usable. Obtain the original hex code from a file or a non-protected device. See also Section B.6.3 “Device is Code-Protected”. B.6.6 Invalid Checksum This error indicates a hardware problem occurred while trying to read from the programmer. It is not a very common error.
Troubleshooting TABLE B-2: BIOS ERROR CODES Error Code Definition Corrective Action 1 CPLD is Not Configured Reset and connect to MPLAB® IDE. 2 CPLD is Old Reset and connect to MPLAB IDE. 3 Flash is Missing Reset the unit. If the problem persists, contact your field representative to SAR the unit. 4 Flash is Crossed Incorrectly Reset the unit. If the problem persists, contact your field representative to SAR the unit. 5 FPGA Configuration has Time-out Reset and connect to MPLAB IDE.
MPLAB® PM3 User’s Guide B.7.2 Additional Error Messages • Hardware needs to be reconfigured. Please attach to PC and connect through MPLAB IDE to update [error number] – BIOS needs to download a newer version of some firmware. • Fatal Error: Hardware not found. Contact your local field office for assistance [error number] – Cannot read a piece of hardware. • Fatal Error: Memory Failure. Contact your local field office for assistance. [error number] – Memory test failed. B.7.
MPLAB® PM3 USER’S GUIDE Glossary Absolute Section A section with a fixed (absolute) address that cannot be changed by the linker. Access Memory (PIC18 Only) Special registers on PIC18XXXXX devices that allow access regardless of the setting of the Bank Select Register (BSR). Address Value that identifies a location in memory. Alphabetic Character Alphabetic characters are those characters that are letters of the arabic alphabet (a, b, …, z, A, B, …, Z).
MPLAB® PM3 User’s Guide Breakpoint, Software An address where execution of the firmware will halt. Usually achieved by a special break instruction. Build Compile and link all the source files for an application. C A general purpose programming language which features economy of expression, modern control flow and data structures and a rich set of operators.
Glossary EEPROM Electrically Erasable Programmable Read Only Memory. A special type of PROM that can be erased electrically. Data is written or erased one byte at a time. EEPROM retains its contents even when power is turned off. Emulation The process of executing software loaded into emulation memory as if it were firmware residing on a microcontroller device. Emulation Memory Program memory contained within the emulator. Emulator Hardware that performs emulation.
MPLAB® PM3 User’s Guide External Input Line An external input signal logic probe line (TRIGIN) for setting an event based upon external signals. External RAM Off-chip Read/Write memory. File Registers On-chip data memory, including General Purpose Registers (GPRs) and Special Function Registers (SFRs). Flash A type of EEPROM where data is written or erased in blocks instead of bytes. FNOP Forced No Operation. A forced NOP cycle is the second cycle of a two-cycle instruction.
Glossary Instructions A sequence of bits that tells a central processing unit to perform a particular operation and can contain data to be used in the operation. Internal Linkage A function or variable has internal linkage if it can not be accessed from outside the module in which it is defined. International Organization for Standardization An organization that sets standards in many businesses and technologies, including computing and communications.
MPLAB® PM3 User’s Guide Local Label A local label is one that is defined inside a macro with the LOCAL directive. These labels are particular to a given instance of a macro’s instantiation. In other words, the symbols and labels that are declared as local are no longer accessible after the ENDM macro is encountered. Logic Probes Up to 14 logic probes can be connected to some Microchip emulators. The logic probes provide external trace inputs, trigger output signal, +5V and a common ground.
Glossary MPASM Assembler Microchip’s relocatable macro assembler for PICmicro microcontroller devices, KEELOQ® devices and Microchip memory devices. MPLAB ASM30 Microchip’s relocatable macro assembler for dsPIC30F digital signal controller devices. MPLAB C1X Refers to both the MPLAB C17 and MPLAB C18 C compilers from Microchip. MPLAB C17 is the C compiler for PIC17CXXX devices and MPLAB C18 is the C compiler for PIC18CXXX and PIC18FXXXX devices.
MPLAB® PM3 User’s Guide MRU Most Recently Used. Refers to files and windows available to be selected from MPLAB IDE main pull down menus. Nesting Depth The maximum level to which macros can include other macros. Node MPLAB IDE project component. Non Real-Time Refers to the processor at a breakpoint or executing single step instructions or MPLAB IDE being run in simulator mode. Nonvolatile Storage A storage device whose contents are preserved when its power is off. NOP No Operation.
Glossary PC Host Any IBM or compatible personal computer running a supported Windows operating system. PICmicro MCUs PICmicro microcontrollers (MCUs) refers to all Microchip microcontroller families. PICSTART Plus A developmental device programmer from Microchip. Programs 8-, 14-, 28- and 40-pin PICmicro microcontrollers. Must be used with MPLAB IDE Software. Pod, Emulator The external emulator box that contains emulation memory, trace memory, event and cycle timers and trace/breakpoint logic.
MPLAB® PM3 User’s Guide Real-Time When released from the halt state in the emulator or MPLAB ICD mode, the processor runs in Real-Time mode and behaves exactly as the normal chip would behave. In Real-Time mode, the real-time trace buffer of MPLAB ICE is enabled and constantly captures all selected cycles, and all break logic is enabled. In the emulator or MPLAB ICD, the processor executes in real-time until a valid breakpoint causes a halt, or until the user halts the emulator.
Glossary Skid When a hardware breakpoint is used to halt the processor, one or more additional instructions may be executed before the processor halts. The number of extra instructions executed after the intended breakpoint is referred to as the skid. Source Code The form in which a computer program is written by the programmer. Source code is written in some formal programming language which can be translated into or machine code or executed by an interpreter.
MPLAB® PM3 User’s Guide Symbol A symbol is a general purpose mechanism for describing the various pieces which comprise a program. These pieces include function names, variable names, section names, file names, struct/enum/union tag names, etc. Symbols in MPLAB IDE refer mainly to variable names, function names and assembly labels. The value of a symbol after linking is its value in memory. System Window Control The system window control is located in the upper left corner of windows and some dialogs.
Glossary Watch Variable A variable that you may monitor during a debugging session in a Watch window. Watch Window Watch windows contain a list of watch variables that are updated at each breakpoint. Watchdog Timer A timer on a PICmicro microcontroller that resets the processor after a selectable length of time. The WDT is enabled or disabled and set up using Configuration bits. WDT See Watchdog Timer. © 2006 Microchip Technology Inc.
MPLAB® PM3 User’s Guide NOTES: DS51464C-page 130 © 2006 Microchip Technology Inc.
MPLAB® PM3 USER’S GUIDE Index B K Bin File ..................................................................... 50 Binary File ................................................................ 50 Keys ......................................................................... 77 C LCD .......................................................................... 77 Loading an Environment .......................................... 52 CE Compliance ..........................................................
MPLAB® PM3 User’s Guide P PICSTART Plus........................................................ 10 PM3 File ................................................................... 50 Power Supply Installing ............................................................ 13 Powering Down MPLAB PM3 ..................................................... 16 PRO MATE II Socket Modules ................................. 14 Program Memory Emulator............................................................ 59 Simulator ...
Index NOTES: © 2006 Microchip Technology Inc.
WORLDWIDE SALES AND SERVICE AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://support.microchip.com Web Address: www.microchip.