Just got some quesitons in regards to i2c and devices which are compatible with an i2c bus.
1) When would you use fast mode 400hkhz over standard mode 100khz?
When you need to transfer more data quickly. Serial flash memory is a good example where I would probably use faster communication. Slower communication is more reliable over long distance and when there are lots of devices in the bus. Some chips support only the slower 100kHz clock. I always use the fastest mode possible with I2C.
2) I was just reading about the SCL Clock Line and SDA Data Line for I2c
and then just realised that SCLK is the Clock Line for SPI and SDI is the Data Line for SPI
Is that right? I couldnt find anything about SCLK and SDI on i2c so it must be for using SPI.
Depends on the chip you are using. Atmel calls I2C serial clock and data lines SCL and SDA respectively. SCK, MOSI, MISO and /SS are SPI bus names (serial clock, master out slave in, master in slave out, slave select).
3) Would anyone know what VLOGIC or /CS is? and what AD0/SDO is?
Datasheet should explain what VLOGIC, /CS, AD0 and SDO are.
My guess would be:
- VLOGIC is supply voltage for your IC logic circuitry
- /CS is Chip Select for SPI bus. The / means that the logic is inverted (0 = true, 1 = false).
- AD0 is analog-to-digital converter 0
- SDO is a data line for SPI bus (Serial Data Out).
What is the chip you are using, or referring to?