| Author |
Message |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
26 Aug 2009 9:54 Can 89S programmed using USBasp? |
|
|
|
|
I am using ProgispV1.65 in conjunction with USBasp which is working fine for AVR's. In the device selection list there is an option to choose 89S52. The ISP pins were connected ok and 4, 8 and 12 Mhz crystals were connected and differently tried. Trying to program/ erase the said device gave a "Chip enable program error" message. Has anyone tried this before or is it possible in anyway?
Last edited by pranam77 on 10 Nov 2009 6:21; edited 5 times in total |
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
27 Aug 2009 1:40 progispv1.65 |
|
|
|
|
Not possible. Usbasp dont support 89S.
89s52 is in the device list is because the Progisp software is designed to handle a number of hardwares which also supports 89S micros (For example stk500)
Nandhu
|
|
| Back to top |
|
 |
kruck
Joined: 23 Aug 2009 Posts: 1
|
27 Aug 2009 2:04 usbasp |
|
|
|
|
It's possible, but you need to do some change.
There are two main difference between AVR and 89S.
1. The reset signal is inverted.
2. 89S' flash is not paged.
Added after 2 minutes:
By the way, there are already some firmwares on the internet make this change to support 89S.
|
|
| Back to top |
|
 |
Google AdSense

|
27 Aug 2009 2:04 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
27 Aug 2009 6:36 chip enable program error |
|
|
|
|
| kruck wrote: |
It's possible, but you need to do some change.
There are two main difference between AVR and 89S.
1. The reset signal is inverted.
2. 89S' flash is not paged.
Added after 2 minutes:
By the way, there are already some firmwares on the internet make this change to support 89S. |
Thanks Kruck. Can you give me some links to the firmware and the deatils regading how to make the changes?
|
|
| Back to top |
|
 |
x_dadu
Joined: 23 Aug 2009 Posts: 3
|
28 Aug 2009 14:46 chip enable program error+progisp |
|
|
|
|
I'm using usbasp too with progisp and I have the same problem, trying to program the 89s52 unsuccesfully... I made this test module and is too bad I can't use it ...
p.s. this is my first post; just wanna say hi to all, great forum I descover here
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
22 Sep 2009 6:58 test+usbasp |
|
|
|
|
| kruck wrote: |
It's possible, but you need to do some change.
There are two main difference between AVR and 89S.
1. The reset signal is inverted. |
Will it be possible for the USB handle 89S if the "Reset" logic is inverted by some transistor?
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
22 Sep 2009 7:04 Can 89S programmed using USBasp? |
|
|
|
|
nop, i tried it but failed.
Nandhu
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
22 Sep 2009 7:12 Re: chip enable program error |
|
|
|
|
Thanks "Nandhu015" for the Reply. But as per "Kruck"says, it is possible and some firmwares are available for that conversion. You have tried the First point. There is another (Second) point to be noted.
| kruck wrote: |
It's possible, but you need to do some change.
There are two main difference between AVR and 89S.
1. The reset signal is inverted.
2. 89S' flash is not paged.
Added after 2 minutes:
By the way, there are already some firmwares on the internet make this change to support 89S. |
I was actually expecting a reply from "Kruck" in refernce to his post quoted here. But he has never replied after his first post.
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
22 Sep 2009 11:30 Can 89S programmed using USBasp? |
|
|
|
|
A lot of modifications should be done to program 89S with usbasp. It will become a new project if the modifications are done. More over a new software should be written (PC side) as avr dude does not support 89S
Nandhu
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
23 Sep 2009 16:56 Can 89S programmed using USBasp? |
|
|
|
|
| As i have mentioned in my OP, i use ProgISP and that has 89S in the device list and guess it may have a diffrentt firmware or hardware to make it work. Cheers
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
24 Sep 2009 2:04 Re: progispv1.65 |
|
|
|
|
| nandhu015 wrote: |
Not possible. Usbasp dont support 89S.
89s52 is in the device list is because the Progisp software is designed to handle a number of hardwares which also supports 89S micros (For example stk500)
Nandhu |
As i mentioned earlier progisp software can support development boards such as stk500 which is capable of programming 89S chips. For example, Coding the M8 to support stk500 (including the handling of USB) will be harder than writing a new software that supports 89S chips
Nandhu
|
|
| Back to top |
|
 |
