Programming AVR ATxMega using USBasp and ATxmega microcontroller

ATxmega programmer has different interface than 8-bit AVRs. It uses PDI interface instead of ISP. If you don’t want to buy new programmer for ATxmega you can try this little hack done by Szu. He uses USBASP (USB in-circuit programmer for Atmel 8-bit AVR controllers) with some modification to program AVR ATxmega. The hack convert SCK line to PDI DATA and MOSI becomes PDI CLK. Be sure to drop SCK and MOSI voltage from 5V to 3.3V using zener and resistor since PDI operates at 3,3V.
 Programming AVR ATxMega using USBasp
Next step is upgrading your USBASP Firmware with new firmware that supporting PDI.
For more detail: Programming AVR ATxMega using USBasp and ATxmega microcontroller


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

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top