3.1 I/O Multiplexing

VQFN32
TQFP32

VQFN28

SPDIP28
SOIC28
SSOP28

VQFN20 SSOP20

SOIC14
SSOP14

Pin name (1,2) Special ADC0 ACn USART0 SPI0 TWI0(4) TCE0+WEX0 TCBn TCF0 EVSYS CCL-LUTn
30 26 22 17 4 4 PA0

XTAL32K1
EXTCLK

TxD MOSI(3) SDA(H)(3)

WO0
WO0(3)

WO0

0,IN0
0,IN0(3)

31 27 23 18 5 5 PA1

XTAL32K2

RxD MISO(3) SCL(H)(3)

WO1
WO1(3)

WO1

0,IN1
0,IN1(3)

32 28 24 19 6 - PA2

TWI
Fm+

AIN22

XCK
TxD(3)

SDA(H)

WO2
WO0(3)

0,WO EVOUTA

0,IN2
0,IN2(3)

1 1 25 20 7 - PA3

TWI
Fm+

AIN23

XDIR
RxD(3)

SCL(H)

WO3
WO1(3)

1,WO 0,OUT
2 2 26 1 8 - PA4 AIN24 TxD(3) MOSI

WO4
WO2(3)

3 3 27 2 9 - PA5 AIN25 RxD(3) MISO

WO5
WO3(3)

4 4 28 3 10 - PA6 AIN26 1,AINP5 XCK(3) SCK

WO6
WO4(3)

WO0(3) 0,OUT(3)
5 5 1 4 11 - PA7 CLKOUT AIN27

0,OUT
1,AINP6
1,OUT

XDIR(3) SS

WO7
WO5(3)

WO1(3) EVOUTA(3)
6 6 2 5 12 6 PC0 AIN28

SCK(3)
MOSI(3)

WO0(3)
WO2(3)

1,IN0
7 7 3 6 13 7 PC1 AIN29 TxD(3)

SS(3)
MISO(3)
MOSI(3)

WO1(3)
WO3(3)

1,IN1
8 8 4 7 14 8 PC2

TWI
Fm+

AIN30

0,AINN3
1,AINN3

RxD(3)

SCK(3)
MISO(3)

SDA(C)
SDA(H)(3)
SDA(C)(3)

WO2(3)
WO4(3)

EVOUTC 1,IN2
9 9 5 8 15 9 PC3

TWI
Fm+

AIN31

0,AINP4
1,AINP4

XCK(3)

SS(3)
SCK(3)

SCL(C)
SCL(H)(3)
SCL(C)(3)

WO3(3)
WO5(3)

1,OUT
10 10 6 - - - PD0 AIN0

0,AINN1
1,AINN1

WO0(3)

2,IN0
2,IN0(3)

11 11 7 - - - PD1 AIN1 WO1(3)

2,IN1
2,IN1(3)

12 12 8 - - - PD2 AIN2

0,AINP0
1,AINP0

WO2(3) EVOUTD

2,IN2
2,IN2(3)

13 13 9 - - - PD3 AIN3

0,AINN0
1,AINP1

WO3(3) 2,OUT
14 14 10 9 16 10 PD4 AIN4

0,AINP5
1,AINP2

TxD(3) MOSI(3) WO4(3)
15 15 11 10 17 11 PD5 AIN5

0,AINP6
1,AINN0

RxD(3) MISO(3) WO5(3)
16 16 12 11 18 12 PD6 AIN6

0,AINP3
1,AINP3

XCK(3) SCK(3) WO6(3) 2,OUT(3)
17 17 13 12 19 13 PD7 VREFA AIN7

0,AINN2
1,AINN2

XDIR(3) SS(3) WO7(3) EVOUTD(3)
18 18 14 13 20 14 VDD
19 19 15 14 1 1 GND
20 20 16 - - - PF0 AIN16 WO0(3) 3,IN0
21 21 17 - - - PF1 AIN17 WO1(3) 3,IN1
22 - - - - - PF2 AIN18 WO2(3) EVOUTF 3,IN2
23 - - - - - PF3 AIN19 WO3(3) 3,OUT
24 - - - - - PF4 AIN20 WO4(3) 0,WO(3) WO0(3)
25 - - - - - PF5 AIN21 WO5(3) 1,WO(3) WO1(3)
26 22 18 15 2 2 PF6(5) RESET RxD(3)
27 23 19 16 3 3 PF7 UPDI TxD(3) SS(3) EVOUTF(3)
28 24 20 - - - VDD
29 25 21 - - - GND
Note:
  1. The pin names are Pxn type, with x being the PORT instance (A, B, C, ...) and n, the pin number. The notation for signals is PORTx_PINn. All pins can be used as event inputs.
  2. All pins can be used for external interrupt.
  3. Alternate pin positions. For selecting alternate positions, refer to the PORTMUX - Port Multiplexer section.
  4. The TWI pins that can be used as hosts or clients are marked H. The pins with client-only are marked C.
  5. Input-only.