воскресенье, 4 сентября 2011 г.

How to program AT89S51 from Arduino

Its simple,because at89s51(you can program also other atmel chips,if you will change some code) uses serial programming interface (ISP).
In arduino we must only use SPI library.You can watch it in sketch.

Arduino sketch: ARDISP

Also i made Small console java program,that use virtual com(change to your COM port in Netbeans) for programming .hex (you can create your own program),just watch at89s51 datasheet for serial programming codes.Run in console(in dist directory) with: java -jar ArdIsp.jar COM2 main.hex (if doesnt work,maybe place win32com.dll in windows dir)
Java program

Please add your comments!




3 комментария:

  1. i have no idea know how to wire

    would you please tell me more detail?

    ОтветитьУдалить
  2. Just connect to SPI pins on the MCU (pin#6 = MOSI, pin#7 = MISO, pin#8 = SCK), complete diagram can be obtained from this page about AT89S51 MCU

    ОтветитьУдалить
  3. please reupload it because file does not exist

    ОтветитьУдалить