How to connect/use a EEPROM via I2C

Post here all questions related to STM32 core if you can't find a relevant section!
Post Reply
nounours18200
Posts: 4
Joined: Sat May 20, 2023 2:10 pm
Answers: 2

How to connect/use a EEPROM via I2C

Post by nounours18200 »

Hello,

I would like to use an external EEPROM with a STM32 Bluepill, and in order to save the pins to be used, I imagine (maybe i am wrong) to use an EEPROM with a I2C interface, such like this one:
https://www.mouser.fr/ProductDetail/Mic ... B0pA%3D%3D
having this datasheet: https://www.mouser.fr/datasheet/2/268/2 ... 576990.pdf

Although I have used the I2C bus very often, I don't understand how to connect it to a I2C bus, because the datasheet says that the A0,A1 and A2 ins are not internally connected (???): so what will be its I2C address ?

of course its address is mandatory to write (or read) anything to (or from) it...

Edit:
Maybe I had jumped to a very particular model, because it seems that other models can have their I2C adress defined through A0,A1 and A2, like this one: https://www.mouser.fr/datasheet/2/268/2 ... 006793.pdf

Thank you
by nounours18200 » Tue May 30, 2023 3:07 pm
This is simple by looking at other models such as the 24AA024H: it is very easy to understand how it works.

I suspect that the first model I mentioned in my question should be a very particular one...

So problem is solved.
Go to full post
nounours18200
Posts: 4
Joined: Sat May 20, 2023 2:10 pm
Answers: 2

Re: How to connect/use a EEPROM via I2C

Post by nounours18200 »

This is simple by looking at other models such as the 24AA024H: it is very easy to understand how it works.

I suspect that the first model I mentioned in my question should be a very particular one...

So problem is solved.
Post Reply

Return to “General discussion”