PDA

View Full Version : 2 pics 1 memory i2c



vicce67
- 3rd December 2010, 20:28
Dear Friends,
it is possible two pic's they access the same memory I2C (24lc256)

thank you,

vicente

Jerson
- 4th December 2010, 08:04
In theory, yes. Practically, you may have to define your needs better to have a workable solution.

mat janssen
- 4th December 2010, 08:53
Maybe it's possible if you connect it as I drawed.
At start you must set the SCL and the SDA and the communication as an input.
If pic1 wants to read or write the memory set the communucation line as an output and make it a logic level "1".
Now pic 2 knows that the scl and the sda are not available.
Now you can access withs pic 1 the memory.
when ready set the 3 lines to input again

The same story is is for pic 2 but related to pic 1.

vicce67
- 5th December 2010, 15:42
Thank you very much friends,

I hope to also help,

excuse my English, I am Brazilian