DIY编程器网

标题: USBTiny-MkII SLIM programmer [打印本页]

作者: liyf    时间: 2011-10-20 07:20
标题: USBTiny-MkII SLIM programmer
USBTiny-MkII SLIM programmerfile:///C:/Documents%20and%20Settings/Administrator/桌面/USBTiny-MkII%20SLIM%20programmer/USBTiny-MkII%20SLIM%20programmer%20%20Manekinen%20DIY_files/calendar.png 29 July 2011 | | Dodał manekinen









USBTiny-MkII SLIM programmer (AVRISP-MKII clone) supports all Attiny, Atmega, and Xmega µcontrollers. It has three programming interfaces: ISP, PDI, and TPI. It works with AvrStudio or AvrDude. Small convenient board, contains double direction voltage translator for all interfaces and working from 1,2V, jumper for target chip voltage selection 5V or 3,3V (LDO stabilizer), and status LEDs. The heart of the device is a AT90USB162 controller with hardware USB, so it can provide fast programming speeds.


About:
Circuit built and based on LUFA project (link), programmer inspired by USBTiny-MKII (link), and USBTiny MKII PL (link). I used MAX3002 in place for original GTL2003 translator, exactly like author of the PL version – this chip is more available. This change also need a change of code, which is described in last link – code in attachment is already moded – original will work incorrectly.
Programmer has a three IDC 6pin sockets to provide support for three programming protocols: ISP, PDI, and TPI. They allows to programm all of available Atmega, Attiny, and Xmega chips. PCB just looks complicated, but it can be also homemade. Vias are not placed under chip or other elements so they can be made with a wire. Vias placed under the at90usb162 chip derives its other free pins to pads on the bottom side of pcb – so circuit can be used also as a test board for other codes using hardware USB. Code change is very simple, it is made trough built-in USB bootloader and free tool from Atmel – FLIP.
Under IDC sockets a voltage selection jumper is placed – you can select voltage which can be used to power your target chip. Short the 1 and 2 for 5V, or 2 and 3 for 3,3V. For voltage reduction, LDO MCP1825S-3302ED stabilizer is used – but you can use any pin-compatible one, like LF33. Removed jumper will disconnect voltage from the “translated” side, and you have to provide this voltage from target chip to allow programmer to work.
I won’t write about programming, everybody knows how it works. Programmer can be used from AvrStudio or AvrDude. Disadvantage is that, we must choose with which software we want to use it – but changing form one to another is just a matter of minutes
Launching:
After correct soldering, connect your programmer to USB port. You will see a notification that your PC found a new device called “AT90USB162 DFU”. Download and install the FLIP software from Atmel. Then, install DFU drivers from Atmel\Flip\usb\ folder. After correct install, start FLIP, click on the “chip” icon, and select at90usb162 from the list. Then, click on the 2nd “usb cable” icon, select USB, and OPEN in next window. FLIP should detect your chip with no problem – if it can’t (you get error message), it means that you did something wrong. You can reinstall the driver, connect to another usb port, or reboot your system.
If you chip is brand new (empty) then after connect it will automatically start in bootloader mode. If you want to upgrade firmware, then put the HWB jumper on, and short RST pins. Chip will start in bootloader mode. Jumper can be removed.
If we want to compile the code for our own, we will need only WinAvr in 2010-01-10 version. Select make clean and then make all – that’s it. But we can choose here the software under which we want to compile the firmware. If we want to use it with AvrDude, then open the makefile file and add following line:
CDEFS += -DLIBUSB_DRIVER_COMPAT
Next step is to send our firmware to chip. Click on the first “open book” icon and select our HEX file. Then hit the RUN button. We should have checked the “erase”, “program”, and “verify” checkboxes. Code will be written very fast. Now, just reconnect programmer to usb port – or short the RST pins, and you should get two LEDs lit.
After that, PC will detect new device LUFA AVRISP MkII CLONE – it’s time to install driver for this. If we want to use programmer with AvrStudio, install driver from Atmel\AVR Tools\usb\ folder – this folder is created when installing AvrStudio. But if we want to us it with AvrDude, then install the LIBUSB driver. Unpack files, run inf-wizard app, select our programmer from list, save created file, and click on install now or use windows installer. LED1 should light up – this means that programmer is ready to work – congratulations, that’s it.
In AvrStudio, click on the Con button, then select AVRISP mkII from list, and hit connect.
In AvrDude, change your programmer type in command line for:
-c avrisp2 -P usb or -c avrispmkII -P usb.
Attention:
Programmer in current version will not work with ISP if these lines are loaded with resistance in target chip board, resistance stronger than 22K for pullup, or resistance stronger than 10K for pulldown.

原理图和固件还有源代码
mkii_slim.rar (855.41 KB, 下载次数: 72)


作者: hdzl    时间: 2011-10-20 13:14
我看你都快成强盗了,咋啥都有呀
作者: liyf    时间: 2011-10-20 14:17
你才知到啊,还多着呢。只可惜大多数只看不出力,顶一下也好
作者: 王号明    时间: 2011-10-24 13:53
大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了大家好新手来了
作者: liyf    时间: 2011-10-24 14:37

作者: yf654987    时间: 2012-6-7 21:51
看看改进到哪去了!
作者: yf654987    时间: 2012-6-7 22:07
本帖最后由 yf654987 于 2012-6-7 22:54 编辑

下不谁给我发一份谢谢了! 无法下载!!!
作者: 古道热肠    时间: 2012-6-10 21:22
这东西最大的优点是支持Xmega芯片的编程,如果要用Xmega,少不了要用MKII
作者: 铭翔科技    时间: 2012-6-13 03:57
继续顶,赚积分
作者: SengChuary    时间: 2012-7-14 15:32
太多东西了,东西多了也杂了哈
作者: liyf    时间: 2012-7-14 17:33
SengChuary 发表于 2012-7-14 15:32
太多东西了,东西多了也杂了哈

资料的海洋确实需要好的索引,可惜个人能力有限,只做了几个,大家一起做吧
作者: zhengdb    时间: 2012-7-17 10:50
看看,还是E文的
作者: stonychan    时间: 2012-9-3 12:30
It is a great design of AVRISP-mkII-CLone, it can program more Atmel ICs, thanks.
作者: zyh555    时间: 2013-2-3 13:24
本帖最后由 zyh555 于 2013-2-3 13:30 编辑

很不错,支持很是全面
作者: feiniao00o    时间: 2019-7-9 19:00
备料中!!!!!!!!!!!!!!!!!
作者: FSN    时间: 2020-3-26 09:02
和原装MKII相比,下载速度如何?
作者: kgdyinpv    时间: 2020-3-26 09:15
太多东西了,东西多了也杂了哈

作者: 天下第一驴    时间: 2020-11-6 22:29
怎么是英文的,不知道我能不能制作 ,只看的懂中文。
作者: 大侠客    时间: 2022-6-12 13:40

这东西最大的优点是支持Xmega芯片的编程




欢迎光临 DIY编程器网 (http://diybcq.com./) Powered by Discuz! X3.2