Oct132009

USB 8051/AVR programmer

Here’s the free circuit which can program 89S series microcontroller through USB. It just needs an programmed AVR Atmeg8 microcontroller.

Even though the Atmega8 does not have an USB interface an software USB is created.

The software is created by Fischl, its available at :http://www.fischl.de/usbasp/

But this programmer supports only AVR chips and now the Atmega8 microcontroller program is changed to support the AT89S series micros.

You can program the following 89 series chips by using this programmer

AT89S51, AT89S52, AT89S53, AT89S8252, AT89S8253, AT89S2051, AT89S4051

Programmer Circuit

Basic 8051 ISP circuit

Procedure:

  1. Download the Hex file into the Atmega8
  2. Connect the ISP lines to the AT89S series chip
  3. Don’t forget to connect the crystal & power supply to the AT89S chip
  4. Connect the hardware to the PC USB

Downloads

PC Software: progisp168.zip (843.50 kb)

AVR Code: usb51.zip (108.71 kb)

If you want to program 89S52 with AVR dude then

Add this text into your avrdude.conf(\winavr\bin\)

my_conf.txt (2.08 kb)


Tags: , , , ,

E-mail | Permalink | Trackback | Post RSSRSS comment feed tweet this 62 Responses

Comments


Son2Labs

Response by Son2Labs on 10/13/2009 6:57:17 AM

Thanks bro. I'll be test this one. Problem solving for pc without paralel  and serial port.




Joy

Response by Joy on 10/13/2009 6:59:50 AM

I've made the usbasp programmer according to the site "http://www.fischl.de/usbasp/"

& it is working pretty fine ..

But i couldn't understand what to do to make it program at89** series controllers ..

Please reply .. I really need it ..!




Son2Labs

Response by Son2Labs on 10/13/2009 7:01:39 AM

Oh no.. in chinesse language.. pls.. anyone can help me for translate this project into english??




binu

Response by binu on 10/13/2009 6:22:50 PM

@joy
This programmer can also program the 89S series chips along with the avr micros.
@Son2Labs
Just burn the HEX file into atmega8 and run the software to program 8051 chips. No need to worry about the PDF files.




azariah

Response by azariah on 10/13/2009 6:58:02 PM

hi thank u overmuch i try this programmer i have to no what is (SV 1)
plz tell to me




binu

Response by binu on 10/13/2009 7:19:51 PM

SV1 is the ISP connector which is to be connected to the 89S51.
It is shown on the second circuit.




Joy

Response by Joy on 10/13/2009 7:48:20 PM

r we supposed to use this softearw only ??
actually i've made my gui for avr controllers ..
after programming the atmega8 with the new hex , can i use avrdude to program at89** controllers ??




Joy

Response by Joy on 10/13/2009 8:11:17 PM

r we supposed to use this software only ??
actually i've made my own gui for avr controllers .. after reprograming atmega8 , can i use avrdude to flash at89** controllers ??




binu

Response by binu on 10/13/2009 8:56:13 PM

I haven't checked with avrdude. I think it may work on it.




azariah

Response by azariah on 10/15/2009 12:31:54 AM

hi sir i con under stand the SV 1 sir will u explain sir




weijie

Response by weijie on 10/17/2009 8:30:59 PM

this meaning that we must at least have a ATmega8 microC programmer ? How to connect the ATmega8 chip with 89S ISP lines ?




Ravi Kant

Response by Ravi Kant on 10/20/2009 11:15:24 PM

I am trying to build ISP programmer using serial port, and I am using tantalum capacitors 1uf, the programmer  is not responding , and sometimes it responds, also when it responds, the message is programme enable failed.


Kindly help for the same.




Ravi Kant

Response by Ravi Kant on 10/22/2009 12:44:51 AM

Hi
Binu

I want to know wat are these J1,J2 and J3 for.

Kindly reply for the same,

Thanks in advance




weijie

Response by weijie on 10/22/2009 4:36:09 AM

this meaning that we need to have a AVR programmer first before can make this AT89S programmer ?




dev

Response by dev on 10/24/2009 8:51:42 PM

programmer idea wanted for 89cxx AND 89sxx




binu

Response by binu on 10/24/2009 9:54:41 PM

@weijie  
yes you need a programmed atmega8 chip for making this circuit

