4.4 CPU - Central Processing Unit

4.4.1 Introduction

The MPLAB® Code Configurator (MCC) Melody Central Processing Unit (CPU) system driver generates APIs to support CPU-specific peripheral functionality on PIC16 and PIC18 target MCUs.

This module supports the following functions:

  • System arbitration which decides memory access allocation depending on user priorities
  • Vectored interrupt capability with automatic two-level deep context saving
  • 127-level deep hardware stack with overflow and underflow Reset capabilities
  • Support Direct, Indirect, and Relative Addressing modes
  • 8x8 hardware multiplier

4.4.2 Supported Device Families

PIC18F-Q40PIC18F-Q41PIC18F-Q43PIC18F-Q71
PIC18F-Q83PIC18F-Q84PIC18(L)F-K42PIC18(L)F-K83
PIC18F-Q20PIC18F-Q24

4.4.3 Required Included Files

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

4.4.4 Module Documentation

4.4.4.1 CPU

This file contains the API prototypes for the CPU system driver.

4.4.4.1.1 Module description

This file contains the API prototypes for the CPU system driver.

Version: Driver Version 2.0.1

4.4.4.1.2 Function Documentation

CPU_Initialize()

void CPU_Initialize (void )

Initializes the CPU registers.

Parameters:
None.
Returns:

None.

4.4.5 File Documentation

4.4.5.1 source/system.c File Reference

#include "../system.h"

4.4.5.1.1 Functions

4.4.5.1.2 Detailed Description

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