And it's independent of the number of slaves. There is the data signal and the clock signal, just two. The number of bits traveling between these two or any number of devices on an I2C bus is fixed. The slave is the one who waits for communications,īitwidth is fixed. Basically, the master is the one who starts all the communications and There are also in I2C multiple masters and multiple slaves. The receiver knows when to read the bus and sender knows when to write. Based on the clock, the receiver knows when the sender's gonna be sending data. They need to share it so they can synchronize with each other. Two integrated circuits, talking on I2C, they need to share the same clock. What that means is that if there are two communicating entities, If you send eight bits in parallel that's a lot quicker than sending one at a time. The downside of that is that since it's serial it's sending one bit at a time. In this case you need two total pins, but data is only going across one. So serial means it sends data over only one wire. I2C communication protocol is a serial protocol and it's a synchronous protocol. These chips, when they communicate there are several different protocols one is called I2C. So you can talk to those chips and tell them what to do, You want to connect your micro controller to other chips. One of the things that you often want to do in a system when you haveĪ micro controller is to connect it to another integrated circuit. The I2C library or the wire library supports what's called I2C communication.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |