Data Sheet
400
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
22.8.11 Write Configuration
This write-only register is used to configure several pins simultaneously with the same configuration and/or peripheral
multiplexing.
In order to avoid the side effect of non-atomic access, 8-bit or 16-bit writes to this register will have no effect. Reading this
register always returns zero.
Name: WRCONFIG
Offset: 0x28+x*0x80 [x=0..2]
Reset: 0x00000000
Property: Write-Protected
z Bit 31 – HWSEL: Half-Word Select
This bit selects the half-word field of a 32-pin group to be reconfigured in the atomic write operation.
0: The lower 16 pins of the PORT group will be configured.
1: The upper 16 pins of the PORT group will be configured.
This bit will always read as zero.
z Bit 30 – WRPINCFG: Write PINCFG
This bit determines whether the atomic write operation will update the Pin Configuration register (PINCFGy) or not
for all pins selected by the WRCONFIG.PINMASK and WRCONFIG.HWSEL bits.
0: The PINCFGy registers of the selected pins will not be updated.
1: The PINCFGy registers of the selected pins will be updated.
Writing a zero to this bit has no effect.
Bit 3130292827262524
HWSEL
WRPINCFG
WRPMUX PMUX[3:0]
AccessWWR WWWWW
Reset00000000
Bit 2322212019181716
DRVSTR PULLEN INEN PMUXEN
Access R W R R R W W W
Reset00000000
Bit 151413121110 9 8
PINMASK[15:8]
AccessWWWWWWWW
Reset00000000
Bit 76543210
PINMASK[7:0]
AccessWWWWWWWW
Reset00000000