Datasheet

© 2007-2012 Microchip Technology Inc. DS70293G-page 25
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
4.0 MEMORY ORGANIZATION
The PIC24HJ32GP302/304, PIC24HJ64GPX02/X04
and PIC24HJ128GPX02/X04 architecture features
separate program and data memory spaces and
buses. This architecture also allows the direct access
of program memory from the data space during code
execution.
4.1 Program Address Space
The program address memory space of the
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 and
PIC24HJ128GPX02/X04 devices is 4M instructions.
The space is addressable by a 24-bit value derived
either from the 23-bit Program Counter (PC) during
program execution, or from table operation or data
space remapping as described in Section 4.6
“Interfacing Program and Data Memory Spaces.
User application access to the program memory space
is restricted to the lower half of the address range
(0x000000 to 0x7FFFFF). The exception is the use of
TBLRD/TBLWT operations, which use TBLPAG<7> to
permit access to the Configuration bits and Device ID
sections of the configuration memory space.
The memory map for the PIC24HJ32GP302/304,
PIC24HJ64GPX02/X04 and PIC24HJ128GPX02/X04
devices is shown in Figure 4-1.
FIGURE 4-1: PROGRAM MEMORY MAP FOR PIC24HJ32GP302/304, PIC24HJ64GPX02/X04
AND PIC24HJ128GPX02/X04 DEVICES
Note: This data sheet summarizes the features
of the PIC24HJ32GP302/304,
PIC24HJ64GPX02/X04 and
PIC24HJ128GPX02/X04 families of
devices. It is not intended to be a compre-
hensive reference source. To complement
the information in this data sheet, refer to
Section 4. “Program Memory”
(DS70203) of the “dsPIC33F/PIC24H
Family Reference Manual”, which is avail-
able from the Microchip web site
(www.microchip.com).
Reset Address
0x000000
0x0000FE
0x000002
0x000100
Device Configuration
User Program
Flash Memory
(11264 instructions)
0x800000
0xF80000
Registers
0xF80017
0xF80018
DEVID (2)
0xFEFFFE
0xFF0000
0xFF0002
0xF7FFFE
Unimplemented
(Read ‘0’s)
GOTO Instruction
0x000004
Reserved
0x7FFFFE
Reserved
0x000200
0x0001FE
0x000104
Alternate Vector Table
Reserved
Interrupt Vector Table
PIC24HJ32GP302/304
Configuration Memory Space
User Memory Space
Note: Memory areas are not shown to scale.
Reset Address
Device Configuration
User Program
Flash Memory
(22016 instructions)
Registers
DEVID (2)
Unimplemented
(Read ‘0’s)
GOTO Instruction
Reserved
Reserved
Alternate Vector Table
Reserved
Interrupt Vector Table
PIC24HJ64GPX02/X04
Reset Address
Device Configuration
User Program
Flash Memory
(44032 instructions)
Registers
DEVID (2)
Unimplemented
(Read ‘0’s)
GOTO Instruction
Reserved
Reserved
Alternate Vector Table
Reserved
Interrupt Vector Table
PIC24HJ128GPX02/X04
0x0057FE
0x005800
0x015800
0x0157FE
0x00AC00
0x00ABFE
Reserved
Reserved
Reserved
0xFFFFFE