STM32 EEPROM Interface simulation | EEPROM Read and write operation | I2C protocol explanation

Опубликовано: 01 Ноябрь 2024
на канале: STMetaTronics
248
7

In this video, we are interfacing the AT24C512 EEPROM Ic with STM32F103C8 controller. The Erase and write functionalities are explained in the previous video (   • EEPROM interface with STM32F103 contr...  ). In this video, we are simulating the read operation. So we are reading from one memory location and copying the same data to another memory location. To copy the data from one location we need both read and write operations. Thus demonstrating both Read and Write operations for EEPROM.

We are using the bit banging technique for replicating the I2C protocol. We are using GPIOs as I2C lines. So if you are using any other GPIO apart from GPIO0 and GPIO1, then you ll have to modify the code.
Hope you enjoy the video.
For project queries, mail us on [email protected]
or whatsapp us on +919665001206

Join our telegram channel: stmetatronics
link: https://t.me/STM32controller

Notes:
The device id is 0xA0 for this simulation. You can change it according to your device.

Files:
https://drive.google.com/drive/folder...
Copy the .c file in src folder
Copy the .h file in inc folder