34
深圳高健实业有 I Microchip ©2003 Microchip Technology Inc. MPLAB ICD2 MPLAB ICD2 PIC Flash MPLAB ICD2 Microchip MPLAB ICD2 Microchip MPLAB-IDE v6.20 Windows 95/98 Windows NT ® Windows 2000 ® USB 2Mbit/s RS-232 2.0~5.5V 2.0V 1 \ MPLAB ICD2 Flash 深圳高健实业有限公司

MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

  • Upload
    buicong

  • View
    236

  • Download
    0

Embed Size (px)

Citation preview

Page 1: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

深圳高健实业有

I Microchip ©2003 Microchip Technology Inc.

MPLAB ICD2

MPLAB ICD2 PIC

Flash

MPLAB ICD2 Microchip

MPLAB ICD2 Microchip MPLAB-IDE v6.20

Windows 95/98 Windows

NT ® Windows 2000 ®

USB 2Mbit/s RS-232

2.0~5.5V 2.0V

1

\

MPLAB ICD2 Flash

深圳高健实业有限公司

Page 2: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

II Microchip ©2003 Microchip Technology Inc.

ICD2 11.1 ICD2 1 1.2 ICD2 1 1.3 2

1.3.1 2

1.3.2 MPLAB ICD 2

1.3.3 PIC12F629/675 3

1.3.4 PIC16F630/676 3

1.3.5 ICDDEMO 4

1.3.6 PIC18c601\801 5

1.4 5 1.4.1 5

1.4.2 6

1.4.2.1 6

1.4.2.2 6

8 2.1 MPLAB-IDE 8 2.2 USB 8

ICD2 12 3.1 12 3.2 ICD2 12

3.2.1 12

3.2.2 13

3.2.2.1 13

3.2.2.2 14

3.2.2.3 14

3.2.2.4 15

3.2.2.5 16

Page 3: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

III Microchip ©2003 Microchip Technology Inc.

3.2.3 CONFIG 17

3.2.4 17

3.3 18 3.3.1 18

3.3.2 19

3.4 ICD2 20 3.4.1 20

3.4.1.1 20

3.4.1.2 21

3.4.1.3 21

3.4.2 22

3.4.2.1 22

3.4.2.2 23

3.4.2.3 23

3.5 24 3.5.1 24

3.5.2 24

3.5.3 24

3.5.4 25

ICD2 264.1 ICD2 26

4.1.1 26

4.1.2 26

4.1.2.1 26

4.1.2.2 27

4.1.2.3 27

4.1.2.4 27

4.1.2.5 28

4.1.3 CONFIG 28

4.2 29

Page 4: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

IV Microchip ©2003 Microchip Technology Inc.

4.3 2930

Page 5: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

1 Microchip ©2003 Microchip Technology Inc.

ICD2

1.1 ICD2ICD2 ICD2

1 MPLAB ICD2 USB

2 RS232

1.2 ICD2MPLAB ICD2

PIC12XX

PIC12F629 PIC12F675

PIC16XX

PIC16F630 PIC16F676 PIC16F818

PIC16F819 PIC16F873(A) PIC16F874(A)

PIC16F876(A) PIC16F877(A)

PIC18CXX

PIC18C601 PIC18C801

PIC18FXX

PIC18F1220 PIC18F1320 PIC18F2220

PIC18F2320 PIC18F242 PIC18F2439

PIC18F248 PIC18F252 PIC18F2539

PIC18F258 PIC18F4220 PIC18F4320

PIC18F442 PIC18F4439 PIC18F448

PIC18F452 PIC18F4539 PIC18F458

PIC18F6520 PIC18F6620 PIC18F6720

PIC18F8520 PIC18F8620 PIC18F8720

Microchip

Page 6: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

.topsee.com.cn

1.3

ICD2

www

1.3.1 AC162049

1-1 AC162049

1 6 ICD ICD2

2 40Pin ZIF 40pin 40pin DIP

1-1 AC162049

1.3.2 MPLAB ICD AC162051

AC162051 ICD ICD2 16F87X

2Microchip ©2003 Microchip Technology Inc.

Page 7: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

1 6 ICD ICD2

2 40Pin IC

1.3.3 PIC12F629/675 AC162050 PIC12F629/675

AC162050 PIC12F629/675 ICD

ICD

PIC16F877 PIC16F87X AC162050

PIC12F675-ICD PIC16F629/675 8Pin

PIC12F675-ICD 14Pin AC162050 1-2

1-2 AC162050

JP1 JP1 1 2 ENAD

AD PIC12F675

PIC12F629 ENAD

1.3.4 PIC16F630/676 AC162052 PIC16F630/676

AC162052 PIC16F630/676 AC162050

