7.1 Multiplexed Signals

Each pin is by default controlled by the PORT as a general purpose I/O and alternatively it can be assigned to one of the peripheral functions A, B, C, D, E, F, G or H. To enable a peripheral function on a pin, the Peripheral Multiplexer Enable bit in the Pin Configuration register corresponding to that pin (PINCFGn.PMUXEN, n = 0-31) in the PORT must be written to one. The selection of peripheral function A to H is done by writing to the Peripheral Multiplexing Odd and Even bits in the Peripheral Multiplexing register (PMUXn.PMUXE/O) in the PORT.

This table describes the peripheral signals multiplexed to the PORT I/O pins.

Table 7-1.  PORT Function Multiplexing for SAM D21 A/B/C/D Variant Devices and SAM DA1 A/B Variant Devices
Pin(1)I/O PinSupplyAB(2)(3)CDEFGH
SAMD2xESAMD2xGSAMD2xJEICREFADCACPTCDACSERCOM(2)(3)SERCOM-ALT

TC(4)

/TCC

TCCCOM

AC/

GCLK

111PA00VDDANA EXTINT[0]SERCOM1/
PAD[0]TCC2/WO[0]
222PA01VDDANAEXTINT[1]SERCOM1/
PAD[1]TCC2/WO[1]
333PA02VDDANAEXTINT[2]AIN[0]Y[0]VOUT

TCC3/

WO[0]

444PA03VDDANAEXTINT[3]ADC/VREFA
DAC/VREFAAIN[1]Y[1]

TCC3/

WO[1]

5PB04VDDANAEXTINT[4]AIN[12]Y[10]
6PB05VDDANAEXTINT[5]AIN[13]Y[11]
9PB06VDDANAEXTINT[6]AIN[14]Y[12]
10PB07VDDANAEXTINT[7]AIN[15]Y[13]
711PB08VDDANAEXTINT[8]AIN[2]Y[14]SERCOM4/
PAD[0]TC4/WO[0]

TCC3/

WO[6]

812PB09VDDANAEXTINT[9]AIN[3]Y[15]SERCOM4/
PAD[1]TC4/WO[1]

TCC3/

WO[7]

5913PA04VDDANAEXTINT[4]ADC/VREFBAIN[4]AIN[0]Y[2]SERCOM0/
PAD[0]TCC0/WO[0]

TCC3/

WO[2]

61014PA05VDDANAEXTINT[5]AIN[5]AIN[1]Y[3]SERCOM0/
PAD[1]TCC0/WO[1]

TCC3/

WO[3]

71115PA06VDDANAEXTINT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6)VDDIOEXTINT[12]SERCOM3/
PAD[2]SERCOM5/
PAD[2]TC5/WO[0]TCC1/
WO[2]USB/DM
243446PA25(6)VDDIOEXTINT[13]SERCOM3/
PAD[3]SERCOM5/
PAD[3]TC5/WO[1]TCC1/
WO[3]USB/DP
3749PB22VDDIOEXTINT[6]SERCOM5/
PAD[2]TC7/WO[0]

TCC3/

WO[0]

GCLK_IO[0]
3850PB23VDDIOEXTINT[7]SERCOM5/
PAD[3]TC7/WO[1]

TCC3/

WO[1]

GCLK_IO[1]
253951PA27VDDIOEXTINT[15]

TCC3/

WO[6]

GCLK_IO[0]
274153PA28VDDIOEXTINT[8]

TCC3/

WO[7]

GCLK_IO[0]
314557PA30VDDIOEXTINT[10]SERCOM1/
PAD[2]TCC1/WO[0]

TCC3/

WO[4]

SWCLKGCLK_IO[0]
324658PA31VDDIOEXTINT[11]SERCOM1/
PAD[3]TCC1/WO[1]

TCC3/

WO[5]

SWDIO(5)
59PB30VDDIOEXTINT[14]SERCOM5/
PAD[0]TCC0/WO[0]TCC1/
WO[2]
60PB31VDDIOEXTINT[15]SERCOM5/
PAD[1]TCC0/WO[1]TCC1/
WO[3]
61PB00VDDANAEXTINT[0]AIN[8]Y[6]SERCOM5/
PAD[2]TC7/WO[0]
62PB01VDDANAEXTINT[1]AIN[9]Y[7]SERCOM5/
PAD[3]TC7/WO[1]
4763PB02VDDANAEXTINT[2]AIN[10]Y[8]SERCOM5/
PAD[0]TC6/WO[0]

TCC3/

WO[2]

4864PB03VDDANAEXTINT[3]AIN[11]Y[9]SERCOM5/
PAD[1]TC6/WO[1]

TCC3/

WO[3]

  1. Use the SAMD21J pinout muxing for WLCSP45 package.
  2. All analog pin functions are on peripheral function B. Peripheral function B must be selected to disable the digital control of the pin.
  3. Only some pins can be used in SERCOM I2C mode. Refer to SERCOM I2C Pins.
  4. TC6 and TC7 are not supported on the SAM D21E. Refer to Configuration Summary for details.
  5. This function is only activated in the presence of a debugger.
  6. If the PA24 and PA25 pins are not connected, it is recommended to enable a pull-up on PA24 and PA25 through input GPIO mode. The aim is to avoid an eventually extract power consumption (<1mA) due to a not stable level on pad. The port PA24 and PA25 doesn't have Drive Strength option.
  7. SERCOM4 and SERCOM5 are not supported in SAMD21ExxA, SAMD21E15(B/BU/CU/L), SAMD21E16(B/BU/CU/L) and SAMD21E17(D/DU/L). Refer to the Configuration Summary for details.
  8. TCC3 is only supported in SAMD21x17D. Refer to the Configuration Summary for details.
