27.6.11 Write Configuration
This write-only register is used to configure several pins simultaneously with the same configuration and peripheral multiplexing.
To avoid side effect from non-atomic access, 8- or 16-bit writes to this register will have no effect.
Reading this register always returns ‘0’.
| Name: | WRCONFIG |
| Offset: | 0x28 |
| Reset: | 0x00000000 |
| Property: | PAC Write-Protection |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| HWSEL | WRPINCFG | WRPMUX | PMUX[3:0] | ||||||
| Access | W | W | W | W | W | W | W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| SLEWLIM | PULLEN | INEN | PMUXEN | ||||||
| Access | W | W | W | W | |||||
| Reset | 0 | 0 | 0 | 0 |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| PINMASK[15:8] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| PINMASK[7:0] | |||||||||
| Access | W | W | W | W | W | W | W | W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Bit 31 – HWSEL Half-Word Select
This bit selects the half-word field of a 32-pin PORT group to be reconfigured in the atomic write operation.
| Value | Description |
|---|---|
| 0 | The lower 16 pins of the PORT group will be configured |
| 1 | The upper 16 pins of the PORT group will be configured |
Bit 30 – WRPINCFG Write PINCFG
This bit determines whether the atomic write operation will update the Pin Configuration register (PINCFG[n]) for all pins selected by the WRCONFIG.PINMASK and WRCONFIG.HWSEL bits.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit updates the configuration of the selected pins with the values written toWRCONFIG.SLEWLIM, WRCONFIG.PULLEN, WRCONFIG.INEN, WRCONFIG.PMUXEN, and WRCONFIG.PINMASK values.
Bit 28 – WRPMUX Write PMUX
This bit determines whether the atomic write operation will update the Peripheral Multiplexing register (PMUX[m]) for all pins selected by the WRCONFIG.PINMASK and WRCONFIG.HWSEL bits.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit updates the pin multiplexer configuration of the selected pins with the written WRCONFIG.PMUX value.
Bits 27:24 – PMUX[3:0] Peripheral Multiplexing
These bits determine the new value written to the Peripheral Multiplexing for Odd-Numbered Pin (PMUX[m].PMUXO) or Peripheral Multiplexing for Even-Numbered Pin (PMUX[m].PMUXE) for all pins selected by the WRCONFIG.PINMASK and WRCONFIG.HWSEL bits, when the WRCONFIG.WRPMUX bit is set.
| Value | Name | Description |
|---|---|---|
| 0x00 | A | Peripheral function A selected |
| 0x01 | B | Peripheral function B selected |
| 0x02 | C | Peripheral function C selected |
| 0x03 | D | Peripheral function D selected |
| 0x04 | E | Peripheral function E selected |
| 0x05 | F | Peripheral function F selected |
| 0x06 | G | Peripheral function G selected |
| 0x07 | H | Peripheral function H selected |
| 0x08 | I | Peripheral function I selected |
| 0x09 | J | Peripheral function J selected |
| Other | — | Reserved |
Bit 20 – SLEWLIM Output Driver Slew Rate Limit Enable
| Value | Description |
|---|---|
| 0 | Output Driver Slew Rate Limit is disabled |
| 1 | Output Driver Slew Rate Limit is enabled |
Bit 18 – PULLEN Pull Enable
| Value | Description |
|---|---|
| 0 | The internal pull resistor is disabled, and the input is in a high-impedance configuration |
| 1 | The internal pull resistor is enabled, and the input is driven to a defined logic level in the absence of external input |
Bit 17 – INEN Input Enable
| Value | Description |
|---|---|
| 0 | The input buffer for the I/O pin is disabled, and the input value will not be sampled |
| 1 | The input buffer for the I/O pin is enabled, and the input value will be sampled when required |
Bit 16 – PMUXEN Peripheral Multiplexer Enable
| Value | Description |
|---|---|
| 0 | The peripheral multiplexer selection is disabled, and the PORT registers control the direction and output drive value |
| 1 | The peripheral multiplexer selection is enabled, and the selected peripheral function controls the direction and output drive value |
Bits 15:0 – PINMASK[15:0] Pin Mask for Multiple Pin Configuration
These bits select the pins to be configured within the half-word group selected by the WRCONFIG.HWSEL bit.
Writing a ‘0’ to a bit has no effect.
Writing a ‘1’ to a bit will update the configuration of the corresponding I/O pin in the half-word PORT group.
