mikroElektronika mikroProg User manual

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
condence 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 rmware
allows programming of all Microchip®microcontrollers: PIC®, dsPIC®, PIC24® and PIC32®. And there’s no need for rmware change each
time you select a new microcontroller architecture because mikroProg™ rmware 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 rmware 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 le.
Double click on setup le to begin
installation of the programmer
drivers.
When you locate the drivers, please extract les from the ZIP archive. Folder with extracted les contains folders with drivers for
dierent 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 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
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
program’s main window includes basic
options forprogrammingmicrocontrollers.In
addition, there are advanced programming
options that enable experienced users to
set conguration 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 benets 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, rst 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 dierent 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®. We’ll explain how multiplexer operates and
what are it’s key benets 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 there’s no need for disconnecting
mikroProg™ programmer from a device when programming is
nished. 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
programming/
debugging
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
PIC18F45K22
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
R R R
100nFRESET
10K1K
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 nished, multiplexer reconnects programming/debugging pins so they can be used as I/Os. There’s 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
PIC18F45K22
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
RRR
100nFRESET
10K1K
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
PIC18F45K22
MCU-PGC
MCU-PGD
MCU-MCLR
MCU-VCC VCC
PGC-RB6
PGD-RB7
MCLR
MCU-VCC
R R R
100nFRESET
10K1K
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 aecting 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 aecting the operation of the device itself. It also prevents
external signals from aecting 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 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).
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 microcontroller’s VCC pins.
Page 20
Other manuals for mikroProg
7
Table of contents
Other mikroElektronika Computer Accessories manuals
Popular Computer Accessories manuals by other brands

Innovative Technology
Innovative Technology Justin ITJ-4251M manual

goodnature
goodnature Smart Trap Kit quick start guide

Logitech
Logitech V250 - Cordless Mouse/number Pad Package Contents

Asus
Asus CW101 quick start guide

Fractal design
Fractal design FOCUS user guide

Gecko
Gecko GG110108 User manual and warranty