@dev
Atmel has discontinued the production of C series microcontrollers. So there is no need for C series programmer.




Ravi Kant

Response by Ravi Kant on 10/27/2009 6:47:56 AM

Hi

Binu

I have Atmega8L, so is it different from Atmega8




Joy

Response by Joy on 11/6/2009 1:10:17 AM

yes atmega8L will not work at 12 Mhz ..




Abhinav Jain

Response by Abhinav Jain on 11/10/2009 7:01:41 AM

hello sir
will u please tell me  
is it working or not for at89s52/51




Pertamax

Response by Pertamax on 11/16/2009 3:57:23 AM

Hi Binu,
May you explain more detail how to setting and operate Progisp...

thx




Abhinav

Response by Abhinav on 11/18/2009 7:59:21 AM

Hi joy can you please let me know which file you have downloaded from http://www.fischl.de/usbasp/. there are a lots of option and i am a bit confused.




kapil

Response by kapil on 11/18/2009 7:13:30 PM

Hi good work!

I have a quarry that I have already a USBASP and what I can directly used for the 8051 programming.
I not then what modification is required? is there is only change in firmware or the whole circuitry is changed>

what modification you done in the firmware ?
what is fuse byte for the the ATMEGA8 for 12MHz crystal/
thank you.




kapil

Response by kapil on 11/18/2009 7:19:13 PM

I have a suggestion that you improve your software as i can be easily used.
In your software there is a lot of check box and selection is there.
I can help you to improve your software.

( Please look "extreme burner" for avr programming it is a good tool for beginner and you also develop such type of programmer tool) even i am open for your help.
thanks for your time
kapil




Kapeel

Response by Kapeel on 11/27/2009 11:20:34 PM

If Kapil is sugestsiong to simplify ProgISP, the sugession is not valid for BINU. Coz the software is devloped by a chineese firm "www.zhifengsoft.com' But anyway.i am personally using the software since more than 4 versions by now.




Kapeel

Response by Kapeel on 11/27/2009 11:25:57 PM

By the way..in case anyone is intretsed in similar programmer, one may have a look at www.united77.com/keeprog.htm who has a programmer which will program all AVr's and 89Sxx chips which is supplied with Prog ISP. I am using the same since 4 months without any problems. Its really a worth buy for just 500/-Rupees




Sajid

Response by Sajid on 1/9/2010 7:11:16 AM

Hi,

I just want to confirm. Is this hardware (the circuit) identical to the fiscle's USBASP? i.e., can I just reflash the atmega8 of my existing USBASP to add support of at89s52?




Sajid

Response by Sajid on 1/9/2010 7:34:02 AM

and one more thing,

After flashing your firmware, is the programmer still called a USBASP in avrdude?




Binu

Response by Binu on 1/13/2010 5:31:21 AM

Yes just burn this new firmware for 8051 support for USBASP.




Abhijeet

Response by Abhijeet on 1/13/2010 6:22:25 AM

Hello Binu...

i have a USBASP Programmers mentioned in the website
http://www.fischl.de/usbasp/

i programmed a new Atmega8 IC with main.hex in the USB51 firmware u have mentioned
and wen i replace the original ATmega8 IC From the programmer with the new programmed IC...
The usb isnt recognized...
can u plz tell me a solution for this...
im new with atmegaIC's... dunno about FuseBytes...

pls tell me a solution for this...
i have Windows XP...the working programmer programs ATmega8 ic successfully...dunno wat is wrong...




raj

Response by raj on 1/14/2010 8:51:14 AM

hi, i have the same problem mentioned above.please reply.......want a solution.




Smitha

Response by Smitha on 1/16/2010 11:44:19 PM

hi,

i am using atmega 16 and want to programm it through usb programmer.i have brought atmega8 and done the connections shown in the ckt but it is not yet programmed(atmega8). i have connected the atmega8 through usb port to the computer. it is then asking for Driver. but i am not able to find the setup of the Driver. can u plz tell me how to install the driver and where i can find the driver setup?




Abhijeet

Response by Abhijeet on 1/17/2010 10:01:27 AM


@smitha

The Atmega8 u r using in ur USB Programmer, is it already programmed by the given firmware...
if yes...then it must be getting recognised as USBasp on ur PC..and then simply upload the driver from the directory where u have downloaded it...
here is the link to download the driver...
www.fischl.de/.../usbasp-windriver.2009-02-28.zip

