CMSIS EEPROM_Write

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

CMSIS EEPROM_Write

646件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

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

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