AVR SPI Pinout

When designing an application PCB, which includes an AVR with the SPI interface, the pinout, as shown in the figure below, should be used.

Figure 1. SPI Header Pinout


Table 1. SPI Pin Mapping
AVR PORT Pins Target Pins SPI Pinout
Pin 1 (TCK) SCK 3
Pin 2 (GND) GND 6
Pin 3 (TDO) MISO 1
Pin 4 (VTG) VTG 2
Pin 5 (TMS)    
Pin 6 (nSRST) /RESET 5
Pin 7 (not connected)    
Pin 8 (nTRST)    
Pin 9 (TDI) MOSI 4
Pin 10 (GND)