PIC16F631/677/685/687/689/690
FIGURE 2-2:
PROGRAM MEMORY MAP
AND STACK FOR THE
PIC16F685/689/690
2.0
2.1
MEMORY ORGANIZATION
Program Memory Organization
The PIC16F631/677/685/687/689/690 has a 13-bit
program counter capable of addressing an 8K x 14
program memory space. Only the first 1K x 14
(0000h-03FFh) is physically implemented for the
PIC16F631, the first 2K x 14 (0000h-07FFh) for the
PIC16F677/PIC16F687, and the first 4K x 14
(0000h-0FFFh) for the PIC16F685/PIC16F689/
PC<12:0>
13
CALL, RETURN
RETFIE, RETLW
Stack Level 1
Stack Level 2
PIC16F690. Accessing
a location above these
boundaries will cause a wraparound. The Reset vector
is at 0000h and the interrupt vector is at 0004h (see
Figures 2-1 through 2-3).
Stack Level 8
Reset Vector
0000h
FIGURE 2-1:
PROGRAM MEMORY MAP
AND STACK FOR THE
PIC16F631
0004h
0005h
Interrupt Vector
On-chip Program
Memory
PC<12:0>
13
CALL, RETURN
RETFIE, RETLW
0FFFh
1000h
Stack Level 1
Stack Level 2
Access 0-FFFh
1FFFh
Stack Level 8
Reset Vector
0000h
0004h
0005h
Interrupt Vector
On-chip Program
Memory
03FFh
0400h
Access 0-3FFh
1FFFh
© 2007 Microchip Technology Inc.
DS41262D-page 25