Table 7-2.  PORT Function Multiplexing for L Variant Devices
PinI/O PinSupplyAB(1)(2)CDEFGH
SAMD21ExLSAMD21GxLEICREFADCACAC1DACSERCOM(1)(2)SERCOM-ALT(7)

TC(3)

/TCC

TCCCOM

AC/

GCLK

11PA02VDDANAEXTINT[2]AIN[0]VOUT

TCC3/

WO[0]

22PA03VDDANAEXTINT[3]DAC/VREFAAIN[1]

TCC3/

WO[1]

33PB04VDDANAEXTINT[4]AIN[12]AIN[0]
44PB05VDDANAEXTINT[5]AIN[13]AIN[1]
7PB08VDDANAEXTINT[8]AIN[2]SERCOM4/
PAD[0]TC4/WO[0]

TCC3/

WO[6]

8PB09VDDANAEXTINT[9]AIN[3]SERCOM4/
PAD[1]TC4/WO[1]

TCC3/

WO[7]

59PA04VDDANAEXTINT[4]ADC/VREFBAIN[4]AIN[0]SERCOM0/
PAD[0]TCC0/WO[0]

TCC3/

WO[2]

610PA05VDDANAEXTINT[5]AIN[5]AIN[1]SERCOM0/
PAD[1]TCC0/WO[1]

TCC3/

WO[3]

711PA06VDDANAEXTINT[6]AIN[6]AIN[2]SERCOM0/
PAD[2]TCC1/WO[0]

TCC3/

WO[4]

812PA07VDDANAEXTINT[7]AIN[7]AIN[3]SERCOM0/
PAD[3]TCC1/WO[1]

TCC3/

WO[5]

1113PA08VDDIONMIAIN[16]SERCOM0/
PAD[0]SERCOM2/
PAD[0]TCC0/WO[0]TCC1/
WO[2]
1214PA09VDDIOEXTINT[9]AIN[17]SERCOM0/
PAD[1]SERCOM2/
PAD[1]TCC0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AD[3]SERCOM3/
PAD[3]TC7/WO[1]TCC0/
WO[7]GCLK_IO[5]
2131PA22VDDIOEXTINT[6]SERCOM3/
PAD[0]SERCOM5/
PAD[0]TC4/WO[0]TCC0/
WO[4]GCLK_IO[6]
2232PA23VDDIOEXTINT[7]SERCOM3/
PAD[1]SERCOM5/
PAD[1]TC4/WO[1]TCC0/
WO[5]GCLK_IO[7]
2333PA24(5)VDDIOEXTINT[12]SERCOM3/
PAD[2]SERCOM5/
PAD[2]TC5/WO[0]TCC1/
WO[2]AC1/CMP[0]
2434PA25(5)VDDIOEXTINT[13]SERCOM3/
PAD[3]SERCOM5/
PAD[3]TC5/WO[1]TCC1/
WO[3]AC1/CMP[1]
37PA27VDDIOEXTINT[15]

TCC3/

WO[6]

GCLK_IO[0]
39PA28VDDIOEXTINT[8]

TCC3/

WO[7]

GCLK_IO[0]
2943PA30VDDIOEXTINT[10]SERCOM1/
PAD[2]TCC1/WO[0]

TCC3/

WO[4]

SWCLKGCLK_IO[0]
3044PA31VDDIOEXTINT[11]SERCOM1/
PAD[3]TCC1/WO[1]

TCC3/

WO[5]

SWDIO(5)
45PB00AIN[8]
46PB01AIN[9]
3147PB02VDDANAEXTINT[2]AIN[10]AIN[2]SERCOM5/
PAD[0]TC6/WO[0](6)

TCC3/

WO[2]

3248PB03VDDANAEXTINT[3]AIN[11]AIN[3]SERCOM5/
PAD[1]TC6/WO[1](6)

TCC3/

WO[3]

  1. All analog pin functions are on peripheral function B. Peripheral function B must be selected to disable the digital control of the pin.
  2. Only some pins can be used in SERCOM I2C mode.
  3. TC6 and TC7 are not supported on the SAM D21ExL and SAM D21GxL devices. Refer to Configuration Summary for details.
  4. This function is only activated in the presence of a debugger.
  5. If the PA24 and PA25 pins are not connected, it is recommended to enable a pull-up on PA24 and PA25 through input GPIO mode. The aim is to avoid an eventually extract power consumption (<1mA) due to a not stable level on pad. The port PA24 and PA25 doesn't have Drive Strength option.
  6. TC6 is only available on the SAM D21GxL and not the SAM D21ExL.
  7. SERCOM4 and SERCOM5 are not supported on the SAM D21E devices. Refer to Configuration Summary for details.
  8. TCC3 is only supported in SAMD21x17L devices. Refer to the Configuration Summary for details.