This is the README file for USBasp.
USBasp is a USB in-circuit programmer for Atmel AVR controllers. It simply
consists of an ATMega48 or an ATMega8 and a couple of passive components.
The programmer uses a firmware-only USB driver, no special USB controller
is needed.
Features:
- Works under multiple platforms. Linux, Mac OS X and Windows are tested.
- No special controllers or smd components are needed.
- Programming speed is up to 5kBytes/sec.
- SCK option to support targets with low clock speed (< 1,5MHz).
- Planned: serial interface to target (e.g. for debugging).
LICENSE
The project is built with AVR USB driver by Objective Development, which is
published under a proprietary Open Source license. To conform with this
license, USBasp is distributed under the same license conditions. See the
file "firmware/usbdrv/License.txt" for details.
LIMITATIONS
Hardware:
This package includes a circuit diagram. That circuit can only be used for
programming 5V target systems. For other systems a level converter is needed.
Firmware:
The firmware dosn't support USB Suspend Mode. A bidirectional serial
interface to slave exists in hardware but the firmware doesn't support it yet.
USE PRECOMPILED VERSION
Firmware:
Flash "bin/firmware/usbasp.atmega48.xxxx-xx-xx.hex" or
"bin/firmware/usbasp.atmega8.xxxx-xx-xx.hex" to the used controller with a
working programmer (e.g. with avrdude, uisp, ...). Set jumper J2 to activate
USBasp firmware update function.
You have to change the fuse bits for external crystal (see "make fuses").
# TARGET=atmega8 HFUSE=0xc9 LFUSE=0xef
# TARGET=atmega48 HFUSE=0xdd LFUSE=0xff
Windows:
Start Windows and connect USBasp to the system. When Windows asks for a
driver, choose "bin/win-driver". On Win2k and WinXP systems, Windows will
warn that the driver is is not 'digitally signed'. Ignore this message and
continue with the installation.
Now you can run avrdude. Examples:
1. Enter terminal mode with an AT90S2313 connected to the programmer:
avrdude -c usbasp -p at90s2313 -t
2. Write main.hex to the flash of an ATmega8:
avrdude -c usbasp -p atmega8 -U flash:w:main.hex
Setting jumpers:
J1 Power target
Supply target with 5V (USB voltage). Be careful with this option, the
circuit isn't protected against short circuit!
J2 Jumper for firmware upgrade (not self-upgradable)
Set this jumper for flashing the ATMega(4)8 of USBasp with another working
programmer.
J3 SCK option
If the target clock is lower than 1,5 MHz, you have to set this jumper.
Then SCK is scaled down from 375 kHz to about 8 kHz.
BUILDING AND INSTALLING FROM SOURCE CODE
Firmware:
To compile the firmware
1. install the GNU toolchain for AVR microcontrollers (avr-gcc, avr-libc),
2. change directory to firmware/
3. run "make main.hex"
4. flash "main.hex" to the ATMega(4)8. E.g. with uisp or avrdude (check
the Makefile option "make flash"). To flash the firmware you have
to set jumper J2 and connect USBasp to a working programmer.
You have to change the fuse bits for external crystal, (check the Makefile
option "make fuses").
Software (avrdude):
AVRDUDE supports USBasp since version 5.2.
1. install libusb: http://libusb.sourceforge.net/
2. get latest avrdude release: http://download.savannah.gnu.org/releases/avrdude/
3. cd avrdude-X.X.X
5. configure to your environment:
./bootstrap (I had to comment out the two if-blocks which verify the
installed versions of autoconf and automake)
./configure
6. compile and install it:
make
make install
Notes on Windows (Cygwin):
Download libusb-win32-device-bin-x.x.x.x.tar.gz from
http://libusb-win32.sourceforge.net/ and unpack it.
-> copy lib/gcc/libusb.a to lib-path
-> copy include/usb.h to include-path
cd avrdude
./configure LDFLAGS="-static" --enable-versioned-doc=no
make
Notes on Darwin/MacOS X:
after "./configure" I had to edit Makefile:
change "avrdude_CPPFLAGS" to "AM_CPPFLAGS"
(why is this needed only on mac? bug in configure.ac?)
FILES IN THE DISTRIBUTION
Readme.txt ...................... The file you are currently reading
firmware ........................ Source code of the controller firmware
firmware/usbdrv ................. AVR USB driver by Objective Development
firmware/usbdrv/License.txt ..... Public license for AVR USB driver and USBasp
circuit ......................... Circuit diagram in PDF and EAGLE format
bin ............................. Precompiled programs
bin/win-driver .................. Windows driver
bin/firmware .................... Precompiled firmware
MORE INFORMATION
For more information on USBasp and it's components please visit the
following URLs:
USBasp .......................... http://www.fischl.de/usbasp/
Firmware-only AVR USB driver .... http://www.obdev.at/products/avrusb/
avrdude ......................... http://www.nongnu.org/avrdude/
libusb .......................... http://libusb.sourceforge.net/
libusb-win32 .................... http://libusb-win32.sourceforge.net/
2006-12-29 Thomas Fischl <tfischl@gmx.de>
http://www.fischl.de
没有合适的资源?快使用搜索试试~ 我知道了~
USBASP 驱动,原理图,固件三合一
共54个文件
h:7个
pcb:7个
sch:7个
5星 · 超过95%的资源 需积分: 10 26 下载量 162 浏览量
2012-06-01
14:21:45
上传
评论 2
收藏 312KB RAR 举报
温馨提示
USBASP(原理图,固件,驱动三合一),用了很久了,稳定,速度快。支持avr全系列单片机
资源推荐
资源详情
资源评论
收起资源包目录
USBASP(原理图,固件,驱动三合一.rar (54个子文件)
USBASP(原理图,固件,驱动三合一
usbISP
USBISP.PCB 96KB
PCB_Project2.PrjPCBStructure 45B
USBISP.PcbLib 37KB
USBISP PCB ECO 2011-10-31 16-57-14.LOG 1KB
USBISP PCB ECO 2011-10-31 17-40-48.LOG 25B
USBISP PCB ECO 2011-10-31 16-53-17.LOG 1KB
USBISP.DRC 641B
USBISP PCB ECO 2011-10-31 16-48-48.LOG 1KB
USBISP PCB ECO 2011-10-31 17-48-19.LOG 65B
PCB_PROJECT2.PRJPCB 25KB
History
USBISP.~(1).PcbLib 0B
USBISP.~(6).PCB 90KB
USBISP.~(1).PCB 90KB
USBISP.~(5).PCB 91KB
USBISP.~(5).Sch 79KB
B58C3ED5
USBISP.~(1).PCB 96KB
USBISP.~(4).PCB 90KB
USBISP.~(3).Sch 28KB
USBISP.~(2).PcbLib 37KB
PCB_PROJECT2.~(1).PRJPCB 25KB
USBISP.~(3).PCB 93KB
USBISP.~(1).Sch 14KB
USBISP.~(2).Sch 28KB
USBISP.~(4).Sch 28KB
USBISP.Sch 79KB
USBASP驱动
usbasp.2006-12-29
circuit
USBasp.sch 257KB
USBasp_schematics.pdf 63KB
Readme.txt 5KB
Changelog.txt 983B
firmware
clock.h 690B
usbconfig.h 7KB
Makefile 5KB
usbdrv
usbconfig-prototype.h 12KB
Readme.txt 4KB
iarcompat.h 2KB
Changelog.txt 5KB
License.txt 23KB
usbdrv.h 27KB
oddebug.h 3KB
usbdrvasm.S 28KB
usbdrv.c 23KB
USBID-License.txt 7KB
oddebug.c 1KB
usbdrvasm.asm 553B
isp.h 2KB
isp.c 5KB
clock.c 569B
main.c 6KB
bin
firmware
usbasp.atmega8.2006-12-29.hex 9KB
usbasp.atmega48.2006-12-29.hex 9KB
win-driver
usbasp.inf 2KB
libusb0.dll 46KB
libusb0.sys 33KB
usbasp固件
高速编程.bin 5KB
共 54 条
- 1
资源评论
- mmystudio2014-05-05还行,谢谢分享。
- HAM1232013-11-24很好的资料,谢谢楼主。
lyllkw
- 粉丝: 1
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功