AVR Programmer and Microcontroller Connections

Hello,

I have the Sparkfun Pocket AVR Programmer. Is the Xmega128a1 supported by this programmer?

For the Atmel 6-pin ISP header, there are some SPI signal pins such as MISO and MOSI. My question is; which pins on the microcontroller (atmega168 for example) should I connect these pins to in order to program the device?

Some AVRs have Programming via SPI feature, but my microcontroller does not support this feature. I think connecting the ISP header pins to the SPI pins of the microcontroller is a wrong way to go…

I will be pleased if someone can give a connection diagram between ISP header and microcontroller.

Last question; in the datasheet of the Xmega128a1, it is written that programming is supported via PDI and JTAG. So, should I use the PDI pins to connect the ISP header? If so, how should I connect them? I am confused because the PDI port has a bidirectional signal.

Thank you.

You need a programmer that supports PDI or JTAG for the Xmegas.

I have found the AVRISP mkII programmer. The atxmega devices exist in the programmer’s product page, in the related devices section:

http://www.atmel.com/dyn/products/tools … ol_id=3808

Can I use this programmer to program my xmega? If yes, should I program the device over SPI pins?

For PDI interface, there are two pins PDI_CLK and PDI_DATA. How should I connect them to the 6-pin ISP header?

See the datasheet. If you look for ICSP it will tell you which pins are data in, data out and clock. Very often it will coincide with the SPI-pins, but not always. I learned the hard way that the the mega128 has separate pins for programming.