STK500 Compatible ISP using AVR microcontroller

Summary of STK500 Compatible ISP using AVR microcontroller


AVR-Doper is a low-cost, STK500-compatible ISP and HVSP programmer for hobbyists. It features a built-in USB-to-Serial adapter implemented entirely in firmware without dedicated USB chips, reducing costs to around $10. The design utilizes the AVR's PWM and ADC for an internal DC converter and supports adjustable ISP clocks. It works with 8/14-pin devices, allows RESET pin usage as I/O, includes a debug serial port, and runs on USB bus power using open-source tools.

Parts used in the AVR-Doper:

  • AVR microcontroller
  • Single sided PCB
  • Pulse width modulator (PWM)
  • ADC channel
  • HVSP connector compatible with HVProg
  • Socket adaptors
  • USB bus power supply

AVR-Doper is an STK500 compatible In System Programmer (ISP) and High Voltage Serial Programmer (HVSP). It comes with a built-in USB to Serial adaptor to connect to modern host computers which often don’t have a serial interface. The project implements a low speed USB device in firmware only. No USB capable controller or converter is used. The device is very useful gadget for hobbyists who want to get started with AVRs, especially with a total cost in the range of 10 USD.

STK500 Compatible ISP using AVR microcontroller
“The firmware implementation of a low speed USB device is an exercise in assembler optimization. Since most AVR instructions are executed in one clock cycle, it is possible to implement NRZI coding and bit-stuffing plus administrative tasks in eight clock cycles per bit. With a firmware implementation, interfacing to USB is easier and cheaper than interfacing to RS232 since no high voltage level conversion is needed,” said Christian Starkjohann, the project designer.
The AVR’s pulse width modulator and one ADC channel are used to implement a step-up DC converter in firmware. This approach saves the cost and board space of a separate DC converter control circuit. The entire design is based on free development tools, The GNU C-compiler and avr-libc. Only the low level USB data pump is assembler, everything else is written in “C”.

Project Features

  • HVSP allows using RESET pin for I/O, which is especially beneficial on 8 and 14 pin devices such as the ATTiny25/25/85 or ATTiny24/44/84.
  • Simple hardware which can be built on a single sided PCB. No special USB chips are needed.
  • Compatible to Atmel’s STK500 with built-in USB to Serial converter.
  • Adjustable ISP clock allows flashing of devices clocked at very low rate, e.g. 32 kHz.
  • ISP clock can be lowered with a jumper (if the programmer software does not support setting the ISP clock).
  • Second USB to Serial converter for processing debug output from the target.
  • HVSP connector compatible to HVProg, another STK500 compatible programmer (www.der-hammer.info/hvprog/index_en.htm). Socket adaptors can therefore be shared among the two projects.
  • Open Source (including firmware and schematics).
  • Uses USB bus power supply, no external power supply required.

For more detail: STK500 Compatible ISP using AVR microcontroller

Quick Solutions to Questions related to AVR-Doper:

  • What is the primary function of the AVR-Doper?
    It is an STK500 compatible In System Programmer and High Voltage Serial Programmer.
  • How does the device connect to modern computers without serial interfaces?
    It uses a built-in USB to Serial adaptor implemented in firmware only.
  • Does the project require a separate USB controller chip?
    No, it implements a low speed USB device in firmware without a USB capable controller or converter.
  • Can the ISP clock be adjusted for slow devices?
    Yes, the ISP clock is adjustable and can be lowered with a jumper.
  • How is the step-up DC converter implemented?
    The AVR pulse width modulator and one ADC channel are used to implement it in firmware.
  • Is external power required for operation?
    No, the device uses USB bus power supply and requires no external power supply.
  • What development tools are used for this project?
    The design is based on free tools including the GNU C-compiler and avr-libc.
  • Are socket adaptors shared with other projects?
    Yes, the HVSP connector is compatible with HVProg allowing shared socket adaptors.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top