Vous êtes sur la page 1sur 36

mikroProg

mikroProg 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

, dsPIC

and PIC32

Page 2
I want to express my thanks to you for being interested in our products and for having
confdence 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.
TO OUR VALUED CUSTOMERS
Nebojsa Matic
General Manager
The PIC, dsPIC, PIC24, PIC32 and Windows logos and product names are trademarks of Microchip Technology and Microsoft in the U.S.A. and other countries.
Page 3
Introduction to mikroProg 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 idle mode 18
Multiplexer in programming/debugging mode 19
10. Examples of connection schematics 20
Table of Contents
Page 4
mikroProg for PIC, dsPIC and PIC32 represents fast and reliable programmer with ICD support. Specially designed frmware
allows programming of all Microchip microcontrollers: PIC, dsPIC, PIC24 and PIC32. And theres no need for frmware change each
time you select a new microcontroller architecture because mikroProg frmware takes care of all supported architectures. Supporting
new microcontrollers is easy. Just by downloading the latest version of mikroProg Suite for PIC your programmer is ready to
program new devices.
Introduction to mikroProg

Page 5
Key features
- In-Circuit Debugging (ICD).
- One frmware for PIC, dsPIC, PIC24
and PIC32 microcontroller families
- New microcontrollers support via
latest version of mikroProg Suite
for PIC software
- Can provide power supply for target
device
01
02
03
04
05
06
Flat cable
USB MINIB connector
DATA transfer indication LED
ACTIVE indication LED
LINK indication LED
POWER indication LED
06
05
04
03
01
02
Page 6
1. Driver installation
mikroProg requires drivers in order to work. Drivers are located on the link bellow:
In the opened folder you should be
able to locate the driver setup fle.
Double click on setup fle to begin
installation of the programmer
drivers.
When you locate the drivers, please extract fles from the ZIP archive. Folder with extracted fles contains folders with drivers for
diferent operating systems. Depending on which operating system you use, choose adequate folder and open it.
http://www.mikroe.com/downloads/get/1202/mikroprog_for_pic_drivers_v200.zip
Page 7
step 2 Accept EULA step 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
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 9
2. Connecting to a PC
After driver installation is complete, you can now connect the programmer with your PC using
USB cable provided with the package. Green POWER LED should turn ON, indicating the presence
of power supply. 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.
mikroProg Suite for PIC software is
intended for programming PIC, dsPIC,
PIC24 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
programs main window includes basic
options for programming microcontrollers. In
addition, there are advanced programming
options that enable experienced users to
set confguration 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 target device via mikroProg

One of the key benefts of mikroProg is that is can power your