binu_ji
Joined: 12 Oct 2006 Posts: 17 Helped: 4
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
14 Oct 2009 7:11 Re: Can 89S programmed using USBasp? |
|
|
|
|
Ahhhh...that is wonderful "Binu.Ji". I am truely obliged. It was my oldest dream to constuct one which can program both AVR and 89S. I'll construct it, and post here the results. Too there are many friends on EDA waiting for this. Cheers..
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
14 Oct 2009 8:58 Re: Can 89S programmed using USBasp? |
|
|
|
|
Thanks to Binu ji. It is a wonderful thing iam looking for a long time. Shall i have compiled version of drivers?
Nandhu
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
15 Oct 2009 6:45 Can 89S programmed using USBasp? |
|
|
|
|
As "nandhu015" mentioned, do we need to compile the driver and use the same? or the one already installed for USBASP will work?
After i programmed the new firmware, i was able to program AVR's but when 89s was tried i got an error message "Chip Enable program error" .
Did you personally try the said project BINU? or may be i am going wrong somewhere. Can you please guide ..?Cheers
|
|
| Back to top |
|
 |
joy_shukla
Joined: 10 Oct 2009 Posts: 3 Location: Ahmedabad
|
15 Oct 2009 10:56 Can 89S programmed using USBasp? |
|
|
|
|
i've programmed at89s52 with usbasp .. for that u have to change the firmware of atmega8 ..
the one provided by fischdle ll not work ..
check this one ..
http://www.8051projects.info/blogs/post/USB-8051AVR-programmer.aspx
Added after 3 minutes:
@pranam77
i advise u to check the connections .. it works with me ..!
|
|
| Back to top |
|
 |
binu_ji
Joined: 12 Oct 2006 Posts: 17 Helped: 4
|
15 Oct 2009 11:48 Re: Can 89S programmed using USBasp? |
|
|
|
|
With the changed firmware, you can burn AT89s52 through AVRDUDE.
Add this lines in the text file into the avrdude.conf(\winavr\bin\)
| Code: |
#------------------------------------------------------------
# AT89S52
#------------------------------------------------------------
part
id = "8052";
desc = "AT89S52";
signature = 0x1E 0x52 0x06;
chip_erase_delay = 20000;
pgm_enable = "1 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1",
"x x x x x x x x x x x x x x x x";
chip_erase = "1 0 1 0 1 1 0 0 1 0 0 x x x x x",
"x x x x x x x x x x x x x x x x";
timeout = 200;
stabdelay = 100;
cmdexedelay = 25;
synchloops = 32;
bytedelay = 0;
pollindex = 3;
pollvalue = 0x53;
predelay = 1;
postdelay = 1;
pollmethod = 0;
memory "flash"
size = 8192;
paged = no;
min_write_delay = 4000;
max_write_delay = 9000;
readback_p1 = 0xff;
readback_p2 = 0xff;
read = " 0 0 1 0 0 0 0 0",
" x x x a12 a11 a10 a9 a8",
" a7 a6 a5 a4 a3 a2 a1 a0",
" o o o o o o o o";
write = " 0 1 0 0 0 0 0 0",
" x x x a12 a11 a10 a9 a8",
" a7 a6 a5 a4 a3 a2 a1 a0",
" i i i i i i i i";
mode = 0x21;
delay = 12;
;
memory "signature"
size = 3;
read = "0 0 1 0 1 0 0 0 x x x 0 0 0 a1 a0",
"0 0 0 0 0 0 0 0 o o o o o o o o";
;
;
|
| Quote: |
| Thanks to joy_shukla for providing the conf text. |
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
15 Oct 2009 12:51 Can 89S programmed using USBasp? |
|
|
|
|
| Thanks Joy_shukla and Binu Ji. I'll do the corrections and try again. Cheers
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
15 Oct 2009 13:19 Can 89S programmed using USBasp? |
|
|
|
|
Thanks BinuJi, for your support.
I'll try and come up with the results
Nandhu
|
|
| Back to top |
|
 |
