![]() ![]() So none of these components are driving those two wires high or low.īecause they're connected to power through a big resistor, That means if let's say there are lots of different I2C Hence, they're pulled up high by default. SDA is the data, that's the line where the data's gonna travel.Īnd SCL's a clock that's used to synchronize all the devices.īoth lines, SDA and SCL, are open drain, that means is that they are connected to power through a big resistor i.e 10kohms or higher. ![]() In I2C we have two wires SDA (serial data) and SCL (serial clock). There are other protocols where every slave you have to add more bits.īut I2C you can have as many slaves as you want, orĪnd you can, and it's the same number of bits, two bits. 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 |