RS08KA - Read Values in Non Volatile memory

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

RS08KA - Read Values in Non Volatile memory

638 次查看
SecondTechCo
Contributor IV

I want to read byte values from the Flash memory.   My understanding is the code is simple.  I am trying to do this in C .  It looks like I set a value in PAGESEL and then read memory. I dont see a define anywhere that lets me read the byte.  So the code would be :

 

unsigned char Temp;

 

PAGESEL=0x80;

Temp = ?;

标签 (1)
0 项奖励
回复
1 回复

533 次查看
arpitaagarwal-b
NXP Employee
NXP Employee

Hello,


You can read the value directly from the address as shown below:


       value = *(unsigned char*)0x0080U;  //memory location you want to read is assumed as 0x80 here


Regards,

Arpita