Programming xmega with usbasp & avrdude

Few days ago I got package from Helsinki Hacklab. Some generic component stuff and a couple Atmel xmegas and breakout boards for them.IMG_8517 Nice bit more powerful MCU’s than normal atmegas & attinys, but they eat only up to 3.3v, so better not to kill them with 5V logic. Luckily most 5v logics detect 3.3v as high, and their higher output can be lowered with resistor divider. Programing these xmegas also differ from their li’l brothers. Xmegas use  PDI, which is kind of two wire system, constant clock signal and data I/O. I did not have expensive atmel programmer, so I improvised cheap ~2€ programmer using usbasp and avrdude using these patches. Read More …