Datasheet
PIC32MZ Embedded Connectivity with Floating Point Unit (EF) Family
DS60001320B-page 578 Preliminary 2015 Microchip Technology Inc.
33.3 Peripheral Module Disable
The Peripheral Module Disable (PMD) registers
provide a method to disable a peripheral module by
stopping all clock sources supplied to that module.
When a peripheral is disabled using the appropriate
PMD control bit, the peripheral is in a minimum power
consumption state. The control and status registers
associated with the peripheral are also disabled, so
writes to those registers do not have effect and read
values are invalid.
To disable a peripheral, the associated PMDx bit must
be set to ‘1’. To enable a peripheral, the associated
PMDx bit must be cleared (default). See Table 33-1 for
more information.
Note: Disabling a peripheral module while it’s
ON bit is set, may result in undefined
behavior. The ON bit for the associated
peripheral module must be cleared prior to
disable a module via the PMDx bits.
TABLE 33-1: PERIPHERAL MODULE DISABLE BITS AND LOCATIONS
(1)
Peripheral PMDx bit Name Register Name and Bit Location
ADC ADCMD PMD1<0>
Comparator Voltage Reference CVRMD PMD1<12>
Comparator 1 CMP1MD PMD2<0>
Comparator 2 CMP2MD PMD2<1>
Input Capture 1 IC1MD PMD3<0>
Input Capture 2 IC2MD PMD3<1>
Input Capture 3 IC3MD PMD3<2>
Input Capture 4 IC4MD PMD3<3>
Input Capture 5 IC5MD PMD3<4>
Input Capture 6 IC6MD PMD3<5>
Input Capture 7 IC7MD PMD3<6>
Input Capture 8 IC8MD PMD3<7>
Input Capture 9 IC9MD PMD3<8>
Output Compare 1 OC1MD PMD3<16>
Output Compare 2 OC2MD PMD3<17>
Output Compare 3 OC3MD PMD3<18>
Output Compare 4 OC4MD PMD3<19>
Output Compare 5 OC5MD PMD3<20>
Output Compare 6 OC6MD PMD3<21>
Output Compare 7 OC7MD PMD3<22>
Output Compare 8 OC8MD PMD3<23>
Output Compare 9 OC9MD PMD3<24>
Timer1 T1MD PMD4<0>
Timer2 T2MD PMD4<1>
Timer3 T3MD PMD4<2>
Timer4 T4MD PMD4<3>
Timer5 T5MD PMD4<4>
Timer6 T6MD PMD4<5>
Timer7 T7MD PMD4<6>
Timer8 T8MD PMD4<7>
Timer9 T9MD PMD4<8>
UART1 U1MD PMD5<0>
UART2 U2MD PMD5<1>
Note 1: Not all modules and associated PMDx bits are available on all devices. See TABLE 1: “PIC32MZ EF
Family Features” for the lists of available peripherals.
2: Module must not be busy after clearing the associated ON bit and prior to setting the USBMD bit.