STM32 IIC protocol reading and writing EEPROM
no vote
According to the IIC bus reading and writing sequence in 24c02datasheet, the 2KB EEPROM is read and written by using the IIC bus in STM32 MCU. The code mainly includes the initialization of MCU internal setting and external IO port, EEPROM write byte and read byte operation driver. Check whether EEPROM is in normal state by writing 55h to address 255. If it is normal, write warshipstm32 IIC test to EEPROM, then read it out and display it through 2.8-inch LCD. The code has been verified,