+ All Categories
Home > Documents > Circuitry and Connector Pinouts - iC0nstruX · When you install MPLAB X IDE on a Windows®...

Circuitry and Connector Pinouts - iC0nstruX · When you install MPLAB X IDE on a Windows®...

Date post: 03-Oct-2018
Category:
Upload: hatuyen
View: 220 times
Download: 0 times
Share this document with a friend
1
In-Circuit DeBugger Using Install the Latest Software Install the MPLAB®X IDE software onto your computer by downloading it from www.microchip.com/mplabx. Launch the application. Target Connector Pinout *Target device must be running with an oscillator for the debugger to function as a debugger. **If the device has AVDD and AVSS lines, they must be connected for the debugger to operate. Create, Build and Run Project 1. Select and install the language tools (compiler, assembler, etc.) for developing your code. See the www.microchip.com web site for more choices. 2. Use the New Project wizard (File>New Project) to create a project, or open an existing project (File>Open Project). 3. Configure the debugger by right clicking on the main project and selecting “Properties.” Click on “PICkit 3” for options. 4. Configure your language tools in the Properties dialog by clicking the language tool name for options. Click OK when done. 5. Check that the configuration bits in your code match the Recommended Settings listed on this poster. 6. To execute your code in Debug mode, perform a debug run by selecting Debug>Debug Project. A debug run will build the project, program the target with the image and debug executive, and start a debug session. OR To execute your code in Non-Debug (release) mode, perform a run by selecting Run>Run Project. A run will build the project, program the target with the image and run the device. To hold a device in Reset after programming, use the Hold in Reset icon in the toolbar instead of using Run Project. PICkit 3 Connector Pinout tVDD 4.7 k4.7 ktVDD tVDD tVDD tVDD PICkit 3 Internal Circuitry (simplified) Target VDD (tVDD) is used to power the Input/Output drivers in PICkit 3 programmer/ debugger VPP Configure USB Communications When you install MPLAB X IDE on a Mac or Linux computer, the installer will load the USB drivers automatically. When you install MPLAB X IDE on a Windows® computer, you must follow the instructions on the Start Page, “MPLAB IDE v8 Users - Important,” to correctly install the USB drivers. Connect to Target and Power 1. Attach the PICkit 3 to the computer using the USB cable. 2. Attach the communications cable between the debugger and target board. 3. Connect power to the target board. ADDITIONAL INFORMATION Circuitry and Connector Pinouts Typical Debugger System – Device With On-Board Debug Circuitry: mini-USB from computer Target Board Target Device Power Pin 1 Indicator Alternate Debugger System – ICE Device: Targ et Bo ard Transition Socket Device-ICE Standard Adapter Header Power mini-USB from computer Note: See the PICkit 3 online help for more information. Recommended Settings COMPONENT SETTING Oscillator OSC bits set properly Running Power Supplied by target WDT Disabled (device dependent) Code-Protect Disabled Table Read Protect Disabled LVP Disabled BOD VDD > BOD VDD min JTAG Disabled AVDD and AVSS Must be connected PGCx/PGDx Proper channel selected, if applicable Programming VDD voltage levels meet programming specs Pin 1 2 3 4 5 6 Signal MCLR/VPP VDD Target VSS Ground PGD (ICSPDAT) PGC (ICSPCLK) Do not connect* Pin 1 2 3 4 5 6 Signal MCLR/VPP VDD Target VSS Ground PGD (ICSPDAT) PGC (ICSPCLK) Do not connect* DS52010A www.microchip.com © 2011 Microchip Technology Incorporated. All Rights Reserved. 10/11 The Microchip name and logo, the Microchip logo, MPLAB and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. PICkit is a trademark of Microchip Technology Incorporated in the U.S.A. and other countries. 1 2 3 4 *Reserved for future use. *Reserved for future use. Integrated Development Environment 2 1 5 4 3 4.7 - 10 kTypical Target Application PC Board PGC PGD XTAL* Correct Target VDD (tVDD) VDD VPP/MCLR VSS Target Application Device AVDD** AVSS** Target Circuit Design Precautions Target Application PC Board 2 1 5 4 3 Target VDD (tVDD) VDD PGC PGD VSS AVDD** AVSS** XTAL* Target Application Device VPP/MCLR Incorrect VDD • Do not use greater than 100 μF capacitance on VDD: depending on the overall load, it will prevent the target from powering quickly when PICkit 3 is the source of power. • Do not use capacitors on MCLR: they will prevent fast transitions of VPP. Do not use pull-ups on PGC/PGD: they will divide the voltage levels since these lines have 4.7 kpull-down resistors in PICkit 3. Do not use multiplexing on PGC/PGD: they are dedicated for communications to PICkit 3. Do not use capacitors on PGC/PGD: they will prevent fast transitions on data and clock lines during programming and debug communications. Do not use diodes on PGC/PGD: they will prevent bidirectional communication between PICkit 3 and the target PIC®MCU. Do not exceed recommended cable lengths: refer to the Hard- ware Specification section of the PICkit 3 online help or user’s guide for acceptable cable lengths.
Transcript

