159
8331B–AVR–03/12
Atmel AVR XMEGA AU
13.14 Register Descriptions – Port Configuration
13.14.1
MPCMASK – Multi-pin Configuration Mask register
• Bit 7:0 – MPCMASK[7:0]: Multi-pin Configuration Mask
The MPCMASK register enables configuration of several pins of a port at the same time. Writing
a one to bit n makes pin n part of the multi-pin configuration. When one or more bits in the MPC-
MASK register is set, writing any of the PINnCTRL registers will update only the PINnCTRL
registers matching the mask in the MPCMASK register for that port. The MPCMASK register is
automatically cleared after any PINnCTRL register is written.
13.14.2
VPCTRLA – Virtual Port-map Control register A
• Bit 7:4 – VP1MAP: Virtual Port 1 Mapping
These bits decide which ports should be mapped to Virtual Port 1. The registers DIR, OUT, IN,
and INTFLAGS will be mapped. Accessing the virtual port registers is equal to accessing the
actual port registers. See
for configuration.
• Bit 3:0 – VP0MAP: Virtual Port 0 Mapping
These bits decide which ports should be mapped to Virtual Port 0. The registers DIR, OUT, IN,
and INTFLAGS will be mapped. Accessing the virtual port registers is equal to accessing the
actual port registers. See
for configuration.
13.14.3
VPCTRLB – Virtual Port-map Control register B
• Bit 7:4 – VP3MAP: Virtual Port 3 Mapping
These bits decide which ports should be mapped to Virtual Port 3. The registers DIR, OUT, IN,
and INTFLAGS will be mapped. Accessing the virtual port registers is equal to accessing the
actual port registers. See
for configuration.
Bit
7
6
5
4
3
2
1
0
MPCMASK[7:0]
MPCMASK
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
VP1MAP[3:0]
VP0MAP[3:0]
VPCTRLA
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
VP3MAP[3:0]
VP2MAP[3:0]
VPCTRLB
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