mikroProg

mikroProg
™
for 8051
mikroProg™ for 8051 is a fast USB programmer. With it’s outstanding
performance, simplicity and unique design it is a great tool for
programming 8051 microcontrollers from Atmel®
8051
TO OUR VALUED CUSTOMERS
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.
Nebojsa Matic
General Manager
Windows® logos and product names are trademarks of Microsoft® in the U.S.A. and other countries.
Table of Contents
Introduction to mikroProg™ 4
2. Connecting to a PC
Key features
5
3. 8051Flash software
10
9
1. D
river installation
6
4. Connecting with a target device
12
step 1 – Start installation
7
5. Connector Pinout
13
step 2 – Accept EULA
7
6. Connection schematic example
14
step 3 – Installing the drivers
8
40-pin AT89S8253 schematic
15
step 4 – Finish installation 8
Page 3
Introduction to mikroProg™
mikroProg™ for 8051 is a fast USB programmer. It is a great tool for programming 8051 microcontrollers from Atmel®. Outstanding
performance, easy operation, elegant design and low price are it’s top features.
Page 4
Key features
What you see
01
02
01 Flat cable
03
02 USB MINIB connector
04
03 DATA transfer indication LED
05
04 ACTIVE indication LED
06
05 LINK indication LED
06 POWER indication LED
Page 5
1. Driver installation
L
NA
IO
•
• •
• •
• •
• •
RE
WA
FT
SO
• • • • • • •
• • M
IKRO
ILERS
C, M
IKR
COMP
O
BA
S
IC,
MI
K
RO
PA
SC
AL
•
•
•
•
•
•
•
•
• •
• •
• •
• •
•
•
S
VER
DRI
EXAM
PLE
S
CO
S
PRODUCT DVD
R
LE
PI
M
AD
DI
T
mikroProg™ requires drivers in order to work. Drivers are
located on the Product DVD that you received with the
mikroProg™ package:
www.mikroe.com
www.libstock.com
PROGRAMME
RS A
ND
BOARDS • • • • • • • • •
SSORY
ACCE
• • • • •
• • • •
• •
CS
TI
MA
HE
•
• •
• •
• •
• •
DEB
UG
GE
RS
•
• •
•
•
•
AR
BO
••
• •
DS
•
• •
• •
RD
S•
• • •• • • • • • D
EVELO
PME
UALS
NT
MAN
BO
A
le on Product
D!
IA
ED
M
RO
• •
••
•
•
•
SC
•
lab
M
IK
Copyright ©2012 Mikroelektronika.
All rights reserved. MikroElektronika, MikroElektronika logo and other
MikroElektronika trademarks are the property of MikroElektronika.
All other trademarks are the property of their respective owners.
Unauthorised copying, hiring, renting, public performance
and broadcasting of this DVD
is strictly prohibited.
•
Av
ai
DVD://download/eng/software/
development-tools/8051
/8051prog2/8051flash_drivers_v200.zip
DV
When you locate the drivers, please extract
files from the ZIP archive. Folder with extracted files contains
folders with drivers for different operating systems. Depending
on which operating system you use, choose adequate folder
and open it.
In the opened folder you should be
able to locate the driver setup file.
Double click on setup file to begin
installation of the programmer
drivers.
Page 6
step 1 – Start installation
step 2 – Accept EULA
02
01
01
03
In welcome screen click the Next> button
02 Select I accept this EULA option
03 Click the Next> button
Page 7
step 3 – Installing the drivers
step 4 – Finish installation
04
04 Click the Finish button to end installation process
Page 8
2. Connecting to a PC
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 8051 and
PC is established. Link can be established only when correct drivers are installed on your PC.
Page 9
3. 8051Flash software
L
NA
IO
RE
WA
FT
SO
•
• •
• •
• •
• •
• • • • • • •
• • M
IKRO
ILERS
C, M
IKR
COMP
O
BA
S
IC,
MI
K
RO
PA
SC
AL
•
•
•
• •
• •
•
•
•
•
• •
• •
•
CO
•
S
VER
DRI
EXAM
PLE
S
technology. Software installation comes on
a Product DVD:
www.mikroe.com
www.libstock.com
PROGRAMME
RS A
ND
BOARDS • • • • • • • • •
SSORY
ACCE
• • • • •
• • • •
•
• •
• •
• •
• •
DEB
UG
GE
RS
•
• •
S
TIC
MA
HE
02
•
• •
•
•
DVD://download/eng/software
/development-tools/8051/
8051prog2/8051flash_programmer_v210.zip
•
AR
BO
•
• •
• •
••
• •
DS
RD
S•
• • •• • • • • • D
EVELO
PME
UALS
NT
MAN
BO
A
le on Product
After downloading, extract the
package and double click the executable
setup file, to start installation.
D!
IA
ED
M
RO
• •
••
•
•
•
SC
•
lab
M
IK
Copyright ©2012 Mikroelektronika.
All rights reserved. MikroElektronika, MikroElektronika logo and other
MikroElektronika trademarks are the property of MikroElektronika.
All other trademarks are the property of their respective owners.
Unauthorised copying, hiring, renting, public performance
and broadcasting of this DVD
is strictly prohibited.
•
Av
ai
03
S
PRODUCT DVD
01
R
LE
PI
M
AD
DI
T
mikroProg™ for 8051 programmer requires special programming
software called 8051Flash. This software is used for
programming ALL of 8051 microcontrollers from Atmel®. It
features intuitive interface and SingleClick™ programming
DV
Figure 3-1: 8051Flash software window
Quick Guide
01 Select the microcontroller to be programmed
02 Click the Load button to open pop-up window and select
the .hex code to be loaded in microcontroller
03 Click the Write option to start programming
Page 10
Software installation wizard
01 Start Installation
02 Accept EULA and continue
03 Click Next > button
04 Choose destination folder
05 Installation in progress
06 Finish installation
Page 11
4. Connecting with a target device
Figure 4-1:
IDC10 JTAG
connector
For connection with a target device mikroProg™ uses IDC10 connector, as shown on Figure 4-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 between pins number 9 and 7, Figure 5-1.
Page 12
5. Connector Pinout
01 MOSI - Master output slave input
03 NC - Not connected
05 RST - Reset pin
09
10
07
08
05
06
03
04
01
02
07 SCK - Clock
09 MISO - Master input slave output
02 VCC - Power supply
04 SS - Slave port select
06 NC - Not connected
08 NC - Not connected
10 GND - Ground
Figure 5-1: Female connector pinout
Page 13
6. Connection schematic example
Following example demonstrate connections with one of the most popular supported microcontroller (Figure 6-1). MCU use MISO, MOSI,
SCK, RST and SS 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.
Page 14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SS
RST
SCK
MISO
VCC
C3
100nF
X1
C1
22pF
8MHz
C2
22pF
U1
P1.0
P1.1
P1.2
P1.3
P1.4 (SS)
P1.5 (MOSI)
P1.6 (MISO)
P1.7 (SCK)
RST
P3.0
P3.1
P3.2
P3.3
P3.4
P3.5
P3.6
P3.7
XTAL2
XTAL1
GND
AT89S8253
MOSI
VCC
VCC
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
EA/VPP
ALE/PROG
PSEN
P2.7
P2.6
P2.5
P2.4
P2.3
P2.2
P2.1
P2.0
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
40 pin
Figure 6-1: Connection schematic for 40-pin AT89S8253 MCU via 2x5 male header
Page 15
40-pin AT89S8253 schematic
VCC
Notes:
Page 16
Notes:
Page 17
Notes:
Page 18
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 MikroElektronika,
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, 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 specifically disclaim any expressed or implied warranty of fitness for High
Risk Activities.
TRADEMARKS
The MikroElektronika name and logo, the MikroElektronika logo, mikroC™, mikroBasic™, mikroPascal™, mikroProg™, Easy8051™, 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
used for identification or explanation and to the owners’ benefit, with no intent to infringe.
Copyright © MikroElektronika, 2013 All Rights Reserved.
Page 19
8051
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/esupport
If you have any questions, comments or business proposals,
do not hesitate to contact us at office@mikroe.com
mikroProg for 8051 Manual
ver. 1.00
0 100000 023266