Tutorial 7: Using Register Banking

The PIC16C7X family have 2 Banks of registers. Access to the Register Banks is determined by the STATUS Bank select bits. RP0 STATUS<5> where BANK0 is selected with RP0 = 0 and BANK1 is selected when RP0= 1. Direct and Indirect register access is demonstrated.

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

Filename Version Description
tut7.pjt 1.0 MPLAB Project
tut7.asm 1.0 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 tut7.vbb and press RUN.

Code Walk Through

Features Demonstrated

TRISB/PORTB

Register Banking

Indirect Addressing

Direct Addressing

Components Used

PIC16C71

PIC16C715

LED8