copier i2c
Hello!
I'm not sure about what the PIC does (i.e. if it is a hardware SPI or if you
emulate it with a GPIO). But this hardware seems against the I2C
philosophy.
Basically, the idea behind I2C is that you use only 2 wires and you can have
myriads of devices on the same 2 wires. And this hardware uses 2 different
clocks. This gives you potential strange behaviors.
- The data is common.
- You have 2 clocks A and B.
Suppose you're reading from device A. Device B is therefore idle (SCL high).
If while SCL is idle you change the status of the data (that you are already
using on the other channel), then it will create a start condition. Well, I know
this might not be a problem, but why complicating things that can be simple?
I don't know where this hard comes from, but I would rewire it the regular way:
SDA and SCL are common, and the address is different (for example
device A: A1A2A3 = (0,0,0) and device B (A1A2A3) = (0,0,1)
Dora.
the_kid25 said:
I experiment eeprom I2C Copier with this schematic
please help me....correct my code in attachment, THANKS FOR ALL