• No results found

AVRprog. programmer by MikroElektronika

N/A
N/A
Protected

Academic year: 2021

Share "AVRprog. programmer by MikroElektronika"

Copied!
8
0
0

Loading.... (view fulltext now)

Full text

(1)

1

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

With complementary software,

AVRprog programmer

represents a great tool for all those

working with Atmel’s AVR microcontrollers. The microcontroller connects to the

AVRprog

programmer via 6 lines, two of which are +5V and GND and others are MOSI, MISO, SCK

and MCLR. Unlike programmers whose operation is based on bootloads (and which need

to give away part of their memory to a bootload program)

AVRprog

programs the

microcon-troller externally so that the entire memory is available for the programmer.

ABOUT AVRprog PROGRAMMER

MOSI, MISO and SCK are standard pins for SPI communication. MOSI and MISO are also

known as SDO and SDI, respectively. The position of these pins vary, depending on

micro-controller’s type. To use the benifits of In-System Programming, target board must have

IDC10 connector with following pinout:

VCC GND GND GND GND SCK MISO mRST MOSI

SPI communication lines on the target board

must be connected directly to the connector.

(2)

2

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

If the target board have its own power supply it can be used for powering the

AVRprog

pro-grammer. In that case you must open

AVRprog

programmer and take off the jumper for

power selection. When the jumper is on, target board is powered through programmer’s

USB connector so any other power supply on the target board must be disconnected.

This picture shows the position

of jumper when

AVRprog

pro-grammer is powered by the

tar-get board (tartar-get board have its

own power supply).

This picture shows the position

of jumper when the target board

and

AVRprog

programmer are

powered trough USB connector.

(3)

3

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

Copy the file AVRprog.exe from CD to your

PC, and run it.

Select the appropriate microcontroller, by clicking the option Device. AVRprog will automatically make adjustments for work-ing with the specified microcontroller. You must select microcontroller’s working fre-quency, by clicking the option Device fre-quency.

Step 1

Step 2

Click the option LOAD which opens up the window similar to picture on the right. By double-clicking the file, appropriate HEX file will be loaded into programmer’s buffer. AVRprog will read all the settings from the HEX file and set up the control bits.

Step 3

Programming the microcontroller starts by clicking the optionWritein the right corner of the working window.

(4)

4

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

KEYBOARD SHORTCUTS AND COMMAND LINE PARAMETERS.

Alt-E Erase Alt-W Write Alt-V Verify Alt-R Read

Alt-D Change MCU Ctrl-S Save

Ctrl-O Open (Load) Ctrl-R Reload

Alternatively, you can use the AVRprog programmer from the command line. It will allow you to use AVRprog from some other software, compiler etc. Here are the command line parameters are:

