PORTMUX Control for TWI and SPI
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
TWI0[1:0] | SPI0[1:0] | ||||||
Access | R/W | R/W | R/W | R/W | |||
Reset | 0 | 0 | 0 | 0 |
TWI 0 Communication
Write these bits to select alternative communication pins for TWI 0.
Value | Name | Description |
---|---|---|
0x0 | DEFAULT | SCL/SDA on PA[3:2], Client mode on PC[3:2] in dual TWI mode |
0x1 | ALT1 | SCL/SDA on PA[3:2], Client mode on PF[3:2] in dual TWI mode |
0x2 | ALT2 | SCL/SDA on PC[3:2], Client mode on PF[3:2] in dual TWI mode |
0x3 | - | Reserved |
SPI 0 Communication
Write these bits to select alternative communication pins for SPI 0.
Value | Name | Description |
---|---|---|
0x0 | DEFAULT | SPI on PA[7:4] |
0x1 | ALT1 | SPI on PC[3:0] |
0x2 | ALT2 | SPI on PE[3:0] |
0x3 | NONE | Not connected to any pins |