target device. You can set power supply voltage in range from
2.7V to 5V with output current up to 250mA. This option is
activated from mikroProg Suite for PIC (v2.29) software.
Click the MCU Info button to display Voltage Options section.
First you must select MCU family and choose your target
MCU from a dropdown list. mikroProg will automatically set
the default value of power supply for your MCU. You can also
manually set voltage supply value by moving slider under
mikroProg Suite for PIC window, Figure 4-1.
To enable power supply, frst set desired voltage and then click
on check box Power board from programmer.
01
03
02
Setting supply voltage value from 2.7 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
5. Connecting with
a target device
For connection with a target device mikroProg uses female
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 diferent purpose and for easy
orientation IDC10 connector is marked with a little knob and
incision, Figure 5- 2.
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 - MCU power supply
MCU-PGC - Serial programming clock
MCU-PGD - Serial programming 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
multiplexed (see
section 8.0 for more
information)
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. 1x5 programming
headers are found in some of Mikroelektronika products, like mikromedia
boards, 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. You can see
several examples of connection schematics in the Section 10 of this manual.
7. Connection examples
Using 1x5 male headers
Figure 7-2:
Connecting
mikroProg to
mikromedia board
via 1x5 male header
Figure 7-1: Use only front
row for programming
Page 14
By using 2x5 male connector in your device you can exploit the multiplexing feature
of mikroProg for PIC, dsPIC and PIC32. Well explain how multiplexer operates and
what are its key benefts in Section 8 of this manual.
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 15
Page 16
8. Multiplexer
Multiplexer is specially designed circuit which serves as a switch.
Purpose of multiplexer is that theres no need for disconnecting
mikroProg programmer from a device when programming is
fnished. 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 programming
pins (PGC and PGD) as I/O lines when not in
programming/debugging mode. Master
clear reset (MCLR) pin is also
multiplexed and can be used
for resetting target
MCU when not in
programmi ng/
d e b u g g i n g
mode.
While pins on MCU are separated from rest of the circuit, they can
not be used as I/O or reset pins as shown on Figure 8-2. There are
two ways to connect programming pins: 1. with mikroProg 2x5
female connector 2. by placing jumpers over 2x5 male header.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
P
I
C
1
8
F
4
5
K
2
2
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
P
G
C
-
R
B
6
P
G
D
-
R
B
7
M
C
L
R
MCU-VCC
R R R
100nF
RESET
10K 1K
MCU-VCC
Figure 8-2: Having 2x5
programmer header,
programming lines are separated
from rest of the circuit.
Programming pins or I/Os?
Figure 8-1:
mikroProg 2x5
male header next
to reset button
Page 17
Programming/debugging is enabled when mikroProg is connected to the device. As shown on Figure 8-3, when programming/debugging
is fnished, multiplexer reconnects programming/debugging pins so they can be used as I/Os. Theres no need to remove mikroProg
connector. When mikroProg is removed, place jumpers over 2x5 male header in order to use programming/debugging pins as I/O, and
MCLR pin as reset (Figure 8-4). In programming/debugging mode MCLR pin is used by mikroProg, otherwise it is used by MCU.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
P
I
C
1
8
F
4
5
K
2
2
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
R R R
100nF
RESET
10K 1K
MCU-VCC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
P
I
C
1
8
F
4
5
K
2
2
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
R R R
100nF
RESET
10K 1K
MCU-VCC
Figure 8-3: Multiplexer allows
the usage of programming pins
as I/O and MCLR pin as reset
when not in programming/
debugging mode
Figure 8-4: When mikroProg
is removed place jumpers over
2x5 male header in order to
use programming pins as I/O
and MCLR pin as reset
Multiplexer decides pin function Programming pins just as I/Os
Page 18
MCU-PGD
Multiplexer
PGD
PROG USB
VCC
MCU-VCC VCC MCU-VCC VCC
IDC10
connector
D+
GND
D-
mikroProg for PIC
MCU-PGC
PGC
MCU-MCLR
MCLR
MCU-PGD
MCU-PGC
MCU-MCLR
BRD-PGD
BRD-MCLR
BRD-PGC
DATA
When programming/debugging is not in progress, the multiplexer releases the programming pins and MCLR, thus enabling them to be used as
I/O pins or reset. This also enables the programmer to be connected to the target device without afecting its operation.
Figure 8-5:
Multiplexer in the
idle mode
Multiplexer in idle mode
Page 19
USB
mikroProg for PIC
MCU-PGD
MCU-PGC
MCU-MCLR
BRD-PGD
BRD-MCLR
BRD-PGC
DATA
MCU-PGD
Multiplexer
PGD
VCC
MCU-VCC VCC MCU-VCC VCC
IDC10
connector
D+
GND
D-
MCU-PGC
PGC
MCU-MCLR
MCLR
PROG
During programming/debugging, the multiplexer disconnects the microcontroller pins used for programming/debugging from the target device.
This enables the programming/debugging process to be safely performed without afecting the operation of the device itself. It also prevents
external signals from afecting the programming/debugging process. When the programming/debugging process has been completed, the
multiplexer releases the microcontroller pins used for programming, so that they can be used as I/O pins or reset respectively.
Figure 8-6:
Multiplexer in the
programming/
debugging mode
Multiplexer in programming/debugging mode
Following examples demonstrate connections
with some of the most popular supported MCUs. For
all other MCUs consult manufacturers 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).
Whichever group of programming pins you decide to use, make sure
to connect each pin properly.
10. Examples of connection schematics
PGC - Serial programming clock
PGD - Serial programming data
MCLR/Vpp - Master clear/Programming voltage
Note: In order for microcontroller to work properly, decoupling capacitors must be
connected as close as possible to microcontrollers VCC pins.
Page 20
Page 21
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
Figure 10-1: Connecting 2x5 male header
with PIC18F2550 in 28-pin DIP package
Figure 10-2: Connecting 2x5 male header
with PIC16F887 in 40-pin DIP package
PIC DIP28 PIC DIP40
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15
16
17
18
19
20
21
22
23
24
25
26
27
28
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
GND
OSC1
RA6
RC0
RC1
RC2
Vusb
RB7
RB6
RB3
RB5
RB4
RB2
RB1
RB0
VCC
GND
RC7
RC6
RC5
RC4
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
100nF
C
MCU-VCC
MCU-VCC
USER
INTERFACE
P
I
C
1
8
F
2
5
5
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
P
I
C
1
6
F
8
8
7
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
MCU-VCC MCU-VCC
MCU-VCC
USER
INTERFACE
Page 22
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
1
8
F
K
Figure 10-3: Connecting 2x5 male header
with PIC18F45K22 in 40-pin DIP package
PIC18FK DIP40
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RE0
RE1
RE2
VCC
GND
RA7
RA6
RC0
RC1
RC2
RC3
RD0
RD1
RB2
RB1
RB7
RB6
RB5
RB4
RB3
RB0
RD7
VCC
GND
RD6
RD5
RD4
RD2
RC7
RC6
RC5
RC4
RD3
P
I
C
1
8
F
4
5
K
2
2
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
MCU-VCC MCU-VCC
MCU-VCC
USER
INTERFACE
Page 23
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
1
8
F
3
0
2
9
2
8
2
7
3
4
3
3
58
57
56
55
54
53
52
47
3
6
3
5
43
44
45
46
3
7
3
8
9
49
50 11
12
3
2
7
2
6
9
6
8
6
7
6
6
6
5
6
4
6
3
4
3
7
8
7
7
2
4
2
3
18
17
16
15
14
13
5
6
7
8
10
7
9
8
0
1
2
2
2
2
1
20
19
6
2
6
1
60
59
3
9
4
0
41
42
48
7
1
3
1
51
7
0
2
6
2
5
7
6
7
5
7
4
7
3
GND
GND
G
N
D
G
N
D
V
C
C
V
C
C
RB0
RB1
RB2
RB3
RB4
RB5
PGC/RB6
PGD/RB7
RC2
RC3
RC4
RC5
VCC
OSC2/RA6
OSC1/RA7
RJ2
RJ3
RJ6
RJ7
R
D
0
R
D
1
R
D
2
R
D
3
R
D
4
R
D
5
R
D
6
R
D
7
R
E
2
R
E
3
R
E
4
R
E
5
R
E
6
R
E
7
R
H
0
R
H
1
R
J
0
R
J
1
RE0
RE1
RH2
RH3
RG0
RG1
RG2
RG3
RG4
MCLR
RF2
RF3
RF4
RF5
RF6
RF7
RH6
RH7
VCC
R
A
0
R
A
1
R
A
2
R
A
3
R
A
4
R
A
5
R
C
0
R
C
1
R
C
6
R
C
7
R
J
4
R
J
5
R
H
4
R
H
5
R
F
1
R
F
0
A
V
C
C
A
G
N
D
PIC18F8722
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
C3
100nF
C4
100nF
C5
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC
MCU-VCC
USER
INTERFACE
Figure 10-4: Connecting 2x5 male header
with PIC18F8722 in 80-pin TQFP package
PIC18F TQFP80
Page 24
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
1
8
F
K
Figure 10-5: Connecting 2x5 male header
with PIC18F87K22 in 80-pin TQFP package
PIC18FK TQFP80
9
11
12
4
3
18
17
16
15
14
13
5
6
7
8
10
1
2
20
19
7
2
6
9
6
8
6
7
6
6
6
5
6
4
6
3
7
8
7
7
7
9
8
0
6
2
6
1
7
1
7
0
7
6
7
5
7
4
7
3
58
57
56
55
54
53
52
47
43
44
45
46
49
50
60
59
41
42
48
51
3
0
2
9
2
8
2
7
3
4
3
3
3
6
3
5
3
7
3
8
3
2
2
4
2
3
2
2
2
1
3
9
4
0
3
1
2
6
2
5
GND
GND
G
N
D
G
N
D
V
C
C
V
C
C
RB0
RB1
RB2
RB3
RB4
RB5
PGC/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
RE0
RE1
RH2
RH3
RB0
RB1
RB2
RB3
RG4
MCLR
RF2
RF3
RF4
RF5
RF6
RF7
RH6
RH7
Vcap
R
A
0
R
A
1
R
A
2
R
A
3
R
A
4
R
A
5
R
C
0
R
C
1
R
C
6
R
C
7
R
J
4
R
J
5
R
H
4
R
H
5
R
F
1
E
N
V
R
E
G
A
V
C
C
A
G
N
D
PIC18F87J60
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
10uF
E1
C1
100nF
C2
100nF
C3
100nF
C4
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC
MCU-VCC
USER
INTERFACE
Figure 10-7: Connecting 2x5 male header
with PIC18F87J60 in 80-pin TQFP package
PIC18FJ TQFP80
Page 27
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

