Make your own 8051 MCU Programmer with USBasp
In this article we are going to learn how to make a programmer to program 8051 MCU series. Once I got in trouble with this issue but solved it too. You can get help from my experience too. There are many examples online but very few of them really works. Many people published video on this but if you try yourself, in most of cases you are going to fail. Today, you’ll learn the secrete behind this.
Disclaimer: Electricity is always dangerous. Skill required to work with electricity. Do work with your own risk. Author will not be responsible for any misuse or harmful act. This website contents is also copyright protected. Anything copied and directly posted in your website and claiming it as yours is prohibited and nonsensical. Author published all the articles as opensource to help you making your project and learning purpose only. Learn and make one for yourself. If need any help feel free to ask the author. Author will be helpful to you. Thanks.
About 8051 MCU series:
The 8051 micro-controller is one of the most popular and most commonly used micro-controllers in various fields like embedded systems, consumer electronics, automobiles, etc. Technically called as Intel MCS-51 Architecture, the 8051 micro-controller series was developed by Intel in the year 1980 and were very popular in the 80’s (still are popular).
The 8051 Micro-controller has many features like Serial Communication, Timers, Interrupts, etc. and hence many students and beginners start their work on the concept of Micro-controllers with 8051 Micro-controller (although this trend seems to be changed with the introduction of Arduino).
Even though 8051 Micro-controller might seem a little bit out of fashion, we feel that it is one of the best platforms to get started with Micro-controllers, Embedded Systems and Programming (both C and Assembly).
The 8051 MCU series have several micro-controllers in list. Among this list, AT89C51/52, AT89S51/52 are most popular. C series have serial programming option but we can program S series with USBasp programmer. Here in this article, we’ll learn to make a programmer to program 89S52 MCU.
If you search over internet how to program 89S52 micro-controller then you’ll get tons of result programming with USBasp programmer. A programmer like this one will come in front line:
You’ll need a software for this programmer. Many people suggest to use Progisp1.72. This one is very easy and popular for 8051 series. You can program AT89S51/52 with this programmer.
You can find other software for USBasp programmer from here. But as we are discussing about 8051 series, I’ll discuss about programming 89S52 MCU. Note that 89S51 works in similar way.
One day I got in trouble with this issue. I had to make my custom USBasp programmer for a product where the programmer have to be built in with other circuits on a single board. I could use USBasp dongle programmer but that would never look good for that product.
I started searching about programming 89S52, got tons of result with USBasp. Collected 3 types of programmer from the local market and tested each of them. The Chinese one supports AT89S52 but the German one which I found locally doesn’t support AT89S52. I was confused about this issue which one to use.
I found circuit diagram for USBasp online and made a test PCB for that to test if my programmer works. I found the firmware in www.fischl.de which is actually German based. Tested my programmer, it can program ATmega8 but can not detect AT89S52. I found ‘Chip Enable Program Error’.
My USBasp programmer:
Making a USBasp programmer is very easy as it is open source. You can find this circuit diagram over the internet:
I made my own PCB using this circuit diagram. Although I removed some parts of it but it was not so important to keep.
Here is my programmer:
After copying the firmware from the Chinese one (.HEX and EEPROM) I loaded them to Atmega8A of my USBasp programmer with the help of AVRDUDE.
When programming your Atmega8, set L fuse to 0xEF and H fuse to 0xC9. And select the flash(here you’ll get a bin file which will work fine) and eeprom file. Then program. And it works!. Yes, it can detect and I can program At89S52 MCU.
I made a video on this too:
I made PCB for my USBasp programmer. And this is tested ok. For you own, you can use it too:
USBasp is an open source programmer. And I think, there is no such credit claiming that I made it. But my experience sharing may help you to solve your problem and make your work easy. That is why I’m gladly kept it open source for all of you.
Here is the files which you can download and make your own USBasp programmer for 8051 series with other standard MCUs.
I thank all the contributors who made it easy and open source [USBasp programmer]. And thank you too for reading up to this. I hope you got similar problem and now you can solve your problem too. If you need any help, feel free to contact with me. Thank you.