3Microchip ©2003 Microchip Technology Inc.

Page 8: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

PIC16F676-ICD AC162052

1-3

1-3 AC162052

JP1 JP1 1 2 ENAD

AD PIC16F676 JP1

2 3 ENAD AD

PIC16F630

1.3.5 ICDDEMO

ICDDEMO

1 16 *2 LCD

2 PWM V/F

3 RS232

4

5 8 LED

6 RTCC INT RESET

4Microchip ©2003 Microchip Technology Inc.

Page 9: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

5 Microchip ©2003 Microchip Technology Inc.

7

1.3.6 PIC18c601\801 DM163006

DM163006 PIC18c601\801

PICDEM™ 18R PIC18C601/801

PLCC PIC18C601/801

PICDEM™ 18R 2MB FLASH 128KB

SRAM

PC

FLASH SRAM

PICDEM™ 18R

1.4 1.4.1

ICD2

PIC12F629/675 AC162050*

PIC16F630/676 AC162052*

PIC16F87X A AC162051

PIC18F24x/25x AC162051

PIC18F44x/45x AC162051

PIC18F2x20/4x20 AC162051

PIC18C601/801

PIC18F8x20/1x20

PIC16F818/819

Page 10: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

1 *

2 AC162051 28/40

3 6

1.4.2

1.4.2.1

1 40pin PDIP ICD2+AC162049

2 40pin ICD2+AC162049+

3 40pin ICD2+AC162049+

1.4.2.2

6 ICD2

1-5 6 PCB

1~6 1-6 1~6

1-5 PCB 6

6Microchip ©2003 Microchip Technology Inc.

Page 11: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

1-6 1-7

ICD2 6 1~6

1-6 1~6

1-6 ICD2 1-7 6

1-6 6

7Microchip ©2003 Microchip Technology Inc.

Page 12: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

2.1 MPLAB-IDE ICD2 MPLAB-IDEV6.XX

ICD2 MPLAB-IDE6.20.00

MPLABV6.20.22.EXE

2-1

HI-TECH PICC ME16 C

HI-TECH PICC Suite

2-1

2.2 USBUSB ICD2

USB

USB USB PC USB

Windows 2000 ICD2 USB Windows

8Microchip ©2003 Microchip Technology Inc.

Page 13: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

98

2-2

2-2

S 2-3

2-3

9Microchip ©2003 Microchip Technology Inc.

Page 14: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

S

2-4

2-4

MPLAB-IDEV6.20.00

MPLAB IDE Drivers2000/ICD2_USB

icd2w2k.inf windowes98 icd2w98.inf

Drivers98/ICD2_USB B

2-5

2-5 INF

10Microchip ©2003 Microchip Technology Inc.

Page 15: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

11 Microchip ©2003 Microchip Technology Inc.

USB

MPLAB-IDE

Drivers2000/ICD2_USB/ddicd22k.htm

Page 16: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

12 Microchip ©2003 Microchip Technology Inc.

ICD23.1

1 USB PC ICD2

2 6 ICD2

3

4 ICD2 ICD2

2 3 6 ICD2

3.2 ICD2

3.2.1

Configure->Select Device

3-1

Microchip Programmer Tool Support Microchip

Microchip Debugger Tool Support

Microchip

1

2

3

OK

Page 17: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

3-1

3.2.2

3.2.2.1

ICD2 MPLAB IDE

Debugger->Select Tool MPLAB

ICD2

ICDWarn0030: ICD2 is about to download a

new operating system. Downloading Operating System

ICD2

Target Device **** found

ICDWarn0020:Invaild target device id

13Microchip ©2003 Microchip Technology Inc.

Page 18: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

6

3.2.2.2

ICD2 USB USB

MPLAB IDE ICD2 USB

Debugger->Settings ICD Debugger

Communication Com Port COM

Baud Rate 3-2

3-2

3.2.2.3

ICD Debugger Program

Select Memories ID

ID

14Microchip ©2003 Microchip Technology Inc.

Page 19: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

15Microchip ©2003 Microchip Technology Inc.

3-3

Program

Memory Address

0x10 ICD2

255

3.2.2.4

ICD2

ICD Debugger Power

3-4

Page 20: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

16Microchip ©2003 Microchip Technology Inc.

3-4

Power target circuit from MPLAB ICD2 ICD2

Update Vdd Vpp

3.2.2.5

ICD Debugger

Status

Warning

Limitation ICD2

Versions

ICD Debugger

ICD Debugger

X

Page 21: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

3.2.3 CONFIG

CONFIG

Configure->Configuration Bits

Configuration Bits 3-5

3-5 Configuration

Setting

ICD2

Low Voltage Program

Code Protect Background

Debug

ICD2

3.2.4

C

