Tutorial 7: Using Program Paging to make long calls

To access program memory above 512 bytes, the paging bits PA0 STATUS<4> and PA1 STATUS<5> need to be manipulated. Only the PIC16C56 (1K) and PIC16C57(2K) have greater than 512 bytes of program memory space. The tutorial demonstrates the manipulation of the paging bits to make long calls.

Download FEATURE5X_Tutorial7.zip and unzip into folder <your path>\Tutorial 7

Filename Version Description
tut7.pjt 1.0 MPLAB Project
tut7.asm 1.0 PIC16C5X Assembler code
tut7.hex 1.0 Precompiled HEX
tut7.lst 1.0 Precompiled LST
tut7.vbb 1.0 Virtual Breadboard simulation

Running the Simulation

Open tut6.vbb and press RUN.

Code Walk Through

Features Demonstrated

TRISB/PORTB

Paging

Long Calls

Components Used

PIC16C54

PIC16C55

PIC16C56

PIC16C57

LED8