26
8068C–AVR–06/08
XMEGA A3
14. I/O Ports
14.1
Features
•
Selectable input and output configuration for each pin individually
•
Flexible pin configuration through dedicated Pin Configuration Register
•
Synchronous and/or asynchronous input sensing with port interrupts and events
– Sense both edges
– Sense rising edges
– Sense falling edges
– Sense low level
•
Asynchronous wake-up from all input sensing configurations
•
Two port interrupts with flexible pin masking
•
Highly configurable output driver and pull settings:
– Totem-pole
– Pull-up/-down
– Wired-AND
– Wired-OR
– Bus-keeper
– Inverted I/O
•
Optional Slew rate control
•
Configuration of multiple pins in a single operation
•
Read-Modify-Write (RMW) support
•
Toggle/clear/set registers for Output and Direction registers
•
Clock output on port pin
•
Event Channel 7 output on port pin
•
Mapping of port registers (virtual ports) into bit accessible I/O memory space
14.2
Overview
The XMEGA A3 devices have flexible General Purpose I/O Ports. A port consists of up to 8 pins,
ranging from pin 0 to pin 7. The ports implement several functions, including synchronous/asyn-
chronous input sensing, pin change interrupts and configurable output settings. All functions are
individual per pin, but several pins may be configured in a single operation.
14.3
I/O configuration
All port pins (Pn) have programmable output configuration. In addition, all port pins have an
inverted I/O function. For an input, this means inverting the signal between the port pin and the
pin register. For an output, this means inverting the output signal between the port register and
the port pin. The inverted I/O function can be used also when the pin is used for alternate func-
tions. The port pins also have configurable slew rate limitation to reduce electromagnetic
emission.