Upload
raj007202
View
252
Download
0
Embed Size (px)
Citation preview
8/3/2019 Avr Programmer Manual
1/18
AVR MICROCONTROLLER PROGRAMMER
Thank you for using this AVR Microcontroller programmer. The AVR microcontroller family comprises of
8-bit RISC microcontrollers with speeds up to 20 Mega Instructions per Second (MIPS), surpassing the
performance limits of commonly available 8-bit microcontrollers (e.g. AT89x and PIC). The AVRs are a
balanced choice for embedded applications and lie at the break even of performance and system cost.
This programmer uses a standard COMM Port (Serial Port) and can program numerous variants of the
AVR family. The programmer uses ISP method for programming the microcontrollers. A list of all
supported devices is given in Table 1.
ATMEGA603 ATMEGA169 ATTINY13 AT90S2323
ATMEGA103 ATMEGA32 ATTINY15 AT90S2333
ATMEGA48 ATMEGA323 ATTINY22 AT90S2343ATMEGA8 ATMEGA324 ATTINY2313 AT90S4414
ATMEGA8515 ATMEGA64 ATTINY25 AT90S4433
ATMEGA8535 ATMEGA640 ATTINY26 AT90S4434
ATMEGA88 ATMEGA644 ATTINY45 AT90S8515
ATMEGA16 ATMEGA128 ATTINY85 AT90C8534
ATMEGA161 ATMEGA1280 ATTINY261 AT90S8535
ATMEGA162 ATMEGA1281 ATTINY461 AT90CAN32
ATMEGA163 ATMEGA2560 ATTINY861 AT90CAN64
ATMEGA164 ATMEGA2561 AT90S1200 AT90CAN128
ATMEGA168 ATTINY12 AT90S2313
Table 1: Complete List of supported devices
Table 2 enlists the AVRs that can be programmed using the on-board ZIF sockets. It is worthwhile to
note that all the devices in Table 1 can be programmed using the ISP connector provided for the
purpose.
ATMEGA8515 ATMEGA323 ATTINY13 ATTINY85
ATMEGA161 ATMEGA324 ATTINY15 ATMEGA8
ATMEGA162 ATMEGA163 ATTINY22 ATMEGA48
ATMEGA16 ATMEGA164 ATTINY2313 ATMEGA88
ATMEGA32 ATMEGA644 ATTINY25 ATMEGA168
ATMEGA8535 ATTINY12 ATTINY45Table 2: List of AVRs programmable through ZIF Sockets
This programmer is a customized adaptation of Pony Prog, and is specifically tailored to program the
devices mentioned in Table 2. If desired, the schematics along with the latest software can be
downloaded from the Pony Prog website www.lancos.com.
8/3/2019 Avr Programmer Manual
2/18
Position of Important Components
ZIF Socket 2
ZIF Socket 1
Jumper J4Jumper J3Jumper J2Jumper J1
Connector for
ISP Cable
Connector for
PC Serial Port
8/3/2019 Avr Programmer Manual
3/18
Brief Overview of Jumpers and Connectors
This section details relevant information regarding jumpers and connectors on board. It is advised to
review this section with utmost care since wrong installation of jumpers, or incorrect combination of
ISP signals may render the microcontroller totally useless or locked.
Connector for PC Serial Port:
The host PC connects to the programmer through this connector. The pinout of the serial port connector
is as follows.
Connector for ISP:
The ISP connecter provides all signals needed to program AVRs outside the programmer, thus
eliminating the need to put the target chip in the programmer. The ZIF sockets are compatible only with
AVRs specified in Table 2, thus for greater flexibility and true In-System Programming, these connections
may be extracted from the programmer board without zeal. Furthermore, some AVRs, even though they
are supported in software, must be programmed outside the programmer using the extracted ISP
signals. Examples include AT MEGA 64, AT MEGA 128, AT TINY 26 etc.
1. Pin 3 Transmit2. Pin 4 DTR3. Pin 5 Gnd4. Pin 7 RTS5. Pin 8 CTS
1. Vcc2. Reset3. NC4. SCK5. MOSI6. MISO7. NC8. Gnd
8/3/2019 Avr Programmer Manual
4/18
Jumpers J1, J2, J3 and J4:
N.B.: Review the following section with care as incorrect placement of jumpers may destroy the
microcontroller.
Jumpers J1 through J4 select the type of microcontroller based on its structural resemblance to a
particular type. For example, ATMEGA8515, ATMEGA161 and AT MEGA162 have similar pin out
therefore they can all be programmed through the same jumper configuration. Below are the
programmer diagrams showing how various AVRs can be programmed through their corresponding
jumper settings.
Jumper Setting #1:
Figure 1: Jumper Setting #1
In setting #1, jumpers are placed in locations J1 and J2 as shown in Figure 1. Note that the AVRs need to
be placed in ZIF #1 to be programmed successfully. Also note the orientation of the AVR in ZIF Socket #1.
List of AVRs programmable in this mode is below.
1.ATMEGA85152.ATMEGA1613. ATMEGA162
8/3/2019 Avr Programmer Manual
5/18
Jumper Setting #2:
Figure 2: Jumper Setting #2
In setting #2, jumpers are placed in locations J1 and J2 as shown in Figure 2. Note that the AVRs need to
be placed in ZIF Socket #1 to be programmed successfully. Also note the orientation of the AVR in ZIF
Socket #1. List of AVRs programmed in this mode is below.
1.ATMEGA162.ATMEGA323.ATMEGA3234.ATMEGA3245.ATMEGA1636.ATMEGA1647.ATMEGA85358.ATMEGA644
8/3/2019 Avr Programmer Manual
6/18
Jumper Setting #3:
Figure 3: Jumper Setting #3
In setting #3, a jumper is placed in location J3 while there is no jumper in any other location as shown in
Figure 3. In this mode ATTINY2313 can be programmed through ZIF Socket #2. Also note the orientation
of the AVR (AT TINY 2313) in ZIF Socket #2.
8/3/2019 Avr Programmer Manual
7/18
Jumper Setting #4:
Figure 4: Jumper Setting #4
In setting #4, no jumper is placed in any location as shown in Figure 4. Note the orientation of the AVR
in ZIF Socket #2. List of AVRs programmed in this mode is below.
1. ATMEGA82. ATMEGA483. ATMEGA884. ATMEGA168
8/3/2019 Avr Programmer Manual
8/18
Jumper setting #5:
Figure 5: Jumper Setting #5
In setting #5, a jumper is placed in location J4 while there is no jumper in any other location as shown in
Figure 5. Note that the AVRs need to be placed in ZIF Socket #2 to be programmed successfully. Also
note the orientation of the AVR in ZIF Socket #2. List of AVRs that can be programmed through this
mode is below.
1. ATTINY122. ATTINY133. AT TINY154. ATTINY225. ATTINY256. ATTINY457. ATTINY85
8/3/2019 Avr Programmer Manual
9/18
The Software
The programmer uses Pony Prog to burn hex files into the AVRs. Pony Prog can be installed from the
accompanying CD. Latest version of Pony Prog can also be downloaded from www.lancos.com.
However, this programmer is tested using Pony Prog software in the accompanying CD. After installing
Pony Prog, carry out the following steps to configure Pony Prog with your PC.
1. When you first open the program, you will get a screen similar to the one given in Figure a.
Figure a
2. Next go to interface setup as shown in Figure b and then set the interface to SI Prog IO asshown in Figure c.
8/3/2019 Avr Programmer Manual
10/18
8/3/2019 Avr Programmer Manual
11/18
Figure d
Figure e
4. Place the ATTiny2313 into ZIF #2, keeping in mind the orientation of the IC as well as theplacement of jumper in location J3, as discussed in Figure f (Jumper Setting #3).
5. Erase the AVR, by going to Command menu and clicking Erase, as shown in Figure g. Iferased successfully, a message box will appear confirming a successful clear operation as shown
in Figure h.
8/3/2019 Avr Programmer Manual
12/18
Figure f
Figure g
8/3/2019 Avr Programmer Manual
13/18
Figure h
6. We will now program the ATTiny2313. Select a hex file to burn into the AVR, through the stepsin Figure i, j, k and l.
Figure i
8/3/2019 Avr Programmer Manual
14/18
8/3/2019 Avr Programmer Manual
15/18
Figure l
7. Finally, go to Command and click Program, as shown in Figures m, n and o. A message boxwill intimate you of a successful write operation.
Figure m
8/3/2019 Avr Programmer Manual
16/18
Figure n
Figure o
8. You can save yourself from the hassle of explicitly selecting Erase and Program from theCommand menu every time you program an AVR, by following the steps in Figures p and q. Go
to Command and click on Program options. Check mark Reload Files, Erase, Write program
memory [Flash] and Write Data Memory [EEPROM]. So whenever you want to program the AVR,
just press CTRL-P and the AVR will automatically be erased and programmed.
8/3/2019 Avr Programmer Manual
17/18
Figure p
Figure q
8/3/2019 Avr Programmer Manual
18/18
Important points to note:
1. Prior to changing fuse settings, please review the datasheet thoroughly, of the microcontrollerthat you are working on, especially the section containing fuse settings. If you set a wrong
combination of fuses, the controller may get locked and will only be unlocked using a High
Voltage programmer.
2. When you program your controller for the first time, it is running on internal oscillator. If youchange its setting to external crystal or resonator then a crystal along with its stabilizing
capacitors must also be soldered into the board.