5.2.1 2-byte Config Bits Registers

Configuration Registers with 2 Bytes

5.2.1.1 Introduction

The Configuration settings allow the user to select the oscillators, reset sources and memory protection from the several options available on the device. They are latched in place at the power-up and also after programming of the device.

5.2.1.2 Supported Device Families

PIC16(L)F184xPIC16(L)F182xPIC12(L)F182xPIC12(L)F184xPIC16(L)F193x
PIC16(L)F194xPIC16LF190xPIC16(L)F178xPIC16(L)F177xPIC16(L)F176x
PIC16(L)F170xPIC16(L)F171xPIC16LF15xPIC12(L)F157xPIC16(L)F157x
PIC16(L)F150xPIC12(L)F150xPIC12LF156xPIC16LF156xPIC16(L)F152x
PIC16(L)F151xPIC16(L)F145x

5.2.1.3 Required Header Files:

#include "mcc_generated_files/system/config_bits.h"

5.2.1.4 Module Documentation

5.2.1.4.1 CONFIGBITS Driver

This file contains the API prototype for the Configuration Bits driver.

Module description

This file contains the API prototype for the Configuration Bits driver.

Version: Driver Version 1.0.1 Package Version 1.0.2

5.2.1.4.2 System Driver

This file contains the API prototype for the System Driver.

Module description

This file contains the API prototype for the System Driver.

Version: Driver Version 1.0.1 Package Version 1.0.2
Functions
  • void SYSTEM_Initialize (void)

    Initializes the system module. This routine is called only once during system initialization, before calling other APIs.

Function Documentation

SYSTEM_Initialize()

void SYSTEM_Initialize (void )

Initializes the system module. This routine is called only once during system initialization, before calling other APIs.

Parameters:
None.
Returns:

None.

5.2.1.5 File Documentation

5.2.1.5.1 source/source-files/config_bits.c File Reference

This file contains the API implementation for the Device Configuration Bits driver.

Detailed Description

This file contains the API implementation for the Device Configuration Bits driver.

CONFIGURATION BITS Generated Driver Source File

Version: Driver Version 1.0.1 Package Version 1.0.2

5.2.1.5.2 source/source-files/config_bits.h File Reference

#include "../system/clock.h"

Detailed Description

CONFIGURATION BITS Generated Driver Header File

5.2.1.5.3 source/source-files/system.c File Reference

This file contains the API implementation for the System Driver.

#include "../system.h"

Functions

  • void SYSTEM_Initialize (void)

    Initializes the system module. This routine is called only once during system initialization, before calling other APIs.

Detailed Description

This file contains the API implementation for the System Driver.

System Driver Source File

Version: Driver Version 1.0.1 Package Version 1.0.2

5.2.1.5.4 source/source-files/system.h File Reference

#include <xc.h>
#include <stdint.h>
#include <stdbool.h>
#include "config_bits.h"
#include "../system/clock.h"
#include "../system/pins.h"
#include "../system/interrupt.h"

Functions

  • void SYSTEM_Initialize (void)

    Initializes the system module. This routine is called only once during system initialization, before calling other APIs.

Detailed Description

System Driver Header File