Can we use address space 0x8000 to 0xBFFF in MC9S08DZ96 as normal flash (not in paging mode)?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can we use address space 0x8000 to 0xBFFF in MC9S08DZ96 as normal flash (not in paging mode)?

跳至解决方案
1,979 次查看
ManojM
Contributor I

Hi,
We are using the MC9S08DZ96 in one of our design. We have compiled the code and used the non-banked memory (which is PPAGE0+ PPAGE1+PPAGE3 as per datasheet fig 4.4) as normal flash and we almost fully utilized the non-banked flash.
Now we want to integrate the other module code in to this code for which we will require more flash, but we don't want to modify the code for accessing the extended flash through paging.

Can we use address space 0x08000 to 0x0BFFF as normal flash, instead of using it as extended flash (Basically we want to use this section of address space as per MC9S08DZ60, which does not support extended memory)?

标签 (1)
0 项奖励
回复
1 解答
1,399 次查看
tonyp
Senior Contributor II

Yes, you can use $8000-$BFFF for non-paged program code (provided you don't ever change the PPAGE register).

 

What I meant was the remaining memory (beyond the first 64K) is what you can now use for data only, accesible through the LAP.

 

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,399 次查看
tonyp
Senior Contributor II

Sure you can.  Just don't mess with the PPAGE register.  You can always access the remaining Flash (for data only) through the LAP (linear address pointer).

0 项奖励
回复
1,399 次查看
ManojM
Contributor I

Good to know that it can be used as normal flash (not in paging mode). I would like to use it as program memory (not as data memory). Hope this should work as program memory without modification in source code, such as without using keyword "far" for functions residing in memory space (0x8000 to 0xBFFF) and without any PRAGMA definitions for functions and data in this memory space. Please confirm.

 

Thanks for your timely feedback.

 

 

0 项奖励
回复
1,400 次查看
tonyp
Senior Contributor II

Yes, you can use $8000-$BFFF for non-paged program code (provided you don't ever change the PPAGE register).

 

What I meant was the remaining memory (beyond the first 64K) is what you can now use for data only, accesible through the LAP.

 

0 项奖励
回复
1,399 次查看
ManojM
Contributor I

Thank you. It helps me lot.

0 项奖励
回复