MC9S08DZ32 using full range of internal EEPROM with Processor Expert.

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

MC9S08DZ32 using full range of internal EEPROM with Processor Expert.

跳至解决方案
723 次查看
tomaszzajkowski
Contributor I

Hello. I've been using MC9S08DZ32 with CW 10.3. The data sheet says that this MCU has 1024 bytes of EEPROM mapped between 0x1600 and 0x17FF. Only one half of the EEPROM is accesible at a time and the currently used half could be switched with EPGSEL bit in the FCNFG register. Actually I can not find any methods or configuration dialogs in Processor Expert that would let me switch / use the whole EEPROM array. Do I have to modify the EPGSEL bit in FCNFG manually, or am I missing something?

 

Cheers.

标签 (1)
0 项奖励
1 解答
444 次查看
Joel69003
Contributor IV

Hi Tomasz,

Yes, you will have to switch manually.

@Jun : this is only the initial value of EPGSEL that you are setting ! During the execution, you have to know in which page you want to read/write data and set the right EPGSEL value.

I recommend to write some specific functions to read/write in the EEPROM, in which you will set the EPGSEL correctly.

Regards,

Joel

在原帖中查看解决方案

0 项奖励
2 回复数
445 次查看
Joel69003
Contributor IV

Hi Tomasz,

Yes, you will have to switch manually.

@Jun : this is only the initial value of EPGSEL that you are setting ! During the execution, you have to know in which page you want to read/write data and set the right EPGSEL value.

I recommend to write some specific functions to read/write in the EEPROM, in which you will set the EPGSEL correctly.

Regards,

Joel

0 项奖励
444 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

hi.

I just created a new project and i can inital EEPROM page and set byte page.

untitled.JPG

this setting will EPGSEL.

Hope this helps!

0 项奖励