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

  • \$\begingroup\$ Which dev board do you have? Did it come with any programming documentation and/or software? \$\endgroup\$ Feb 6, 2017 at 2:31
  • \$\begingroup\$ @BruceAbbott I have purchased this development board with less information about programming of the board \$\endgroup\$ Feb 6, 2017 at 14:19
  • \$\begingroup\$ Does your board has a programming header or is it programmed through the serial port? \$\endgroup\$ Feb 6, 2017 at 15:04
  • \$\begingroup\$ Ok! I just saw the product page. The seller doesn't seem to have provided much info about the product. I would suggest you give him a call. He may be able to help you. \$\endgroup\$ Feb 6, 2017 at 15:07

1 Answer 1


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.

  • \$\begingroup\$ Interesting, although this part is most definitely not an AVR, the implication seems to be that Atmel implemented an ISP process with enough overall similarity to that of their AVRs that some primarily AVR tools have been extended to handle it. \$\endgroup\$ Feb 6, 2017 at 21:06
  • \$\begingroup\$ @Bruce Abbott I have a laptop with only USB port but no serial port. Then is there any way to dump code through USB port? \$\endgroup\$ Feb 7, 2017 at 17:17
  • \$\begingroup\$ You need an interface that coverts USB to AVR ISP. USBASP is one ebay.com/itm/… \$\endgroup\$ Feb 8, 2017 at 2:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.