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!
i have no idea know how to wire
ОтветитьУдалитьwould you please tell me more detail?
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
ОтветитьУдалитьplease reupload it because file does not exist
ОтветитьУдалить