memory map with 9s12dp256 !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

memory map with 9s12dp256 !

2,213 Views
jeffzxg
Contributor I
Hello !
    
    i am using mc9s12dp256 microcontroller. my question is: ram space is mapped at address 0xd000 ~ 0xffff, but interrupt vector located at 0xff80 ~ 0xffff, so ram space overlap the interrupt vector. s12FTS256KV2.pdf documents states that " By placing $3F or $3E in the PPAGE register, the bottom respectively top “fixed” 16Kbyte pages can be seen twice in the MCU memory map", does that mean if  ram space overlap the interrupt vector, it can also be accessed by place PPAGE register $3F?
 
           thanks !
Labels (1)
0 Kudos
4 Replies

414 Views
Lundin
Senior Contributor IV
RAM on DP256 is mapped at 0x1000 to 0x3FFF out of reset. If you decided to move it to overlap the vector table... then maybe you should stop there and ask youself why you are moving it in the first place.
0 Kudos

414 Views
jeffzxg
Contributor I
thanks krf.
     but i still not understand.  memory space of 9s12 is 64K and address is linear (data and program memory in the same space ) , besides ram has higher prioriy than flash. what does fixed or unpaged memory mean?
 
0 Kudos

414 Views
kef
Specialist I
Fixed means doesn't depend on PPAGE :smileyhappy:. This applies to flash only. There are two fixed flash regions in 64k memory map: 4000h-7fffh and c000h-ffffh.
Unpaged memory space means memory space directly accessible without any manipulations to paging registers.
 
EEPROM, RAM and registers memory block are not paged. If you remap any of these blocks with INITx registers so that they overlap, then EEPROM has priority over flash, RAM over EEPROM and flash, and registers block has highest priority. When memory blocks overlap, then only the highest priority memory block is visible to CPU.
0 Kudos

414 Views
kef
Specialist I
No, PPAGE doesn't apply to RAM and you can't see two copies of RAM in the memory map. PPAGE swithes only flash pages to page window at 8000-BFFF. RAM has priority over flash (over flash page window too) and EEPROM.
0 Kudos