MicroElektronika mikroProg User manual

mikroProg
mikroProg™ for AVR®is a fast USB programmer. With it’s outstanding
performance, simplicity and unique design it is a great tool for
programming Atmel® AVR microcontroller family.
for AVR®
™
AVR

I want to express my thanks to you for being interested in our products and for having
The AVR® and Windows® logos and product names are trademarks of Atmel® Holdings 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. AVRFlash software 10
4. Connecting with a target device 12
5. Connector Pinout 13
6. Connection schematic example 14
40-pin ATmega16 schematic 15
Table of Contents

Page 4
mikroProg™ for AVR®is a fast USB programmer. It is a great tool for programming Atmel® AVR microcontroller family. Outstanding
performance, easy operation, elegant design and low price are it’s top features.
Introduction to mikroProg™

Page 5
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
Key features
What you see

Page 6
1. Driver installation
mikroProg™ requires drivers in order to work. Drivers are
located on the Product DVD that you received with the
mikroProg™ package:
When you locate the drivers, please extract
on which operating system you use, choose adequate folder
and open it.
DVD://download/eng/software/
development-tools/avr/avr-
prog2/avrprog2_drivers_v200.
zip
In the opened folder you should be
installation of the programmer
drivers.
Copyright ©2012 Mikroelektronika.
Allrightsreserved.MikroElektronika, MikroElektronika logo and other
MikroElektronika trademarksarethepropertyof MikroElektronika.
Allother trademarksaretheproperty of theirrespective owners.
Unauthorisedcopying,hiring,renting,public performance
and broadcasting of thisDVD
isstrictlyprohibited.
M
I
K
R
O
M
E
D
I
A
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
M
A
N
U
A
L
S
•
•
•
•
•
•
•
•
•
D
E
V
E
L
O
P
M
E
N
T
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
S
C
H
E
M
A
T
I
C
S
•
•
•
•
•
•
•
•
•
A
C
C
E
S
S
O
R
Y
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
E
X
A
M
P
L
E
S
•
•
•
•
•
•
•
•
•
A
D
D
I
T
I
O
N
A
L
S
O
F
T
W
A
R
E
•
•
•
•
•
•
•
•
•
C
O
M
P
I
L
E
R
S
•
•
•
•
•
•
•
•
•
M
I
K
R
O
C
,
M
I
K
R
O
B
A
S
I
C
,
M
I
K
R
O
P
A
S
C
A
L
C
O
M
P
I
L
E
R
S
•
•
•
•
•
•
•
•
•
D
R
I
V
E
R
S
•
•
•
•
•
•
•
•
•
P
R
O
G
R
A
M
M
E
R
S
A
N
D
D
E
B
U
G
G
E
R
S
•
•
•
•
•
•
•
•
•
PRODUCT DVD
www.mikroe.com
www.libstock.com
A
v
a
i
l
a
b
l
e
o
n
P
r
o
d
u
c
t
D
V
D
!

Page 7
step 2 – Accept EULAstep 1 – Start installation
01 In welcome screen click the Next> button 02
03
Select I accept this EULA option
Click the Next> button
01 03
02

Page 8
step 3 – Installing the drivers step 4 – Finish installation
04 Click the Finish button to end installation process
04

Page 9
After driver installation is complete, you can 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™for AVR®and
PC is established. Link can be established only when correct drivers are installed on your PC.
2. Connecting to a PC