Project->Set Language Tool Locations…

Set Language Tool Locations

HITECH

PICC Executables

17Microchip ©2003 Microchip Technology Inc.

Page 22: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

Browse

3-6

3-6

HI-TECH Assembler HI-TECH Complier

HI-TECH Linker D:\HT-PIC\bin\picc.exe

PC HITECH PICC

3.3

3.3.1

MPLAB

IDE

Project->New

New Project Project Name

18Microchip ©2003 Microchip Technology Inc.

Page 23: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

Browse 3-7

OK

3-7

mcp

3.3.2

*.mcw *.mcp

Source Files Head Files Object Files

Library Files 3-8

Add Files

19Microchip ©2003 Microchip Technology Inc.

Page 24: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

20Microchip ©2003 Microchip Technology Inc.

3-8 3-9

3.4 ICD23.4.1

3.4.1.1

Debugger->Connect

Output MPLAB ICD2

Target Device **** found revision=** 3-10

ICDWarn0020:Invaild target device id

6

Page 25: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

21Microchip ©2003 Microchip Technology Inc.

3-10

3.4.1.2

Project->Build All

3-10

Output Build

.hex

3.4.1.3

Output Build

.hex

CONFIG

3.2.3 CONFIG

3.2.2.3

Config

Page 26: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

22 Microchip ©2003 Microchip Technology Inc.

MCLR

3.4.2

ICD2

3.4.2.1

ICD2

Run

Halt ICD2 Flash

ICD2

->

Step Into

Step Over

CALL

Reset

PC C

PC main()

Page 27: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

3.4.2.2

RAM

ICD2

3.4.2.3

View->Watch Watch

3-11

3-11

Add SFR

Add SFR

Add

Symbol

Watch1

~ Watch4 4

ICD2

EEPROM

View

23Microchip ©2003 Microchip Technology Inc.

Page 28: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

24 Microchip ©2003 Microchip Technology Inc.

3.5 MPLAB ICD2

ICD2

MPLAB-IDE ICD2

3.5.1

ICD2

1

2 ICD2

3

4 MPLAB-IDE

IDE

5

3.5.2

ICD2

1 SLEEP

2 WDT

3

4

3.5.3

PIC12F629/675 PIC16F630/676

1

2 MCLR

3 GP1/RA1

4 GPIO

Page 29: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

25 Microchip ©2003 Microchip Technology Inc.

PIC18FXXX

1 00 8

00 8

0x10

0x12 0x1F 0x14

2 PICXX20 AVDD AVSS

3.5.4

MPLAB ICD2

1 MCLR

2 2

3 RAM ICD2

Page 30: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

ICD2

4.1 ICD2

4.1.1

Configure->Select Device

4-1

4-1

Microchip

Programmer Tool Support Microchip

1

2

3

OK

4.1.2

4.1.2.1

ICD2 MPLAB IDE

Programmer->Select Programmer

MPLAB ICD2

26Microchip ©2003 Microchip Technology Inc.

Page 31: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

27 Microchip ©2003 Microchip Technology Inc.

ICDWarn0030: ICD2 is about to download a

new operating system. Downloading Operating System

ICD2

Target Device **** found

ICDWarn0020:Invaild target device id

6

4.1.2.2

ICD2 USB USB

MPLAB IDE ICD2 USB

Programmer->Settings MPLAB

ICD 2 Settings Communication

3.2.2.2

4.1.2.3

MPLAB ICD 2 Settings Program

3.2.2.3

4.1.2.4

MPLAB ICD 2 Settings Power

Power target circuit from MPLAB

ICD2 ICD2

Update Vdd Vpp

Page 32: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

4.1.2.5

MPLAB ICD 2 Settings

a) Status

b) Warning

c) Limitation ICD2

d) Versions

MPLAB ICD 2 Settings

MPLAB ICD 2 Settings X

4.1.3 CONFIG

CONFIG

Configure->Configuration Bits

Configuration Bits 4-2

4-2 Configuration

Setting

Background Debug

28Microchip ©2003 Microchip Technology Inc.

Page 33: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

29 Microchip ©2003 Microchip Technology Inc.

Low Voltage Program

4.2

(.hex )

File->Import hex

Programmer->Read

CONFIG

4.3

Programmer

Program

Read

0

Verify

Erase Part

Blank Check

1.3.2

Page 34: MPLAB ICD2 - topsee.com · MPLAB ICD 2 Settings MPLAB ICD 2 Settings X 4.1.3 CONFIG CONFIG Configure->Configuration Bits Configuration Bits 4-2 4-2 Configuration Setting Background

30 Microchip ©2003 Microchip Technology Inc.

1 ICDWarn0020:Invaild target device id

2 ICDWarn0019 Debug mode is not enabled