background image

EXA-PROG 

USB programming adapter for AVR-ISP, AVR-UPDI, STM32, LPC, ESP8266, ESP32 

 

 

Page 8 

 

 

 

Connection of an AVR Controller with UPDI Interface 

 DIP SWITCH: 2 = OFF, 3 = OFF, 4 = ON 

 

Connect the programming connector leads on the EXA-PROG directly to 
the pins on the controller: 

 

 
 
 

 

 

 
The pin numbers of the AVR controller vary depending on the type and the shape of the case. 
Please check out the data sheet in order to determine the pin numbers that match your con-

troller.  
 
DIP  switch  1:  OFF  =  3.3V,  ON  =  5V.  Be  sure  to  set  the  same  voltage  here  your  circuit  is 
running at. If the microcontroller is programmed in an external socket, both voltage values can 
be set. 

 

 

UPDI-HV MODE 

 DIP SWITCH: 2 = OFF, 3 = ON, 4 = ON 

 

With ATTiny controllers that do not have a separate UPDI pin (e.g. Tiny412, Tiny1614, Tiny3216) the pin 
can  be  switched  to an  alternative  function  via  the  fuses.  After  that,  programming  in  the  standard  UPDI 
mode is no longer possible. In this case, select the UPDI high-voltage mode, in  which the UPDI port of the controller is 
reactivated for programming via a short 12 volt pulse.  
If the controller is to be programmed in a circuit, make sure that there may not be any components on the UPDI pin. 

  Please do not use this mode for controllers with dedicated UPDI pin (e.g. AVR32/64/128DA).

 

NOTICES, TIPS: 

 

Connect only PIN2 to the circuit to be programmed if it does not have its own power supply and if the expected power 
consumption does not exceed the maximum limit of the EXA-PROG. 

 

In the UPDI mode the software interface of the EXA-PROG emulates a jtag2updi interface. This is not supported by 
ATMEL/MICROCHIP Studio. Instead, please use the tool AVRDUDE for programming. This is used in various devel-
opment environments like Arduino or Bascom. You can find a lot of information on this on the internet and via the link 
at the end of these instructions. 

 

For boards with a 6-pin UPDI connector please use the optionally available adapter or connect your circuit to the 10-
pin ISP connector using appropriate jumper cables. 

 

 

adapter 10-pin to 6-pin UPDI 

(optional  accessories,  not  included  with  the  EXA-
PROG) 

 

10 Pin Header  

 

AVR Controller 

PIN4 (UPDI) 

UPDI (RESET, PORT) 

PIN10 (GND) 

GND 

optional: 
PIN2 (VCC) 

VCC 

Summary of Contents for EXA-PROG

Page 1: ...ate adjustment in the AVR ISP mode Clock generator for AVR controller with wrong fused oscillator Button for reset of the connected microcontroller 10 pin standard ISP port Optional equipment 10 pin to 6 pin adapter ESP01 adapter Mini USB port for power supply and connection to PC Firmware updateable via USB Windows PC tool for testing the signal levels at the programming port Techncal Data Curren...

Page 2: ...amming tools of the manufacturers or to freely available tools In its delivery condition EXA PROG is set to the mode AVR ISP with 3 3V all DIP switches to OFF In the AVR ISP mode EXA PROG is compatible to STK500 and works with AVR ATMEL MICROCHIP Studio as well as AVRDUDE Arduino Bascom Notice With Windows 10 or 11 please only use ATMEL MICROCHIP Studio 7 x or higher Older versions do not work In ...

Page 3: ...correctly set programming software NEGATIVE In case the test is negative first check if the right voltage was selected and if the DIP switches on the EXA PROG agree with the switch position which gets displayed Are there really no external components connected to the programming port Also check the USB voltage with a multimeter by setting DIP switch 1 to ON and measuring the voltage between PIN2 p...

Page 4: ...N3 BOOT is set to the HIGH level a 50ms long reset pulse is generated and then PIN3 BOOT goes back to LOW The green LED flickers briefly as an indicator that the reset was triggered NXP LPC A short button press less than a second triggers a RESET of the connected controller After releasing the button a 50ms long LOW pulse is generated at PIN5 RESET PIN3 BOOT remains on HIGH A long button press lon...

Page 5: ...es with ATTiny controllers Please don t use with controllers with dedicated UPDI pin e g AVR32 64 128DA STM32 2 ON 3 OFF 4 OFF Programmer for STM32 Cortex M Controller with UART Bootloader The STM32 controller is programmed via the integrated bootloader through one of the serial ports see data sheet of the controller to be programmed The programmer is connected to the controller via the RX and TX ...

Page 6: ...m voltage of approx 5V Please note that the exact voltage value may vary and depends on the voltage at the USB port This value can fluctuate depending on the load and it can be between 4 5V and 5 2V However this is usually negligible when microcontrollers are being programmed Notices The maximum load on the programming port is 500mA at 5 volts and 300mA at 3 3 volts If more power is required pleas...

Page 7: ...oes not respond anyway please check the line connections first MISO to MISO and MOSI to MOSI that gets confused very often SCK to SCK and RESET to RESET Are there no other components connected to the programming lines Any capacitor present on the RESET pin must be removed Does the connected microcontroller have a power supply The AVR controller may be missing the system clock because the fuses are...

Page 8: ... the controller is reactivated for programming via a short 12 volt pulse If the controller is to be programmed in a circuit make sure that there may not be any components on the UPDI pin Please do not use this mode for controllers with dedicated UPDI pin e g AVR32 64 128DA NOTICES TIPS Connect only PIN2 to the circuit to be programmed if it does not have its own power supply and if the expected po...

Page 9: ... STM32 it must be supplied with 3 3 volts If the power consumption is no higher than 300mA the controller including the circuit can also be supplied by the EXA PROG Programming does not need a crystal connected to the STM32 The bootloader of the STM32 uses the internal RC oscillator HSI clock to generate the system clock Unfortunately the BOOT0 and RESET lines cannot be controlled with the program...

Page 10: ...T lines works very well with the tool Flash Magic If you develop your own programming tool the BOOT and RESET lines can be controlled via the DTR BOOT and RTS RESET signals This can also be done manually using the reset button on the EXA PROG This programmer does not support 8 bit controllers LPC9xx and NXP controllers without an ARM Cortex core EXA PROG as USB Serial Converter EXA PROG can be use...

Page 11: ...am the ESP8266 or ESP32 it must be supplied with 3 3 volts If the current consumption is not higher than 300mA then the controller including the circuitry can also be supplied from the EXA PROG When using ESPTOOL the control lines GPIO0 and RESET are activated automatically A manual activation of the bootloader is therefore not necessary However activation can also be triggered using the reset but...

Page 12: ...OG The English version of this manual is a translation For legal issues the authoritative version of these instructions is the German one LINKS LED Genial shop http www led genial de Diamex shop http www diamex de Download AVR ATMEL MICROCHIP Studio http www mikrocontroller net articles Atmel_Studio UPDI programming with AVRDUDE https github com ElTangas jtag2updi using with avrdude ESPTOOL for ES...

Page 13: ...EXA PROG USB programming adapter for AVR ISP AVR UPDI STM32 LPC ESP8266 ESP32 Page 13 ...

Reviews: