Electronic – How to burn hex code program file into AT89S52

8051microcontrollersoftware

I am a beginner in Embedded. I have 8051 microcontroller development board with AT89S52 microcontroller. The board has max232 for serial communication. I have connected this development board with my laptop using USB to SERIAL Converter written C program in Keil uvision 4 and created a hex file. I want to dump this hex file into AT89S52. For that I am using FLASH MAGIC tool.

But the problem is that AT89S52 micro controller is not in FLASH Magic's device database. So what should I do now? Can anybody please tell me is there any other software which supports the at89s52 and windows 7 with usb to rs232 cable?

enter image description here

Best Answer

Unless the AT89S52 has a bootloader burned into it (unlikely) you will not be able to program it through the serial port.

Your board has an ISP header on it which is used to program the MCU. You need an interface cable and application designed to program Atmel MCUs via ISP, eg. Ponyprog.

If your computer has a parallel printer port then you can use the simple circuit found here:-

enter image description here

If you only have USB then get a USBASP and use AVRdude as described here or ProgISP as described here.