RS08KA - Read Values in Non Volatile memory

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

RS08KA - Read Values in Non Volatile memory

529件の閲覧回数
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 返信

424件の閲覧回数
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