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 41 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



Add comment


(Will show your Gravatar icon)

biuquote
  • Comment
  • Preview
Loading