PIC16C505
4.2 Data Memory Organization
Data memory is composed of registers or bytes of
RAM. Therefore, data memory for a device is specified
by its register file. The register file is divided into two
functional groups: Special Function Registers and
General Purpose Registers.
The Special Function Registers include the TMR0
register, the Program Counter (PCL), the Status
Register, the I/O registers (ports) and the File Select
Register (FSR). In addition, Special Function
Registers are used to control the I/O port configuration
and prescaler options.
The General Purpose Registers are used for data and
control information under command of the instructions.
For the PIC16C505, the register file is composed of 8
Special Function Registers, 24 General Purpose
Registers and 48 General Purpose Registers that may
be addressed using a banking scheme (Figure 4-2).
4.2.1 GENERAL PURPOSE REGISTER FILE
The General Purpose Register file is accessed, either
directly or indirectly, through the File Select Register
FSR (Section 4.8).
FIGURE 4-2: PIC16C505 REGISTER FILE MAP
FSR<6:5>
File Address
00h
01h
02h
03h
04h
05h
06h
00
INDF(1)
TMR0
PCL
STATUS
FSR
OSCCAL
PORTB
07h
PORTC
08h
General
Purpose
0Fh
Registers
10h
General
Purpose
Registers
1Fh
Bank 0
01
20h
10
40h
11
60h
Addresses map back to
addresses in Bank 0.
2Fh
30h
General
Purpose
Registers
3Fh
Bank 1
4Fh
50h
General
Purpose
Registers
5Fh
Bank 2
6Fh
70h
General
Purpose
Registers
7Fh
Bank 3
Note 1: Not a physical register.
DS40192C-page 12
© 1999 Microchip Technology Inc.