You are on page 1of 1

http://Electronica.

ir

www.Redownload.ir

Atmel AVR In System Programming Dongle


Atmel offers a software package called the Atmel AVR ISP which allows the programming of AVR Microcontrollers in circuit with a simple dongle which is attached to the Parallel Port. This dongle is detailed below. It can be built cheaply, making it an ideal starting point for developing with ATMEL AVR micros.
VCC 20

The current release of the software is Version 2.65 which can be downloaded at ftp://www.atmel.com/pub/atmel/avr_isp.zip (875KB) If you are seeking a Serial/RS232 Version, have a look at Atmel Application Note AVR910 which s details a serial programmer using at AT90S1200.
VCC

J1

U1

74HC244

VCC

5 4 7 8 6

DATA3 DATA2 DATA5 DATA6 DATA4

1 19 2 4 6 8 11 13 15 17

R1 100K

1G 2G 1A1 1A2 1A3 1A4 2A1 2A2 2A3 2A4

VCC J2
VDD GND GND GND GND

1Y1 1Y2 1Y3 1Y4 2Y1 2Y2 2Y3 2Y4

18 16 14 12 9 7 5 3

MOSI LED RST SCK MISO

1 2 3 4 5 6 7 8 9 10 ISP

9 DATA7 2 12 10 3 11 18 19 20 21 22 23 24 25
Parallel Port

10

GND

VCC
C1 0.1uF

Figure 1 : Schematic for the ATMEL ISP Value Added Dongle Using a 74HC244 Tri-State buffer as the main component, operation is extremely simple. The two loopback connections, pin 2 to 12 and 3 and 11 is used to identify the dongle. With both links in place the dongle is identified as a Value Added Pack Dongle. With only pins 2 and 12 links, it is reported as a STK300 or AVR ISP Dongle. With only 3 and 11 the dongle is reported as an STK200 or old Kanda ISP Dongle. DATA2 and DATA3 of the Parallel Port Drive the TriState Outputs. A low will allow the passing of the serial clock and data during programming. MOSI, LED, SCK and Reset being outputs are buffered from the Parallel Port DATA5, DATA6, DATA4 and s DATA7 Respectively. The only input, MISO is fed into nACK, a status input of the Parallel Port. There are two standard ISP Connectors for Atmel AVR Microcontroller ISP Programming. One standard is the 10 pin version using a DIL 5x5 header of 0.1 Pitch, shown in the above schematic. This is used on the ATMEL STK Kits. The other is a more compact 6 pin version, once again using a DIL 3x3 header of 0.1 pitch. This 6 pin version is the standard connector for ATMEL ISP Programmers. The main advantage of the 10 pin header is the clean and easy use of 10 pin IDC crimp headers. ATMEL AVR ISP Dongle

Name
MOSI

Function
Master Out - Slave In Program LED Target MCU Reset

Description
Data being transmitted to the part being programmed is sent on this pin Optional Programming LED Connects to Target AVR. Target AVR is programmed while in Reset State. Serial Clock Generated by the Programmer Data received from the part being programmed is sent on this pin Power Supply for the ISP. ISP Header must supply power to the dongle. Common Ground

LED RST

SCK MISO

Shift Clock Master In Slave Out ISP Power

VCC

GND

Ground

MOSI LED

1 3 5 7 9

2 4 6 8

VDD GND GND GND

MOSI SCK RST

1 3 5

2 4 6

VDD MISO GND

RST SCK MISO

10 GND

6 Pin Header

10 Pin Header Monday, September 11, 2000 http://www.beyondlogic.org

You might also like