-p AVR name (for example AT90S8515, AT90S8535...) -f Filename (use " as delimiters)

-w Write to AVR -v Verify

-r Read from AVR -e Erase AVR

1. avrprog.exe -w -pAT90S8535 -v -f"C:\somefile.hex"

This will program the AVR using C:\somefile.hex and it will verify the write

2. avrprog.exe -r -pAT90S8535

This will read the AVR contents into on screen buffer 3. avrprog.exe -e -pAT90S8535

This will erase the AVR

Keyboard

Shortcuts

Command

Line

(5)

5

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

EXTERNAL AVRprog PROGRAMMER CONNECTION SCHEMATICS

A

TMEL

A

V

R

VCC GND GND GND GND PB7 (SCK) PB6 (MISO) mRST PB5 (MOSI) VCC PB1 PB0 PB2 PB3 PB4 PD5 PD6 PB5 PB6 PB7 PD1 RST PD2 PD0 PD3 PD4 XTAL2 XTAL1 GND PC2 PC1 PC0 PC3 PC4 PC5 PC6 PC7 OC1B ALE PA6 ICP PA5 PA7 PA4 PA3 PA2 PA1 VCC PA0 PD7 40 PIN AVRprog CONNECTOR

One of the possibilities for con-necting AVRprog to a microtroller is by using an IDC10 con-nector as shown on the picture on the left. All you have to do is to put one 2x5 connector on the target board connected as shown on the sheme. Once you plug in the AVRprog connector you will be able to program AVR In System.

(6)

6

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

A

TMEL

A

V

R

VCC GND GND GND GND PB7 (SCK) PB6 (MISO) mRST PB5 (MOSI) VCC PB1 PB0 PB2 PB3 PB4 PD5 PD6 PB5 PB6 PB7 PD1 RST PD2 PD0 PD3 PD4 XTAL2 XTAL1 GND PC2 PC1 PC0 PC3 PC4 PC5 PC6 PC7 OC1B ALE PA6 ICP PA5 PA7 PA4 PA3 PA2 PA1 VCC PA0 PD7 40 PIN AVRprog CONNECTOR

A

TMEL

A

V

R

VCC GND GND GND GND VCC PB1 PB0 PB2 PB3 PB4 PD5 PD6 PB5 PB6 PB7 PD1 RST PD2 PD0 PD3 PD4 XTAL2 XTAL1 GND PC2 PC1 PC0 PC3 PC4 PC5 PC6 PC7 AVCC AGND PA6 AREF PA5 PA7 PA4 PA3 PA2 PA1 VCC PA0 PD7 40 PIN PB7 (SCK) PB6 (MISO) mRST PB5 (MOSI) AVRprog CONNECTOR

Connection schematic for 40 pin AVR Microcontrollers. The scheme aplies to: AT90S8515, ATmega161, ATmega162, ATmega8515...

Connection schematic for 40 pin AVR Microcontrollers. The scheme aplies to: AT90S8535, ATmega16, ATmega163, ATmega32, ATmega323, ATmega8535...

(7)

7

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

A TMEL A V R PD0 PD1 PD2 PD3 PD5 PD6 PD4 VCC GND X1 X2 PB0 PB1 PB2 PB3 PB4 AREF PB5 AGND AVCC PC0 PC1 PC2 PC3 PC5 PC4 PD7 VCC GND GND GND GND VCC 28 PIN RST PB5 (SCK) PB4 (MISO) mRST PB3 (MOSI) AVRprog CONNECTOR PB7 X2 VCC PD0 PD1 X1 PB6 PB5 PD2 PD3 PB4 PD4 PD5 GND PB0 PD6 PB1 PB3 PB2 VCC GND GND GND GND VCC 20 PIN PB7 (SCK) PB6 (MISO) mRST PB5 (MOSI) RST A TMEL A V R AVRprog CONNECTOR

Connection schematic for 28 pin AVR Microcontrollers. The scheme aplies to: AT90S4433, ATmega8, ATmega48, ATmega88, ATmega168...

Connection schematic for 20 pin AVR Microcontrollers. The scheme aplies to: AT90S1200, AT90S2313, ATTINY2313... AV R PB2 GND VCC PB4 PB3 PB1 PB0 VCC GND GND GND GND VCC AVRprog CONNECTOR 8 PIN PB2 (SCK) PB1 (MISO) mRST PB0 (MOSI) RST

Connection schematic for 8 pin AVR Microcontrollers. The scheme aplies to: AT90S2323, AT90S2343, ATTINY12, ATTINY13, ATTINY15, ATTINY25, ATTINY45, ATTINY85...

(8)

8

page

AVRprog

programmer by MikroElektronika

Quickstart Guide

USB In System Programmer for Atmel AVR microcontrollers

S O F T W A R E A N D H A R D W A R E S O L U T I O N S F O R T H E E M B E D D E D W O R L D

If you are experiencing problems with any of our products or you just want additional information, please let us know. We are committed to meeting your every need.

Technical Support :

[email protected]

If you have any other question, comment or a business proposal, please contact us:

E-mail: [email protected] WWW: www.mikroe.com AVR 8051 ARM PIC 68HC08 PS oC C OM PILE RS BO OK S D EV . T OO LS USB 2

M

aki

ng

it e

asy

USB programmer

A

TMEL

A

V

R

VCC GND GND GND GND PB7 (SCK) PB6 (MISO) mRST PB5 (MOSI) VCC PB1 PB0 PB2 PB3 PB4 PD5 PD6 PB5 PB6 PB7 PD1 RST PD2 PD0 PD3 PD4 XTAL2 XTAL1 GND PC2 PC1 PC0 PC3 PC4 PC5 PC6 PC7 OC1B ALE PA6 ICP PA5 PA7 PA4 PA3 PA2 PA1 VCC PA0 PD7 40 PIN AVRprog CONNECTOR 1K RST BTN 10K 1K LED’s 1K VCC

The picture on the left shows how to connect three LED’s on PB5, PB6 and PB7 pins. On the same picture mRST pin was connected to the standard reset circuit.

References

Related documents

By first analysing the image data in terms of the local image structures, such as lines or edges, and then controlling the filtering based on local information from the analysis

On the expiry date if the Member has an open position, it is the difference between the final settlement price and the previous day’s settlement pricea.

 The Board should establish connections between the CMA and its members and should ensure that CMA’s objectives and goals reflect members’ expectations and values and determine

All stationary perfect equilibria of the intertemporal game approach (as slight stochastic perturbations as in Nash (1953) tend to zero) the same division of surplus as the static

Key words: Ahtna Athabascans, Community Subsistence Harvest, subsistence hunting, GMU 13 moose, Alaska Board o f Game, Copper River Basin, natural resource management,

[r]

This approach to estimation using country-level data can provide country specific cost per DALY averted values by applying estimated elasticities, which take account of measures of

For measures that have building-wide impacts or impacts across a number of systems, engineering modeling using generally accepted public domain software is acceptable to