DIY编程器网

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 14653|回复: 18
打印 上一主题 下一主题

USBTiny-MkII SLIM programmer

  [复制链接]
跳转到指定楼层
楼主
发表于 2011-10-20 07:20:39 | 只看该作者 |只看大图 回帖奖励 |正序浏览 |阅读模式
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)

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏2 分享分享 支持支持 反对反对
19#
发表于 2022-6-12 13:40:39 | 只看该作者

这东西最大的优点是支持Xmega芯片的编程
18#
发表于 2020-11-6 22:29:31 | 只看该作者
怎么是英文的,不知道我能不能制作 ,只看的懂中文。
17#
发表于 2020-3-26 09:15:29 | 只看该作者
太多东西了,东西多了也杂了哈
16#
发表于 2020-3-26 09:02:33 | 只看该作者
和原装MKII相比,下载速度如何?
14#
发表于 2013-2-3 13:24:25 | 只看该作者
本帖最后由 zyh555 于 2013-2-3 13:30 编辑

很不错,支持很是全面
13#
发表于 2012-9-3 12:30:48 | 只看该作者
It is a great design of AVRISP-mkII-CLone, it can program more Atmel ICs, thanks.
12#
发表于 2012-7-17 10:50:27 | 只看该作者
看看,还是E文的
11#
 楼主| 发表于 2012-7-14 17:33:31 | 只看该作者
SengChuary 发表于 2012-7-14 15:32
太多东西了,东西多了也杂了哈

资料的海洋确实需要好的索引,可惜个人能力有限,只做了几个,大家一起做吧
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-23 09:52 , 耗时 0.100849 秒, 25 个查询请求 , Gzip 开启.

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

桂公网安备 45031202000115号

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

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

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

QQ:28000622;Email:libyoufer@sina.com

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

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