Non-volatile registers

LPC_RTC->GPREG0
LPC_RTC->GPREG1
LPC_RTC->GPREG2
LPC_RTC->GPREG3
LPC_RTC->GPREG4

Each register is 32 bit, and is part of the Real Time Clock so is retained through Reset and potentially power-down. I haven't looked up what type they are declared as, I would have guessed uint32_t but I don't know.

20 bytes is not exactly generous, even the RTC on a BBC Master had 50 bytes of storage

Declaration:

https://developer.mbed.org/users/mbed_official/code/mbed/file/99a22ba036c9/TARGET_LPC1768/LPC17xx.h


Please log in to post comments.