Programming the XMEGA with an ISP


Posted on Feb 5, 2014

Atmel`s XMEGA series of microcontrollers are neat little pieces of hardware; with a very fast clock, a ton of IO, USB, and up to 8 UART ports, these neat little chips serve as a nice bridge between AVRs and PICs and the very powerful ARM chips coming out on the market. Unfortunately, the XMEGAs don`t use the extremely common ISP programming header


Programming the XMEGA with an ISP
Click here to download the full size of the above Circuit.

found on just about every AVR dev board making them a bear to program. [Szu] over in Poland came up with a very easy way to program these chips, all while using the programming hardware you already have on hand. [Szu]s build uses a few resistors and diodes to break out a USBASP connection to the XMEGA`s PDI interface. On the software side of things, [Szu] wrote an update to the USBASP firmware to allow it to program PDI devices, and also has a patch for AVRdude to allow uploading firmware from the command line. Behold this ATtiny85 based EEPROM programmer. It seems like a roundabout way of doing things, but [Quinn Dunki] wanted to build to her specifications using tools she had on hand. What she came up with is an ATtinyISP USB programmer, pushing data to an ATtiny85, which then programs an EEPROM chip with said data. The hardware is the next module for her Veronica 6502 computer build. When we last saw that project [Quinn] was planning to add persistent storage for the operating firmware. This will be in the form of an EEPROM programmed with this device. Using ISP and anATtiny as a go-between means that she should have no problems reflashing the OS without removing the chip. But it all depends on how she designs the interface. For example, she blew a whole bunch of time troubleshooting the device because garbage data was being written to the chip. In the end, having her manual bus programmer hooked up during the flashing...




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Ponyprog for AVR & PIC16F84
    30 Meters CW transmitter
    Step-up-down-dc-dc-converter
    Strain-gauge-instrumentation-amplifier
    High Voltage Pulse Generator Electronic Circuit
    universal timer
    Video IF circuit TV Schematic Diagram
    Amp Power Supply More Info
    The Telegraph Time Machine
    An Electromagnetic and Ultrasonic Shield



    Top