PIC18F2420/2520/4420/4520
FIGURE 5-5:
DATA MEMORY MAP FOR PIC18F2420/4420 DEVICES
When ‘a’ = 0:
BSR<3:0>
Data Memory Map
The BSR is ignored and the
Access Bank is used.
000h
07Fh
080h
0FFh
100h
00h
Access RAM
GPR
= 0000
= 0001
= 0010
The first 128 bytes are
general purpose RAM
(from Bank 0).
Bank 0
FFh
00h
The second 128 bytes are
Special Function Registers
(from Bank 15).
GPR
GPR
Bank 1
Bank 2
1FFh
200h
FFh
00h
FFh
00h
2FFh
300h
When ‘a’ = 1:
= 0011
The BSR specifies the Bank
used by the instruction.
Bank 3
Bank 4
Bank 5
Bank 6
Bank 7
Bank 8
Bank 9
Bank 10
Bank 11
Bank 12
Bank 13
3FFh
400h
FFh
00h
= 0100
= 0101
4FFh
500h
FFh
00h
5FFh
600h
FFh
00h
= 0110
= 0111
Access Bank
FFh
00h
6FFh
700h
00h
Access RAM Low
7Fh
Access RAM High
80h
FFh
00h
7FFh
800h
(SFRs)
= 1000
= 1001
FFh
8FFh
900h
FFh
00h
Unused
Read 00h
9FFh
A00h
FFh
00h
= 1010
= 1011
= 1100
= 1101
AFFh
B00h
FFh
00h
BFFh
C00h
FFh
00h
CFFh
D00h
FFh
00h
DFFh
E00h
FFh
00h
= 1110
= 1111
Bank 14
Bank 15
EFFh
F00h
F7Fh
F80h
FFFh
FFh
00h
Unused
SFR
FFh
DS39631E-page 60
© 2008 Microchip Technology Inc.