89S51, 89S52 ISP Programmer using serial port or USB

Status
Not open for further replies.
i have connected max232 like this here is the file
 

Attachments

  • RS232C Level Converter.rar
    9.9 KB · Views: 222

Sir, I went that shop, from where i bought that blank At89c2051 there is no programming device they had. In that case what should i do? I'm using a USB to comport cable it is usable to program? i've given the link below
 

here is some picture of my schematics...
 

Attachments

  • DSC02497.JPG
    212 KB · Views: 161
  • DSC02505.JPG
    328.7 KB · Views: 145


whether the programmer that you can give to AT89S2051?
I've tried like you tp programmers sometimes have never been able to that is in the process verivy unsuccessful.
if I use my ISP's port AEC pararrel always successful although a few times usage
 
hi ctownsend
good job u work on it
its looking like this programmer but software is changed
**broken link removed**
 


i am also facing same problem as hansika here
here is my schematic
 

Attachments

  • schem.bmp
    576.1 KB · Views: 217

did you see RS232C Level Converter like i have posted above should work ? i have completed this project in one shot with no problem your problem is in wiring you must check wiring first pls check wiring
this is my version
there is no connection to rest you are not following minimum circuit for 89c2051 ?that may be the cause .
 
Last edited:

i am using AT89S51 controller for that same circuit and software but the program is not downloading ........
what is the problem
u had seen that circuit, but the programmer is always saying that "trying to connect COM1" why this is happening i have dumped the given hex file in the AT89S51 controller.
 

are you using serial port or usb to serial port
i am using this programmer since few months and i am using only serial port and window xp 2003
 

Here is an updated schematic. I tried to make it a clear as possible.

You DON'T need the LED's. If there is a problem, you will never know if the led's are NOT installed.

The led's indicate the following:
Green LED: This led goes on when a successful connection to the target has been made.
(i.e. the target successfully entered ISP or programming mode) If it fails, or a device not connected
the RED LED will be lit.

Yellow LED: Indicates the programmer is busy. It will come on when the programmer is reading or writing to the target chip.

Red LED: Comes on when there is an error, whether it is writing, reading, entering programming mode, etc.

The best way to start the programmer is to have the programmer connected to the target circuit. Ensure that everything is working, then start the PC program.

If using a 20 pin device (i.e. 89C2051) for the programmer just follow the same pinout using pin names. (P1.1, P3.0, P3.1, XTAL1, XTAL2, etc..)

This schematic shows the programmer taking power from the target. You can eliminate this and just connect to a 5V power supply.

Some troubleshooting tips:
If you are using a USB to RS232 converter, PLEASE use a good one (not one from China or from ebay!!) Most of these don't work. Sometimes windows will install your com port on a higher number than the EZDL4.exe will search for. I have seen the programmer not being detected when the com port is com10 or higher. Check your com port in the device manager. If this is the case, you can change the com port to a different port if one is available.

If you are having trouble with your USB to RS232 converter, wire the TXD to RXD on the USB to RS232 converter and type some chars in hyperterminal at various baud rates. You can also check this on the TTL side of the max232 on your programmer board.

With the microcontroller removed from your programmer, join TXD and RXD on the microcontroller socket. Ensure your max232 is being powered by 5V. Now try typing some chars at various baud rates with hyperterminal. If you see the chars in the terminal, the serial portion of the circuit is working. (although some cheap USB to RS232 converters work sometimes, and are not reliable) You can do the above test with a regular serial port as well.

 
Last edited:

I am facing almost the same problem. I am using the serial port (COM-1) directly from my desktop PC with Windows XP. This COM-1 port has been tested as working with many other applications.

While the power is ON, no LED glows.
When I start EZDL4.exe in computer by double clicking the icon, the green LED glows. But the alert message “Try to connected by : COM1” blinks on programme window and no buttons activate for further action.

What may be the problem? As the green LED glows when the software starts, we may assume that serial port able to communicate with the master processor (AT 89s52 in this case, programmed by other conventional programmer). Then why the software gives warning message?
 

As the green LED glows when the software starts, we may assume that serial port able to communicate with the master processor (AT 89s52 in this case, programmed by other conventional programmer).

the green LED has nothing to do with serial communication. (read my post above & follow the circuit). Double check the capacitor installation for the MAX232. Some of the "+" and "-" can be misleading. If your circuit matches the schematic above, it will work.

here is a small hex file to test the programmer hardware & serial communication. If you are having trouble, PLEASE READ ALL OF THESE these instructions!

1. Program this code into the microcontroller you are using for the programmer. This code works for 20 pin devices and 40 pin devices as mentioned above.

2. In hyperterminal or any terminal using 9600 as the baud rate, type a char in the terminal window. If the serial communications are working on your board, the char you typed will echo back to the screen. If the char does not echo back to you, you need to check your circuit!!

3. Each time you type a char, the next led will light up.
Led's will go on in the following order:1. Green, 2. Yellow, 3. Red.

Code:
:03000000020030CB
:1000300074FFF590F5B0759850758DFD758920D2D7
:100040008E12005512004D12005D80F522F5993098
:1000500099FDC299223098FDC298E5992220910716
:100060007590FFC29280162092077590FFC2938010
:0E0070000C2093077590FFC2918002C291226E
:00000001FF
I don't know what else to do to make it more clear. The circuit works really well!
 
Last edited:

YES you can! read the readme that comes with the programmer.
 

program the chip with code you know. Lock the chip. Now read the chip. Post the code here. I will bet you that the code is 00010203040506.......

compare the two files. they won't be the same. EVEN THOUGH THE EZDL4.exe program gives a message "lock failed" it still works. The atmel code in the programmer takes care of locking the device. It is very reliable and works well.
 
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…