Show
Welcome to EDAboard.comWelcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You are using an out of date browser. It may not display this or other websites correctly. [SOLVED] Chip Enable Program Error with 8051 MCU(AT89S51)
Status Not open for further replies.
I've no previous experience with 8051 MCUs. Recently I was trying to work with AT89S51 MCU. I checked many times to ensure this wiring to connect with MCU: Tried two different usbasp programmers and in the last made one to test. Whenever I try with AT89S51, same Chip Enable Program Error. Tried changing Crystal with 4MHz, 11.059MHz, 12MHz. Same problem. Any suggestion ?
Not sure about what exact procedures you did, but since the message log right bellow give indication of a sucessful Write, I would check how fuses are set ( e.g code protect, oscillator ). Try uploading a simple blink led to check at least if something works, even at a wrong timming.
Yes, I took a hex file of simple blink led from mikroC example file (which I changed the MCU only) and tried to upload that. But can not even erase the AT89S51. Seems like the USBasp can not detect or not getting any response from MCU. I checked the wiring. It was as like this one:
I'm not sure if I missing anything else.
From the above picture, the IC on the breadboard seems like being AT89C51, not the AT89S51 you mentioned.
seems like being AT89C51, not the AT89S51 you mentioned
From the above picture, the IC on the breadboard seems like being AT89C51, not the AT89S51 you mentioned. - - - Updated - - - I have collected
AT89S52 and tried again replacing the IC name in the software and in the project board. But same problem. Am I missing something?
- - - Updated - - - I found a user guide of USBasp programmer. They are mentioning that the supported MCUs (page: 5), in that list there is no AT89 series. But on the other hand found many guideline online where many people used USBasp to program AT89S52. I've attached the document here.
Attachments
Finally I solved after working on it for last few days. Now I can program AT89S51 with USBasp. The problem was the USBasp Firmware. I found that the Chinese one can program 8051 series MCUs. But the standard German one doesn't support 8051. So I took the Chinese one and read the flash and eeprom. Then burned it into a fresh Atmega8A which I used as the MCU of the USBasp
programmer. Now I can upload the hex to 8051!!! - - - Updated - - - Instruction to others who are having similar problem is collect a Chinese one, Connect with it to another USBasp(any) programmer. Read the flash and eeprom. Then burn these two files to your Atmega8A MCU to make a new USBasp programmer which can program 8051 series MCUs. - - - Updated - - - Or I've attached these files. You can use these too. Attachments
Just made this simple USBasp. You can try it too.
- - - Updated - - - Bottom side of the PCB. Attachments
JoinedDec 5, 2020Messages3 Helped0Reputation 0Reaction score0Trophy points1Activity points 21 Finally I solved after working on it for last few days. Now I can program AT89S51 with USBasp. The problem was the USBasp
Firmware. I found that the Chinese one can program 8051 series MCUs. But the standard German one doesn't support 8051. So I took the Chinese one and read the flash and eeprom. Then burned it into a fresh Atmega8A which I used as the MCU of the USBasp programmer. Now I can upload the hex to 8051!!! View attachment 158189 Instruction to others who are having similar problem is collect a Chinese one, Connect with it to another USBasp(any) programmer. Read the flash and eeprom. Then burn these two files to your Atmega8A MCU to make a new USBasp programmer which can program 8051 series MCUs. - - - Updated - - - Or I've attached these files. You can use these too. Thank mate, that chinese firmware working fine, another usbasp for 8051 firmware not work Status Not open for further replies. Similar threads
How do you fix chip enable program error in Progisp?Check if the USBasp driver is properly installed (update it from settings).. Recheck the jumpers. ... . Try to change the port, sometimes some ports can malfunction (ex. ... . Press reset button for 10 seconds.. Try to erase current program from progisp compiler, and load flash of hex file again.. What is Progisp software?PROGISP, also known as Progisp.exe or Prog ISP, is a commonly used in-system programming (ISP) software, which specifically allows the programming of AVR microcontrollers manufactured by Atmel (Microchip Technology).
|