4.9 PMD - Peripheral Module Disable

4.9.1 Introduction

The MPLAB® Code Configurator (MCC) Melody Peripheral Module Disable Peripheral Library (PLIBs) drivers generates APIs to support PMD-specific peripheral functionality on target MCUs.

The Peripheral Module Disable (PMD) module provides the ability to selectively enable or disable a peripheral. The PMD puts the disabled peripherals in the lowest possible power state, thus reducing the overall power consumption of the microcontroller.

4.9.2 Supported Device Families

PIC16F153xxPIC16F171xxPIC16F181xx
PIC16F183xxPIC16F184xxPIC12/16F184x
PIC16F188xxPIC16F191xxPIC18F-Q20
PIC18F-Q40PIC18F-Q41PIC18F-K83
PIC18F-Q10PIC18F-Q24PIC18F-Q71
PIC18F-K42PIC18F-Q43PIC18F-Q83
PIC18F-Q84PIC18F-K40

4.9.3 Required Included Files

#include "mcc_generated_files/system/src/system.c"
Note: The PMD API is implemented in system.c as an internal function called by System_Initialize().

4.9.4 Module Documentation

4.9.4.1 PMD

This file contains the API prototypes for the Peripheral Module Disable driver.

4.9.4.1.1 Module description

This file contains the API prototypes for the Peripheral Module Disable driver.

Version: Driver Version 2.0.1
Functions
  • void PMD_Initialize (void)

    Initializes the Peripheral Module Disable (PMDx) registers.

4.9.4.1.2 Function Documentation

PMD_Initialize()

void PMD_Initialize (void )

Initializes the Peripheral Module Disable (PMDx) registers.

Parameters:
None.
Returns:

None.

4.9.5 File Documentation

4.9.5.1 source/system.c File Reference

#include "../system.h"

4.9.5.1.1 Functions

  • void PMD_Initialize (void)

    Initializes the Peripheral Module Disable (PMDx) registers.

4.9.5.1.2 Detailed Description

The PMD API is implemented in this file as an internal function called by System_Initialize().