Sie sind auf Seite 1von 1

http://Electronica.

ir

Atmel AVR In System Programming Dongle


Atmel offers a software package called the Atmel The current release of the software is Version 2.65
AVR ISP which allows the programming of AVR which can be downloaded at
Microcontrollers in circuit with a simple dongle which ftp://www.atmel.com/pub/atmel/avr_isp.zip (875KB)
is attached to the Parallel Port. This dongle is
detailed below. It can be built cheaply, making it an If you are seeking a Serial/RS232 Version, have a
ideal starting point for developing with ATMEL AVR look at Atmel’s Application Note AVR910 which
micros. details a serial programmer using at AT90S1200.
VCC VCC

20
J1 R1
U1 74HC244
100K
5 DATA3 1 VCC
1G

VCC
4 DATA2 19
2G
J2
7 DATA5 2 18 MOSI VDD
1A1 1Y1 1 2
8 DATA6 4 16 LED GND
1A2 1Y2 3 4
6 DATA4 6 14 RST GND
1A3 1Y3 5 6
8 12 SCK GND
1A4 1Y4 7 8
MISO GND
9 10
11 9
2A1 2Y1
13 7 ISP
2A2 2Y2
15 5
GND
2A3 2Y3
9 DATA7 17 3
2A4 2Y4
2
12
10
10

3
11 VCC
18
19 C1
20
0.1uF
21
22
23
24
25

Parallel Port

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 Name Function Description
loopback connections, pin 2 to 12 and 3 and 11 is MOSI Master Out - Slave Data being transmitted to the
used to identify the dongle. With both links in place In part being programmed is sent
on this pin
the dongle is identified as a Value Added Pack LED Program LED Optional Programming LED
Dongle. With only pins 2 and 12 links, it is reported RST Target MCU Reset Connects to Target AVR.
as a STK300 or AVR ISP Dongle. With only 3 and 11 Target AVR is programmed
the dongle is reported as an STK200 or old Kanda while in Reset State.
ISP Dongle. SCK Shift Clock Serial Clock Generated by the
Programmer
MISO Master In – Slave Data received from the part
DATA2 and DATA3 of the Parallel Port Drive the Out being programmed is sent on
TriState Outputs. A low will allow the passing of the this pin
serial clock and data during programming. MOSI, VCC ISP Power Power Supply for the ISP. ISP
Header must supply power to
LED, SCK and Reset being outputs are buffered from the dongle.
the Parallel Port’s DATA5, DATA6, DATA4 and GND Ground Common Ground
DATA7 Respectively. The only input, MISO is fed into
nACK, a status input of the Parallel Port.
MOSI 1 2 VDD
There are two standard ISP Connectors for Atmel
AVR Microcontroller ISP Programming. One standard LED 3 4 GND
is the 10 pin version using a DIL 5x5 header of 0.1”
Pitch, shown in the above schematic. This is used on
MOSI 1 2 VDD RST 5 6 GND
the ATMEL STK Kits. The other is a more compact 6
pin version, once again using a DIL 3x3 header of
SCK 3 4 MISO SCK 7 8 GND
0.1” pitch. This 6 pin version is the standard
connector for ATMEL ISP Programmers.
RST 5 6 GND MISO 9 10 GND

The main advantage of the 10 pin header is the clean 6 Pin Header 10 Pin Header
and easy use of 10 pin IDC crimp headers.

ATMEL AVR ISP Dongle Monday, September 11, 2000


http://www.beyondlogic.org

Das könnte Ihnen auch gefallen