Try my standalone AT89S ISP programmer

Status
Not open for further replies.

ctownsend

Advanced Member level 2
Joined
Nov 27, 2004
Messages
577
Helped
93
Reputation
188
Reaction score
63
Trophy points
1,308
Location
Canada
Activity points
3,734
at89s programmer

I built a standalone ISP programmer for the AT89S51/52 devices using another 89S51 and a 24LC256 eeprom to store the hex file to be programmed.

The hex file and schematic is included. The hex file should work in most 8051 devices provided you follow the pinout in the schematic. The code is under 2K so it will even work in 89C2051/89S2051. (it wouldn't hurt to use two pullup 4.7K resistors on p1.0 and p1.1 if you use an 89C2051 for the programmer)

You just load the file to the eeprom with a terminal program, set the configuration, and then you can program the at89S device using the stored code in the eeprom without a PC. Remember there is no flow control when loading a hex file, therefore you must slow the data down to minimum 100mS delay per line so the data won't be lost. Most terminal programs will do this. I use terminal from windows 3.1, I find it is the best one with no bugs (better than hyperterminal)

I have only tested the programmer on the 89S51 and 89S52. I have not tested on the newer 89S2051 devices, but I expect it will work just the same.

Please read the instructions carefully. I tested this programmer and it does work good.

Just looking for some feedback or ways to improve. Any advice would be appreciated.

Good Luck

Edit Dec 2, 2007: I made some changes and I uploaded the source code.
In this version the incoming hex file is checked for valid line checksum.

The incoming file size is also checked (no more than 8K file).

I hope someone can "select helped me" if they use this code.
Screenshots are also included in this file.

Good Luck
 

isp programmer for at89s

Very good. Can you post some test result?
 

isp 89s51 buffer verify error

funnynypd said:
Very good. Can you post some test result?

Test result? What do you mean?
 

isp programmer for 89s8253

Would you please show us some picture or screen-cut on successfully programming a chipset with your design?
 

target board isp at89

Very nice.

You might want to come and present it on the 8052.com Forum. I am sure you will receive a lot of comments on it there.

JW
 

at89 series programmer

Hi,
I request you to please put source code of the firmware, so may be some one covert it to any USB supporting controller like 18F2550 or can use PICKIT2 hardware to programme 89S.
Idea behind is to finally convert the simple PICKIT2 to a universal programmer.
Thanks
sadat007
 
at89s8253 usb programmer

Great, very good project. Will build it soon.
 

serial programmer for 89s8253

wek said:
You might want to come and present it on the 8052.com Forum. I am sure you will receive a lot of comments on it there.

How do I need to interpret the last sentence or ??

Allow me to be a little negative on this design

Everyone has a laptop nowadays, so why should I use your design instead of connecting my laptop directly to the target board?
What is the added value of your design compared to direct connection laptop-target board?

Please educate me
 

at89 with added ram

mcs51mc said:
why should I use your design instead of connecting my laptop directly to the target board?

The ISP software that uses the parallel port is nothing but ONE BIG headache,ESPECIALLY if you are running windows XP. Haven't you seen numerous postings about how the person built the programmer and it doesn't work?

The cable length (I found) is one big problem with the way that programmer works.
I prefer a serial port programmer equipped with a microcontroller that does all of the programming, and communicates with hyperterminal or any other terminal program.

mcs51mc said:
What is the added value of your design compared to direct connection laptop-target board?
Please educate me

I have often (not always) had problems using the printer port on my laptop as compared with my desktop when the voltage is taken from the parallel port as with FBPRG16 ISP programming software.

I had to program some devices outside, far away from the house where there is no power. It seemed to be a big nuisance to remove the device and bring it in the house just to program it, not to mention the fact that I would have to bring a laptop outside, a small table or chair, all the programming cables, and a power supply for the programmer (battery or whatever).

The standalone unit worked (FOR ME) because it programmed, verified, & LOCKED the device in just a few seconds without trouble.

IF you use it, please let me know how I can improve the design. I am always looking for new ideas.

Best Regards
 

build at89 series programmer

 

89s51 isp programmer sources

@t said:
Hello ctownsend,
Handy design and very well documented. I will try this out (in the near future) for programming the 89S8253 and the 80C535 chips.
Thanks for your info, if I have some results I will report back.
At.

Good to see someone else is making use of this.
at this time it only supports 89S51/89S52 devices. However the source is included, which makes it very easy to change. Just have a look at the datasheet.

Good luck
 

at89s isp

Sorry, but I can't find the circuit. It isn't in the zip file, where is it??
I did find it, I'm sure I had seen it before but just couldn't find it, take a break , have coffee and there it is!
 

89s8253 isp circuit

Very good idea i'll test it soon
 

at89 usb isp

hi ctownsend
very well documented it is!!
...
thank for the up..anyway..can you help me in my case?
i need and ISP programmer for the 89s52...but i dont have thye EEPROM needed, can i ask a help on build a direct one? connected on Serial port, or by USB??
ill be using 2051...so ill need to put some pull-up..
kindly help me...need it badly..and immediately...i could make one by reading your program, but for now its not my major problem..hehehe..plsss
just a very low cost design, without any led, and also, very good idea using a hyperterminal..
maybe in my case, a byte to byte transimision from the hyperternal would o, concidering 9600 buad rate..which is i think dont need some delay...
 

at89 programmer usbasp

leoren_tm said:
i need and ISP programmer for the 89s52...but i dont have thye EEPROM needed, can i ask a help on build a direct one? connected on Serial port, or by USB??

You can use hyperterminal to send the hex file HOWEVER you will need to slow down the data coming in, or you will lose data, and of course, it won't be a standalone unit.

I tried to use hardware handshaking (for transferring the data) with CTS, RTS but was never successful.

If I remember correctly, there is a routine to receive the hex file from hyperterminal that is stored in the eeprom. You can use the same routine and eliminate the eeprom.

When the data comes in, it is buffered one line at a time (how ever many bytes are in the line indicated by the length byte) What you will need to do is program one line at a time as it is buffered. So instead of programming the eeprom, just write the buffered data from ram buffer into the flash that is being programmed.

This will require a long delay in hyperterminal after it sends one line to the programmer. In hyperterminal you can specify line delay, (File, properties, ASCII Setup, Line Delay ___ milliseconds).

Also, I seem to remember doing some sort of configuration held in eeprom. The routine is called Config (if I remember correctly). That is, whether or not the programmer will erase or LOCK the device to be programmed. This configuration data is held in the eeprom.

You can eliminate the above just by always erasing the device before programming and always locking the device after programming. All of the I2C routines can be eliminated, making the code very small!

Glad to see someone is making use of this programmer. I needed it badly for about one month, then we switched to a much newer device with a totally different programming system!

I should be around if you have questions.
Good Luck
 

at89 in system programmer usb source code

wow..great reply..
that was im thinking..but i think i could go around a week...but im realy planing to convert it..i donwloaded some ready made, but ont have enough documentation, and
i realy appreciate your post.,,with the use of terminal...anyway..i was asking if you made it already...not its not :c then ill try to make one..from your code...
your a very good programmer..
i already made the hardware, and if ill make application, maybe another week, to solve that..ill use your idea...(with your permission?) but i would not say..i can do it..
ill try..and next in my post...would be many and many question..if its ok with you..
cheerSS

i was thinking that..your using a send text file on hyperterminal..right?? and a line...uhmm..that is what im thinking would be difficult, to store first the received line, then extract the per byte.

Added after 1 hours 35 minutes:

this is my circuit..led could be elimanated..
 

build a standalone isp programmer

about the eeprom...do it realy need 256??
 

i2c between at89

leoren_tm said:
about the eeprom...do it realy need 256??

no, all you need is 8K (for the size of flash you are programming)

Of course the code will have to be modified maybe the I2C addressing depending on what eeprom you choose, and the config routine (where the configuration bytes are stored in the eeprom)

I used 24LC256 because I had a few of them here.
Generally when I am building something simple, I always try to use the parts I have here, to prevent paying shipping and minimum order costs just for a small project.
 

at89 universal programer

as i thot.... im dont have expereince yet on EEPROM, what if i use (24c64)64k? what shall i change?

Added after 4 minutes:

and also..i would like to suggest...if use 2051MCU., change the pinouts..cause you need pull-up on 1.0 and 1.1
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…