3.1 I/O Multiplexing

VQFN64/

TQFP64

VQFN48/

TQFP48

VQFN32/

TQFP32

SPDIP28/

SOIC28/

SSOP28
Pin name (1,2)SpecialADC0PTCACnDAC0ZCDnUSARTnSPInTWIn(4)TCA0TCA1TCBnTCDnEVSYSCCL-LUTn
62443022PA0EXTCLKXO/Y00,TxDWO00,IN0
63453123PA1X1/Y10,RxDWO10,IN1
64463224PA2TWIX2/Y20,XCK0,SDA(H)WO20,WOEVOUTA0,IN2
147125PA3TWIX3/Y30,XDIR0,SCL(H)WO31,WO0,OUT
248226PA4X4/Y40,TxD(3)0,MOSIWO40,WOA
31327PA5X5/Y50,RxD(3)0,MISOWO50,WOB
42428PA6X6/Y60,XCK(3)0,SCK0,WOC0,OUT(3)
5351PA7CLKOUTX7/Y7

0,OUT

1,OUT

2,OUT

0,OUT

1,OUT

2,OUT

0,XDIR(3)0,SS0,WODEVOUTA (3)
6VDD
7GND
84PB0X8/Y83,TxDWO0(3)WO04,IN0
95PB1X9/Y93,RxD WO1(3)WO14,IN1
106PB2X10/Y103,XCK1,SDA(H)(3)WO2(3)WO2EVOUTB4,IN2
117PB3X11/Y113,XDIR1,SCL(H)(3)WO3(3)WO34,OUT
128PB4X12/Y123,TxD(3)1,MOSI(3)WO4(3)WO42,WO(3)0,WOA(3)
139PB5X13/Y133,RxD(3)1,MISO(3)WO5(3)WO53,WO0,WOB(3)
14PB6X14/Y143,XCK(3)1,SCK(3)1,SDA(C)(3)0,WOC(3)4,OUT(3)
15PB7X15/Y153,XDIR(3)1,SS(3)1,SCL(C)(3)0,WOD(3)EVOUTB (3)
161062PC01,TxD1,MOSIWO0(3)2,WO1,IN0
171173PC11,RxD1,MISOWO1(3)3,WO(3)1,IN1
181284PC2TWI1,XCK1,SCK0,SDA(H)(3)WO2(3)EVOUTC1,IN2
191395PC3TWI1,XDIR1,SS0,SCL(H)(3)WO3(3)1,OUT
2014VDD
2115GND
2216PC41,TxD(3)1,MOSI(3)WO4(3)WO0(3)
2317PC51,RxD(3)1,MISO(3)WO5(3)WO1(3)
2418PC6

0,OUT(3)

1,OUT(3)

2,OUT(3)

1,XCK(3)1,SCK(3)0,SDA(C)WO2(3)4,WO(3)1,OUT(3)
2519PC7

0,OUT(3)

1,OUT(3)

2,OUT(3)

1,XDIR(3)1,SS(3)0,SCL(C)EVOUTC (3)
2620106PD0AIN0X16/Y16

0,AINN1

1,AINN1

2,AINN1

WO0(3)2,IN0
2721117PD1AIN1X17/Y170,ZCINWO1(3)2,IN1
2822128PD2AIN2X18/Y18

0,AINP0

1,AINP0

2,AINP0

WO2(3)EVOUTD2,IN2
2923139PD3AIN3X19/Y19

0,AINN0

1,AINP1

WO3(3)2,OUT
30241410PD4AIN4X20/Y20

1,AINP2

2,AINP1

WO4(3)
31251511PD5AIN5X21/Y211,AINN0WO5(3)
32261612PD6AIN6X22/Y22

0,AINP3

1,AINP3

2,AINP3

VOUT2,OUT(3)
33271713PD7VREFAAIN7X23/Y23

0,AINN2

1,AINN2

2,AINN0/AINN2

EVOUTD (3)
34281814AVDD
35291915GND
3630PE0AIN8X24/Y240,AINP14,TxD0,MOSI(3)WO0(3)
3731PE1AIN9X25/Y252,AINP24,RxD0,MISO(3)WO1(3)
3832PE2AIN10X26/Y260,AINP24,XCK0,SCK(3)WO2(3)EVOUTE
3933PE3AIN11X27/Y271,ZCIN4,XDIR0,SS(3)WO3(3)
40PE4AIN12X28/Y284,TxD(3)WO4(3)WO0(3)
41PE5AIN13X29/Y294,RxD(3)WO5(3)WO1(3)
42PE6AIN14X30/Y304,XCK(3)WO2(3)
43PE7AIN15X31/Y312,ZCIN4,XDIR(3)EVOUTE (3)
44342016PF0XTAL32K1AIN16(6)X32/Y322,TxDWO0(3)0,WOA(3)3,IN0
45352117PF1XTAL32K2AIN17(6)X33/Y332,RxDWO1(3)0,WOB(3)3,IN1
463622PF2TWIAIN18(6)X34/Y342,XCK1,SDA(H)WO2 (3)0,WOC (3)EVOUTF 3,IN2
473723PF3TWIAIN19(6)X35/Y352, XDIR1,SCL(H)WO3 (3)0,WOD (3)3,OUT
483824PF4AIN20(6)X36/Y362, TxD (3)WO4 (3)0,WO (3)
493925PF5AIN21(6)X37Y372, RxD (3)WO5(3)1,WO(3)
50402618PF6 (5)RESET
51412719UPDI
52PG0X40/Y405, TxDWO0 (3)WO0 (3)5,IN0
53PG1X41/Y415,RxDWO1(3)WO1(3)5,IN1
54PG2X42/Y425,XCKWO2(3)WO2(3)EVOUTG5,IN2
55PG3X43/Y435,XDIRWO3(3)WO3(3)4,WO5,OUT
56422820VDD
57432921GND
58PG4X44/Y445,TxD(3)0,MOSI(3)WO4(3)WO4(3)0,WOA(3)
59PG5X45/Y455,RxD(3)0,MISO(3)WO5(3)WO5(3)0,WOB(3)
60PG6X46/Y465,XCK(3)0,SCK(3)0,WOC(3)5,OUT(3)
61PG7X47/Y475,XDIR(3)0,SS(3)0,WOD(3)EVOUTG (3)
Note:
  1. Pin names are of type Pxn, with x being the PORT instance (A, B, C, ...) and n the pin number. Notation for signals is PORTx_PINn. All pins can be used as event input.
  2. All pins can be used for external interrupt, where pins Px2 and Px6 of each port have full asynchronous detection.
  3. Alternate pin positions. For selecting the alternate positions, refer to the Port Multiplexer section.
  4. The TWI pins that can be used as host or client are marked H. Pins with client only are marked C.
  5. Input-only.
  6. Positive input-only.