Page 10
mikroProg™for AVR®programmer requires special programming
software called AVRFlash. This software is used for
programming AVR® microcontrollers from Atmel®. It features
intuitive interface and SingleClick™programming technology.
Software installation comes on a Product
DVD:
After downloading, extract the
package and double click the executable
3. AVRFlash software
DVD://download/eng/software/
development-tools/avr/avrprog2/
avrprog2_programmer_v214.zip
A
v
a
i
l
a
b
l
e
o
n
P
r
o
d
u
c
t
D
V
D
!
Copyright ©2012 Mikroelektronika.
Allrightsreserved.MikroElektronika,MikroElektronikalogoand other
MikroElektronika trademarksarethepropertyof MikroElektronika.
Allother trademarksaretheproperty of theirrespective owners.
Unauthorisedcopying,hiring,renting,public performance
and broadcasting of thisDVD
isstrictlyprohibited.
M
I
K
R
O
M
E
D
I
A
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
M
A
N
U
A
L
S
•
•
•
•
•
•
•
•
•
D
E
V
E
L
O
P
M
E
N
T
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
S
C
H
E
M
A
T
I
C
S
•
•
•
•
•
•
•
•
•
A
C
C
E
S
S
O
R
Y
B
O
A
R
D
S
•
•
•
•
•
•
•
•
•
E
X
A
M
P
L
E
S
•
•
•
•
•
•
•
•
•
A
D
D
I
T
I
O
N
A
L
S
O
F
T
W
A
R
E
•
•
•
•
•
•
•
•
•
C
O
M
P
I
L
E
R
S
•
•
•
•
•
•
•
•
•
M
I
K
R
O
C
,
M
I
K
R
O
B
A
S
I
C
,
M
I
K
R
O
P
A
S
C
A
L
C
O
M
P
I
L
E
R
S
•
•
•
•
•
•
•
•
•
D
R
I
V
E
R
S
•
•
•
•
•
•
•
•
•
P
R
O
G
R
A
M
M
E
R
S
A
N
D
D
E
B
U
G
G
E
R
S
•
•
•
•
•
•
•
•
•
PRODUCT DVD
www.mikroe.com
www.libstock.com
Figure 3-1: AVRFlash software window
Quick Guide
01
02
03
Select the microcontroller to be programmed
Click the Load button to open pop-up window and select
the .hex code to be loaded in microcontroller
Click the Write option to start programming
01
02
03

Page 11
01
04
02
05
03
06
Start Installation
Choose destination folder
Accept EULA and continue
Installation in progress
Click Next > button
Finish installation
Software installation wizard

Page 12
4. Connecting with a target device
For connection with a target device mikroProg™uses IDC10 connector, as shown on Figure 4-1. In order to make proper connection with the
connector is marked with a little knob and incision between pins number 9 and 7, Figure 5-1.
Figure 4-1:
IDC10 JTAG
connector

Page 13
Figure 5-1: Female connector pinout
01
03
05
07
09 10
08
06
04
02
01
03
05
07
09
MOSI - Master output slave input
NC - Not connected
RST - Reset pin
SCK - Clock
MISO - Master input slave output
5. Connector Pinout
02
04
06
08
10
VCC - Power supply
NC - Not connected
NC - Not connected
NC - Not connected
GND - Ground

Page 14
Following example demonstrate connections with one of the most popular supported microcontroller. MCU use MISO, MOSI, SCK and RST
lines for programming. In order for microcontroller to work properly, decoupling capacitors must be connected as close as possible to
microcontroller’s VCC pins. Whichever microcontroller you decide to use, make sure to connect each pin properly.
6. Connection schematic example

Page 15
40-pin ATmega16 schematic
Figure 6-1: Connection schematic for 40-pin ATmega16 MCU via 2x5 male header
1
2
3
4
5
6
7
8 33
34
35
36
37
38
39
40
PB0
PB1
PB2
PB3
PB4
PB5 (MOSI)
PB6 (MISO)
PB7 (SCK)
PA5
PA6
PA0
PA1
PA2
PA3
PA4
PA7
9
10
11
12
13
14
15
16
RST
VCC
GND
XTAL2
XTAL1
PD0
PD1
PD2
17
18
19
20
PD4
PD5
PD6
25
26
27
28
29
30
31
32
PC5
PC4
AREF
AVCC
PC7
PC6
21
22
23
24
PC0
PD7
PC1
ATmega16
PD3
GND
PC3
PC2
U1
40 pin
VCC
X1
8MHz
C1
22pF
C2
22pF
MOSI
RST
SCK
MISO
VCC
C3
100nF
VCC
C4
100nF
VCC
VCC
C5
100nF

Page 16
Notes:

Page 17
Notes:

Page 18
Notes:

Page 19
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,
MikroElektronika provides this manual ‘as is’ without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties or
MikroElektronika shallassumenoresponsibilityorliabilityfor any errors,omissions andinaccuraciesthatmay appearinthismanual.Inno eventshallMikroElektronika,
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™, EasyAVR™, mikromedia™ and Ready™ 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
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-
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
Risk Activities.
Table of contents
Other MicroElektronika Motherboard manuals