d
s
P
I
C
3
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
MCLR
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RB8
VCC
GND
OSC1
OSC2
RC13
RC14
RA11
RD9
RD3
GND
RB12
RD0
AVCC
AGND
RB9
RB10
RB11
RD1
RF0
VCC
GND
RF1
RF4
RF5
VCC
RF2
RF3
RF6
RD8
RD2
d
s
P
I
C
3
0
F
4
0
1
3
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
C1
100nF
C2
100nF
C3
100nF
C4
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC
USER
INTERFACE
Figure 10-8: Connecting 2x5 male header
with dsPIC30F4013 in 40-pin DIP package
dsPIC30 DIP40
Page 28
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

d
s
P
I
C
3
0
Figure 10-9: Connecting 2x5 male header
with dsPIC30F6014A in 80-pin TQFP package
dsPIC30 TQFP80
9
11
12
4
3
18
17
16
15
14
13
5
6
7
8
10
1
2
20
19
3
0
2
9
2
8
2
7
3
4
3
3
3
6
3
5
3
7
3
8
3
2
2
4
2
3
2
2
2
1
3
9
4
0
3
1
2
6
2
5
58
57
56
55
54
53
52
47
43
44
45
46
49
50
60
59
41
42
48
51
76666666 77 7 866 77 7777
29876543 87 9 021 10 6543
GND
GND
G
N
D
G
N
D
V
C
C
V
C
C
RD0
RD11
RD10
RD9
RD8
RA15
RA14
RG2
RF8
RF7
RF6
RG3
VCC
OSC2
OSC1
RC14
RC13
RF3
RF2
R
F
0
R
D
7
R
D
6
R
D
5
R
D
4
R
D
1
3
R
D
1
2
R
D
3
R
G
1
4
R
A
7
R
A
6
R
G
0
R
G
1
R
F
1
R
G
1
2
R
G
1
3
R
D
2
R
D
1
RC3
RC2
RG15
RC1
RC4
RG6
RG7
RG8
RG9
MCLR
RB2
RB3
RB4
RB5
RA13
RA12
RB0
RB1
VCC
R
B
1
1
R
B
1
0
R
B
9
R
B
8
R
B
1
3
R
B
1
2
R
B
1
5
R
B
1
4
R
D
1
4
R
D
1
5
R
F
4
R
F
5
R
B
7
R
B
6
R
A
9
R
A
1
0
A
V
C
C
A
G
N
D
dsPIC30F6014A
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
C3
100nF
C4
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC
C5
100nF
MCU-VCC
MCU-VCC
USER
INTERFACE
Page 29
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