In-Circuit DeBuggerUsing

Install the Latest SoftwareInstall the MPLAB®X IDE software onto your computer by downloading it from www.microchip.com/mplabx. Launch the application.

Target Connector Pinout

*Target device must be running with an oscillator for the debugger to function as a debugger.

**If the device has AVDD and AVSS lines, they must be connected for the debugger to operate.

Create, Build and Run Project1. Select and install the language tools (compiler, assembler, etc.) for developing

your code. See the www.microchip.com web site for more choices.2. Use the New Project wizard (File>New Project) to create a project, or open an

existing project (File>Open Project).3. Configure the debugger by right clicking on the main project and selecting

“Properties.” Click on “PICkit 3” for options.4. Configure your language tools in the Properties dialog by clicking the language tool

name for options. Click OK when done.5. Check that the configuration bits in your code match the Recommended Settings

listed on this poster.6. To execute your code in Debug mode, perform a debug run by selecting

Debug>Debug Project. A debug run will build the project, program the target with the image and debug executive, and start a debug session.

OR To execute your code in Non-Debug (release) mode, perform a run by selecting

Run>Run Project. A run will build the project, program the target with the image and run the device. To hold a device in Reset after programming, use the Hold in Reset icon in the toolbar instead of using Run Project.

PICkit 3 Connector Pinout

tVDD

4.7 kΩ

4.7 kΩ

tVDD

tVDD

tVDD

tVDD

PICkit 3Internal Circuitry (simplified)

Target VDD

(tVDD) is usedto power the Input/Outputdrivers inPICkit 3programmer/debugger

VPP

Configure USB CommunicationsWhen you install MPLAB X IDE on a Mac or Linux computer, the installer will load the USB drivers automatically.When you install MPLAB X IDE on a Windows® computer, you must follow the instructions on the Start Page, “MPLAB IDE v8 Users - Important,” to correctly install the USB drivers.

Connect to Target and Power1. Attach the PICkit 3 to the computer using the USB cable.2. Attach the communications cable between the debugger and target board.3. Connect power to the target board.

ADDITIONAL INFORMATION

Circuitry and Connector Pinouts

Typical Debugger System – Device With On-Board Debug Circuitry:

mini-USB from computer

Target Board

Target D

evice

Power

Pin 1 Indicator

Alternate Debugger System – ICE Device:

Target Board

Transition Socket

Device-ICE

StandardAdapterHeader

Power

mini-USB from computer

Note: See the PICkit 3 online help for more information.

Recommended SettingsCOMPONENT SETTINGOscillator • OSC bits set properly • RunningPower Supplied by targetWDT Disabled (device dependent)Code-Protect DisabledTable Read Protect DisabledLVP DisabledBOD VDD > BOD VDD minJTAG DisabledAVDD and AVSS Must be connectedPGCx/PGDx Proper channel selected, if applicableProgramming VDD voltage levels meet programming specs

Pin123456

SignalMCLR/VPP

VDD TargetVSS Ground

PGD (ICSPDAT)PGC (ICSPCLK)

Do not connect*

Pin123456

SignalMCLR/VPP

VDD TargetVSS Ground

PGD (ICSPDAT)PGC (ICSPCLK)

Do not connect*

DS52010Awww.microchip.com

© 2011 Microchip Technology Incorporated. All Rights Reserved. 10/11

The Microchip name and logo, the Microchip logo, MPLAB and PIC are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. PICkit is a trademark of MicrochipTechnology Incorporated in the U.S.A. and other countries.

1

2

3

4

*Reserved for future use. *Reserved for future use.

Integrated Development Environment

21543

4.7 -10 kΩTypical

Target Application PC Board

PGCPGD

XTAL*

CorrectTarget VDD (tVDD)

VDD

VPP/MCLR

VSS

Targ

etA

pplic

atio

nD

evic

e

AVDD**

AVSS**

Target Circuit Design Precautions

Target Application PC Board

21543

Target VDD (tVDD)

VDD

PGCPGD

VSS

AVDD**

AVSS**

XTAL*

Targ

etA

pplic

atio

nD

evic

e

VPP/MCLR

Incorrect

VDD

• Do not use greater than 100 µF capacitance on VDD: depending on the overall load, it will prevent the target from powering quickly when PICkit 3 is the source of power.

• Do not use capacitors on MCLR: they will prevent fast transitions of VPP.

• Do not use pull-ups on PGC/PGD: they will divide the voltage levels since these lines have 4.7 kΩ pull-down resistors in PICkit 3.

• Do not use multiplexing on PGC/PGD: they are dedicated for communications to PICkit 3.

• Do not use capacitors on PGC/PGD: they will prevent fast transitions on data and clock lines during programming and debug communications.

• Do not use diodes on PGC/PGD: they will prevent bidirectional communication between PICkit 3 and the target PIC®MCU.

• Do not exceed recommended cable lengths: refer to the Hard-ware Specification section of the PICkit 3 online help or user’s guide for acceptable cable lengths.

Recommended