3.1 I/O Multiplexing
VQFN32 | VQFN28 |
SPDIP28 | SSOP20 |
SOIC14 | Pin name (1,2) | Special | ADC0 | ACn | USART0 | SPI0 | TWI0(4) | TCE0+WEX0 | TCBn | TCF0 | EVSYS | CCL-LUTn |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30 | 26 | 22 | 4 | 4 | PA0 |
XTAL32K1 | TxD | MOSI(3) | SDA(H)(3) |
WO0 | WO0 |
0,IN0 | ||||
31 | 27 | 23 | 5 | 5 | PA1 |
XTAL32K2 | RxD | MISO(3) | SCL(H)(3) |
WO1 | WO1 |
0,IN1 | ||||
32 | 28 | 24 | 6 | - | PA2 |
TWI | AIN22 |
XCK | SDA(H) |
WO2 | 0,WO | EVOUTA |
0,IN2 | |||
1 | 1 | 25 | 7 | - | PA3 |
TWI | AIN23 |
XDIR | SCL(H) |
WO3 | 1,WO | 0,OUT | ||||
2 | 2 | 26 | 8 | - | PA4 | AIN24 | TxD(3) | MOSI |
WO4 | |||||||
3 | 3 | 27 | 9 | - | PA5 | AIN25 | RxD(3) | MISO |
WO5 | |||||||
4 | 4 | 28 | 10 | - | PA6 | AIN26 | 1,AINP5 | XCK(3) | SCK |
WO6 | WO0(3) | 0,OUT(3) | ||||
5 | 5 | 1 | 11 | - | PA7 | CLKOUT | AIN27 |
0,OUT | XDIR(3) | SS |
WO7 | WO1(3) | EVOUTA(3) | |||
6 | 6 | 2 | 12 | 6 | PC0 | AIN28 | 1,IN0 | |||||||||
7 | 7 | 3 | 13 | 7 | PC1 | AIN29 | TxD(3) | 1,IN1 | ||||||||
8 | 8 | 4 | 14 | 8 | PC2 |
TWI | AIN30 |
0,AINN3 | RxD(3) | EVOUTC | 1,IN2 | |||||
9 | 9 | 5 | 15 | 9 | PC3 |
TWI | AIN31 |
0,AINP4 | XCK(3) | 1,OUT | ||||||
10 | 10 | 6 | - | - | PD0 | AIN0 |
0,AINN1 | WO0(3) |
2,IN0 | |||||||
11 | 11 | 7 | - | - | PD1 | AIN1 | WO1(3) |
2,IN1 | ||||||||
12 | 12 | 8 | - | - | PD2 | AIN2 |
0,AINP0 | WO2(3) | EVOUTD |
2,IN2 | ||||||
13 | 13 | 9 | - | - | PD3 | AIN3 |
0,AINN0 | WO3(3) | 2,OUT | |||||||
14 | 14 | 10 | 16 | 10 | PD4 | AIN4 |
0,AINP5 | TxD(3) | MOSI(3) | WO4(3) | ||||||
15 | 15 | 11 | 17 | 11 | PD5 | AIN5 |
0,AINP6 | RxD(3) | MISO(3) | WO5(3) | ||||||
16 | 16 | 12 | 18 | 12 | PD6 | AIN6 |
0,AINP3 | XCK(3) | SCK(3) | WO6(3) | 2,OUT(3) | |||||
17 | 17 | 13 | 19 | 13 | PD7 | VREFA | AIN7 |
0,AINN2 | XDIR(3) | SS(3) | WO7(3) | EVOUTD(3) | ||||
18 | 18 | 14 | 20 | 14 | VDD | |||||||||||
19 | 19 | 15 | 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 | 2 | 2 | PF6(5) | RESET | RxD(3) | |||||||||
27 | 23 | 19 | 3 | 3 | PF7 | UPDI | TxD(3) | SS(3) | EVOUTF(3) | |||||||
28 | 24 | 20 | - | - | VDD | |||||||||||
29 | 25 | 21 | - | - | GND |
Note:
- The pin names are Pxn type, with x being the PORT instance (A, B, C, ...) and n, the PIN. The notation for signals is PORTx_PINn. All pins can be used as event inputs.
- All the pins can be used for external interrupt.
- Alternate pin positions. To select alternate positions, refer to the PORTMUX - Port Multiplexer section.
- The TWI pins that can be used as hosts or clients are marked H. The pins with client-only are marked C.
- Input-only.