5.3.2 9-byte Config Bits Registers

5.3.2.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.3.2.2 Supported Device Families

PIC18F-K42

5.3.2.3 Required Header Files:

#include "mcc_generated_files/system/config_bits.h"

5.3.2.4 Module Documentation

5.3.2.4.1 CONFIGBITS Driver

This file contains the API prototypes and other datatypes for the Configuration Bits driver.

Module description

This file contains the API prototypes and other datatypes for the Configuration Bits driver.

Version: Driver Version 1.0.1 Package Version 1.0.4

5.3.2.4.2 System Driver

This is the generated header file for the System driver.

Module description

This is the generated header file for the System driver.

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

    Initializes the system module. This is called only once before calling other APIs.

Function Documentation

SYSTEM_Initialize()

void SYSTEM_Initialize (void )

Initializes the system module. This is called only once before calling other APIs.

Parameters:
None.
Returns:

None.

5.3.2.5 File Documentation

5.3.2.5.1 source/source-file/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.4

5.3.2.5.2 source/source-file/config_bits.h File Reference

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

Detailed Description

Configuration Bits Generated Driver Header File

5.3.2.5.3 source/source-file/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 is called only once 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.2 Package Version 1.0.4

5.3.2.5.4 source/source-file/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 is called only once before calling other APIs.

Detailed Description

System Driver Header File