آی پی امداد
abtahi
آریا الکترونیک تکشو

پروگرامر براي AVR و 8051 | ISP Flash Microcontroller Programmer

Service Manual

D e b u g g e R
مدیرکل
معاونت انجمن
2007-06-19
13,666
176,764
iRanTK.iR

[SIZE=+4]ISP Flash Microcontroller Programmer[/SIZE]
[SIZE=+4]Ver 3.0a[/SIZE]



[SIZE=+1]Introduction[/SIZE]

This ISP Programmer can be used either for in-system programming or as a stand-alone spi programmer for Atmel ISP programmable devices. The programming interface is compatible to STK200 ISP programmer hardware so the users of STK200 can also use the software which can program both the 8051 and AVR series devices

[SIZE=+1]Hardware[/SIZE]

Figure 1 shows the circuit diagram of the in-system programmer interface, the power to the interface is 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.

isp1_sch.gif

Figure 1: Circuit Diagram of the ISP Programmer Interface

Figure 2 shows the circuit diagram of the stand-alone spi programmer, the power to the interface is provided by the PC USB port which can supply a max of 100mA current. Get a cheap USB cable, cut the
cable other end connector and attach a crimp shell connector to this end, red wire is 5V and black is 0V.
The printer port buffer interface is same as shown in figure 1. For the u-controller a 40 pin ZIF socket can
be used.
This programmer circuit can be use to program the 89S series devices and the AVR series devices which
are pin compatible to 8051, like 90S8515. For other AVR series devices the user can make an adapter
board for 20, 28 and 40 pin devices. The pin numbers shown in brackets correspond to PC parallel port
connector.


isp2_sch.jpg

Figure 2: Circuit Diagram of the SPI Programmer

[SIZE=+1]Software[/SIZE]

The ISP-30a.zip file contains the main program and the i/o port driver. Place all files in 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, ATtiny26 and ATtiny2313 otherwise further spi programming is disable and you will need a parallel programmer to enable the
spi programming. For the fuses setting consult the datasheet of the respective device.
For the auto hardware detection it is necessary to 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
The memory buffer contains both the code data and the eeprom data for the devices which have
eeprom memory. The eeprom memory address in buffer is started after the code memory, so it is
necessary the hex file should contains the eeprom start address after the end of code memory last address
i.e. for 90S2313 the start address for eeprom memory is 0x800.
The software does not provide the erase command because this function is performed
automatically during device programming. If you are required to erase the controller, first use the clear
buffer command then program the controller, this will erase the controller and also set the AVR device fuses
to default setting.


ISP-Pgm.jpg

Figure 3: Main screen of the program ISP-Pgm Ver 3.0a

 

پیوست‌ها

آخرین ویرایش:

kavosh83

VIP+ افتخاری
کاربر
2008-09-27
528
3,592
بهشت خدا در زمین
[size=+4]isp flash microcontroller programmer[/size]
[size=+4]ver 3.0a[/size]


[size=+1]introduction[/size]


this isp programmer can be used either for in-system programming or as a stand-alone spi programmer for atmel isp programmable devices. The programming interface is compatible to stk200 isp programmer hardware so the users of stk200 can also use the software which can program both the 8051 and avr series devices​



[size=+1]hardware[/size]


figure 1 shows the circuit diagram of the in-system programmer interface, the power to the interface is 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.​




figure 1: Circuit diagram of the isp programmer interface


figure 2 shows the circuit diagram of the stand-alone spi programmer, the power to the interface is provided by the pc usb port which can supply a max of 100ma current. Get a cheap usb cable, cut the​



cable other end connector and attach a crimp shell connector to this end, red wire is 5v and black is 0v.


the printer port buffer interface is same as shown in figure 1. For the u-controller a 40 pin zif socket can


be used.


this programmer circuit can be use to program the 89s series devices and the avr series devices which


are pin compatible to 8051, like 90s8515. For other avr series devices the user can make an adapter


board for 20, 28 and 40 pin devices. The pin numbers shown in brackets correspond to pc parallel port


connector.





figure 2: Circuit diagram of the spi programmer

[size=+1]software[/size]


the isp-30a.zip file contains the main program and the i/o port driver. Place all files in 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, attiny26 and attiny2313 otherwise further spi programming is disable and you will need a parallel programmer to enable the


spi programming. For the fuses setting consult the datasheet of the respective device.


for the auto hardware detection it is necessary to 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


the memory buffer contains both the code data and the eeprom data for the devices which have


eeprom memory. The eeprom memory address in buffer is started after the code memory, so it is


necessary the hex file should contains the eeprom start address after the end of code memory last address


i.e. For 90s2313 the start address for eeprom memory is 0x800.


the software does not provide the erase command because this function is performed


automatically during device programming. If you are required to erase the controller, first use the clear


buffer command then program the controller, this will erase the controller and also set the avr device fuses


to default setting.





figure 3: Main screen of the program isp-pgm ver 3.0a
سلام
آیا امکان پروگرام کردن avr بصورت مستقیم و بدون نیاز به سخت افزار جانبی از طریق usb بوسیله پروگرامر tnm2000 وجود دارد؟
 
بالا