Datasheet
PIC24HJ32GP302/304, PIC24HJ64GPX02/X04 AND PIC24HJ128GPX02/X04
DS70293G-page 28 © 2007-2012 Microchip Technology Inc.
4.2.5 DMA RAM
The PIC24HJ32GP302/304 devices contain 1 Kbytes
of dual ported DMA RAM located at the end of X data
space. The PIC24HJ64GPX02/X04 and
PIC24HJ128GPX02/X04 devices contain 2 Kbytes of
dual ported DMA RAM located at the end of X data
space, and is a part of X data space. Memory
locations in the DMA RAM space are accessible
simultaneously by the CPU and the DMA controller
module. DMA RAM is utilized by the DMA controller to
store data to be transferred to various peripherals
using DMA, as well as data transferred from various
peripherals using DMA. The DMA RAM can be
accessed by the DMA controller without having to
steal cycles from the CPU.
When the CPU and the DMA controller attempt to
concurrently write to the same DMA RAM location, the
hardware ensures that the CPU is given precedence in
accessing the DMA RAM location. Therefore, the DMA
RAM provides a reliable means of transferring DMA
data without ever having to stall the CPU.
FIGURE 4-3: DATA MEMORY MAP FOR PIC24HJ32GP302/304 DEVICES WITH 4 KB RAM
Note: DMA RAM can be used for general
purpose data storage if the DMA function
is not required in an application.
0x0000
0x07FE
SFR Space
0xFFFE
16 bits
LSbMSb
0xFFFF
Optionally
Mapped
into Program
Memory
0x0800
2 Kbyte
SFR Space
0x17FE
0x1800
4 Kbyte
SRAM Space
Near
Data
6 Kbyte
Space
0x13FE
0x1400
LSb
Address
MSb
Address
DMA RAM
0x0000
0x07FF
0x0801
0x17FF
0x1801
0x13FF
0x1401
0x8001
0x8000
X Data RAM (X)
X Data
Unimplemented (X)