154
8331B–AVR–03/12
Atmel AVR XMEGA AU
• Bit 7:0 – DIRTGL[7:0]: Port Data Direction Toggle
This register can be used instead of a read-modify-write to toggle the direction of individual pins.
Writing a one to a bit will toggle the corresponding bit in the DIR register. Reading this register
will return the value of the DIR register.
13.13.5
OUT – Data Output Value
• Bit 7:0 – OUT[7:0]: Port Data Output value
This register sets the data output value for the individual pins of the port. If OUTn is written to
one, pin n is driven high. If OUTn is written to zero, pin n is driven low. For this setting to have
any effect, the pin direction must be set as output.
13.13.6
OUTSET – Data Output Value Set register
• Bit 7:0 – OUTSET[7:0]: Data Output Value Set
This register can be used instead of a read-modify-write to set the output value of individual pins
to one. Writing a one to a bit will set the corresponding bit in the OUT register. Reading this reg-
ister will return the value in the OUT register.
13.13.7
OUTCLR – Data Output Value Clear Register
• Bit 7:0 – OUTCLR[7:0]: Data Output Value Clear
This register can be used instead of a read-modify-write to set the output value of individual pins
to zero. Writing a one to a bit will clear the corresponding bit in the OUT register. Reading this
register will return the value in the OUT register.
Bit
7
6
5
4
3
2
1
0
OUT[7:0]
OUT
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
OUTSET[7:0]
OUTSET
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0
Bit
7
6
5
4
3
2
1
0
OUTCLR[7:0]
OUTCLR
Read/Write
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial Value
0
0
0
0
0
0
0
0