Atmel Evaluation Kit for AT32uC3A0512, 32-Bit AVR Microcontroller Atmel ATEVK1105 ATEVK1105 Data Sheet

Product codes
ATEVK1105
Page of 826
171
AT32UC3A
Number of I/O pins.
Functions implemented on each pin.
Peripheral function(s) multiplexed on each I/O pin.
Reset state of registers.
22.3.2
Interrupt Lines
The GPIO interrupt lines are connected to the interrupt controller. Using the GPIO interrupt
requires the interrupt controller to be programmed first.
22.3.3
Power and Clock Management
The clock for the GPIO is controlled by the power manager. The programmer must ensure that
the GPIO clock is enabled in the power manager before using the GPIO. The clock must be
enabled in order to access the configuration registers of the GPIO and when interrupts are
enabled. After configuring the GPIO, the clock can be disabled if interrupts are not enabled.
22.4
Functional Description
The GPIO controls the I/O lines of the microcontroller. The control logic associated with each pin
is represented in the figure below:
Figure 22-1.
Overview of the GPIO pad connections
22.4.1
Pull-up Resistor Control
Each I/O line is designed with an embedded pull-up resistor. The pull-up resistor can be enabled
or disabled by accessing the corresponding bit in PUER (Pull-up Enable Register). Control of the
pull-up resistor is possible whether an I/O line is controlled by a peripheral or the GPIO.
0
1
GPIO_ODMER
0
1
0
1
GPIO_GPER
1
0
GPIO_OVR
GPIO_ODER
GPIO_PMR1
Periph. A output enable
Periph. B output enable
Periph. C output enable
Periph. D output enable
Periph. A output data
Periph. B output data
Periph. C output data
Periph. D output data
PAD
GPIO_PUER
Periph. A input data
Periph. B input data
Periph. C input data
Periph. D input data
GPIO_PVR
0
1
Glitch Filter
GPIO_GFER
Edge Detector
1
0
Interrupt Request
GPIO_IMR1
GPIO_PMR0
GPIO_IMR0
GPIO_IER
32058K
AVR32-01/12