ISP_AVR

2
ATMEL AVR ISP Dongle Monday, September 11, 2000 http://www.beyondlogic.org  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. The current release of the software is Version 2.65 which can be downloaded at ftp://www .atmel.com/pub/atmel/avr_isp .zip (875 KB) If you are seeking a Serial/RS232 Version, have a look at Atmel’s Application Note AVR910 which details a serial programmer using at AT90S1200. 2 3 4 5 18 6 19 7 20 8 21 9 22 10 23 11 24 12 25 J1 Parallel Port 1A1 2 1A2 4 1A3 6 1A4 8 2A1 11 2A2 13 2A3 15 2A4 17 1Y1 18 1Y2 16 1Y3 14 1Y4 12 2Y1 9 2Y2 7 2Y3 5 2Y4 3 1G 1 2G 19      V      C      C      2      0      G      N      D      1      0 U1 74HC244 1 2 3 4 5 6 7 8 9 10 J2 ISP VC C C1 0.1uF VCC MOSI VDD GND GND GND GND L ED RST SC K MISO VC C DATA3 DATA2 DATA4 DATA5 DATA6 DATA7 R1 100K VC C Figure 1 : Schematic for the ATMEL ISP Value Adde d 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’s DATA5, DATA6, DATA4 and DATA7 Res pectively. The only input, MISO i s 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. Name Function Description MOSI Master Out - Slave In Data being transmitted to the part being programmed is sent on this pin LED Program LED Optional Programming LED RST Target MCU Reset Connects t o Target AVR. Target AVR is programmed while in Reset State. SCK Shift Clock Serial Clock Generated by the Programmer MISO Master In Slave Out Data received from the part being programmed is sent on this pin VCC ISP Power Power Supply for the ISP. ISP Header must supply power to the dongle. GND Ground Common Ground 6 Pin Header 10 Pin Header 1 2 3 4 5 6 VDD GND MOSI RS SCK MI SO 1 2 3 4 5 6 7 8 9 10 VDD GN D GND GN D GND MOSI LED RST SCK MISO http://Electronica.ir www.Redownload.ir

Transcript of ISP_AVR

Page 1: ISP_AVR

8/3/2019 ISP_AVR

http://slidepdf.com/reader/full/ispavr 1/1

ATMEL AVR ISP Dongle Monday, September 11, 2000

http://www.beyondlogic.org

 Atmel AVR In System Programming Dongle

Atmel offers a software package called the AtmelAVR ISP which allows the programming of AVRMicrocontrollers in circuit with a simple dongle whichis attached to the Parallel Port. This dongle isdetailed below. It can be built cheaply, making it anideal starting point for developing with ATMEL AVRmicros.

The current release of the software is Version 2.65which can be downloaded atftp://www.atmel.com/pub/atmel/avr_isp.zip (875KB)

If you are seeking a Serial/RS232 Version, have alook at Atmel’s Application Note AVR910 whichdetails a serial programmer using at AT90S1200.

2

3

4

5

18

6

19

7

20

8

21

9

22

10

23

11

24

12

25

J1

Parallel Port

1A12

1A24

1A36

1A48

2A111

2A213

2A315

2A417

1Y118

1Y216

1Y314

1Y412

2Y19

2Y27

2Y35

2Y43

1G1

2G19

     V     C     C

     2     0

     G     N     D

     1     0

U1 74HC244

1 2

3 4

5 6

7 8

9 10

J2

ISP

VCC

C1

0.1uF

VCC

MOSI VDD

GND

GND

GND

GND

LED

RST

SCK

MISO

VCC

DATA3

DATA2

DATA4

DATA5

DATA6

DATA7

R1

100K

VCC

Figure 1 : Schematic for the ATMEL ISP Value Added Dongle

Using a 74HC244 Tri-State buffer as the maincomponent, operation is extremely simple. The twoloopback connections, pin 2 to 12 and 3 and 11 isused to identify the dongle. With both links in placethe dongle is identified as a Value Added PackDongle. With only pins 2 and 12 links, it is reportedas a STK300 or AVR ISP Dongle. With only 3 and 11the dongle is reported as an STK200 or old KandaISP Dongle.

DATA2 and DATA3 of the Parallel Port Drive theTriState Outputs. A low will allow the passing of theserial clock and data during programming. MOSI,

LED, SCK and Reset being outputs are buffered fromthe Parallel Port’s DATA5, DATA6, DATA4 andDATA7 Respectively. The only input, MISO is fed intonACK, a status input of the Parallel Port.

There are two standard ISP Connectors for AtmelAVR Microcontroller ISP Programming. One standardis the 10 pin version using a DIL 5x5 header of 0.1”Pitch, shown in the above schematic. This is used onthe ATMEL STK Kits. The other is a more compact 6pin version, once again using a DIL 3x3 header of0.1” pitch. This 6 pin version is the standardconnector for ATMEL ISP Programmers.

The main advantage of the 10 pin header is the cleanand easy use of 10 pin IDC crimp headers.

Name Function DescriptionMOSI Master Out - Slave

InData being transmitted to thepart being programmed is senton this pin

LED Program LED Optional Programming LED

RST Target MCU Reset Connects to Target AVR.Target AVR is programmedwhile in Reset State.

SCK Shift Clock Serial Clock Generated by theProgrammer

MISO Master In – SlaveOut

Data received from the partbeing programmed is sent onthis pin

VCC ISP Power Power Supply for the ISP. ISPHeader must supply power to

the dongle.GND Ground Common Ground

6 Pin Header 10 Pin Header

1 2

3 4

5 6

VDD

GND

MOSI

RS

SCK MISO

1 2

3 4

5 6

7 8

9 10

VDD

GND

GND

GND

GND

MOSI

LED

RST

SCK

MISO

tp://Electronica.irww.Redownload.ir