PK2AVRISP

 

                                                      PK2AVRISP http://pickit2.isgreat.org/  sitesinde yayınlanan kodlar.                                                 

      Programming AVR microcontrollers with the PICKit2 programmer

  •     with no PICKit2 hardware or firmware changes
  •     use your favorite AVR programming software compatible with the AVRISP (serial) programmer
     

PK2AVRISP

Is an application that simulates the behavior of the AVRISP programmer. It decodes the AVRISP commands received from the virtual serial port, translates the commands into PICKit2 commands and send them to the PICKit2 programmer via USB.

PK2AVRISP acts as a bridge between the AVR programming application and the PICKit2 programmer, emulating the AVRISP protocol for the AVR programming app.

You will also need com0com to create 2 bridged virtual serial ports. (for example COM3 ad COM4). You can use any other software capable of doing this, but com0com is free/open source.

If AVRISP complains about some missing files (this happens on WinXP), you will also need to install “Microsoft Visual C++ 2008 Redistributable Package” from here: http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

How to connect the PICKit2 to the AVR microcontroller

(Expkits Pk2 devresinde Atmel ISP bağlantısına göre düzenlenmiş soket bulunmaktadır. Bu sebeple bu kısım önemli değildir.)


Note that PB2/SS pin must be pulled down to GROUND during programming, this can be achieved by connecting the pin to RESET or can be wired to GROUND.

VDD needs to be connected only if the target board is not powered. If the board has an external power supply, DO NOT connect VDD to PICKit2.

How to use

 

  •     connect the PICKit2 to the AVR microcontroller (and PICKit2 to the PC)
  •     make sure you have installed the 2 bridged virtual serial ports (for the example I’ll name them COM3 and COM4)
  •     start PK2AVRISP (it should have detected your PICKit2 programmer) and select one of the 2 serial ports (for example COM3)
  •     in your AVR programming application select the programmer AVRISP (or compatible like STK500)
  •     for the selected programmer select the serial port the 2nd serial port from the created 2(in our example is COM4)
  •     now you can use the programmer commands.
     

Kullanımı

  •     PICKIT2 yi PC ye usb kablo ile bağla Ve avr mcu ile bağlantısını yukarıdaki ögrenklerdeki gibi yap.
  •     2 Sanal seri portun kurulduğundan emin ol. (Örnek olarak COM3 and COM4 olarak adlandırdım)
  •    PK2AVRISP programını çalıştır. Programın PICKIT2 yi tanıması gerekir.PK2AVRISP programının kullanacağı seri port için, 2 seri            porttan  birisini seç ( burada örneğin COM3 olabilir.)
  •     Sizin AVR mcu programlama uygulamanızda , programlayıcı olarak AVRISP seç. (Yada STK500 uyumlu seç)
  •     Seçilmiş programlayıcı için kullanılacak seri port olarak 2. seri portu ayarla. ( Burda örnek olarak COM4 kullanılabilir. )
  •     Artık uygulamanız üzerinden programlayıcıyı kullanabilirsiniz.
     

AVR programming applications

I have tested PK2AVRISP with the following applications:

  •     CodeVision AVR (select AVRISP/STK500 programmer)
  •     AVRStudio (AVRISP)
  •     avrdude (Windows) (I had to select stk500v2 programmer)

The tests were made with ATmega8 microcontroller.

Update: I made some tests with ATtiny2313 and it works fine. It should work with all microcontrollers supported by AVRISP.

Update: Test were made with ATMega128. Some EEPROM programming issues were found and fixed in v0.3

The project is in alpha stage, only a few tests were made, so use it at your own risk. You should also read the PICKit2 license agreement.