Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can 89S be programmed using USBasp?

Status
Not open for further replies.

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,387
Re: Can 89S programmed using USBasp?

The stk500.exe doesn't know or care whether the HEX file from a C or Assembly program.

You're building a commandline, so you can either enter your own commandline in a command window or write a simple batch file script.

STK500.exe Command Line Programming

Hope the info helps,

BigDog
 

ctownsend

Advanced Member level 2
Joined
Nov 27, 2004
Messages
575
Helped
93
Reputation
188
Reaction score
63
Trophy points
1,308
Location
Canada
Activity points
3,667
Re: Can 89S programmed using USBasp?

Does anyone even know 100% for sure that the stk500.exe supports at89s8252?
I am certain stk500.exe supports 89s51/52 but not the at89s8252/at89s53.

progisp does support at89s8252, however your usbasp firmware must support this chip. I don't believe there is a version that does.( I Haven't seen it, forgive me if it does exist)

For older 89s8252 or even the 89s53 i use avrprog.exe (from atmel). It works well on an avr910 board (serial port or usb to serial cable).
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,387
Re: Can 89S programmed using USBasp?

Does anyone even know 100% for sure that the stk500.exe supports at89s8252?
I am certain stk500.exe supports 89s51/52 but not the at89s8252/at89s53.

You bring up a valid and important point ctownsend. Unfortunately, it appears the answer is No for the AT89S8252 and AT89S53.

If you run the command "stk500.exe -?", the list of compatible devices is displayed, AT89S51 and AT89S52 are the only AT89S devices listed.

BigDog
 

rainy adams

Newbie level 6
Joined
Dec 5, 2011
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,325
Re: Can 89S programmed using USBasp?

I ussually use Assembler to programmed 89S52, n I never use USBasp,
maybe we can using USPasp, but we must know interface that suitable for use USBasp.
 

ark5230

Advanced Member level 3
Joined
Jun 29, 2009
Messages
858
Helped
163
Reputation
324
Reaction score
140
Trophy points
1,323
Location
India
Activity points
6,145
Re: Can 89S programmed using USBasp?

Would it make sense if somebody compiles all the useful information from this thread into one DO IT YOURSELF so that it becomes a powerful useful tool that was (and is ) badly needed for USB based programmer for 8051 family.
 

asimov

Member level 3
Joined
Mar 12, 2006
Messages
61
Helped
15
Reputation
32
Reaction score
15
Trophy points
1,288
Activity points
1,662
Re: Can 89S programmed using USBasp?

I think i will do that and get back on this in a couple of days.
 

avinash.kashyap

Junior Member level 3
Joined
Jan 11, 2011
Messages
30
Helped
8
Reputation
16
Reaction score
8
Trophy points
1,298
Activity points
1,642

sandesh9u

Newbie level 4
Joined
Dec 23, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
mangalore
Activity points
1,313
Re: Can 89S programmed using USBasp?

can the wrong fuse bits make the usb device unrecognised???

coz, fuse bit which is required to be burnt is Hfuse=C9 & Lfuse=EF & i cannot write them directly in digit.. so i searched for check box values..

as per this site: Setting fuse-bits on Atmel Atmega8 AVR at Louic's blog – about science and stuff
the pattern is

hfuse:
bit 7 6 5 4 3 2 1 0
name RSTDISBL WDTON SPIEN CKOPT EESAVE BOOTSZ1 BOOTSZ0 BOOTRST

lfuse:
bit 7 6 5 4 3 2 1 0
name BODLEVEL BODEN SUT1 SUT0 CKSEL3 CKSEL2 CKSEL1 CKSEL0

but as per this site:Engbedded AVR Fuse Calculator
it is different..
i'm confused which one is right... plz suggest me correct pattern & check box values..
 

sandesh9u

Newbie level 4
Joined
Dec 23, 2011
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
mangalore
Activity points
1,313
Re: Can 89S programmed using USBasp?

got it.. the second one is right...
USBASP working fine now :)
thanks board members...
 

Ogu Reginald

