I have communication between an EEPROM and a microprocessor over SPI and I want to take care of data integrity.
Could you please confirm my below understanding?
I have a data which I want to write in the EEPROM along with a CRC code. Before writing in EEPROM I will use a CRC16 polynomial to generate a CRC code and append it to the data and send if over SPI to the EEPROM.
When I read the EEPROM after system reset or tun time again over SPI from the microcontroller the data along with the CRC code are read (data+crc) and it is divided by same CRC16 polynomial to check with remainder zero? If zero data is good else not.
Could you please confirm if my above understanding is correct?
I just have to implement data integrity for one memory block and for that I'm doing dual CRC check for single memory block by implementing redundant block.