English
Language : 

DSPIC33EPXXXGP50X Datasheet, PDF (99/504 Pages) Microchip Technology – 16-bit Microcontrollers and Digital Signal Controllers (up to 256 KB Flash and 32 KB SRAM) with High-Speed PWM, Op amps, and Advanced Analog
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X, AND PIC24EPXXXGP/MC20X
EXAMPLE 4-2: EXTENDED DATA SPACE (EDS) WRITE ADDRESS GENERATION
16-bit DS EA
Byte
Select
EA<15> = 0
(DSWPAG = don't care)
Generate
No EDS access
0
EA
PSV address
EA<15>
1
EA
DSWPAG<8:0>
9 bits
15 bits
24-bit EDS EA
Note: DS read access when DSRPAG = 0x000 will force an Address Error trap.
The paged memory scheme provides access to
multiple 32-Kbyte windows in the EDS and PSV
memory. The data space page registers DSxPAG, in
combination with the upper half of data space address
can provide up to 16 Mbytes of additional address
space in the EDS and 8 Mbytes (DSRPAG only) of PSV
address space. The paged data memory space is
shown in Example 4-3.
The program space (PS) can be accessed with
DSRPAG of 0x200 or greater. Only reads from PS are
supported using the DSRPAG. Writes to PS are not
supported, so DSWPAG is dedicated to DS, including
EDS, only. The data space and EDS can be read from
and written to using DSRPAG and DSWPAG,
respectively.
Byte
Select
© 2011 Microchip Technology Inc.
Preliminary
DS70657D-page 99