There are really “only” 112 addresses available on an I2C bus, as there are several reserved addresses. Probably more than you’ll need for your project. Using 7-bits for addressing will, in theory, allow a maximum of 128 addresses. The remaining 7-bits are the I2C address of the slave that the master wants to communicate with. If Boit 0 is LOW then the master is going to write data to the slave.If Bit 0 is HIGH then the master is requesting to read data from the slave.In the more common 7-bit addressing system the lower bit (bit 0) is used to determine if the master wants to send data to the slave or read data from the slave. Most I2C devices use a 7-bit addressing scheme, some newer devices use a 10-bit address. The address is used by the Master to communicate with a Slave, one device at a time. I2C AddressingĮvery I2C Slave has an address that is unique on the I2C bus. Only one device can be master at any given moment, there can be several Slaves. I2C works on the principle of Masters and Slaves, the Master provides the clock signal and orchestrates all of the communications. SCL – The clock signal, which synchronizes the data.I2C is a unidirectional system, so data can only travel in one direction at any given moment. The two communications connections are as follows: It uses two wires for communications and another two for power and ground. We will also build our own I2C sensor.Īs you’ll recall from the last article and video, I2C is a method of exchanging data between integrated circuits, sensors, microcomputers and microcontrollers. We will look into the protocol that I2C uses to transfer data and to establish slave addresses. Today we will continue the discussion about I2C.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |