2842 views|19 replies

3255

Posts

0

Resources
The OP
 

EEPROM address problem [Copy link]

 

EEPROM address problem, if there are 10 24C02s on the bus, how does the MCU or main control identify which EEPROM it corresponds to? I see that many are directly connected in parallel on the bus, and the address setting pins 1-3 are all connected to GND!

This post is from Circuit Observation Room

Latest reply

The EEPROM chip has address setting pins. If the address is not needed, then the IO can only be used to control the write protection pin to achieve reading and writing of different chips.   Details Published on 2022-10-29 22:25
 
 

6787

Posts

2

Resources
2
 

Only eight should be connected in parallel, and E0, E1, and E2 can make the IIC addresses of 24C02 different.

This post is from Circuit Observation Room

Comments

Do you want to connect different levels to the E pin to form different addresses?  Details Published on 2022-10-11 16:33
 
 
 

6787

Posts

2

Resources
3
 

Three bits can have a total of 8 states, so there are eight addresses.

This post is from Circuit Observation Room
 
 
 

18

Posts

0

Resources
4
 

If the address pins are all grounded, it should not support multiple chips in parallel. However, if more than 8 chips are connected in parallel, using only the address pins is not enough. At this time, you can only add a little peripheral circuit and use the write protection pin.

This post is from Circuit Observation Room
 
 
 

1792

Posts

0

Resources
5
 

There is only one grounding connection, and it is rare to connect multiple connections, because you can directly use the large capacity model, 24C08, 24C16

This post is from Circuit Observation Room

Comments

You didn't understand what I meant. I have multiple slaves, each with 24C02. The master needs to communicate with multiple slaves. Increasing the EEPROM is useless. The key is  Details Published on 2022-10-11 16:34
 
 
 

15

Posts

0

Resources
6
 

If you need to connect more EEPROMs, you can distribute the SCL and control the switch. Each SCL can only have a maximum of 7-8. You can also use an I2C multi-channel dedicated chip. If there is an EPLD/FPGA on the board, you can implement the logic.

This post is from Circuit Observation Room
 
 
 

3255

Posts

0

Resources
7
 
wangerxian posted on 2022-9-29 17:07 Only eight can be connected in parallel. E0 E1 E2 can make the IIC address of 24C02 different.

Do you want to connect different levels to the E pin to form different addresses?

This post is from Circuit Observation Room

Comments

Yes, 3 bits match exactly 8 addresses.  Details Published on 2022-10-11 16:51
 
 
 

3255

Posts

0

Resources
8
 
sint27 posted on 2022-9-30 08:12 There is only one grounding connection, and it is rare to connect multiple connections, because you can directly use the large capacity model, 24C08, 24C16

You didn't understand what I meant. I have multiple slaves, each with 24C02. The master needs to communicate with multiple slaves. Increasing the EEPROM is useless. The key is

This post is from Circuit Observation Room
 
 
 

6787

Posts

2

Resources
9
 
QWE4562009 posted on 2022-10-11 16:33 Do you want to connect different levels to the E pin to form different addresses?

Yes, 3 bits match exactly 8 addresses.

This post is from Circuit Observation Room

Comments

This is very troublesome. What if you want to connect more slaves?  Details Published on 2022-10-11 17:35
 
 
 

3255

Posts

0

Resources
10
 
wangerxian posted on 2022-10-11 16:51 Yes, 3 bits match exactly 8 addresses.

This is very troublesome. What if you want to connect more slaves?

This post is from Circuit Observation Room

Comments

Don't use AT24C02, just replace it with one with a larger capacity.  Details Published on 2022-10-11 20:38
 
 
 

6787

Posts

2

Resources
11
 
QWE4562009 posted on 2022-10-11 17:35 This is very troublesome. What if you want to connect more slaves?

Don't use AT24C02, just replace it with one with a larger capacity.

This post is from Circuit Observation Room

Comments

I have more slaves. What's the point of changing to a larger EE?  Details Published on 2022-10-13 16:42
 
 
 

3255

Posts

0

Resources
12
 
wangerxian posted on 2022-10-11 20:38 Don't use AT24C02, just change it to one with larger capacity.

I have more slaves. What's the point of changing to a larger EE?

This post is from Circuit Observation Room

Comments

The addresses of slaves of the same chip are the same. If you use different devices as slaves, the addresses will generally be different. If you want to hang 8 of the same chip, you might as well change to a chip with better performance.  Details Published on 2022-10-13 17:42
The addresses of slaves of the same chip are the same. If you use different devices as slaves, the addresses will generally be different. If you want to hang 8 of the same chip, you might as well change to a chip with better performance.  Details Published on 2022-10-13 17:42
 
 
 

6787

Posts

2

Resources
13
 
QWE4562009 posted on 2022-10-13 16:42 I have more slaves. What's the point of changing to a larger capacity EE? Moderator

The slave addresses of the same chip are the same. If you use different devices as slaves, the addresses will generally be different.

If you want to hang 8 of the same chip, you might as well change to a chip with better performance.

This post is from Circuit Observation Room
 
 
 

6787

Posts

2

Resources
14
 
QWE4562009 posted on 2022-10-13 16:42 I have more slaves. What's the point of changing to a larger capacity EE? Moderator

For example, if you want to hang up 8 AT24C02s, you might as well choose to hang up an AT24C16.

This post is from Circuit Observation Room

Comments

There are eight slave devices to be connected.  Details Published on 2022-10-14 16:12
 
 
 

3255

Posts

0

Resources
15
 
wangerxian posted on 2022-10-13 17:42 For example, if you want to hang 8 AT24C02s, you might as well choose AT24C16.

There are eight slave devices to be connected.

This post is from Circuit Observation Room

Comments

Well, that depends on your personal design. There is nothing wrong with eight slaves hanging on one IIC pin.  Details Published on 2022-10-14 16:52
 
 
 

6787

Posts

2

Resources
16
 
QWE4562009 posted on 2022-10-14 16:12 There are eight slave devices to be hung

Well, that depends on your personal design. There is nothing wrong with eight slaves hanging on one IIC pin.

This post is from Circuit Observation Room

Comments

Can it be connected in parallel directly? IIC pin  Details Published on 2022-10-17 13:55
 
 
 

3255

Posts

0

Resources
17
 
wangerxian posted on 2022-10-14 16:52 Well, it depends on your personal design. There is no problem with eight slaves hanging on one IIC pin.

Can it be connected in parallel directly? IIC pin

This post is from Circuit Observation Room

Comments

Yes, IIC allows the slave to use one IIC pin (SDA and SCL)  Details Published on 2022-10-17 14:03
 
 
 

6787

Posts

2

Resources
18
 
QWE4562009 posted on 2022-10-17 13:55 Can it be connected in parallel directly? IIC pin

Yes, IIC allows the slave to use one IIC pin (SDA and SCL)

This post is from Circuit Observation Room
 
 
 

1463

Posts

0

Resources
19
 
Each slave device needs an independent address to communicate. If the addresses of all 10 slave devices are the same, it is either wrong or intentional.
This post is from Circuit Observation Room
 
 
 

106

Posts

0

Resources
20
 

The EEPROM chip has address setting pins. If the address is not needed, then the IO can only be used to control the write protection pin to achieve reading and writing of different chips.

This post is from Circuit Observation Room
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list