Datasheet

Table Of Contents
294
Atmel | SMART SAM D20 [DATASHEET]
Atmel-42129K–SAM-D20_datasheet–06/2014
21.8.4 Data Direction Toggle
This register allows the user to toggle the direction of one or more I/O pins, without doing a read-modify-write operation.
Changes in this register will also be reflected in the Data Direction (DIR), Data Direction Set (DIRSET) and Data Direction
Clear (DIRCLR) registers.
Name: DIRTGL
Offset: 0x0C+x*0x80 [x=0..1]
Reset: 0x00000000
Property: Write-Protected
z Bits 31:0 – DIRTGL[31:0]: Port Data Direction Toggle
0: The I/O pin direction is cleared.
1: The I/O pin direction is set.
Writing a zero to a bit has no effect.
Writing a one to a bit will toggle the corresponding bit in the DIR register, which reverses the direction of the I/O
pin.
Bit3130292827262524
DIRTGL[31:24]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000
Bit 2322212019181716
DIRTGL[23:16]
Access R/W R/W R/W R/W R/W R/W R/W R/W
Reset00000000
Bit151413121110 9 8
DIRTGL[15:8]
Access R/W R/W R/W R/W R/W R/W R/W R/W
Reset00000000
Bit76543210
DIRTGL[7:0]
Access R/W R/W R/W R/W R/W R/W R/W R/W
Reset00000000