33.14.13 Peripheral Multiplexing
There are up to 16 Peripheral Multiplexing registers in each group, one for every set of two subsequent I/O lines. The m denotes the number of the set of I/O lines.
| Port PINCFGn.MUXEN Value | Port WRCONFIG.PMUX Value | Peripheral Function | Description |
|---|---|---|---|
| 0 | N/A | Port | Normal Port in /out functions (Pxy) |
| 1 | 00 | EIC / EIC_EXTINT(n) | External Interrupts |
| 1 | 01 | ADC / CMP | ADC and Analog Comparator |
| 1 | 03 | SERCOM(n) | SERCOMn (UART, I2C, SPI) |
| 1 | 04 | EBI | External Bus Interface |
| 1 | 05 | TCC WO(n) | Timer/Counter Controller |
| 1 | 06 | MLB | Media Local Bus |
| 1 | 07 | CAN(n) / SQI(n) | CAN, Serial Quad Interface |
| 1 | 08 | SDMMC | SD/MMC Host Controller (Memory Card Interface) |
| 1 | 09 | I2S / SWCLK, SWDIO, SWO, TRACE_CLK, TRACE_DATA[3:0] | I2S audio and, Debug and debug Trace |
| 1 | 0A | ETH | Ethernet |
| 1 | 0B | Only 2 alternate ETH signals | RX_CLK on PD12 and GTX_CLK on PD05 |
| 1 | 0C | GCLK | Controls GCLK_IO[7:2] |
| 1 | 0F | PTC | Peripheral Touch Controller |
|
Note: All undefined values of WRCONFIG.PMUX are reserved.
| |||
| Symbol | Description | Symbol | Description | Symbol | Description |
|---|---|---|---|---|---|
| R | Readable bit | HC | Cleared by Hardware | (Grey cell) | Unimplemented |
| W | Writable bit | HS | Set by Hardware | X | Bit is unknown at Reset |
| K | Write to clear | S | Software settable bit | — | — |
| Name: | PMUX |
| Offset: | 0x30 + n*0x01 [n=0..15] |
| Reset: | 0x00 |
| Property: | RW |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| PMUXO[3:0] | PMUXE[3:0] | ||||||||
| Access | RW | RW | RW | RW | RW | RW | RW | RW | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Bits 7:4 – PMUXO[3:0] Peripheral Multiplexing for Odd-Numbered Pin
These bits select the peripheral function for odd-numbered pins (2*n + 1) of a PORT group, if the corresponding PINCFGn.PMUXEN bit is '1'.
Not all possible values for this selection may be valid. For more details, refer to the Pinout section.
| Port PINCFGn.MUXEN Value | Port WRCONFIG.PMUX Value | Peripheral Feature | Peripheral Function | Description |
|---|---|---|---|---|
| 0 | N/A | Port | ---- | Normal Port in /out functions (Pxy) |
| 1 | 0x00 | EIC / EIC_EXTINT(n) | A | External Interrupts |
| 1 | 0x01 | ADC / CMP | B | ADC and Analog Comparator |
| 1 | 0x03 | SERCOM(n) | D | SERCOMn (UART, I2C, SPI) |
| 1 | 0x04 | EBI | E | External Bus Interface |
| 1 | 0x05 | TCC[9:0] WO(n) | F | Timer/Counter Controller |
| 1 | 0x02 | TCC[2] WO(n) | C | |
| 1 | 0x06 | MLB | G | Media Local Bus |
| 1 | 0x07 | CAN(n) / SQI(n) | H | CAN, Serial Quad Interface |
| 1 | 0x08 | SDMMC | I | SD/MMC Host Controller (Memory Card Interface) |
| 1 | 0x09 | I2S / SWCLK, SWDIO, SWO, TRACE_CLK, TRACE_DATA[3:0] | J | I2S audio and, Debug and debug Trace |
| 1 | 0x0A | ETH / GMAC | K | Ethernet |
| 1 | 0x0B |
Only 2 alternate ETH signals | L | RX_CLK on PD12 and GTX_CLK on PD05 |
| 1 | 0x0C | GCLK_IOn | M | Controls GCLK_IO[7:2] |
| --- | 0x0D | Reserved | --- | Reserved |
| --- | 0x0E | Reserved | --- | Reserved |
| 1 | 0x0F | PTC | P | Peripheral Touch Controller |
| Value | Name | Description |
|---|---|---|
| 0 | A | Peripheral function A selected |
| 1 | B | Peripheral function B selected |
| 3 | D | Peripheral function D selected |
| 5 | F | Peripheral function F selected |
| 7 | H | Peripheral function H selected |
| 8 | I | Peripheral function I selected |
| 10 | K | Peripheral function K selected |
| 15 | P | Peripheral function P selected |
Bits 3:0 – PMUXE[3:0] Peripheral Multiplexing for Even-Numbered Pin
These bits select the peripheral function for even-numbered pins (2*n) of a PORT group, if the corresponding PINCFGn.PMUXEN bit is '1'.
Not all possible values for this selection may be valid. For more details, refer to the Pinout.
| Port PINCFGn.MUXEN Value | Port WRCONFIG.PMUX Value | Peripheral Feature | Peripheral Function | Description |
|---|---|---|---|---|
| 0 | N/A | Port | ---- | Normal Port in /out functions (Pxy) |
| 1 | 0x00 | EIC / EIC_EXTINT(n) | A | External Interrupts |
| 1 | 0x01 | ADC / CMP | B | ADC and Analog Comparator |
| 1 | 0x03 | SERCOM(n) | D | SERCOMn (UART, I2C, SPI) |
| 1 | 0x04 | EBI | E | External Bus Interface |
| 1 | 0x05 | TCC[9:0] WO(n) | F | Timer/Counter Controller |
| 1 | 0x02 | TCC[2] WO(n) | C | |
| 1 | 0x06 | MLB | G | Media Local Bus |
| 1 | 0x07 | CAN(n) / SQI(n) | H | CAN, Serial Quad Interface |
| 1 | 0x08 | SDMMC | I | SD/MMC Host Controller (Memory Card Interface) |
| 1 | 0x09 | I2S / SWCLK, SWDIO, SWO, TRACE_CLK, TRACE_DATA[3:0] | J | I2S audio and, Debug and debug Trace |
| 1 | 0x0A | ETH / GMAC | K | Ethernet |
| 1 | 0x0B |
Only 2 alternate ETH signals | L | RX_CLK on PD12 and GTX_CLK on PD05 |
| 1 | 0x0C | GCLK_IOn | M | Controls GCLK_IO[7:2] |
| --- | 0x0D | Reserved | --- | Reserved |
| --- | 0x0E | Reserved | --- | Reserved |
| 1 | 0x0F | PTC | P | Peripheral Touch Controller |
| Value | Name | Description |
|---|---|---|
| 0 | A | Peripheral function A selected |
| 1 | B | Peripheral function B selected |
| 3 | D | Peripheral function D selected |
| 5 | F | Peripheral function F selected |
| 7 | H | Peripheral function H selected |
| 8 | I | Peripheral function I selected |
| 10 | K | Peripheral function K selected |
| 15 | P | Peripheral function P selected |
