Elements and pinouts - dilshan/avr-hv2 GitHub Wiki

Except for Arduino interfacing pins, all the other I/O terminals of AVR-HV2 programmer are located at the top of the PCB.

Components of the PCB

  1. 28-Pin DIP socket
  2. Data terminals
  3. Busy indicator
  4. Control terminals
  5. 40-Pin DIP socket

DIP sockets

Both 28-Pin (1) and 40-Pin (5) DIP sockets can be used to connect AVR MCU into the programmer. Based on the requirements both of these sockets can be replaced with ZIF sockets, 2.54mm DIL IC sockets or with female headers.

When attaching the AVR MCUs, always connect only one chip to the programmer. This programmer is not supported for gang (multiple devices) programming.

Data and control terminals

These external connections can be used to program the AVR MCUs with different packaging or in different locations.

J1 - Data terminal (2), is an 8bit bidirectional data bus and this bus is denoted as DATA in datasheets.

J2 - Control terminal (4), contains I/O pins which are used for high voltage parallel programming.

J2 terminal

  • VCC / AVCC : +5V supply voltage. Attach all VCC and AVCC terminals of MCU into this pin.
  • RDY / BSY : Notify device busy status.
  • OE : Output enable (Active low).
  • WR : Write pulse (Active low).
  • BS1 : Byte select 1.
  • BS2 : Byte select 2.
  • PAGEL : Flash memory and EEPROM data page load.
  • XA1 : XTAL Action Bit 1
  • XA0 : XTAL Action Bit 0
  • XTAL1 : Clock input.
  • RESET : +12V programming supply voltage.
  • GND : Ground.

For example, to program the ATmega32 externally, the wiring arrangement from J1 and J2 terminals must be similar to this:

Wiring layout:

HV2 wiring layout

Breadboard view:

HV2 breadboard layout

The wiring layout is different for each microcontroller. For more details refer "Memory Programming" or "Parallel Programming" sections of the MCU datasheet.

Warning: Never use J1 and J2 terminals to program or read MCUs in-circuit. This programmer applies a high voltage to program the MCUs, and in-circuit programming may damage the circuit board or programmer.