mikroProg for PIC® - lib. · PDF filemikroProg mikroProg™ is a fast USB programmer...
Transcript of mikroProg for PIC® - lib. · PDF filemikroProg mikroProg™ is a fast USB programmer...
mikroProgmikroProg™ is a fast USB programmer with mikroICD™
hardware In-Circuit Debugger support. Smart engineering
allows mikroProg to support PIC10, PIC12, PIC16, PIC18,
dsPIC30/33, PIC24 and PIC32 devices
in a single programmer!
for PIC®™
Page 3
I want to express my thanks to you for being interested in our products and for having
confidence in MikroElektronika.
The primary aim of our company is to design and produce high quality electronic products
and to constantly improve the performance thereof in order to better suit your needs.
The Microchip, Atmel, NXP, CYPRESS and Windows name, logo and products names are trademarks of Microchip, Atmel, NXP, CYPRESS and Windows Inc. in the U.S.A. and other countries.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
Page 3
Introduction to mikroProg for PIC 4
Key features 5
1. Driver installation 6
step 1 – Start installation 7
step 2 – Accept EULA 7
step 3 – Installing the drivers 8
step 4 – Finish installation 8
2. Connecting to a PC 9
3. mikroProg Suite for PIC software 10
4. Powering device via mikroProg 11
5. Connecting with a target device 12
6. IDC10 Pinout 13
7. Connection examples 14
Using 1x5 male headers 14
Using 2x5 male headers 15
8. Multiplexer 16
Multiplexer in programming mode 17
Multiplexer in operating mode 17
9. Connection schematic examples 18
Connection examples - PIC 19
PIC DIP8 19
PIC DIP14 19
PIC DIP18 20
PIC DIP20 20
PIC DIP28 21
PIC DIP40 21
PIC TQFP 64 22
PIC TQFP 80 23
Connection examples - PIC18FJ 24
PIC18FJ DIP28 24
PIC18FJ QFN28 24
PIC18FJ DIP40 25
PIC18FJ TQFP44 26
PIC18FJ QFN44 26
PIC18FJ TQFP64 27
PIC18FJ TQFP80 28
PIC18FJ TQFP100 29
Connection examples - dsPIC 30
dsPIC DIP18 30
dsPIC TQFP44 30
dsPIC DIP28 31
dsPIC DIP40 31
dsPIC TQFP64 32
dsPIC TQFP80 33
Connection examples - PIC24 34
PIC24 DIP18 34
PIC24 DIP20 34
PIC24 DIP28 35
PIC24 TQFP44 35
PIC24 TQFP64 36
PIC24 TQFP80 37
PIC24 TQFP100 38
PIC24 TQFP100 39
Connection examples - PIC32 40
PIC32 TQFP64 40
PIC32 TQFP100 41
Table of Contents
Page 4 Page 5
mikroProg for PIC represents fast and reliable programmer with ICD support. Specially designed firmware allows programming of all
Microchip® microcontrollers: PIC, dsPIC and PIC32. And there’s no need for the firmware update each time you select a new microcontroller
architecture. With mikroProg™, single firmware takes care of all supported architectures. Supporting new microcontrollers is easy. Just by
downloading the latest version of mikroProg Suite™ your programmer is ready to program new devices.
Introduction to
mikroProg for PIC
Page 4 Page 5
Key features
- In-Circuit Debugging (ICD).
- Unique firmware for PIC, dsPIC and
PIC32 microcontrollers
- No need for firmware update
- New microcontrollers support via
latest version of mikroProg Suite for PIC software
- Power supply for target device
01
02
03
04
05
06
07
Flat cable
USB MINIB connector
IDC10 connector
DATA transfer indication LED
ACTIVE indication LED
LINK indication LED
POWER indication LED
03
07
06
05
04
0102
Page 6 Page 7
1. Driver installation
To install drivers for mikroProg for PIC go to download section on
MikroElektronika website or follow link below.
After download is complete extract files and begin installation:
Folder with extracted files contains folders with drivers for
different operating systems. Depending on which operating
system is in use chose adequate folder and open it. Under opened
folder is located setup file for driver installation. Double click on
setup file and begin installation.
http://www.mikroe.com/eng/downloads/get/1202/mikroprog_for_pic_drivers_v200.zip
Page 6 Page 7
step 2 – Accept EULAstep 1 – Start installation
01 In welcome screen click on Next> button 01
02
In order to proceed select: I accept the this EULA
(End User License Agreement)
Click Next> button
01
01 02
Page 8 Page 9
step 3 – Installing the drivers step 4 – Finish installation
01 Drivers are installed automatically 01 Click on Finish button to end installation process
01
01
Page 8 Page 9
Figure 2-1: Connecting USB MINIB cable
In order to use mikroProg for PIC connect it with
a PC via USB cable, Figure 2-1.
When connection is established green POWER LED will turn ON.
Amber-colored LINK LED will turn ON when link between mikroProg
and PC is established. Link can be established only when correct
drivers are installed on your PC.
2. Connecting to a PC
Page 10 Page 11
Program mikroProg Suite for PIC™ is intended
for programming PIC®, dsPIC® and PIC32®
microcontrollers from Microchip®. The graphic
interface of this program is clear and easy-to-use,
which makes the use of this program faster. The
program’s main window includes basic options
for programming microcontrollers. In addition,
there are advanced programming options that
enable experienced users to set configuration
bits on their own. The program includes views
providing basic information about the selected
MCU, voltage monitoring, etc.
3. mikroProg Suite
for PIC software
Page 10 Page 11
4. Powering device
via mikroProg
One of key benefits on mikroProg is power supply mode which
can be activated from mikroProg Suite for PIC software. Under
mikroProg Suite for PIC window (MCU INFO button) you can set
power supply voltage in range from 1.8V to 5V with output current
up to 250mA. When you select MCU family under mikroProg Suite
for PIC window, mikroProg will automatically detect which MCU is
in use and it will set maximum power supply which can be used.
Voltage supply value can be set by moving slider under mikroProg
Suite for PIC window, Figure 4-1.
To enable power supply, first set desired voltage and then click on
check box “Power board from programmer”. 01
03
02
Setting supply voltage value from 1.8 to 5V (max 250mA)
Check box for enabling supply voltage from programmer
Box with selected supply voltage
02
01 03
Figure 4-1: Voltage options
Page 12 Page 13
5. Connecting with
a target device
For connection with a target device mikroProg for PIC uses IDC10
connector, Figure 5-1. In order to make proper connection with the
target board it is necessary to pay attention to IDC10 connector
pinout. Every pin has a different purpose and for easy orientation
IDC10 connector is marked with a little knob and incision, Figure 5- 2. First pin on IDC10 is marked with colored wire on a flat cable.
Front side of IDC10 connector is marked with a knob and incision.
Front side holds PGC, PGD and MCLR pins which are used for
microcontroller programming.
Figure 5-1: IDC10 connector
Figure 5-2: Knob and incision for easy orientation
First pin
Page 12 Page 13
Figure 6-1: IDC10 pinout
01
03
05
07
09 10
08
06
04
02
01
03
05
07
09
MCU-VCC (colored wire) - MCU power supply
MCU-PGC - Serial programming clock
MCU-PGD - ICSP data
MCU-MCLR - Master clear/Programming voltage
GND - Ground
6. IDC10 Pinout
02
04
06
08
10
VCC
PGC
PGD
MCLR
GND
These pins are used for multiplexing (see section 8.0 for more information)
Page 14 Page 15
When connecting mikroProg with your device
via 1x5 header make sure to use front side of IDC10 connector (side with a knob and
incision), Figure 7-2. For example, if you use some of Mikroelektronika’s products
you may notice a clear markings for mikroProg IDC10
connector header, Figure 7-2.
For connecting mikroProg with your target device a best solution is to provide 1x5 or
2x5 male headers which are connected with programing pins on microcontroller.
When soldering header make sure that to use correct pinout for IDC10
connector.
7. Connection examples
Using 1x5 male headers
Figure 7-2: Connecting mikroProg to SmartGLCD 128x240 via 1x5 male header
Figure 7-1: Use only front row for programming
Page 14 Page 15
Instead of 1x5 male header you can use 2x5 male header.
Main difference is that via 2x5 male connector you can use
multiplexing feature of mikroProg for PIC (explained in
section 8.0).
Figure 7-3: Use entire IDC10 connector for multiplexing feature
Figure 7-4: Connecting mikroProg with Ready for PIC via 2x5 male header
Using 2x5 male headers
Page 16 Page 17
8. Multiplexer
Multiplexer is specially designed circuit which serves as a switch.
Purpose of multiplexer is that there’s no need for disconnecting
mikroProg programmer from a device when programming is
over. Multiplexing is always available, but can only be used
with 2x5 male header on target board as shown on Figure 8-1.
Multiplexer allows the usage of programmable pins as I/O, in
non-programming mode.
While pins on MCU are separated from rest of the circuit
they can not be used as I/O. By connecting mikroProg to the
device programming is enabled and due to multiplexer when
programming is finished programmable pins can be used as I/O
without mikroProg removal, Figure 8-2.
VCC-MCU
MCU-VCC VCC
VCC-MCU
PIC
16F
887
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
DIP40
RR R
MCU-PGD
MCU-PGC
MCU-MCLR
PGD-RB7
MCLR
PGC-RB6
VCC-MCU
MCU-VCC
MCU-PGD
MCU-PGC
MCU-MCLR
VCC
VCC-MCU
PIC
16F
887
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
DIP40
RR R
PGD-RB7
MCLR
PGC-RB6
Figure 8-1: By placing 2x5 header programmable pins on MCU will be separated from rest of the circuit
VCC-MCU
MCU-VCC VCC
VCC-MCU
PIC
16F
887
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
DIP40
RR R
MCU-PGD
MCU-PGC
MCU-MCLR
PG
D-R
B7
PG
C-R
B6
Figure 8-2: mikroProg is connected with target board and multiplexing is enabled
Figure 8-3: When mikroProg is removed place jumpers over 2x5 male header in order to use programmable pins as I/O
Page 16 Page 17
MCU-PGD
MultiplexerPGD
PROG USB
VCC
MCU-VCC VCC
IDC10connector
D+GND
D-
mikroProg for PIC
MCU-PGCPGC
MCLRMCLR
MCU-VCC VCC
MCU-PGD
MCU-PGC
MCU-MCLR
PGD-RB7
MCLR
PGC-RB6
DATA
MCU-PGD
MultiplexerPGD
PROG USB
VCC
MCU-VCC VCC
IDC10connector
D+GND
D-
mikroProg for PIC
MCU-PGCPGC
MCLRMCLR
MCU-VCC VCC
MCU-PGD
MCU-PGC
MCU-MCLR
PGD-RB7
MCLR
PGC-RB6
DATA
During programming, the multiplexer disconnects the
microcontroller pins used for programming from the target
device. This enables the programming process to be safely
performed without affecting the operation of the device itself. It
also prevents external signals from affecting the programming
process. When the programming process has been completed,
the multiplexer releases the microcontroller pins used for
programming so that they can be used as I/O pins.
When the programming process has been completed, the
multiplexer releases the microcontroller pins used for
programming, thus enabling them to be used as I/O pins. This
also enables the programmer to remain connected to the target
device without affecting its operation.
Figure 8-4: The multiplexer in the programming mode
Figure 8-5: The multiplexer in the operating mode
Multiplexer in programming mode
Multiplexer in operating mode
Page 18 Page 19
Following examples demonstrate
connections with some of the most
popular supported MCUs. For all other
MCUs consult manufacturer’s datasheet.
All PIC, dsPIC and PIC32 MCUs use PGC, PGD
and MCLR/Vpp pins for programming. Some MCUs
have several groups of programming pins. For example
dsPIC33FJ128GP710A has three pairs of programmable
pins PGED1-PGEC1, PGED2-PGEC2 or PGED3-PGEC3 (MCLR/Vpp
pin is same for all pin groups). Which ever group of programming
pins you decide to use, make sure to connect each pin properly.
9. Connection schematic examples
PGC - Serial programming clock
PGD - ICSP data
MCLR/Vpp - Master clear/Programming voltage
Also it is necessary to attach power supply to microcontroller VCC and GND pins.
Page 18 Page 19
RA0
RC0
RA5
RC5
GNDVCC
RA1
RC1
RA4
RC4
RA2
RC2
RA3
RC3
MCU-VCC VCC
RA0/MCU- PGD
RA1/MCU- PGC
MCU- MCLRRA3/
RA0PGD-
MCLR
RA1PGC-
1K100nF
14 PIN
On-board
2x5 male
connector
PIC
16
F6
76
USERINTERFACE
Figure 9-2: Connection schematic for 14-pin DIP MCU via 2x5 male header
Conn
ecti
on e
xam
ples
- P
ICGNDVCCGP3NC
NCGP2GP0
8 PIN
PIC10F200GP1
MCU-VCC VCC
GP0/PGDMCU-GP1/PGCMCU-
MCU-GP3/MCLRGP0PGD-
MCLR
GP1PGC-
100nF
USERINTERFACE
On-board2x5 maleconnector
Figure 9-1: Connection schematic for 8-pin DIP MCU via 2x5 male header
PIC DIP8
PIC DIP14
Page 20 Page 21
Conn
ecti
on e
xam
ples
- P
IC
RA0
RC0
OSC1
RC5
GNDVCC
RA1
RC1
OSC2
RC4
RC6
RA2
RC2RB4RB5RB6
MCLR
RC3
RC7RB7
MCU-VCC VCC
RA0/MCU- PGDRA1/MCU- PGC
MCU-MCLRRA0PGD-
MCLR
RA1PGC-
1K100nF
20 PIN
PIC16F631
On-board2x5 maleconnector
USERINTERFACE
Figure 9-4: Connection schematic for 20-pin DIP MCU via 2x5 male header
PIC DIP20
PIC DIP18RA0
VCC
RA3
GND
RA1RA2
OSC1
RB7
RA4
RB0
RB2
OSC2
RB6RB5RB4
MCLR
RB1
RB3
MCU-VCC VCC
RB7/MCU- PGDRB6/MCU- PGC
MCU-MCLRRB7PGD-
MCLR
RB6PGC-
1K100nF
18 PIN
PIC16F1220
On-board2x5 maleconnector
USERINTERFACE
Figure 9-3: Connection schematic for 18-pin DIP MCU via 2x5 male header
Page 20 Page 21
MCU-VCC VCC
RB6/MCU- PGD
RB6/MCU- PGC
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
40 PIN
On-board
2x5 male
connector
USERINTERFACE
PIC
16F
887
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
Figure 9-5: Connection schematic for 28-pin DIP MCU via 2x5 male header
RB6
RB3
RA0
RA3
RB7MCLR
RB5
RB2
RA1
RA4
GND
RC1
RB4
RB1
RC7
RB0
RC6
VCC
RC5
GND
RC4
RA2
RA5
RC0
OSC1
RC2
OSC2
RC3
MCU-VCC VCC
RB7/MCU- PGDRB6/MCU- PGC
MCU-MCLRRB7PGD-
MCLR
RB6PGC-
1K100nF
28 PIN
PIC18F252
On-board2x5 maleconnector
USERINTERFACE
Conn
ecti
on e
xam
ples
- P
IC
PIC DIP28 PIC DIP40
Figure 9-6: Connection schematic for 40-pin DIP MCU via 2x5 male header
Page 22 Page 23
MCU-VCC VCC
RB7/MCU- PGD
RB6/MCU- PGC
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
64 PIN
On-board
2x5 male
connector
USERINTERFACE
PIC18F6310
RE
2R
F1
RF
0
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
VC
C
GN
D
RD
1
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
RE1 RB0
RB1
RB2
RB3
RB4
RB5
RB6
GND
OSC2
OSC1
VCC
RB7
RC5
RC4
RC3
RC2
RE0
RG0
RG1
RG2
RG3
MCLR
RG4
GND
VCC
RF7
RF6
RF5
RF4
RF3
RF2
Figure 9-7: Connection schematic for 64-pin TQFP MCU via 2x5 male header
PIC TQFP 64Co
nnec
tion
exa
mpl
es -
PIC
Page 22 Page 23
MCU-VCC VCC
RB7/MCU- PGD
RB6/MCU- PGC
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
80 PIN
On-board
2x5 male
connector
USERINTERFACE
PIC18F8310
RH
1R
H5
RH
4
RF
1
RF
0
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RJ4
RJ5
RH
0
RE
2
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
VC
C
GN
D
RD
1
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
RJ0
RJ1
RH2 RJ2
RJ3
RB0
RB1
RB2
RB3
RB4
RB5
RB6
GND
OSC2
OSC1
VCC
RB7
RC5
RC4
RC3
RC2
RJ7
RJ6
RH3
RE1
RE0
RG0
RG1
RG2
RG3
MCLR
RG4
GND
VCC
RF7
RF6
RF5
RF4
RF3
RF2
RH7
RH6
Figure 9-8: Connection schematic for 80-pin TQFP MCU via 2x5 male header
PIC TQFP 80
Conn
ecti
on e
xam
ples
- P
IC
Page 24 Page 25
Figure 9-9: Connection schematic for 28-pin DIP MCU via 2x5 male header
Figure 9-10: Connection schematic for 28-pin QFN MCU via 2x5 male header
PIC18FJ DIP28
PIC18FJ QFN28
RB6
RB3
RA0
RA3
RB7MCLR
RB5
RB2
RA1
VCCcore
GND
RC1
RB4
RB1
RC7
RB0
RC6
VCC
RC5
GND
RC4
RA2
RA5
RC0
OSC1
RC2
OSC2
RC3
VCCMCU-VCC
RB7/PGDMCU-RB6/PGCMCU-
MCU-MCLRRB7PGD-
MCLR
RB6PGC-
28 PIN
PIC18F24J10
On-board2x5 connector
USERINTERFACE
E1
E2 C
10uF
10uF 100nF
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
28 PIN
On-board
2x5 connector
USERINTERFACE
PIC18F24J10
RA
1R
C0
RC
1
RC
2
RC
3
RC
4
RC
5
RC
6
RA
0
MC
LR
RB
7
RB
6
RB
5
RB
4
RA2 RB3
RB2
RB1
RB0
VCC
GND
RC7
RA3
VCCcore
RA5
GND
OSC1
OSC2
E1
E2 C
10uF
10uF 100nF
Conn
ecti
on e
xam
ples
- P
IC1
8FJ
Page 24 Page 25
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
On-board
2x5 connector
USERINTERFACE
PIC
18F
45J10
OSC2
RC0
RC1
RC2
RC3
RD0
RD1
OSC1
GND
GND
RD7
RD6
RD5
RD4
RC7
RC6
RC5
RC4
RD3
RD2
VCC
MCLR
RA0
RA1
RA2
RA3
VCCcore
RA5
RE0
RE1
RE2
VCC
RB1
RB0
RB2
RB3
RB4
RB5
RB6
RB7
DIP40
E1
E2 C
10uF
10uF 100nF
Figure 9-11: Connection schematic for 40-pin DIP MCU via 2x5 male header
PIC18FJ DIP40
Conn
ecti
on e
xam
ples
- P
IC1
8FJ
Page 26 Page 27
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
On-board
2x5 connector
USERINTERFACE
E1
E2 C
10uF
10uF 100nF
44 PIN
PIC18F44J10R
C6
NC
NC
RB
4
RB
5
RB
6
RB
7
MC
LR
RA
0
RA
1
RA
2
RA
3
RC
5
RC
4
RD
3
RD
2
RD
1
RD
0
RC
3
RC
2
RC
1
NC
RG7 NC
RC0
OSC2
OSC1
GND
VCC
RE2
RE1
RE0
RA5
VCCcore
RD4
RD5
RD6
RD7
GND
VCC
RB0
RB1
RB2
RB3
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
44 PIN
On-board
2x5 connector
USERINTERFACE
PIC18F44J10
RC
6R
B3
NC
RB
4
RB
5
RB
6
RB
7
MC
LR
RA
0
RA
1
RA
2
RA
3
RC
5
RC
4
RD
3
RD
2
RD
1
RD
0
RC
3
RC
2
RC
1
RC
0
RG7 OSC2
OSC1
GND
AGND
VCC
AVCC
RE2
RE1
RE0
RA5
VCCcore
RD4
RD5
RD6
RD7
GND
AVCC
VCC
RB0
RB1
RB2
E1
E2 C
10uF
10uF 100nF
Figure 9-12: Connection schematic for 44-pin TQFP MCU via 2x5 male header
Figure 9-13: Connection schematic for 44-pin QFN MCU via 2x5 male header
PIC18FJ TQFP44
PIC18FJ QFN44
Conn
ecti
on e
xam
ples
- P
IC1
8FJ
Page 26 Page 27
Conn
ecti
on e
xam
ples
- P
IC1
8FJ
MCU-VCC VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
64 PIN
On-board
2x5 male
connector
USERINTERFACE
PIC18F63J11
RE
2R
F1
RF
0
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
VC
C
GN
D
RD
1
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
RE1 RB0
RB1
RB2
RB3
RB4
RB5
RB6
GND
OSC2
OSC1
VCC
RB7
RC5
RC4
RC3
RC2
RE0
RG0
RG1
RG2
RG3
MCLR
RG4
GND
VCC
RF7
RF6
RF5
RF4
RF3
RF2
Figure 9-14: Connection schematic for 64-pin TQFP MCU via 2x5 male header
PIC18FJ TQFP64
Page 28 Page 29
VCCMCU-VCC
RB7/PGCMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
80 PIN
On-board
2x5 connector
USERINTERFACE
PIC18F83J11
RH
1R
H5
RH
4
RF
1
EN
VR
EG
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RJ4
RJ5
RH
0
RE
2
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
VC
C
GN
D
RD
1
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
RJ0
RJ1
RH2 RJ2
RJ3
RB0
RB1
RB2
RB3
RB4
RB5
RB6
GND
RA6
RA7
VCC
RB7
RC5
RC4
RC3
RC2
RJ7
RJ6
RH3
RE1
RE0
RG0
RG1
RG2
RG3
MCLR
RG4
GND
VCCcore
RF7
RF6
RF5
RF4
RF3
RF2
RH7
RH6
E1
E2 C
10uF
10uF 100nF
Figure 9-15: Connection schematic for 80-pin TQFP MCU via 2x5 male header
PIC18FJ TQFP80Co
nnec
tion
exa
mpl
es -
PIC
18
FJ
Page 28 Page 29
Conn
ecti
on e
xam
ples
- P
IC1
8FJ
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
100 PIN
On-board
2x5 connector
USERINTERFACE
E1
E2 C
10uF
10uF 100nF
U1
PIC18F96J60
RH
1R
H5
RH
4
RF
1
EN
VR
EG
AV
CC
AG
ND
RA
3
RA
2
RA
1
RA
0
GN
D
VC
C
RG
7
RJ7
GN
D
RA
5
RA
4
RC
1
RC
0
RC
6
RC
7
RJ4
RJ5
RJ0
RJ1
RH
0
RE
2
RE
3
RE
4
RE
5
RE
6
RE
7
RD
0
RD
1
RD
2
RD
3
RD
4
RD
5
VC
C
GN
D
RD
6
RD
7
GN
DP
LL
VC
CP
LL
RB
IAS
GN
DT
X
TP
OU
T+
TP
OU
T-
VC
CT
X
RH6 RG3
RG2
RC2
RC3
RC4
RC5
RB7
RJ6
VCC
GND
RJ3
VCC
OSC1
OSC2
GND
RJ2
RB6
RB5
RB4
RG1
RG0
GNDRX
TPIN-
TPIN+
VCCRX
RH7
RF2
RF3
RF4
RF5
RF6
RF7
VCC
VCCcore
GND
RG4
MCLR
RF0
RG5
RG6
NC
RB3
RB2
RB1
RB0
RE0
RE1
RH3
RH2
R 22K
Figure 9-16: Connection schematic for 100-pin TQFP MCU via 2x5 male header
PIC18FJ TQFP100
Page 30 Page 31
AGND
VCC
RB0
RB3
AVCCMCLR
RB6
GND
RB1
OSC1
RC13
RB7
RB5RB4RD0
RB2
OSC2
RC14
MCU-VCC VCC
RB4/PGDMCU-RB5/PGCMCU-
MCU-MCLRRB4PGD-
MCLR
RB5PGC-
1K100nF
18 PIN
dsPIC30F3012
On-board2x5 connector
USERINTERFACE
MCU-VCC VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
44 PIN
On-board
2x5 connector
USERINTERFACE
dsPIC30F4013
RF
3N
C
NC
RB
10
RB
9
AG
ND
AV
CC
MC
LR
RB
0
RB
1
RB
2
RB
3
RF
6
RD
8
RD
2
VC
C
GN
D
RD
3
RD
9
RA
11
RC
14
NC
RF2 NC
RC13
OSC2
OSC1
GND
VCC
RB8
RB7
RB6
RB5
RB4
RF5
RF4
RF1
RF0
GND
VCC
RD1
RD0
RB12
RB11
Conn
ecti
on e
xam
ples
- ds
PIC
Figure 9-17: Connection schematic for 18-pin DIP MCU via 2x5 male header
Figure 9-18: Connection schematic for 44-pin TQFP MCU via 2x5 male header
dsPIC DIP18
dsPIC TQFP44
Page 30 Page 31
AGND
RB8
RB0
RB3
AVCCMCLR
RB6
RB9
RB1
RB4
GND
RC14
RB7
RF4
RF2
RF5
RF3
VCC
RF6
GND
RD8
RB2
RB5
RC13
OSC1
VCC
OSC2
RD9
MCU-VCC VCC
RF3/PGDMCU-RF2/PGCMCU-
MCU-MCLRRF3PGD-
MCLR
RF2PGC-
1K100nF
28 PIN
dsPIC30F2012
On-board2x5 connector
USERINTERFACE
MCU-VCC VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
On-board
2x5 connector
USERINTERFACE
dsP
IC30F
3014OSC2
RC13
RC14
RA11
RD9
RD3
GND
OSC1
GND
GND
RF0
RF1
RF4
RF5
RF2
RF3
RF6
RD8
RD2
VCC
VCC
MCLR
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RB8
VCC
RD1
RD0
RB12
RB11
RB10
RB9
AGND
AVCC
DIP40
Conn
ecti
on e
xam
ples
- ds
PIC
Figure 9-19: Connection schematic for 28-pin DIP MCU via 2x5 male header
dsPIC DIP28 dsPIC DIP40
Figure 9-20: Connection schematic for 40-pin DIP MCU via 2x5 male header
Page 32 Page 33
MCU-VCC VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
64 PIN
On-board
2x5 connector
USERINTERFACE
dsPIC30F5015
RE
4R
B6
RB
7
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RB
12
RB
13
RB
14
RB
15
RF
4
RF
5
RE
3
RE
2
RE
1
RE
0
RF
1
RF
0
VC
C
GN
D
RD
7
RD
6
RD
5
RD
4
RD
3
RD
2
RD
1
RE5 RC14
RC13
RD0
RD11
RD10
RD9
RD8
GND
OSC2
OSC1
VCC
RG2
RG3
RF6
RF2
RF3
RE6
RE7
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RB5
RB4
RB3
RB2
RB1
RB0
Conn
ecti
on e
xam
ples
- ds
PIC
Figure 9-21: Connection schematic for 64-pin TQFP MCU via 2x5 male header
dsPIC TQFP64
Page 32 Page 33
MCU-VCC VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
1K100nF
80 PIN
On-board
2x5 connector
USERINTERFACE
dsPIC30F6014
RG
13
RB
6
RB
7
RA
9
RA
10
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RB
12
RB
13
RB
14
RB
15
RD
14
RD
15
RF
4
RF
5
RG
12
RG
14
RA
7
RA
6
RG
0
RG
1
RF
1
RF
0
VC
C
GN
D
RD
7
RD
6
RD
5
RD
4
RD
13
RD
12
RD
3
RD
2
RD
1
RG15 RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
GND
OSC2
OSC1
VCC
RG2
RG3
RF6
RF7
RF8
RF2
RF3
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RA12
RA13
RB5
RB4
RB3
RB2
RB1
RB0
Conn
ecti
on e
xam
ples
- ds
PIC
Figure 9-22: Connection schematic for 80-pin TQFP MCU via 2x5 male header
dsPIC TQFP80
Page 34 Page 35
Conn
ecti
on e
xam
ples
- P
IC2
4
VCCMCU-VCC
RA0/PGDMCU-RA1/PGCMCU-
MCU-MCLRRA0PGD-
MCLR
RA1PGC-
On-board2x5 connector
USERINTERFACE
MCLRRA0RA1RB0RB1OSC1OSC2RB4RA4
VCCGND
RB15RB14VCAPGNDRB9RB8RB7
PIC
24H
J12G
P201
-DIP
18
VCCMCU-VCC
RA0/PGDMCU-
RA1/PGCMCU-
MCU-MCLR
RA0PGD-
MCLR
RA1PGC-
On-board
2x5 connector
USERINTERFACE
MCLR
RA0
RA1
RB0
RB1
GND
OSC1
OSC2
RB4
RA4
VCC
GND
RB15
RB14
RB13
RB12
VCAP
RB9
RB8
RB7
PIC
24F
16K
A102-D
IP20
Figure 9-23: Connection schematic for 18-pin DIP MCU via 2x5 male header
Figure 9-24: Connection schematic for 20-pin DIP MCU via 2x5 male header
PIC24 DIP18
PIC24 DIP20
Page 34 Page 35
Conn
ecti
on e
xam
ples
- P
IC2
4MCU-VCC
RB0/PGDMCU-RB1/PGCMCU-
MCU-MCLR
On-board2x5 connector
MCU-VCC
MCLRRA0RA1RB0RB1RB2RB3GNDRA2RA3RB4RA4VCCRB5
VCCGND
RB15RB14RB13RB12RB11RB10VCAPGNDRB9RB8RB7RB6
PIC
24H
J32G
P202
-DIP
28
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
44 PIN
On-board
2x5 connector
USERINTERFACE
PIC24FJ1GA004-PF
RB
8R
A10
RA
7
RB
14
RB
15
AG
ND
AV
CC
MC
LR
RA
0
RA
1
RB
0
RB
1
RB
7
RB
6
RB
5
VC
C
GN
D
RC
5
RC
4
RC
3
RA
9
RA
4
RB9 RB4
RA8
RA3
RA2
GND
VCC
RC2
RC1
RC0
RB3
RB2
RC6
RC7
RC8
RC9
DISVREG
VCAP1
RB10
RB11
RB12
RB13
Figure 9-25: Connection schematic for 28-pin DIP MCU via 1x5 male header
Figure 9-26: Connection schematic for 44-pin TQFP MCU via 2x5 male header
PIC24 DIP28
PIC24 TQFP44
Page 36 Page 37
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
64 PIN
On-board
2x5 connector
USERINTERFACE
PIC24FJ128GA006-PT
RE
4R
B6
RB
7
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RB
12
RB
13
RB
14
RB
15
RF
4
RF
5
RE
3
RE
2
RE
1
RE
0
RF
1
RF
0
EN
VR
EG
VC
AP
1
RD
7
RD
6
RD
5
RD
4
RD
3
RD
2
RD
1
RE5 RC14
RC13
RD0
RD11
RD10
RD9
RD8
GND
OSC2
OSC1
VCC
RG2
RG3
RF6
RF2
RF3
RE6
RE7
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RB5
RB4
RB3
RB2
RB1
RB0
Conn
ecti
on e
xam
ples
- P
IC2
4
Figure 9-27: Connection schematic for 64-pin TQFP MCU via 2x5 male header
PIC24 TQFP64
Page 36 Page 37
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
80 PIN
On-board
2x5 connector
USERINTERFACE
PIC24FJ128GB108-PT
RE
4R
B6
RB
7
RA
9
RA
10
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RB
12
RB
13
RB
14
RB
15
RD
14
RD
15
RF
4
RF
5
RE
3
RE
2
RE
1
RE
0
RG
0
RG
1
RF
1
RF
0
EN
VR
EG
VC
AP
RD
7
RD
6
RD
5
RD
4
RD
13
RD
12
RD
3
RD
2
RD
1
RE5 RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
GND
OSC2
OSC1
VCC
D+/RG2
D-/RG3
VUSB
VBUS
RF8
RF2
RF3
RE6
RE7
RC1
RC3
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0
Conn
ecti
on e
xam
ples
- P
IC2
4
Figure 9-28: Connection schematic for 80-pin TQFP MCU via 2x5 male header
PIC24 TQFP80
Page 38 Page 39
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
On-board
2x5 connector
USERINTERFACE
PIC24FJ128GB110-PF
RE
4R
B6
RB
7
RA
9
RA
10
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RA
1
RF
13
RF
12
RB
12
RB
13
RB
14
RB
15
GN
D
VC
C
RD
14
RD
15
RF
4
RF
5
RE
3
RE
2
RG
13
RG
12
RG
14
RE
1
RE
0
RA
7
RA
6
RG
0
RG
1
RF
1
RF
0
EN
VR
EG
VC
AP
1
RD
7
RD
6
RD
5
RD
4
RD
13
RD
12
RD
3
RD
2
RD
1
RG15 GND
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
GND
OSC2
OSC1
VCC
RA5
RA4
RA3
RA2
USBDP/D+/RG2
USBDN/D-/RG3
VUSB
USB-DET/VBUS
RF8
RF2
RF3
VCC
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0
100 PINConn
ecti
on e
xam
ples
- P
IC2
4
Figure 9-29: Connection schematic for 100-pin TQFP MCU via 2x5 male header
PIC24 TQFP100
Page 38 Page 39
Figure 9-30: Connection schematic for 100-pin TQFP MCU via 1x5 male header
PIC24 TQFP100
Conn
ecti
on e
xam
ples
- P
IC2
4
MCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
On-board
2x5 connector
PIC24FJ128GB110-PF
RE
4R
B6
RB
7
RA
9
RA
10
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RA
1
RF
13
RF
12
RB
12
RB
13
RB
14
RB
15
GN
D
VC
C
RD
14
RD
15
RF
4
RF
5
RE
3
RE
2
RG
13
RG
12
RG
14
RE
1
RE
0
RA
7
RA
6
RG
0
RG
1
RF
1
RF
0
EN
VR
EG
VC
AP
1
RD
7
RD
6
RD
5
RD
4
RD
13
RD
12
RD
3
RD
2
RD
1
RG15 GND
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
GND
OSC2
OSC1
VCC
RA5
RA4
RA3
RA2
USBDP/D+/RG2
USBDN/D-/RG3
VUSB
USB-DET/VBUS
RF8
RF2
RF3
VCC
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0
100 PIN
Page 40 Page 41
Figure 9-31: Connection schematic for 64-pin TQFP MCU via 2x5 male header
PIC32 TQFP64Co
nnec
tion
exa
mpl
es -
PIC
32
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
On-board
2x5 connector
USERINTERFACE
PIC32MX534F064H
RE5 SOSCO
SOSCI
RD0
RD11
RD10
RD9
RD8
VSS
OSC2
OSC1
VDD
D+/RG2
D-/RG3
VUSB
VBUS
USB-ID
RE6
RE7
RG6
RG7
RG8
MCLR
RG9
VSS
VDD
RB5
RB4
RB3
RB2
RB1
RB0
RD
1R
F5
RF
4
RB
15
RB
14
RB
13
RB
12
VD
D
VS
S
RB
11
RB
10
RB
9
RB
8
AV
SS
AV
DD
RB
7
RB
6
RD
2
RD
3
RD
4
RD
5
RD
6
RD
7
VC
AP
VD
D
RF
0
RF
1
RE
0
RE
1
RE
2
RE
3
RE
4
Page 40 Page 41
Conn
ecti
on e
xam
ples
- P
IC3
2
Figure 9-32: Connection schematic for 100-pin TQFP MCU via 2x5 male header
PIC32 TQFP100
VCCMCU-VCC
RB7/PGDMCU-
RB6/PGCMCU-
MCU-MCLR
RB7PGD-
MCLR
RB6PGC-
100 PIN
On-board
2x5 connector
USERINTERFACE
VCC3
PIC32MX795F512L
RE
4R
B6
RB
7
RA
9
RA
10
AV
CC
AG
ND
RB
8
RB
9
RB
10
RB
11
GN
D
VC
C
RA
1
RF
13
RF
12
RB
12
RB
13
RB
14
RB
15
GN
D
VC
C
RD
14
RD
15
RF
4
RF
5
RE
3
RE
2
RG
13
RG
12
RG
14
RE
1
RE
0
RA
7
RA
6
RG
0
RG
1
RF
1
RF
0
VC
C
VC
AP
RD
7
RD
6
RD
5
RD
13
RD
12
RD
3
RD
2
RD
1
RD
4
RG15 GND
RC14
RC13
RD0
RD11
RD10
RD9
RD8
RA15
RA14
GND
OSC2
OSC1
VCC
RA5
RA4
RA3
RA2
RG2
RG3
VUSB
VBUS
RF8
RF2
RF3
VCC
RE5
RE6
RE7
RC1
RC2
RC3
RC4
RG6
RG7
RG8
MCLR
RG9
GND
VCC
RA0
RE8
RE9
RB5
RB4
RB3
RB2
RB1
RB0
VCC3VCC3 VCC3
VCC3
VCC3
VCC3E9
10uF
Page 42
Notes:
Page 42
DISCLAIMER
All the products owned by MikroElektronika are protected by copyright law and international copyright treaty. Therefore, this manual is to be treated as any other copyright material. No part of this manual, including product and software described herein, may be reproduced, stored in a retrieval system, translated or transmitted in any form or by any means, without the prior written permission of MikroElektronika. The manual PDF edition can be printed for private or local use, but not for distribution. Any modification of this manual is prohibited.MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or conditions of merchantability or fitness for a particular purpose.MikroElektronika shall assume no responsibility or liability for any errors, omissions and inaccuracies that may appear in this manual. In no event shall Mik-roElektronika, its directors, officers, employees or distributors be liable for any indirect, specific, incidental or consequential damages (including damages for loss of business profits and business information, business interruption or any other pecuniary loss) arising out of the use of this manual or product, even if MikroElektronika has been advised of the possibility of such damages. MikroElektronika reserves the right to change information contained in this manual at any time without prior notice, if necessary.
HIGH RISK ACTIVITIES
The products of MikroElektronika are not fault – tolerant nor designed, manufactured or intended for use or resale as on – line control equipment in hazardous environments requiring fail – safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air traffic control, di-rect life support machines or weapons systems in which the failure of Software could lead directly to death, personal injury or severe physical or environmental damage (‘High Risk Activities’). MikroElektronika and its suppliers specifically disclaim any expressed or implied warranty of fitness for High Risk Activities.
TRADEMARKS
The MikroelEktronika name and logo, the MikroElektronika logo, mikroC, mikroC PRO, mikroBasic, mikroBasic PRO, mikroPascal, mikroPascal PRO, AVRflash, PICflash, dsPICprog, 18FJprog, PSOCprog, AVRprog, 8051prog, ARMflash, EasyPIC5, EasyPIC6, BigPIC5, BigPIC6, dsPIC PRO4, Easy8051B, EasyARM, EasyAVR5, EasyAVR6, BigAVR2, EasydsPIC4A, EasyPSoC4, EasyVR Stamp LV18FJ, LV24-33A, LV32MX, PIC32MX4 MultiMedia Board, PICPLC16, PICPLC8 PICPLC4, SmartGSM/GPRS, UNI-DS are trademarks of MikroElektronika. All other trademarks mentioned herein are property of their respective companies.All other product and corporate names appearing in this manual may or may not be registered trademarks or copyrights of their respective companies, and are only used for identification or explanation and to the owners’ benefit, with no intent to infringe.
© MikroElektronika™, 2011, All Rights Reserved.
If you want to learn more about our products, please visit our website at www.mikroe.com
If you are experiencing some problems with any of our products or just need additional
information, please place your ticket at www.mikroe.com/en/support
If you have any questions, comments or business proposals,
do not hesitate to contact us at [email protected]
mikroProg for PIC®