PIC24HJ64GP202 memory map

Where everything sits, at its exact address. The PIC24HJ64GP202 keeps program and data apart (modified Harvard). Program memory holds 24-bit instructions and is addressed in program-counter units, two per instruction, so flash ending at 0x00AC00 holds 22,016 instructions (64.5 KB, three bytes each). The data space is 16-bit and byte-addressed: the special function registers at the bottom, then the RAM. Constants in flash are read into data space through the program space visibility window from 0x8000 (PSV, or EDS on the newer chips).

Program memory

Reset and vector table, the program, the configuration words; addresses in program-counter units (two per instruction).

User ID0xF80010 – 0xF800174 words
Configuration words0xF80000 – 0xF8000F8 words
Flash0x0000 – 0xABFF64.5 KB (22,016 instructions)

Data memory

16-bit SFRs at the bottom, then the RAM; byte addresses.

RAM0x0800 – 0x27FF8 KB
Special function registers0x0000 – 0x07FF2 KB

Every segment

SegmentSpaceStartEndSizePage
Special function registersdata0x00000x07FF2 KB
RAMdata0x08000x27FF8 KB
DMA RAM (dual-port, inside the RAM)data0x20000x27FF2 KB
Flashprog0x00000xABFF64.5 KB (22,016 instructions)
Configuration wordsprog0xF800000xF8000F8 words
User IDprog0xF800100xF800174 words