Atmel SAM4L Xplained Pro Starter Kit Atmel ATSAM4L-XSTK ATSAM4L-XSTK Data Sheet

Product codes
ATSAM4L-XSTK
Page of 1204
540
42023E–SAM–07/2013
ATSAM4L8/L4/L2
23.4
I/O Lines Description
23.5
Product Dependencies
In order to use this module, other parts of the system must be configured correctly, as described
below.
23.5.1
Power Management
If the CPU enters a sleep mode that disables clocks used by the GPIO, the GPIO will stop func-
tioning and resume operation after the system wakes up from sleep mode.
If a peripheral function is configured for a GPIO pin, the peripheral will be able to control the
GPIO pin even if the GPIO clock is stopped.
23.5.2
Clocks
The GPIO is connected to a Peripheral Bus clock (CLK_GPIO). This clock is generated by the
Power Manager. CLK_GPIO is enabled at reset, and can be disabled by writing to the Power
Manager. CLK_GPIO must be enabled in order to access the configuration registers of the GPIO
or to use the GPIO interrupts. After configuring the GPIO, the CLK_GPIO can be disabled by
writing to the Power Manager if interrupts are not used.
23.5.3
Interrupts
The GPIO interrupt request lines are connected to the NVIC. Using the GPIO interrupts requires
the NVIC to be programmed first.
23.5.4
Peripheral Events
The GPIO peripheral events are connected via the Peripheral Event System. Refer to 
 for details.
23.5.5
Debug Operation
When an external debugger forces the CPU into debug mode, the GPIO continues normal oper-
ation. If the GPIO is configured in a way that requires it to be periodically serviced by the CPU
through interrupts or similar, improper operation or data loss may result during debugging.
Pin Name
Description
Type
GPIOn
GPIO pin n
Digital