sahil_maratha
Joined: 16 Oct 2009 Posts: 1 Location: india
|
16 Oct 2009 4:17 Re: Can 89S programmed using USBasp? |
|
|
|
|
hello every body...
i made a isp programmer with parallel port but it gives me error while writing the flash, it is ok when i read the flash memory.
error is write error at memory location 00000002 byte wirtten ..
i am using at89c51 program on 89s51 ,,,,
should i need to change the program or program for both the controller is same
here is my asm program ...
please help
$MOD51
ORG 0000H
LJMP MAIN
ORG 0030H
MAIN: SETB P3.0; Input for left sensor
SETB P3.1; Input for right sensor
AGAIN: JB P3.0,NEXT
JB P3.1,GO
CLR P2.0
SETB P2.1
CLR P2.2
SETB P2.3
SJMP AGAIN
GO: CLR P2.0
SETB P2.1
CLR P2.2
CLR P2.3
SJMP AGAIN
NEXT: JB P3.1,GO1
CLR P2.0
CLR P2.1
CLR P2.2
SETB P2.3
SJMP AGAIN
GO1: CLR P2.0
CLR P2.1
CLR P2.2
CLR P2.3
SJMP AGAIN
HERE: SJMP HERE
END
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
16 Oct 2009 6:39 Re: Can 89S programmed using USBasp? |
|
|
|
|
| sahil_maratha wrote: |
hello every body...i made a isp programmer with parallel port but it gives me error while writing the flash, it is ok when i read the flash memory.error is write error at memory location 00000002 byte wirtten ..i am using at89c51 program on 89s51 ,,,,should i need to change the program or program for both the controller is same here is my asm program ...please help
|
The main difference between 89C51 and S51 lies in the following points:
Pin function: Pins almost identical changes were, in the AT89S51 in P1.5, P1.6, P1.7 have a second function, that is, the second 3-pin serial ISP function formed programming interface.
Programmability: AT89C51 only supports parallel programming, But AT89S51 supports both parallel programming and ISP programming.
Voltage in the programming area, AT89C51 in addition to normal programming voltage of 5V, another 12v is needed for Vpp. But AT89S51 just need to be 4-5V.
Endurance: AT89C51 flash memory can be programmed upto 1000 times while the AT89S51 can be programmed from 1000-10000 times, so that the learner repeated the beginning of a more favorable programmer, reducing learning costs.
Frequency: AT89C51 limits the operating frequency is 24MHZ, and AT89S51 maximum operating frequency is 33MHZ, (AT89S51 chip in two models, to support the maximum operating frequency of 24MHZ and 33MHZ) in order to have a faster computing speed.
Power Supply: AT89S51 operating voltage range is up to 4-5.5V, while the AT89C51 at the end of the 4.8V and 5.3V.
Anti-jamming more: AT89S51 has integrated watchdog timer (Watchdog Timer), and AT89C51 needs an external watchdog timer circuit, or single-chip software constitute the internal watchdog timer to achieve anti-jamming software.
If you can program C51 you shud be able to program S51 too . Confirm that all the pins are having good contact with the zif socket or you may consider to constuct USBASP which can program 89S as well AVR's. Cheers
|
|
| Back to top |
|
 |
eletro
Joined: 12 Sep 2002 Posts: 28 Location: Moon
|
11 Nov 2009 10:28 Re: Can 89S programmed using USBasp? |
|
|
|
|
try: http://www.serasidis.gr/circuits/usbAvrProg/usbAvrProg.htm
|
|
| Back to top |
|
 |
nandhu015
Joined: 11 Feb 2006 Posts: 640 Helped: 46 Location: Tamilnadu, India
|
15 Nov 2009 13:33 Re: Can 89S programmed using USBasp? |
|
|
|
|
| eletro wrote: |
try: http://www.serasidis.gr/circuits/usbAvrProg/usbAvrProg.htm
 |
The topic is can 89s programmed using usbasp?
There are lot of other programmers that uses usb to serial converters other than the one u mentioned. And more over it does not support 89S.
Please read & understand the topic before posting
Nandhu
|
|
| Back to top |
|
 |
ctownsend
Joined: 27 Nov 2004 Posts: 301 Helped: 21 Location: Canada
|
15 Nov 2009 19:13 Re: Can 89S programmed using USBasp? |
|
|
|
|
| nandhu015 wrote: |
| And more over it does not support 89S.Nandhu |
There IS usbasp code to program 89S51 and 89S52 available if you search google.
The code is compiled for atmega8 since it is more than 4K in length. It works with avrdude (if you add the devices to the avrdude.conf file and use the newest version of avrdude) and it also works with progisp version 1.68.
You can also get an avrisp MK2 (USB) and use avrstudio. It supports 89S51 & 89S52.
Good Luck
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
16 Nov 2009 8:13 Re: Can 89S programmed using USBasp? |
|
|
|
|
| eletro wrote: |
try: http://www.serasidis.gr/circuits/usbAvrProg/usbAvrProg.htm
 |
| nandhu015 wrote: |
| And more over it does not support 89S. Nandhu |
I guess nandhu015 was refering to the programmer in the given link by "electro". Yes there is a code for ATMega8 which can program 89S series. The link is given by "Binu" in the earlier posts in this thread. Cheers
|
|
| Back to top |
|
 |