Full Member level 6
Joined
Oct 7, 2011
Messages
369
Helped
47
Reputation
94
Reaction score
46
Trophy points
1,308
Location
Nigeria
Activity points
3,391
Re: Can 89S programmed using USBasp?

I dont think that at89s52 is programmable through usb, I have searched over the internet to see if I can get a circuit for this instead what I keep seeing is the circuit for rs232. It could be that the driver/firmware supports many hardware.

---------- Post added at 08:01 ---------- Previous post was at 07:48 ----------

The problem is not using keil or not after all keil supports assembly language programming.If you can find a firmware that can drive the USB hardware then the problem is solved.
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,387
Re: Can 89S programmed using USBasp?

I dont think that at89s52 is programmable through usb, I have searched over the internet to see if I can get a circuit for this instead what I keep seeing is the circuit for rs232. It could be that the driver/firmware supports many hardware.

The AT89S52 most certainly can be programmed using a USB based programmer device.

I've personally used Atmel's AVRisp mkII in conjunction with STK500.exe application and KEIL uVision without any issues.


BigDog
 

januar1983

Member level 1
Joined
Dec 11, 2005
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Afghanistan
Activity points
1,475
Re: Can 89S programmed using USBasp?

anyone have tried used USBasp to program AT89S8253, I have tried to program S52 and success, but when program AT89S8253, it's say
program chip enable error. I'm using prog ISP as USBasp GUI.
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,349
Reputation
4,692
Reaction score
2,275
Trophy points
1,413
Location
Southwest, USA
Activity points
62,387
Re: Can 89S programmed using USBasp?

The AT89S8253 may not be supported by either prog ISP or USBasp GUI?

You may need to confirm whether or not the AT89S8253 is supported.

BigDog
 

januar1983

Member level 1
Joined
Dec 11, 2005
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Afghanistan
Activity points
1,475
Re: Can 89S programmed using USBasp?

yes, in GUI it's support AT89S8253.
I Attach the GUI in my post
 

Attachments

  • progisp172.zip
    1.1 MB · Views: 34

pranam77

Advanced Member level 5
Joined
Apr 22, 2008
Messages
2,786
Helped
553
Reputation
1,104
Reaction score
371
Trophy points
1,363
Location
INDIA
Activity points
16,415
Re: Can 89S programmed using USBasp?

The 89S8253 is supported by ProgISP1.68v too. I guess it should work well (Programmed by the Firmware modified USBasp) provided it is backed up by the Xtal, and Reset circuit.
Cheers
 

januar1983

Member level 1
Joined
Dec 11, 2005
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Afghanistan
Activity points
1,475
Re: Can 89S programmed using USBasp?

hi pranam, what sould modified in USBasp firmware, I have tried to make it possible


this is my firmware that I use.
 

Attachments

  • Copy of usb51.rar
    169.7 KB · Views: 44
Last edited:

ark5230

Advanced Member level 3
Joined
Jun 29, 2009
Messages
858
Helped
163
Reputation
324
Reaction score
140
Trophy points
1,323
Location
India
Activity points
6,145
Re: Can 89S programmed using USBasp?

Januar1983
Can this firmware be used for programming 89S51,52 and 89S8253?
 

januar1983

Member level 1
Joined
Dec 11, 2005
Messages
40
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Afghanistan
Activity points
1,475
Re: Can 89S programmed using USBasp?

Januar1983
Can this firmware be used for programming 89S51,52 and 89S8253?

Yup, this firmware work well when programming 89s51,52, but not working for programing S8253
 

pranam77

Advanced Member level 5
Joined
Apr 22, 2008
Messages
2,786
Helped
553
Reputation
1,104
Reaction score
371
Trophy points
1,363
Location
INDIA
Activity points
16,415
Re: Can 89S programmed using USBasp?

hi pranam, what sould modified in USBasp firmware, I have tried to make it possible. this is my firmware that I use.
The original firmware what is available from USB asp is not capable of programming 89Sxx. next came a new modified firmware whcih is a direct replacement to the later and when used with ProgISP was possible to program the 89Sxx series. What you use is the same what was found as a new firmware and it should work well. many have sucessfully done this which can be found on this thread with ample discussions.
Cheers
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top