English
Language : 

PIC16F87X Datasheet, PDF (13/218 Pages) Microchip Technology – 28/40-pin 8-Bit CMOS FLASH Microcontrollers
2.0 MEMORY ORGANIZATION
There are three memory blocks in each of the
PIC16F87X MCUs. The Program Memory and Data
Memory have separate buses so that concurrent
access can occur and is detailed in this section. The
EEPROM data memory block is detailed in Section 4.0.
Additional information on device memory may be found
in the PICmicro Mid-Range Reference Manual,
(DS33023).
FIGURE 2-1:
PIC16F877/876 PROGRAM
MEMORY MAP AND
STACK
PC<12:0>
CALL, RETURN
13
RETFIE, RETLW
Stack Level 1
Stack Level 2
Stack Level 8
RESET Vector
0000h
On-Chip
Program
Memory
Interrupt Vector
Page 0
Page 1
Page 2
Page 3
0004h
0005h
07FFh
0800h
0FFFh
1000h
17FFh
1800h
1FFFh
PIC16F87X
2.1 Program Memory Organization
The PIC16F87X devices have a 13-bit program counter
capable of addressing an 8K x 14 program memory
space. The PIC16F877/876 devices have 8K x 14
words of FLASH program memory, and the
PIC16F873/874 devices have 4K x 14. Accessing a
location above the physically implemented address will
cause a wraparound.
The RESET vector is at 0000h and the interrupt vector
is at 0004h.
FIGURE 2-2:
PIC16F874/873 PROGRAM
MEMORY MAP AND
STACK
PC<12:0>
CALL, RETURN
13
RETFIE, RETLW
Stack Level 1
Stack Level 2
Stack Level 8
RESET Vector
0000h
On-Chip
Program
Memory
Interrupt Vector
Page 0
Page 1
0004h
0005h
07FFh
0800h
0FFFh
1000h
1FFFh
 2001 Microchip Technology Inc.
DS30292C-page 11