This page was last modified 2007-03-28 20:41:04 by Puchu.Net user Choco. (Show history)
[edit] IntroductionI2C is a bus protocol frequently used among IC chips to control devices on the I2C bus. Two signals, the clock ( On the bus, there are always master and slave devices. In case there are multiple devices, an address is used to identify which device the master wants to communicate with. [edit] Symbol Definitions
The following background colors are used to distinguish origin of data on I2C bus:
[edit] Master SendMaster sends data to slave at address:
[edit] Master ReceiveMaster receives data from slave at address:
[edit] Combined TransactionCombined (in this example, read then write) transaction allows multiple transactions without issuing the stop condition. If stop condition is issued, another device may take over the bus, or there may be additional setup time. Instead of a stop condition, a start condition is generated to continue combined transaction.
[edit] AddressI2C address can be 7 bits or 10 bits wide. Often for an IC, each access to the bus is one byte; the read and write bit take up the last bit, so that you transfer different data to read or write. For example, transfer
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||