or goto http://www.fischl.de/usbasp/
and download the driver, its given there...

and if the ATmega8 is not programmed..then u have to program it externally with some another AVR programmer with the given firmware...then u can use it as USB Programmer...

Regards
Abhijeet




Nitin

Response by Nitin on 1/20/2010 3:07:17 AM

hi binu sir,
i have built the circuit and using progisp software.
but i am not able to program my AT89S52 chip.
i get the "Program Enable Error"
please clarify me the solution of this problem




lukcy

Response by lukcy on 1/22/2010 3:14:23 AM

can u make a tutorial (ex:video) for using usbasp for at89xx




Nitin

Response by Nitin on 1/22/2010 6:09:00 AM

@kapeel
i hav already tested keeprog mk2 bt i mgetting the error of
"chip enable program error"
is there any reason of error if i use 11.0592 MHz crystal than 4 MHz as shown in figure above...
please reply me ASAP..
i m stuck in the middle of a project..




Pamkin

Response by Pamkin on 1/28/2010 12:04:36 AM

Hello Sir Binu! Let me talk about steps install program usb ^^ ( my option, if it's wrong plz you correct it )
1.Program 89Sxx: first progam atmega8 then add 89Sxx into socket then program.
2.Program IC another: take out 89Sxx and run program progisp.exe.
Is this circuit program include atmega8 for 89Sxx?
3.If i don't want program 89Sxx, is this circuit program IC in list of software? So what program ATmega for support 89Sxx? is this file main.hex in usb51 folder?
Thank for read!




Binu

Response by Binu on 1/30/2010 1:54:39 AM

This circuit is for programming AT89Sxx microcontrollers using ATmega8.
So program the main.hex into an atmega8 and so that you can program the At89sxx chips with it.




Karan

Response by Karan on 2/5/2010 1:56:14 AM

Hello,

I want to make above Programmer for  AT89SXX.

But I am zero in AVR Microcontroller and Programming.

Can I solder this circuit and  program the main.hex into an atmega8?

For program ATMEGA8 with Traditional Serial ISP Programmer?

--
Thanks




Binu

Response by Binu on 2/5/2010 6:21:47 PM

yes, just program the main.hex into the atmega8.




Mostafa

Response by Mostafa on 2/9/2010 11:49:11 AM

thank you for your programmer.
I have made your suggested circuit and I have programed ATMEGA8 with main.hex from your package. but like others when I connect the usb port to the computer only the red LED turning on but the usb is not recognized (I only changed fuse bit for external crystal and other fuse bits like lock, watchdog are not seted) another point is that I have disabled serial programming for ATMEGA for MOSI, MISO and SCK ports. please help me




Mostafa

Response by Mostafa on 2/9/2010 12:53:41 PM

I found the problem, only one of my laptop usb ports can recognize device.
but for programming I should read micro (for 89S52) to erase or read the signature, but when I want to program, "enable error" message is displayed.
please help




ATUL SINGH

Response by ATUL SINGH on 2/17/2010 4:55:18 AM

Hi!

what should be the fuse bit configuration of the atmega8 which is used in 8051usb programmer?
and the circuit of 8051 usb programmer is same as the AVR usb programmer is it so or i am misunderstanding that?
pls help me......




srujal

Response by srujal on 2/18/2010 12:48:10 AM

ok thanks




Atul Singh

Response by Atul Singh on 2/18/2010 8:43:08 AM

PLS any one help me what should be the fuse bit configuration of atmega8 used in 8051 usb programmer
pls help me out




kapil

Response by kapil on 2/18/2010 8:28:28 PM

yes!!!!!!!!!!!!
Its working,working,working,working


gr8




sagar mehta

Response by sagar mehta on 2/22/2010 8:24:46 AM

can microcontroller(8051) works for two different task for the same time???




rxsant

Response by rxsant on 2/22/2010 9:24:51 PM

Response by Nitin on 1/22/2010 6:09:00 AM

@kapeel
i hav already tested keeprog mk2 bt i mgetting the error of
"chip enable program error"
is there any reason of error if i use 11.0592 MHz crystal than 4 MHz as shown in figure above...
please reply me ASAP..
i m stuck in the middle of a project..


i had tris problem too.. anyone can help? T__T




ATUL SINGH

Response by ATUL SINGH on 2/24/2010 8:31:41 AM

Hi KAPIL

how didi u made the programmer to work
what should be the fuse bit configuration of the atmega8 which is used in 8051usb programmer?
and the circuit of 8051 usb programmer is same as the AVR usb programmer i

pls help me out




jobin

Response by jobin on 3/11/2010 6:44:20 AM

pls help me any one
i tried this circuit everything fine usb is detecting but if i try to programm one error is coming like                 "chip enable programm error"




priyaranjan

Response by priyaranjan on 3/19/2010 11:41:00 PM

hi binu.....

i m having ATtiny 2313

so can i use it to burn ur main.hex file and use for making this usb isp programmer

waitin for ur response




Pamkin

Response by Pamkin on 3/21/2010 12:17:53 AM

Hello Sir Binu! How are you today! I have a problem about RXD and TXD. In schematic, pic 1 have TXD and RXD of Atmega8 but pic 2 have not TXD and RXD of 89Sxxx, do it connect together ?( TXD - RXD and RXD - TXD ( - is connect) ). Or it isn't important, is it?




A J

Response by A J on 4/15/2010 5:51:20 AM

can we supply vcc to the microcontroller from usb pin 1??? will that be sufficient??




zeeekay

Response by zeeekay on 4/19/2010 4:42:30 AM

Hi....In most of the applications atmega88 can be used as substitute of atmega8...(20p version of atmega8 is generally out of stock).. So can I use Atmega88 instead of atemga8.




A J

Response by A J on 4/19/2010 3:48:56 PM

i have the same problem....... can we use atmega8L instead of atmega8???




zeeekay

Response by zeeekay on 4/20/2010 4:43:16 PM

Actually I am asking about replacing atmega8 with atmega88 . Both have same pin configuration...




Sebo

Response by Sebo on 4/25/2010 8:25:16 AM

I have the same problem. When programming AT89S8252 or AT89S8253 a message show an error "Chip Enable Program Error". First I used a 12Mhz quartz for them. Then I used 4Mhz. But no change.  When programming for example AT90S2313 everything is ok and it's work. In this case I used 4Mhz quartz.




afram

Response by afram on 4/30/2010 11:05:16 PM

@AJ
You can use the ATmega8L instead of ATmega8. I have used the ATmega8L and it works perfectly fine.

@Sebo
You should use 12MHz crystal only.




Sebo

Response by Sebo on 5/10/2010 12:18:27 AM

When programming 89S8253 with 12Mhz mentioned error appear always. With AVR family no problems for programing.  Just in case, I test my 89S8253 with professional programmer and it is good. If it possible, test 8051/AVR programmer with 89S8253 ones again and find out what's wrong.




Asimov

Response by Asimov on 5/10/2010 10:36:03 PM

I HAVE BEEN USING THIS CIRCUIT FOR ALMOST AN YEAR NOW. IT WORKS GR8 SOME PRECATUTION WHILE MAKING THE CIRCUIT R

1) USE 22pF capacitor on both atmega8/8L and on the at89S52/51 chips
2) keep all cables short as possible.
3) use 3.6 V zenner as described on USBASP home page
4) run the programmer at low speed (use the jumper on the usbasp)
5) check if ur USB is delivring 5V (use a multimeter to check it)

and if still face any problem drop me a mail at asimov_18@hotmail with USB AT89S as subject



Asimov




Sebo

Response by Sebo on 5/11/2010 1:28:44 AM

Thanks for your fast reply. Today I test all together with your instructions, but still doesn't work. However. I program uC in circuit with it own power supply (It is 5 Volts). Supply of programmer is separate from circuit supply. Only grounds of both is connected together.
I resolve my problem with another more primitive serial to ISP programmer for 89S.. series uC. Thanky ones again.

P.s. Test with 89S4051 (12Mhz, 22pF for quartz) also, doesn't work.  




www.onlinetps.com

Response by www.onlinetps.com on 5/16/2010 11:26:06 AM

Hi this USB Port Supported AVR Microcontroller Programmer available here in India check here onlinetps.com/.../index.php




samar nath dev

Response by samar nath dev on 6/5/2010 8:37:30 AM

mini project of 8051



Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading