Professional Documents
Culture Documents
Connect to computer through USB Port Use Power Supply from USB Port (Board ET-PGMPIC USB only) ICSP Port for In-Circuit Serial Programming LED to display statuses Be able to program by pressing Switch PROGRAM on Programmer Be able to program through Adaptor Modules
-1-
Vocabulary
Target Board Emulator Module PIC Micro ICD2 ICSP
Meaning
Board Microcontroller is connected to ETPGMPIC USB through Connector ICD2 or ICSP. Module that is replaced Microcontroller on Target Board for programming. IC PIC Microcontroller Programmer and Debugger of MICROCHIP Co., Ltd. This Programming uses signal VPP, VDD, GND, PGD and PGC; in this case, it can be interfaced with Pin of Microcontroller directly for programming.
2 1
3
4
-2-
2. LED to display statuses; POWER, TARGET and BUSY BUSY: Red LED displays operational status of Programmer. This LED will be ON when Program is running; for example, it is in the process of reading-writing Flash Memory of PIC Microcontroller. TARGET: Yellow LED displays status of Power Supply of Target Board. POWER: Green LED displays status of Power Supply of Board. 3. Target Port Connection is Port of Signal Program that is arranged under ICD2 standard (it is Programmer and Debugger of MICROCHIP Co., Ltd.). It can be used with Microcontroller Boards that have the same arranged Ports as ICD2 standard and it can be interfaced with Adaptor Modules and ET-PGM PIC TEXTTOOLS of ETT. Internal ICD2 Port consists of following signals; VPP (Programming Voltage): Signal Voltage for programming VDD (Power Supply Positive Voltage): Voltage to supply IC GND: Ground Pin PGD (Programming Data): Data Pin for programming PGC (Programming Clock): Clock Pin for programming
-3-
-4-
DC 7-12V
Jumper 28P/40P to select size of IC dsPIC to use with TEXT TOOL of dsPIC
PIC 28/40PIN
PIN 1
PIC 8-20PIN
PIC Micro
PIN 1
PIC Micro
-5-
-6-
-7-
14-PIN
18-PIN
20-PIN
40-PIN
Each Module has Switch to select mode; PROGRAM Mode (PRG) and RUN Mode (RUN). If user wants to program, must set Switch position to PRG; and if user wants to run, must set Switch position to RUN as shown in the picture below;
-8-
Programming Mode
Running Mode
Some Module has Jumper 18F/16F to select PIC Microcontroller number, so user must set Jumper corresponding with the truly number as shown in the picture below;
18F
PIC18Fxxx
-9-
16F
PIC16Fxxx
TARGET BOARD
The feature of programming by connecting signal Program with Pin of Microcontroller directly
GND VDD
VDD GND
PIC Micro
-10-
VDD Target
PROGRAM Memory
- Import Hex Load the desired hex file to program into Program PICKit2. Export Hex Export hex file Microcontroller to save as file. Exit - To exit from program that is read from
Baseline (12-bit Core): To use Program with 12-bit Core Flash devices Microcontroller Mid-rang (14-bit Core): To use Program with 14-bit Core Flash Devices Microcontroller PIC18F: To use Program with PIC18F Flash devices Microcontroller PIC18F_J: To use Program with PIC18FXXJXX Flash devices Microcontroller PIC18F_K: To use Program with PIC18FXXKXX Flash device Microcontroller PIC24: To use Program with PIC24 Flash device Microcontroller dsPIC33: To use Program with dsPIC33 Flash devices Microcontroller
-12-
- Read Device: To read data from Program Memory, EEPROM memory, ID locations, and Configuration bits.
data
- Verify on Write: To check data in Program Memory, data EEPROM, ID locations, and Configuration bits while writing data
-13-
Users Manual of ET-PGMPIC USB V2.0 - Hold Device in Reset: Hold the status Logic 0 (MCLR = 0) at Pin RESET - Write on PICkit Button: Programming function is occurred because of pressing Switch (PROGRAM) on Board ET-PGM USB.
NOTE: User must tick sign [] in front of the desired functions if user wants to use them.
- VDD Target: It is function to supply power into Target device and control signal RESET (MCLR).
To control voltage at VDD of Target Tick sign []; it means that it supplies Voltage to Target. Not tick any sign []; it means that it does not supply Voltage. To adjust Voltage VDD Target from 2.5 Volt to 5 Volt To control status of MCLR Tick sign []; it means that it supplies Logic 0 to MCLR. Not tick any sign []; it means that it does not supply Logic 0 to MCLR.
-14-
Enable Code Protect (Ctrl+P): It is function to protect Memory Code Prorgam. Enable Data Protect (Ctrl+D): It is function to protect data EEPROM. Set OSCCAL: It uses values from Register OSCCAL to modify OSC Frequency internal PIC. Target VDD Source: We recommend user to set it at the position of Auto-Detect. - Auto-Detect: It checks Voltage of Target Board automatically. - Force PICKit 2: It configures Voltage VDD that is supplied to Target Board come from Board PICKit2. - Force Target: It configures Voltage VDD that is supplied to Target Board is Voltage of its Target. Fast Programming: It is fast programming. Check Communication: It checks the connections between ET-PGMPIC and Computer. Troubleshoot: It is function of giving data to help when getting trouble. Download PICKit 2 Firmware: It is function to download new Firmware version of PICKit 2 into Board ET-PGMPIC USB to upgrade Firmware.
-15-
PICKit 2 Users Guide: It is PDF File that is Users Manual of PICKit 2. LPC Demo Board Guide: Users Manual of Low Pin Count Demo Board of MICROCHIP PICKit 2 on the web: Data of PICKit 2 on website of MICROCHIP ReadMe: File ReadMe of Program PICKit 2 displays lists of detail and PIC MCU numbers that are supported by PICKit 2. About: Detailed information of Software PICkit2
EEPROM Data
Program PICkit 2 can modify data in EEPROM of PIC Micro. There also is window to modify data, so user just clicks the desired data position to modify and when user writes data, data in EEPROM of PIC Micro will be changed into the new written data as shown in the picture below;
Programming Procedure
1. Connect USB Cable between Board ET-PGMPIC USB and Computer. 2. Insert the desired IC PIC MCU to program into TEXT TOOL or Emulators.
-16-
PIC 28/40PIN
PIN 1
PIC 8-20PIN
*NOTE: The programming on TEXT Tools, user must set Jumper T/B to T position.
PIC Micro
In case Module of programming
PIN 1
PIC Micro
on
Target
Board
with
Emulator
TARGET Board
In case of programming through Emulator, user must connect Power Supply to Target Board to protect Power Supply from USB is not enough and user must set Switch position of Module to PRG position to connect signal program together.
-17-
4. Program PICkit2 will check IC on TEXT TOOL; if it is number that is supported by PICKit2 and the connection is correct, it will display the found PIC Micro number in the Device blank as shown in picture below;
-18-
9. If user wants to check the written data in PIC Micro whether it is correct or not; click Button Verify.
If Enable Code Protect, it makes Verify fail because Code Program is protected form reading, so user can versify it.
-19-
Solution
and Board ET-PGMPIC USB. Click Tools -> Check Communication to test operation again.
-20-
Solution
the position of Jumper T/B whether it is in T position or not. In case of using Programmer through Emulator Module, check the position of Jumper T/B whether it is in B position or not. Then, check Power Supply of Target Board whether it is available or not. If not, user must supply power into Target Board completely.
-21-
Solution
- Check
-
IC in TEXT TOOL whether it is inserted correctly or not and then check whether Pin 1 of IC is in the correct position or not. In case of programming with Emulator Module, must check whether signal cable is connected correctly or not and then check Voltage at Target Board whether it supplies Voltage or not.
-22-
Solution
Set Configuration completely in the step of design and create program.
-23-