i am using rl78g15 new 20 pin controller , in application need to store the varible in eeprom and fetch after power transition (last state of the varible),please support
thanks in advance.....
Hello,
thank you for sharing details here will see how much i can help you
To store a variable in EEPROM on the RL78G15 microcontroller, you can use the built-in data flash memory, which can be programmed…
Define the variable you want to store in dataflash or EEPROM. For example, if you want to store an integer value, you can define it like this:int myVar = 1234;Declare the memory location where you want…
It isn't clear that it is understood that the RL78 data-flash is not EEPROM, which requires EEPROM emulation to implement wear-leveling to increase endurance / retention and provide resistance to resets for data loss. The G15 device requires the RFD/EES T01 software.
Only erased flash cells can be written (minimum write unit on G15 is 4-bytes), as such the block being written has to be pre-erased. Erase operations take a relatively long period of time, while a write operation is very fast in comparison. Using EEPROM emulation for a write incurs more overhead to use than a direct RFD write operation, unless there is a timing requirement such as trying to write data when power has been removed it would be recommended to use the EES.