This time, the aim of the article will be to introduce you to another cheap and very useful programmer from our slant-eyed brothers.
It is a UBSASP programmer, version 2.0, designed to work with AVR systems manufactured by Atmel. After purchase, we receive a programmer in the form of a USB "dongle" and a cable / ribbon with a standard 10-pin Kanda connector.
As you can see in the pictures, the workmanship is quite correct, although we already know that sometimes they can do it better.
The programmer is based on the Atmega8A microcontroller, and the source codes can be found at http://www.fischl.de/usbasp. Which suggests that once again we are dealing with a cheap clone.
In the attachment you have a PDF with instructions in English.
Let's move on to the capabilities of the device. The programmer supports the following systems:
As for a device for PLN 4, we have quite a large range of microcontrollers at our disposal.
A very useful, for some, functionality may be the ability to upload Boot Loaders to microcontrollers for Arduino.
The programmer offers us the following options: - upload to the microcontroller the contents of the EEPROM and the appropriate firmware; - setting fuste bits and lock bits; - reading the contents of the above; - work in Windows systems (including all sevens, for the higher ones, I don't know), Linux, Mac OS X; - declaring the voltage of the programmed microcontroller, we have 5V, 3.3V and no power supply (set with a jumper), if, for example, the system is soldered into the board of a working device and powered directly from it; - "for bajeru" we have two more LEDs, RX and TX, signaling receiving and transmitting data.
The older version also had a jumper slowing down the hardware clock speed below 1.5MHz, for programming low clock speeds. In version 2.0, the slowdown occurs automatically.
We have a number of programs to operate the programmer, or rather graphic overlays for AVRDude. The most popular of them are: - SinaProg - eXtreme Burner - AVR - Khazama AVR Programmer
Summarizing. A small and very useful programmer, which should appear with every electronics in a drawer / suitcase / pocket (it will easily fit in the pocket next to the one described last week).
In most of these Chinese programmers, you need to upgrade the firmware because the Chinese for some unknown reason pack the oldest software into these programmers. It manifests itself with the following message:
avrdude: warning: cannot set sck period. please check for usbasp firmware update.
Avrdude asks you to update the programmer firmware as this old version does not support SCK software speed change. After this operation, the programmer works very well.
I recently acquired such programmers. Only at once with an aluminum colored housing. There is atmega 88 inside and as the name suggests it is usbisp, not asp. Does not work with avrdude. But I found the firmware, uploaded it and it flashes.
I have an identical programmer. Automatic slow SCK does not work after a successful firmware update. However, it is enough to shorten JP3 and the problem is over. Maybe I have an extremely Chinese version, although it looks the same as in the photos.
I have had it for a long time and I have already tested it. Note, however, that we have beginner electronics on the forum who do not have such a device, and after reading the article, they will find out that they can get it for a few zlotys and I will have a basic tool to play with uC.
I suggest that you be consistent and either we agree in a male way that I received the programmer on the day of publication of the article and we forget about the matter. Or you click on the topic BIOS MX25L6405 W25Q64 USB programmer CH341A programmer - review and you pour out your regrets there too, because I carelessly wrote:
The programmer has been used by me for over 3 years and despite the simplicity of implementation, it has never let me down (or maybe thanks to this simplicity of implementation).
Seriously, what's the difference when I bought the programmer?
It is possible to check what version was uploaded - avrdude command ?. Mine is just flying and I am curious if the older or the latest version will be uploaded. What could be the reason for uploading older versions?
What could be the reason for uploading older versions?
"Maybe it won't drip ..." be laziness or beaker. It can be different with them.
Added after 2 [hours] 32 [minutes]:
It is worth paying attention to one more thing about this programmer - relatively slow when it comes to sending the program to the uC. Up to 1kB it is cool, around 2kB is already starting to "pant", 4kB can last a few good seconds, and then practically every next 1kB adds at least 2s to the duration of programming. Well, of course, this should not be surprising, considering the very simple structure.
Perhaps such information was included and I did not see it, but if it is missing - I inform you.
I do not know if I was unlucky, but in my copy there was (before the amendment) a terribly strangely soldered KANDA socket. The distance of the upper row of pins from the lower row of the KANDA socket is thicker than the PCB, so you would also need to slightly bend the pins or use a different solution, unfortunately the solder did not do it in my copy, but tilted the plug all the way down and it was soldered this way (at an angle) . Of course, the system worked properly, but the programmer itself looked really funny, I do not know if there are copies of this programmer with a housing, but it would certainly be a problem to adjust / add some without corrections. For new buyers, it may be worth mentioning in the message to the seller that he checks it before shipping.
If you don't know what's going on, it's about money And seriously, I have already spoken on this issue before. I have known this product for years, and you have known it for a long time. Remember, however, that new users register on the forum every day. New and young, those who are just starting their adventure with the world of electronics, and I can assure you that for such users, topics of this type are very helpful.
I bought this programmer a moment ago and I am very pleased. I use the best program in my opinion "eXtreme Burner - AVR 1.4.3" with modified files "chips.xml" and "fuselayout.xml" (in the "Data" directory), which add support for ATtiny25 / 45/85 microcontrollers and fixes to support ATtiny13 ( Link ).
There is ATmega8A in my programmer, the batch of which does not contain any official version of the available software. I compared it with batches for ATmega8 / 48/88 from the official website of the programmer (versions: 2005-04-21, 2005-07-03, 2005-11-14, 2006-09-16, 2006-12-29, 2007-07 -23, 2007-10-23, 2009-02-28, 2011-05-28).
Edition: I found information that the original batch contains a modified version of the control software that automatically detects and adjusts the SCK signal speed to the operating frequency of the microcontroller being programmed. Thanks to this, you do not need to set the JP3 jumper when programming a microcontroller that works with a frequency below 1.5 MHz. For this reason, no goldpins for this jumper are installed on the programmer board. I checked it in practice and in fact this option works (on the original firmware from 2011-05-28, communication with the programmed AVR clocked at 1MHz, was not possible without the JP3 jumper). In turn, the goldpins for the JP2 jumper are not installed, because the Chinese manufacturer did not see the need to upload new firmware, which has not been developed for a long time. I also recommend changing the settings of the original fuse bits (FuseLow: $ 9F, FuseHigh: $ D9) to FuseLow: $ EF, FuseHigh: $ C9 (values are provided in the original firmware documentation from 5/28/2011).