CMSIS EEPROM_Write

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

CMSIS EEPROM_Write

279 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Marc Crandall on Tue Feb 14 14:00:39 MST 2012
Looking at the EEPROM_Write function on the GIT server (for the LPC1788)

I noticed that the address is only being set with the page_offset and not the page_address.

Is this a bug or am I missing how this works?

(Previously you had "LPC_EEPROM->ADDR = EEPROM_PAGE_ADRESS(page_address)|EEPROM_PAGE_OFFSET(page_offset);")

Thanks

M
Labels (1)
0 Kudos
2 Replies

241 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Marc Crandall on Wed Feb 15 12:24:39 MST 2012
Thank you Lien.  I think I see now.
0 Kudos

241 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Lien.Nguyen on Tue Feb 14 19:57:40 MST 2012
Hi Marc,
Writing to memory is split up into two separate operations, writing and erase/program. The first operation which will be called “writing” is not really updating the memory, but only updating the temporary data register called the “page register”. The second operation which is called “erase/program” can be used to actually update the non-volatile memory.
In the first stage, you provide 6 LSBs of the address to select the offset on the "page register". And, in the second stage, MSBs of the address are provided,LSBs are “don’t care”
You can refer to section 36.5 in the UM for more detail.

Best Regards,
Lien
0 Kudos