Serial Port Programmer For At89s52
Hello everyone,There are always many posts here asking about ISP programmers for the atmel 89S51 or 89S52 mcu's. Most commonly available are the FREE programmers that use the parallel port of your PC.These programmers are not reliable, or do not work consistently on some parallel ports. If you happened to get stuck with a motherboard on your PC like mine, you would be lucky to get the programmer to read the signature bytes especially with windows XP or higher. These days computers are no longer equipped with a parallel port. I have been using this programmer for a few years now reliably even with a USB to serial adapter cable.I use the 89S series mcu's quite a bit because they are inexpensive and easy to program (no fuses, or other problems). I wanted an easy to use programmer that would allow me to program the 89S mcu's in circuit without removing it every time.I did not want to go through all the trouble to write a windows application, so I thought I would just use an existing one and modify the code in the programmer to do ISP operations instead of high voltage parallel programming as in the 89S51/89C52. I chose this one:The ezdl4.exe has nothing to do with me and does not need to be changed to work with this programmer.The circuit I chose was the same circuit as an avr910 programmer except that an 8051 device is used for the programmer.
(the reset circuit will be different and the crystal will be 11.0592MHz) I chose this because I already have an avr910 programmer board therfore I would not have to go through the trouble of making another board.Have a look at the schematic below. You can use any 8051 mcu for the programmer as long as you adhere to the pinout, and it must hold at least 4K in size.
The circuit can take power from your target, or supply power to the target, if the power from the programmer (as with the avr910 programmer) is connected to your target circuit.Now the only problem is: Somehow you have to get the code into an 8051 MCU. If you do not have a programmer, this will be a problem.
Once that is done you will have a very reliable programmer.Everything is included in the zip file. Please read the readme.txt for instructions.Any suggestions are welcome. Please post them here.ctownsend.
At89s52 Datasheet
Can i program 89s82 with this programmerNO, I did not add these devices in the code and probably never will. There are other ISP programs that support these devices, there was almost nothing available in an ISP programmer that was reliable for 89S51/52. I have tried them all, nothing worked 100%.
USBASP works with avrdude, however you cannot program the lock bits. In my code, all of the lock bits will be programmed if the lock box is checked in EZDL4.exe.The avr910 code supports the 89S8252 & 89S8253.
Avrprog is very reliable, much more than the parallel port programmers. Avrprog can also be used with a USB to Serial cable if you do not have a serial port. Hi,i want to program the AT89s52 controller so i connected the controller with AT89C51 as shown in your diagram and max connections are also given correctly,but the programmer is always saying that 'trying to connect COM1' why this is happening i have dumped the given hex file in the 89C51 controller. When i am giving power supply the LED connected to the P1.2 pin is always high is that correct? Can you please tell me why my controller is not detectingyou need pull up resistor p1.4 to p1.7 and few further modifications like connect 4 and 6 of serial port and connect 7 and 8 serial port.yes after power supply connection p1.2 is always high that is normal.see my posting above i have done few hardware modification.
Hello everyone,There are always many posts here asking about ISP programmers for the atmel 89S51 or 89S52 mcu's. Most commonly available are the FREE programmers that use the parallel port of your PC.These programmers are not reliable, or do not work consistently on some parallel ports. If you happened to get stuck with a motherboard on your PC like mine, you would be lucky to get the programmer to read the signature bytes especially with windows XP or higher. These days computers are no longer equipped with a parallel port. I have been using this programmer for a few years now reliably even with a USB to serial adapter cable.I use the 89S series mcu's quite a bit because they are inexpensive and easy to program (no fuses, or other problems). I wanted an easy to use programmer that would allow me to program the 89S mcu's in circuit without removing it every time.I did not want to go through all the trouble to write a windows application, so I thought I would just use an existing one and modify the code in the programmer to do ISP operations instead of high voltage parallel programming as in the 89S51/89C52.
At89s52 Usb Programmer
At89s52 Spi Programmer
I chose this one:The ezdl4.exe has nothing to do with me and does not need to be changed to work with this programmer.The circuit I chose was the same circuit as an avr910 programmer except that an 8051 device is used for the programmer. (the reset circuit will be different and the crystal will be 11.0592MHz) I chose this because I already have an avr910 programmer board therfore I would not have to go through the trouble of making another board.Have a look at the schematic below. You can use any 8051 mcu for the programmer as long as you adhere to the pinout, and it must hold at least 4K in size. The circuit can take power from your target, or supply power to the target, if the power from the programmer (as with the avr910 programmer) is connected to your target circuit.Now the only problem is: Somehow you have to get the code into an 8051 MCU. If you do not have a programmer, this will be a problem. Once that is done you will have a very reliable programmer.Everything is included in the zip file. Please read the readme.txt for instructions.Any suggestions are welcome.
Please post them here.ctownsendCorrections to the above post (don't know why I can't edit my own post??)typos HERE:I did not want to go through all the trouble to write a windows application, so I thought I would just use an existing one and modify the code in the programmer to do ISP operations instead of high voltage parallel programming as in the 89C51/89C52.AND HERE:Have a look at the schematic below. You can use any 8051 mcu for the programmer as long as you adhere to the pinout, and it must be at least 2K in size. The circuit can take power from your target, or supply power to the target, if the power from the programmer (as with the avr910 programmer) is connected to your target circuit.The original post showed 4K size (that was the original code before the final release)- Post added at 16:44 - Previous post was at 16:36. Hi i have tried with pull up resistors also but it is always saying that trying to connect com1.
What will be the possible reason.i have used only 2,3 and 5 of serial port i dont know where the other pins need to connect can you please tell me where to connect them how to debug where is the problemhelp us help you. Show us a schematic of what you've done. What chip are you using for the programmer? What are the capacitors used for the clock circuit? What are the capacitors used for the MAX232 circuit?
Are you using a genuine max232?What does your reset circuit on the microcontroller look like? Did you connect EA to VCC? Are you taking power from the target or supplying power to the target? What voltage?answer every single question and post a picture of what you've done. This is the only way I or anyone else can offer help to you. The code and circuit does work.
I used it for more than 2 years now.