Download Print this page

Advertisement

Quick Links

1 Introduction
The PICkit 2 Programmer-To-Go functionality allows a PIC MCU memory image to be downloaded
into the PICkit 2 unit for later programming into a specific PIC MCU. No software or PC is required to
program devices once the PICkit 2 unit is set up for Programming-To-Go. A USB power source for the
PICkit 2 is all that is needed.
Information in this guide covers:
 USB Power for PICkit 2 Programmer-To-Go
 Supported PIC MCU Devices
 Memory Image Size Limitations
 PICkit 2 Programmer-To-Go Wizard Walkthrough
 LED Status Codes
© 2008 Microchip Technology Inc.
PICKIT™ 2
PROGRAMMER-TO-GO
USER GUIDE
Page 1 of 14

Advertisement

loading
Need help?

Need help?

Do you have a question about the PICKIT 2 PROGRAMMER-TO-GO and is the answer not in the manual?

Questions and answers

Summary of Contents for Microchip Technology PICKIT 2 PROGRAMMER-TO-GO

  • Page 1 USER GUIDE 1 Introduction The PICkit 2 Programmer-To-Go functionality allows a PIC MCU memory image to be downloaded into the PICkit 2 unit for later programming into a specific PIC MCU. No software or PC is required to program devices once the PICkit 2 unit is set up for Programming-To-Go. A USB power source for the PICkit 2 is all that is needed.
  • Page 2: Power Requirements

    Example Battery-based Portable USB Power Sources The following two products are shown only for the purpose of illustrating the options available for portable PICkit 2 Programmer-To-Go USB power sources. They are neither specifically endorsed nor recommended by Microchip Technology Inc.
  • Page 3 Figure 2-2 shows the Bluegears b-mobile being used with a PICkit 2 unit for Programmer-To-Go operation. For the curious, the white button turns on a built-in LED flashlight when pressed. FIGURE 2-2: B-MOBILE POWERING PICKIT 2 UNIT FOR PROGRAMMER-TO-GO OPERATION © 2008 Microchip Technology Inc. Page 3 of 14...
  • Page 4  Looks for a battery by pulsing USB voltage output, which may cause PICkit 2 reset problems. See NOTE following.  Separate cable may be lost. FIGURE 2-4: ENERGI TO GO POWERING PICKIT 2 PROGRAMMER-TO-GO © 2008 Microchip Technology Inc. Page 4 of 14...
  • Page 5 Large memory parts are supported; what is limited is the size of the program code that can be programmed by PICkit 2 Programmer-To-Go. 2: Device EEPROM data, UserIDs, and Configuration memory are taken into account in these size limitations. For the sake of simplicity, only the Program Memory size determines if the memory image will fit.
  • Page 6 PICkit™ 2 Programmer-To-Go Users Guide Increasing the Memory for PICkit 2 Programmer-To-Go The memory in the PICkit 2 unit available for Programmer-To-Go code storage may be doubled, thus doubling the Program Memory size limitations shown in Table 3-1. To expand the memory it is necessary to replace the two 24LC512 64KB EEPROMs on the PICkit 2 PCB at U3 and U4 with two 24LC1025-I/SM 128KB EEPROMs.
  • Page 7 PICkit 2 Programmer software buffers blank. If Programmer > Verify on Write is checked, then PICkit 2 Programmer-To-Go will verify the device it programs. The PICkit 2 Programmer-To-Go verify is accomplished by calculating a checksum of the programmed device and comparing it with an expected value.
  • Page 8 Once the memory image and programming options for intended target device are set up and tested, start the Programmer-To-Go Setup Wizard via Programmer > PICkit 2 Programmer-To-Go… The wizard dialog will open to the “Welcome” screen. Click Next > to go to the “Programmer Settings”...
  • Page 9 EEPROM Data “Enabled” checkboxes on the main application window. Verify Device: The device will be verified after programming by Programmer-To-Go if Programmer > Verify on Write is checked. FIGURE 4-1: WIZARD PROGRAMMER SETTINGS SCREEN © 2008 Microchip Technology Inc. Page 9 of 14...
  • Page 10 Power Settings PICkit 2 Programmer-To-Go may optionally power the target device, though usually a target will have its own power supply. It is recommended to use PICkit 2 Programmer-To-Go with a powered target instead of powering it off PICkit 2.
  • Page 11 Programmer-To-Go mode, indicated by the blinking “Target” LED. Click Next > to view a wizard screen giving examples of Programmer-To-Go error codes (covered in Section 5 of this document) or click Exit to close the Wizard dialog. © 2008 Microchip Technology Inc. Page 11 of 14...
  • Page 12 WIZARD DOWNLOAD COMPLETE SCREEN 5 Using PICkit 2 Programmer-To-Go To use PICkit 2 Programmer-To-Go to program a target device once it has been set up, follow the steps below. 1 Connect a USB power source as discussed in Section 2 of this document to the PICkit 2 unit.
  • Page 13 PICkit 2 received an unexpected Device ID from the target. Ensure the target part matches that selected when 2 blinks in succession: PICkit 2 Programmer-To-Go was set Device ID Error  up. May indicate a bad ICSP connection preventing PICkit 2 from communicating with the target.
  • Page 14 In the PICkit 2 Programmer software, use Tools > Check Communications to connect to a PICkit 2 unit. Note: Programmer-To-Go mode cannot be exited while the Busy LED is blinking to indicate an error. Press the pushbutton to clear the error before attempting to connect. © 2008 Microchip Technology Inc. Page 14 of 14...