DIY编程器网

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 6050|回复: 0
打印 上一主题 下一主题

AVR910 - AVR Programmer

[复制链接]
跳转到指定楼层
楼主
发表于 2011-11-24 20:49:53 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
[size=+3]AVR910 - AVR Programmer
[size=+1]Prahlad J. Purohit, prahladp@gmail.com
Easy-build programmer for AVR microcontrollers. The firmware is based on AVR910 application note by ATMEL. The programmer can be used with AVR Studio, AVR-Prog, AVRDUDE and AVR OSP.

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.
You need to connect a straight serial cable between the programmer and serial port on PC. Connect your target board to this programmer with the help of 6 pin ISP connector marked SV1. It is recommended to have a 6 pin ISP header on target board for connecting with the programmer. Recommended ISP connector pin out on target board is given below. Connect the target board and programmer with straight cable i.e. Pin 1 to 1, Pin 2 to 2 and so on. Programmer board takes the power supply from target board so your target board needs to be powered up before you start programming. Leave the JRST jumper open.
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.
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享分享 支持支持 反对反对
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|文字版|手机版|DIY编程器网 ( 桂ICP备14005565号-1 )

GMT+8, 2024-11-13 03:04 , 耗时 0.090661 秒, 23 个查询请求 , Gzip 开启.

各位嘉宾言论仅代表个人观点,非属DIY编程器网立场。

桂公网安备 45031202000115号

DIY编程器群(超员):41210778 DIY编程器

DIY编程器群1(满员):3044634 DIY编程器1

diy编程器群2:551025008 diy编程器群2

QQ:28000622;Email:libyoufer@sina.com

本站由桂林市临桂区技兴电子商务经营部独家赞助。旨在技术交流,请自觉遵守国家法律法规,一旦发现将做封号删号处理。

快速回复 返回顶部 返回列表