RS08KA - Read Values in Non Volatile memory

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

RS08KA - Read Values in Non Volatile memory

461 Views
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 = ?;

Labels (1)
0 Kudos
1 Reply

356 Views
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