This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

chip erase

I have been using the Atmel AT89S4051 and would like to know if anyone knows how to write a C program to perform the chip erase operation?
Using the data sheet, the reset pin nees to be held high after powering up, then the Programming Enable serial instruction is sent to MOSI/P1.5. It then goes on to state that the frequency of the shift clock supplied at SCK/P1.7 needs to be less than the CPU clock across XTAL1. Any memory location is verified by using the Read instruction that returns the content at the selected address at MISO/P1.6. Anyone know how to initialise this?

  • Your question seems to be:
    "Anyone know how to write a machine-dependant C program for an unknown processor (using an unknown compiler) to indirectly control a chip erase of a AT89S4051 connected in an unknown way to the unknown processor your C program is expected to run from."

    Doesn't seem like a simple question to help you with...