d
s
P
I
C
3
3
3
0
2
9
2
8
2
7
3
4
3
3
4
6
3
6
3
5
4
2
4
3
4
4
4
5
3
7
5
0
4
8
4
9
3
2
3
8
3
9
4
0
4
1
4
7
3
1
2
6
9
11
12
4
3
24
23
18
17
16
15
14
13
5
6
7
8
10
1
2
22
21
20
19
25
7
8
7
7
7
9
8
0
7
6
8
1
8
2
8
3
8
4
8
5
8
6
8
7
8
8
8
9
9
0
9
1
9
2
9
3
9
4
9
5
9
6
9
7
9
8
9
9
1
0
0
58
57
56
55
54
53
52
72
69
68
67
66
65
64
63
62
61
60
59
71
51
70
75
74
73
C1
100nF
C2
100nF
C3
100nF
C4
100nF
C5
100nF
C6
100nF
10uF
E1
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC MCU-VCC VCC
MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC
PGC-RB6
PGD-RB7
MCLR
dsPIC33FJ256GP710A
R
B
1
1
R
B
1
0
R
B
9
R
B
8
R
B
1
3
R
B
1
2
RE7
RC1
RC2
RC3
RA15
RG2
R
B
1
5
R
B
1
4
RF8
RF7
RF6
RG3
G
N
D
V
C
C
R
A
6
R
G
0
R
G
1
R
E
0
R
F
1
R
F
0
R
D
7
R
D
6
RE6
RE5
R
E
2
R
G
1
3
R
G
1
2
R
G
1
4
R
E
1
R
A
7
RG8
R
A
9
/
V
r
e
f
- RB1
RB2
RB3
RB4
RB5
RA13
RD9
RD8
RF2
RF3
GND
RG7
RG6
R
A
1
R
E
3
R
E
4
RG15
VCC
R
B
7
/
P
G
E
D
1
R
B
6
/
P
G
E
C
1
RB0
R
F
4
R
F
5
RA14
RA5
R
D
1
4
R
D
1
5
RA2
R
F
1
3
V
C
C
RA3
VCC
V
C
C
RA12
RA0
VCC
G
N
D
R
F
1
2
RA4
GND
V
C
A
P
A
G
N
D
A
V
C
C
R
A
1
0
/
V
r
e
f
+
MCLR
RC4
RC12
RC15
RD10
R
D
3
R
D
1
RC13
RC14
GND
R
D
2
R
D
1
2
R
D
1
3
R
D
4
R
D
5
RG9
RD11
RD0
USER
INTERFACE
Figure 10-10: Connecting 2x5 male header
with dsPIC303FJ256GP710A in 100-pin
TQFP package
dsPIC33 TQFP100
Page 30
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
2
4
1
2
3
4
5
6
7
8
9
10
11
12
13
14 15
16
17
18
19
20
21
22
23
24
25
26
27
28
MCLR
RA0
RA1
RB0
RB1
RB2
RB3
GND
OSCI
OSCO
RB4
RA4
VCC
RB5
VCC
GND
RB13
RB15
RB14
RB12
RB11
RB10
RA6
RA7
RB9
RB8
RD3
RB7
RB6
P
I
C
2
4
F
1
6
K
A
1
0
2
MCU-RB1/PGC
MCU-RB0/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB1
PGD-RB0
MCLR
C1
100nF
C2
100nF
MCU-VCC MCU-VCC
MCU-VCC
USER
INTERFACE
Figure 10-11: Connecting 2x5 male header
with PIC24F16KA102 in 28-pin DIP package
PIC24FK TQFP80
Page 31
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
2
4
7
8
7
7
7
9
8
0
7
6
8
1
8
2
8
3
8
4
8
5
8
6
8
7
8
8
8
9
9
0
9
1
9
2
9
3
9
4
9
5
9
6
9
7
9
8
9
9
1
0
9
11
12
4
3
24
23
18
17
16
15
14
13
5
6
7
8
10
1
2
22
21
20
19
25
3
0
2
9
2
8
2
7
3
4
3
3
4
6
3
6
3
5
4
2
4
3
4
4
4
5
3
7
5
0
4
8
4
9
3
2
3
8
3
9
4
0
4
1
4
7
3
1
2
6
58
57
56
55
54
53
52
72
69
68
67
66
65
64
63
62
61
60
59
71
51
70
75
74
73
PIC24FJ256GB110
0
R
B
1
1
R
B
1
0
R
B
9
R
B
8
R
B
1
3
R
B
1
2
RE7
RC1
RC2
RC3
RA15
D+
R
B
1
5
R
B
1
4
RF8
Vbus
Vusb
D-
G
N
D
V
C
C
R
A
6
R
G
0
R
G
1
R
E
0
R
F
1
R
F
0
R
D
7
R
D
6
RE6
RE5
R
E
2
R
G
1
3
R
G
1
2
R
G
1
4
R
E
1
R
A
7
RG8
R
A
9
/
V
r
e
f
- RB1
RB2
RB3
RB4
RB5
RE9
RD9
RD8
RF2
USBID/RF3
GND
RG7
RG6
R
A
1
R
E
3
R
E
4
RG15
VCC
R
B
7
/
P
G
E
D
2
R
B
6
/
P
G
E
C
2
RB0
R
F
4
R
F
5
RA14
RA5
R
D
1
4
R
D
1
5
RA2
R
F
1
3
V
C
C
RA3
VCC
E
N
V
R
E
G
RE8
RA0
VCC
G
N
D
R
F
1
2
RA4
GND
V
C
A
P
A
G
N
D
A
V
C
C
R
A
1
0
/
V
r
e
f
+
MCLR
RC4
RC12
RC15
RD10
R
D
3
R
D
1
RC13
RC14
GND
R
D
2
R
D
1
2
R
D
1
3
R
D
4
R
D
5
RG9
RD11
RD0
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
C3
100nF
C4
100nF
C5
100nF
C6
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC
10uF
E1 MCU-VCC
USER
INTERFACE
Figure 10-12: Connecting 2x5 male header
with PIC24FJ256BG110 in 100-pin TQFP
package
PIC24FJ TQFP100
Page 32
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
3
2
7
8
7
7
7
9
8
0
7
6
8
1
8
2
8
3
8
4
8
5
8
6
8
7
8
8
8
9
9
0
9
1
9
2
9
3
9
4
9
5
9
6
9
7
9
8
9
9
1
0
0
9
11
12
4
3
24
23
18
17
16
15
14
13
5
6
7
8
10
1
2
22
21
20
19
25
3
0
2
9
2
8
2
7
3
4
3
3
4
6
3
6
3
5
4
2
4
3
4
4
4
5
3
7
5
0
4
8
4
9
3
2
3
8
3
9
4
0
4
1
4
7
3
1
2
6
58
57
56
55
54
53
52
72
69
68
67
66
65
64
63
62
61
60
59
71
51
70
75
74
73
PIC32MX460F512L
R
B
1
1
R
B
1
0
R
B
9
R
B
8
R
B
1
3
R
B
1
2
RE7
RC1
RC2
RC3
RA15
RG2
R
B
1
5
R
B
1
4
RF8
Vbus
Vusb
RG3
G
N
D
V
C
C
R
A
6
R
G
0
R
G
1
R
E
0
R
F
1
R
F
0
R
D
7
R
D
6
RE6
RE5
R
E
2
R
G
1
3
R
G
1
2
R
G
1
4
R
E
1
R
A
7
RG8
R
A
9
RB1
RB2
RB3
RB4
RB5
RA13
RD9
RD8
RF2
RF3
GND
RG7
RG6
R
A
1
R
E
3
R
E
4
RG15
VCC
R
B
7
/
P
G
E
D
2
R
B
6
/
P
G
E
C
2
RB0
R
F
4
R
F
5
RA14
RA5
R
D
1
4
R
D
1
5
RA2
R
F
1
3
V
C
C
RA3
VCC
E
N
V
R
E
G
RA12
RA0
VCC
G
N
D
R
F
1
2
RA4
GND
V
C
A
P
A
G
N
D
A
V
C
C
R
A
1
0
MCLR
RC4
RC12
RC15
RD10
R
D
3
R
D
1
RC13
RC14
GND
R
D
2
R
D
1
2
R
D
1
3
R
D
4
R
D
5
RG9
RD11
RD0
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
C3
100nF
C4
100nF
C5
100nF
C6
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC
10uF
E1 MCU-VCC
USER
INTERFACE
Figure 10-13: Connecting 2x5 male header
with PIC32MX460F512L in 100-pin TQFP
package
PIC32MX4 TQFP100
Page 33
9
11
12
4
3
24
23
18
17
16
15
14
13
5
6
7
8
10
1
2
22
21
20
19
25
3
0
2
9
2
8
2
7
3
4
3
3
4
6
3
6
3
5
4
2
4
3
4
4
4
5
3
7
5
0
4
8
4
9
3
2
3
8
3
9
4
0
4
1
4
7
3
1
2
6
58
57
56
55
54
53
52
72
69
68
67
66
65
64
63
62
61
60
59
71
51
70
75
74
73
7
8
7
7
7
9
8
0
7
6
8
1
8
2
8
3
8
4
8
5
8
6
8
7
8
8
8
9
9
0
9
1
9
2
9
3
9
4
9
5
9
6
9
7
9
8
9
9
1
0
PIC32MX795F512L
0
R
B
1
1
R
B
1
0
R
B
9
R
B
8
R
B
1
3
R
B
1
2
RE7
RC1
RC2
RC3
RA15
D+
R
B
1
5
R
B
1
4
RF8
Vbus
Vusb
D-
G
N
D
V
C
C
R
A
6
R
G
0
R
G
1
R
E
0
R
F
1
R
F
0
R
D
7
R
D
6
RE6
RE5
R
E
2
R
G
1
3
R
G
1
2
R
G
1
4
R
E
1
R
A
7
RG8
R
A
9
RB1
RB2
RB3
RB4
RB5
RE9
RD9
RD8
RF2
RF3
GND
RG7
RG6
R
A
1
R
E
3
R
E
4
RG15
VCC
R
B
7
/
P
G
E
D
2
R
B
6
/
P
G
E
C
2
RB0
R
F
4
R
F
5
RA14
RA5
R
D
1
4
R
D
1
5
RA2
R
F
1
3
V
C
C
RA3
VCC
V
C
C
RE8
RA0
VCC
G
N
D
R
F
1
2
RA4
GND
V
C
A
P
A
G
N
D
A
V
C
C
R
A
1
0
MCLR
RC4
RC12
RC15
RD10
R
D
3
R
D
1
RC13
RC14
GND
R
D
2
R
D
1
2
R
D
1
3
R
D
4
R
D
5
RG9
RD11
RD0
MCU-RB6/PGC
MCU-RB7/PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
C1
100nF
C2
100nF
C3
100nF
C4
100nF
C5
100nF
C6
100nF
MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC MCU-VCC
10uF
E1 MCU-VCC
C7
100nF
MCU-VCC
USER
INTERFACE
Figure 10-14: Connecting 2x5 male header
with PIC32MX760F512L in 100-pin TQFP
package
PIC32MX7 TQFP100
C
o
n
n
e
c
t
i
o
n

e
x
a
m
p
l
e
s

-

P
I
C
3
2
Page 34
Notes:
Page 35
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 modifcation 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 ftness 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 MikroElektronika,
its directors, ofcers, employees or distributors be liable for any indirect, specifc, incidental or consequential damages (including damages for loss of business
profts 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.
TRADEMARKS
The MikroElektronika name and logo, the MikroElektronika logo, mikroC, mikroBasic, mikroPascal, mikroProg, EasyPIC, EasyPIC PRO and mikromedia 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 identifcation or explanation and to the owners beneft, with no intent to infringe.
Copyright MikroElektronika, 2013, All Rights Reserved.
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 hazard-
ous environments requiring fail safe performance, such as in the operation of nuclear facilities, aircraft navigation or communication systems, air trafc
control, direct 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 specifcally disclaim any expressed or implied warranty of ftness for High
Risk Activities.
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/support/
If you have any questions, comments or business proposals,
do not hesitate to contact us at ofce@mikroe.com
mikroProg for PIC, dsPIC and PIC32
manual, ver. 2.21b
0 100000 025239