20.2 Enabling Peripherals
Peripheral Module Disable (PMD) register bits control the operation of individual
peripherals on the device. When a peripheral’s associated PMD bit is zero
(0
), the peripheral is enabled and operates as programmed. However,
when the associated PMD bit is one (1
), the peripheral logic, memory
map and SFR bits are completely removed from visibility and the peripheral is held in
Reset. This disabled state provides for the lowest power state of the peripheral.
Before a peripheral may be configured or used, it must be enabled by clearing the corresponding PMD register bit.
- Disabling a peripheral while its
ON bit is zero (
0
) results in undefined behavior of the external interface. - For bus initiators, software must
verify the module is not busy after setting the ON bit to zero
(
0
) before disabling it. - Setting the PMD bit when there is a pending interrupt results in undefined behavior. Therefore, all Interrupt Flags must be cleared prior to setting the associated PMD.