Data Sheet

381
Atmel | SMART SAM D21 [DATASHEET]
Atmel-42181G–SAM-D21_Datasheet–09/2015
22.5.2 Power Management
During reset, all PORT lines are configured as inputs with input buffers, output buffers and pull disabled.
If the PORT peripheral is shut down, the latches contained in the I/O block will retain their current configuration, such as
the output value and pull settings. However, the PORT configuration registers and input synchronizers will lose their
contents, and these will not be restored when PORT is powered up again. The user must, therefore, reconfigure the
PORT peripheral at power up to ensure it is in a well-defined state before use.
The PORT will continue to operate in any sleep mode where the selected module source clock is running.
22.5.3 Clocks
The PORT bus clock (CLK_PORT_APB) can be enabled and disabled in the Power Manager, and the default state of
CLK_PORT_APB can be found in the Peripheral Clock Masking section in the “PM – Power Manager” on page 117.
The PORT is fed by two different clocks: a CPU main clock, which allows the CPU to access the PORT through the low-
latency CPU local bus (IOBUS), and an APB clock, which is a divided clock of the CPU main clock and allows the CPU to
access the PORT registers through the high-speed matrix and the AHB/APB bridge.
IOBUS accesses have priority over APB accesses. The latter must insert wait states in the event of concurrent PORT
accesses.
The PORT input synchronizers use the CPU main clock so that the resynchronization delay is minimized with respect to
the APB clock.
22.5.4 DMA
Not applicable.
22.5.5 Interrupts
Not applicable.
22.5.6 Events
Not applicable.
22.5.7 Debug Operation
When the CPU is halted in debug mode, the PORT continues normal operation. If the PORT 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.
22.5.8 Register Access Protection
All registers with write-access are optionally write-protected by the Peripheral Access Controller (PAC).
Write-protection is denoted by the Write-Protected property in the register description.
When the CPU is halted in debug mode, all write-protection is automatically disabled.
Write-protection does not apply for accesses through an external debugger. Refer to “PAC – Peripheral Access
Controller” on page 41 for details.
22.5.9 Analog Connections
Analog functions are connected directly between the analog blocks and the I/O pins using analog buses. However,
selecting an analog peripheral function for a given pin will disable the corresponding digital features of the pin.
22.5.10 CPU Local Bus
The CPU local bus (IOBUS) is an interface that connects the CPU directly to the PORT. It is a single-cycle bus interface,
and does not support wait states. It supports byte, half word and word sizes.