3.1 I/O Multiplexing

VQFN48/
                                TQFP48

VQFN32/
                                TQFP32

SOIC28/SSOP28/
                                SPDIP28

Pin name(1,2)

Special

ADC0ACnDAC0OPAMPZCDnUSARTnSPInTWIn(4)TCAnTCBnTCD0EVSYSCCL-LUTn
443022PA0

XTALHF1
                                EXTCLK

0, TxD0, WO00, IN0
453123PA1XTALHF20, RxD0, WO10, IN1
463224PA2TWI Fm+0, XCK0, SDA(HC)0, WO20, WOEVOUTA0, IN2
47125PA3TWI Fm+0, XDIR0, SCL(HC)0, WO31, WO0, OUT
48226PA40, TxD(3)0, MOSI0, WO4WOA
1327PA50, RxD(3)0, MISO0, WO5WOB
2428PA60, XCK(3)0, SCKWOC0, OUT(3)
351PA7CLKOUT

0, OUT
                                1, OUT
                                2, OUT

0, OUT
                                1, OUT

0, XDIR(3)0, SSWODEVOUTA(3)
4PB03, TxD

0, WO0(3)
                                1, WO0

4, IN0
5PB13, RxD

0, WO1(3)
                                1, WO1

4, IN1
6PB2TWI3, XCK1, SDA(HC)(3)

0, WO2(3)
                                1, WO2

EVOUTB4, IN2
7PB3TWI3, XDIR1, SCL(HC)(3)

0, WO3(3)
                                1, WO3

4, OUT
8PB43, TxD(3)1, MOSI(3)

0, WO4(3)
                                1, WO4

2, WO(3)WOA(3)
9PB53, RxD(3)1, MISO(3)

0, WO5(3)
                                1, WO5

3, WOWOB(3)
1062PC01, TxD1, MOSI0, WO0(3)2, WO1, IN0
1173PC11, RxD1, MISO0, WO1(3)3, WO(3)1, IN1
1284PC2TWI Fm+1, XCK1, SCK0, SDA(HC)(3)0, WO2(3)EVOUTC1, IN2
1395PC3TWI Fm+1, XDIR1, SS0, SCL(HC)(3)0, WO3(3)1, OUT
14106VDDIO2
15GND
16PC41, TxD(3)1, MOSI(3)

0, WO4(3)
                                1, WO0(3)

17PC51, RxD(3)1, MISO(3)

0, WO5(3)
                                1, WO1(3)

18PC6

0, OUT(3)
                                1, OUT(3)
                                2, OUT(3)
                            

1, XCK(3)1, SCK(3)0, SDA(C)(3)1, WO2(3)1, OUT(3)
19PC7

0, OUT(3)
                                1, OUT(3)

1, XDIR(3)1, SS(3)0, SCL(C)(3)EVOUTC(3)
20PD0AIN0

0, AINN1
                                1, AINN1
                                2, AINN1

0, WO0(3)2, IN0
21117PD1AIN1 OP0, INP0, ZCIN0, WO1(3)2, IN1
22128PD2AIN2

0, AINP0
                                1, AINP0
                                2, AINP0

OP0, OUT0, WO2(3)EVOUTD2, IN2
23139PD3AIN3

0, AINN0
                                1, AINP1

OP0, INN0, WO3(3)2, OUT
241410PD4AIN4

1, AINP2
                                2, AINP1

OP1, INP0, WO4(3)
251511PD5AIN51, AINN0OP1, OUT0, WO5(3)
261612PD6AIN6

0, AINP3
                                1, AINP3
                                2, AINP3

OUT2, OUT(3)
271713PD7VREFAAIN7

0, AINN2
                                1, AINN2
                                2, AINN0/AINN2

OP1, INNEVOUTD(3)
281814AVDD
291915AGND
30PE0AIN80, AINP14, TxD0, MOSI(3)0, WO0(3)
31PE1AIN92, AINP2OP2, INP4, RxD0, MISO(3)0, WO1(3)
32PE2AIN100, AINP2OP2, OUT4, XCK0, SCK(3)0, WO2(3)EVOUTE
33PE3AIN11OP2, INN1, ZCIN4, XDIR0, SS(3)0, WO3(3)
342016PF0XTAL32K1AIN16(5)2, TxD0, WO0(3)WOA(3)3, IN0
352117PF1XTAL32K2AIN17(5)2, RxD0, WO1(3)WOB(3)3, IN1
3622PF2TWI Fm+AIN18(5)2, XCK1, SDA(HC)0, WO2(3)WOC(3)EVOUTF3, IN2
3723PF3TWI Fm+AIN19(5)2, XDIR1, SCL(HC)0, WO3(3)WOD(3)3, OUT
3824PF4AIN20(5)2, TxD(3)0, WO4(3)0, WO(3)
3925PF5AIN21(5)2, RxD(3)0, WO5(3)1, WO(3)
402618PF6(6) RESET
412719UPDIUPDI
422820VDD
432921GND
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 inputs.
  2. All pins can be used for external interrupt, where pins Px2 and Px6 of each port have full asynchronous detection.
  3. Alternative pin positions. To select alternative pin positions refer to the Port Multiplexer section.
  4. TWI pins are marked HC if they can be used as TWI Host or Client pins, and C if they can only be used as TWI Client pins.
  5. AIN16 - AIN21 cannot be used as a negative ADC input for differential measurements.
  6. Input only.