查看完整版本: ISP Flash Microcontroller Programmer Ver 3.0a

liyf 发表于 2011-12-9 18:36:33

ISP Flash Microcontroller Programmer Ver 3.0a

ISP Flash Microcontroller Programmer
Ver 3.0a
Mohammad Asim Khan,asimkhan@sat.net.pk


Introduction
This ISP Programmer can be used either forin-systemprogrammingoras astand-alone spi programmer forAtmel   ISP   programmable   devices.The   programming   interface   is   compatible   to   STK200   ISP programmer hardware sothe users of STK200 can also use the software which can program both the 8051 and AVR series devices.
Hardware
Figure 1 showsthecircuit diagram of the in-system programmer interface,thepower totheinterfaceis provided by the target system. The 74HCT541 ic isolate and buffer the parallel port signals. It is necessary to use the HCT type ic in order to make sure the programmer should also work with 3V type parallel port.
http://www.kmitl.ac.th/~kswichit/IspPgm30a/isp1_sch.gifFigure 1:   Circuit Diagram of the ISP Programmer Interface Figure 2showsthecircuitdiagramofthestand-alonespiprogrammer, thepowertotheinterfaceis providedbythe PC USBportwhich can supply amax of 100mAcurrent. Get a cheap USBcable, cut the
cable other end connector and attach a crimp shell connectorto this end,red wire is 5V andblack is 0V. Theprinterportbuffer interface is sameas shown in figure 1. For the u-controller a 40 pin ZIF socket can
beused.
Thisprogrammercircuitcan be use to program the 89S seriesdevices and the AVR series devices which
arepincompatibleto8051, like90S8515.Forother AVRseries devices the user can make an adapter
boardfor 20, 28and 40pin devices. Thepin numbers shown inbracketscorrespond to PC parallel port
connector. http://www.kmitl.ac.th/~kswichit/IspPgm30a/isp2_sch.gifFigure 2:   Circuit Diagram of the SPI Programmer
Software
The ISP-30a.zipfile contains the main program and the i/o port driver. Place all filesin the same folder.
The main screen view of the program is shown in figure 3. Also   make   sure   do   not   program    the    RSTDISBL    fuse   in   ATmega8,   ATtiny26andATtiny2313 otherwisefurtherspiprogrammingisdisableandyouwillneedaparallelprogrammertoenablethe
spiprogramming.Forthefuses setting consult the datasheet ofthe respective device. Fortheautohardwaredetectionitisnecessaryto short pin 2 and 12 of DB25 connector, otherwise the
software uses the default parallel port i.e. LPT1. Following are the main features of this software,
Read and write the Intel Hex file Read signature, lock and fuse bits Clear and Fill memory buffer Verify with memory buffer Reload current Hex file Display buffer checksum Program selected lock bits & fuses Auto detection of hardware

Note:
Thememorybuffercontainsboththecodedataandthe   eepromdataforthe   deviceswhich have
eeprommemory. Theeeprommemoryaddressin   bufferis   started   afterthecodememory,so itis
necessary the hex file should containsthe eeprom start address after the end of code memory last address
i.e. for 90S2313 the start address for eeprom memory is 0x800. Thesoftware   does   not    provide    the   erase    command   because    this    function    is    performed
automaticallyduringdevice programming.Ifyou arerequired to erase the controller,firstusetheclear
buffer command then program the controller, this will erase the controller and also set the AVR device fuses
to default setting.
Download
ISP-Flash Programmer Software   ISP-30a.zip



http://www.kmitl.ac.th/~kswichit/IspPgm30a/ISP-Pgm.gif
Figure 3:   Main screen of the program ISP-PgmVer 3.0a
Contribution to Asim's ISP Loader
ISP_programmer.zip Schematics and PCB Files including PDF layouts for all layers designed by Farshid Jafari Harandi from Iran using Eagle cadsoft. updated 8-Sep-2005
AT89ISP.rar Single side layout made by Amr Ahmed Abdel-Baset from Egypt.
prahlad.zip ppisppdf.zip Single Side PCB files in Post Script and PDF Format made by Prahlad J. Purohit from India.
ISP_PGM.zip Layout made by Mehrdad Mahboudy from Iran.


页: [1]
查看完整版本: ISP Flash Microcontroller Programmer Ver 3.0a