Datasheet

Table Of Contents
dsPIC30F6011/6012/6013/6014
DS70117F-page 30 © 2006 Microchip Technology Inc.
FIGURE 3-6: DATA SPACE WINDOW INTO PROGRAM SPACE OPERATION
23 15 0
PSVPAG
(1)
15
15
EA<15> =
0
EA<15> = 1
16
Data
Space
EA
Data Space
Program Space
8
15
23
0x0000
0x8000
0xFFFF
0x01
0x000100
0x017FFF
Data Read
Upper Half of Data
Space is Mapped
into Program Space
0x008000
Address
Concatenation
BSET CORCON,#2 ; PSV bit set
MOV #0x01, W0 ; Set PSVPAG register
MOV W0, PSVPAG
MOV 0x8000, W0 ; Access program memory location
; using a data space access
Note: PSVPAG is an 8-bit register, containing bits <22:15> of the program space address (i.e., it defines
the page in program space to which the upper half of data space is being mapped).