Academic Program

Direct & Indirect Register Addressing

Direct & Indirect Register Addressing

Direct Addressing Registers

cr-direct.png

  BSR (Bank Select Register)

bsr-register.png

The lower five bits of the BSR contain the bank number (0-31) of the active data bank. Information explaining how the BSR is used can be found in the Direct Memory Addressing section of the PIC16F1xxx tutorial.
 
PCL and PCLATH Registers

These registers are used when writing to or reading from the 15-Bit Program Counter. Information on the use of PCL and PCLATH is explained in the Program Memory section of the PIC16F1xxx tutorial.


Indirect Addressing Registers

cr-indirect.png

 

INDF0FSR0LFSR0H,
INDF1FSR1LFSR1H

These six registers control the two indirect addressing channels on the MCU. The details of using these registers are provided in the Indirect Addressing section of the PIC16F1xxx tutorial.