16.3.4 Sleep Mode Operation
With the exception of interrupts and input synchronization, all pin configurations are independent of sleep mode. Peripherals connected to the Ports can be affected by sleep modes, described in the respective peripherals' documentation.
The PORT peripheral will always use the Main Clock. Input synchronization will halt when this clock stops.