3.1 I/O Multiplexing
VQFN48/ TQFP48 | VQFN32/ TQFP32 | SPDIP28/ SOIC28/ SSOP28 | Pin name (1,2) | Special | ADC0 | PTC | ACn | DAC0 | ZCDn | USARTn | SPIn | TWIn(4) | TCA0 | TCA1 | TCBn | TCDn | EVSYS | CCL-LUTn |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
44 | 30 | 22 | PA0 | EXTCLK | XO/Y0 | 0,TxD | WO0 | 0,IN0 | ||||||||||
45 | 31 | 23 | PA1 | X1/Y1 | 0,RxD | WO1 | 0,IN1 | |||||||||||
46 | 32 | 24 | PA2 | TWI | X2/Y2 | 0,XCK | 0,SDA(H) | WO2 | 0,WO | EVOUTA | 0,IN2 | |||||||
47 | 1 | 25 | PA3 | TWI | X3/Y3 | 0,XDIR | 0,SCL(H) | WO3 | 1,WO | 0,OUT | ||||||||
48 | 2 | 26 | PA4 | X4/Y4 | 0,TxD(3) | 0,MOSI | WO4 | 0,WOA | ||||||||||
1 | 3 | 27 | PA5 | X5/Y5 | 0,RxD(3) | 0,MISO | WO5 | 0,WOB | ||||||||||
2 | 4 | 28 | PA6 | X6/Y6 | 0,XCK(3) | 0,SCK | 0,WOC | 0,OUT(3) | ||||||||||
3 | 5 | 1 | PA7 | CLKOUT | X7/Y7 |
0,OUT 1,OUT 2,OUT |
0,OUT 1,OUT | 0,XDIR(3) | 0,SS | 0,WOD | EVOUTA (3) | |||||||
4 | PB0 | X8/Y8 | 3,TxD | WO0(3) | WO0 | 4,IN0 | ||||||||||||
5 | PB1 | X9/Y9 | 3,RxD | WO1(3) | WO1 | 4,IN1 | ||||||||||||
6 | PB2 | X10/Y10 | 3,XCK | 1,SDA(H)(3) | WO2(3) | WO2 | EVOUTB | 4,IN2 | ||||||||||
7 | PB3 | X11/Y11 | 3,XDIR | 1,SCL(H)(3) | WO3(3) | WO3 | 4,OUT | |||||||||||
8 | PB4 | X12/Y12 | 3,TxD(3) | 1,MOSI(3) | WO4(3) | WO4 | 2,WO(3) | 0,WOA(3) | ||||||||||
9 | PB5 | X13/Y13 | 3,RxD(3) | 1,MISO(3) | WO5(3) | WO5 | 3,WO | 0,WOB(3) | ||||||||||
10 | 6 | 2 | PC0 | 1,TxD | 1,MOSI | WO0(3) | 2,WO | 1,IN0 | ||||||||||
11 | 7 | 3 | PC1 | 1,RxD | 1,MISO | WO1(3) | 3,WO(3) | 1,IN1 | ||||||||||
12 | 8 | 4 | PC2 | TWI | 1,XCK | 1,SCK | 0,SDA(H)(3) | WO2(3) | EVOUTC | 1,IN2 | ||||||||
13 | 9 | 5 | PC3 | TWI | 1,XDIR | 1,SS | 0,SCL(H)(3) | WO3(3) | 1,OUT | |||||||||
14 | VDD | |||||||||||||||||
15 | GND | |||||||||||||||||
16 | PC4 | 1,TxD(3) | 1,MOSI(3) | WO4(3) | WO0(3) | |||||||||||||
17 | PC5 | 1,RxD(3) | 1,MISO(3) | WO5(3) | WO1(3) | |||||||||||||
18 | PC6 |
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) | ||||||||||
19 | PC7 |
0,OUT(3) 1,OUT(3) | 1,XDIR(3) | 1,SS(3) | 0,SCL(C) | EVOUTC (3) | ||||||||||||
20 | 10 | 6 | PD0 | AIN0 | X16/Y16 |
0,AINN1 1,AINN1 2,AINN1 | WO0(3) | 2,IN0 | ||||||||||
21 | 11 | 7 | PD1 | AIN1 | X17/Y17 | 0,ZCIN | WO1(3) | 2,IN1 | ||||||||||
22 | 12 | 8 | PD2 | AIN2 | X18/Y18 |
0,AINP0 1,AINP0 2,AINP0 | WO2(3) | EVOUTD | 2,IN2 | |||||||||
23 | 13 | 9 | PD3 | AIN3 | X19/Y19 |
0,AINN0 1,AINP1 | WO3(3) | 2,OUT | ||||||||||
24 | 14 | 10 | PD4 | AIN4 | X20/Y20 |
1,AINP2 2,AINP1 | WO4(3) | |||||||||||
25 | 15 | 11 | PD5 | AIN5 | X21/Y21 | 1,AINN0 | WO5(3) | |||||||||||
26 | 16 | 12 | PD6 | AIN6 | X22/Y22 |
0,AINP3 1,AINP3 2,AINP3 | VOUT | 2,OUT(3) | ||||||||||
27 | 17 | 13 | PD7 | VREFA | AIN7 | X23/Y23 |
0,AINN2 1,AINN2 2,AINN0/AINN2 | EVOUTD (3) | ||||||||||
28 | 18 | 14 | AVDD | |||||||||||||||
29 | 19 | 15 | GND | |||||||||||||||
30 | PE0 | AIN8 | X24/Y24 | 0,AINP1 | 4,TxD | 0,MOSI(3) | WO0(3) | |||||||||||
31 | PE1 | AIN9 | X25/Y25 | 2,AINP2 | 4,RxD | 0,MISO(3) | WO1(3) | |||||||||||
32 | PE2 | AIN10 | X26/Y26 | 0,AINP2 | 4,XCK | 0,SCK(3) | WO2(3) | EVOUTE | ||||||||||
33 | PE3 | AIN11 | X27/Y27 | 1,ZCIN | 4,XDIR | 0,SS(3) | WO3(3) | |||||||||||
34 | 20 | 16 | PF0 | XTAL32K1 | AIN16(6) | X32/Y32 | 2,TxD | WO0(3) | 0,WOA(3) | 3,IN0 | ||||||||
35 | 21 | 17 | PF1 | XTAL32K2 | AIN17(6) | X33/Y33 | 2,RxD | WO1(3) | 0,WOB(3) | 3,IN1 | ||||||||
36 | 22 | PF2 | TWI | AIN18(6) | X34/Y34 | 2,XCK | 1,SDA(H) | WO2 (3) | 0,WOC (3) | EVOUTF | 3,IN2 | |||||||
37 | 23 | PF3 | TWI | AIN19(6) | X35/Y35 | 2, XDIR | 1,SCL(H) | WO3 (3) | 0,WOD (3) | 3,OUT | ||||||||
38 | 24 | PF4 | AIN20(6) | X36/Y36 | 2, TxD (3) | WO4 (3) | 0,WO (3) | |||||||||||
39 | 25 | PF5 | AIN21(6) | X37Y37 | 2, RxD (3) | WO5(3) | 1,WO(3) | |||||||||||
40 | 26 | 18 | PF6 (5) | RESET | ||||||||||||||
41 | 27 | 19 | UPDI | |||||||||||||||
42 | 28 | 20 | VDD | |||||||||||||||
43 | 29 | 21 | GND |
Note:
- 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.
- All pins can be used for external interrupt, where pins Px2 and Px6 of each port have full asynchronous detection.
- Alternate pin positions. For selecting the alternate positions, refer to the Port Multiplexer section.
- The TWI pins that can be used as host or client are marked H. Pins with client only are marked C.
- Input-only.
- Positive input-only.