Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can the I2C with two slaves function simultaneously?

Status
Not open for further replies.

rez

Newbie level 6
Joined
Mar 26, 2009
Messages
13
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,365
hye guys..i want to know whether i2c with 2 slaves can function simultaneously..hope anyone can answer it..tq
 

Re: i2c 2 slaves..

HI

I2C slave can't connect to another slave directly - via a master only!

One master can control many salves as long as the address is defer from one slave to another

All the best

Bobi

The microcontroller specialist
 

Re: i2c 2 slaves..

i've done communicate 1 master with 2 slaves but the slaves functional separately..meaning that 1 slave off then 1 slaves on.. i wanna make 1 slave on and then next slave on without turn off first slave.. 1st slave for run the motor cw while 2nd slave for ccw both are motor control and run it without turn off one of it.. is it possible??..ty
 

i2c 2 slaves..

I2C is designed to operate multiple slaves. The slaves must have different addresses for individual access.
 

i2c 2 slaves..

it depends on what you mean by "simultaneously".
 

Re: i2c 2 slaves..

it depends on what you mean by "simultaneously".
In fact, the I2C communication is serial. In addition, full communication cycles (start, adress, data echange, stop) must be performed when accessing individual slaves. So except for broadcast commands, the communication is not simultaneous.
 

i2c 2 slaves..

a good i2c I/O slave, 'holds' the last value you wrote... but of course both slaves must have different i2c addresses...

a common way would be to write one i2c slave, then write the other i2c slave, and switch to the other slave if you need to refresh the data...

could you tell us which i2c slaves (PCF?) are you using???
 

i2c 2 slaves..

In fact, the I2C communication is serial.

in fact, that's correct.

So except for broadcast commands, the communication is not simultaneous.

in fact, that's incorrect, as the original poster did not specify the topology, nor his/her definition of "simultaneously". For example, you could have the two i2c devices communicating on two different buses; or the communication is so fast that for practical purposes, it can be considered simultaneous.

in fact, those are just two simple examples.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top