So, you lucky soul, you have a JTAG ICE Mk II on the bench. And you're sick of trying to remember which squid cable wire color corresponds to MISO, MOSI, SCK, RESET, Vcc and GND for AVRISP / ISP (In System Programming)? Me too. Here's a table that should help both of us.
Squid
|
ISP
|
ATmega
|
|||
Function
|
Squid
Pin # |
Color
|
Function
|
ISP6
Pin # |
328P
Pin
|
| TCK | 1 | Black | SCK | 3 | 19 |
| GND | 2 | White | GND | 6 | 8,22 |
| TDO | 3 | Grey | MISO | 1 | 18 |
| VTref | 4 | Purple | Vcc | 2 | 7 |
| TMS | 5 | Blue | nc | nc | nc |
| nSRST | 6 | Green | RESET | 5 | 1 |
| Vsupply | 7 | Yellow | nc | nc | nc |
| nTRST | 8 | Orange | nc | nc | nc |
| TDI | 9 | Red | MOSI | 4 | 17 |
| GND | 10 | Brown | nc | nc | nc |
While we're at it, here's the 6-pin and 10-pin AVRISP (AVR ISP) pinouts for us to reference.
If you're using a 28-DIP ATmega328P, this may help. This should work for an ATmega8, ATmega168, and more (check the datasheet).
http://redmine.ruinwesen.com/projects/golem-public/wiki/JTAG_ICE_MKII_pinouts
http://www.atmel.com/dyn/resources/prod_documents/doc2562.pdf



0 comments:
Post a Comment