SPRADL4 January 2025 F29H850TU , F29H859TU-Q1
The EEPROM_Write_64_Bits() function provides functionality for programming eight bytes to memory. The first parameter, Num_Bytes, allows the user to specify how many valid words are written. The data words are assigned to the first indices of the Write_Buffer. If less than eight bytes are specified in the function call, missing bytes are filled with 0xFF. This is done to comply with ECC requirements.
First, the program checks if the EEPROM is full.
EEPROM_64_Bit_Mode_Check_EOS();Next, the Write Buffer is filled with 1s if less than 8 bytes are specified.
uint8_t i;
for (i = Num_Bytes; i < WRITE_SIZE_BYTES; i++)
{
Write_Buffer[i] = 0xFF;
}Then, the data is programmed and the pointer is incremented to the next empty location
EEPROM_Write_Buffer(Bank_Pointer, Write_Buffer);
Empty_EEPROM = 0;
Bank_Pointer += WRITE_SIZE_BYTES;