Data Sheet
397
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
22.8.8 Data Output Value Toggle
This register allows the user to toggle the drive level of one or more output I/O pins, without doing a read-modify-write
operation. Changes in this register will also be reflected in the Data Output Value (OUT), Data Output Value Set
(OUTSET) and Data Output Value Clear (OUTCLR) registers.
Name: OUTTGL
Offset: 0x1C+x*0x80 [x=0..2]
Reset: 0x00000000
Property: Write-Protected
z Bits 31:0 – OUTTGL[31:0]: Port Data Output Value Toggle
0: The I/O pin output is driven low.
1: The I/O pin output is driven high.
Writing a zero to a bit has no effect.
Writing a one to a bit will toggle the corresponding bit in the OUT register, which inverts the output drive level for
I/O pins configured as outputs via the Data Direction register (DIR). For pins configured as inputs via the Data
Direction register (DIR) and with pull enabled via the Pull Enable register (PULLEN), these bits will toggle the input
pull direction.
Bit 3130292827262524
OUTTGL[31:24]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000
Bit 2322212019181716
OUTTGL[23:16]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000
Bit 151413121110 9 8
OUTTGL[15:8]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000
Bit 76543210
OUTTGL[7:0]
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000000