Thursday, March 11, 2010

AVR910 - AVR Programmer

By:
Prahlad J. Purohit, prahladp@gmail.com

INTRODUCTION
AVR910 is a very useful programmer. It can program almost complete range of AVR chips. The original version made by Klaus is here, http://www.mikrocontroller-projekte.de/Mikrocontroller/AVR-Prog/AVR-Programmer.html. The programmer uses ISP capability of AVR chips. AVR910 first appeared in AVR910 application note by ATMEL. It is one of the fastest programmers for AVR. We can use AVR PROG available in AVR Studio, AVR OSP or AVRDUDE for interfacing with this programmer. The programmer connects to PC using serial port. For the notebook PC, we can use the USB to serial converter.

HARDWARE
I have done some minor modifications in the original design by Mr. Klaus. Klaus's solution uses transistors for RS232 - TTL level conversion. I changed to MAX232. My experience with such transistor solutions is not good. This solution may not work for some computers. The MAX232 is a better solution. If your target board uses 3.3V, try the MAX3232 in place of MAX232. Second difference is the LED, Klaus's design uses bi-color LED, I found it difficult to get such LED so I changed to use two LEDs, RED for busy and Green for idle. Rest of the part is the same as Klaus's design. Here are the schematic (click on the image to enlarge the schematic), PCB layout files and component placement files.




CONNECTOR ON TARGET


SOFTWARE
The software has two parts. The first one is the FIRMWARE that you need to burn into the ATTINY2313 chip, and the second part is the PC software that used to send the object code to the programmer board.

FIRMWARE
For the 7.3728MHz XTAL frequency, with the baud rate of 115200 you can burn this hex file avr910_2313_v38b.hex into the 2313 chip.

If your XTAL is different frequency, or need to modify the baud rate, you can modify this assembly source file avr910_2313_v38b.asm and generate your own hex using a suitable assembler.

Please note that, the ATTINY2313 chip from the factory is configured to use internal oscillator. To use external crystal, we must set the fuse in your ATTINY2313.

PC SOFTWARE
You can use AVR PROG included in AVR Studio. However the AVR PROG works only with baud rates above 19200.

Alternatively you can use open source software like  ATMEL AVR-OSP or AVRDUDE.

No comments:

Post a Comment