Friday, January 27, 2012

AVRISP and JTAG ICE MkII Pinout


So, you lucky soul, you have a Atmel JTAG ICE Mk II on the bench. Can't remember the pinout for the AVRISP port? Or the color codes on the squid cable? Me either. How are you going to program your Atmega microcontroller now? With this reference guide.

This table shows color, AVRISP pin, and ATmega328P pin corresponding to MISO, MOSI, SCK, RESET, Vcc and GND.

Squid
ISP
ATmega
Function
Squid
Pin #
Color
Function

6-pin
AVRISP
Pin #

328P
Pin
TCK 1BlackSCK319
GND 2WhiteGND68,22
TDO 3GreyMISO118
VTref 4PurpleVcc27
TMS 5Bluencncnc
nSRST 6GreenRESET51
Vsupply 7Yellowncncnc
nTRST 8Orangencncnc
TDI 9RedMOSI417
GND 10Brownncncnc


Here's the AVRISP pinout diagram for both the 6-pin and 10-pin AVRISP header. Even if you're not using a JTAG ICE (I often use a Pololu USB programmer) this comes in handy when you want to plug the AVRISP header into a breadboard.



If you're using a 28-DIP ATmega328P, this pinout diagram may help. This should work for an ATmega8, ATmega48, ATmega88, ATmega168, and other 28-pin ATmega AVR microcontrollers (check the datasheet).


This diagram shows AVRISP pinout diagram for programming ATtiny2313, ATtiny2313A, ATtiny4313 AVR microcontrollers.



An easier way to program your ATtiny2313 (or ATtiny4313) is to use one of my eeZee Big Tiny target boards on Tindie. Program with FTDI and 6-pin AVRISP headers. Includes 16MHz crystal onboard. Hust hook it up and program

Here's a pinout diagram for an 8-DIP ATtiny11, ATtiny12, ATtiny13, ATtiny25, ATtiny45, ATtiny85, and other 8-pin Atmel ATtiny AVR microcontrollers (check the datasheet).


An easier way to program your ATtiny13 is to use one of my eeZee Tiny prototyping boards, available on Tindie. The 6-pin AVRISP header is provided, just hook it up and program.

eeZee Tiny makes it easy to prototype and program your ATtiny


Sources:
http://redmine.ruinwesen.com/projects/golem-public/wiki/JTAG_ICE_MKII_pinouts
http://www.atmel.com/dyn/resources/prod_documents/doc2562.pdf

No comments:

Post a Comment