Let us now see what is master transmitter and slave receiver. We have two modes - master code and slave code - to connect two Arduino boards using I2C. This is known as “clock stretching”.įollowing are the pins for different Arduino boards − Some slave devices may force the clock low at times to delay the master sending more data (or to require more time to prepare data before the master attempts to clock it out). The current bus master always generates the clock signal. SCL is the clock signal, and SDA is the data signal. The I2C bus consists of two signals − SCL and SDA. The distance between devices, which communicate over an I2C bus is limited to several meters. Systems with the baud rate of 3.4 Mb/sec have recently appeared. Baud rate is usually 100 Kb/sec (standard mode) or 10 Kb/sec (slow baud rate mode). In this way, one microcontroller can communicate with 112 different devices. It performs addressing of one slave chip before the communication starts. One is used for data transfer and the other is used for synchronization (clock signal).Īs seen in the following figure, one device is always a master. Connection is established via two conductors. It is used when the distance between them is short (receiver and transmitter are usually on the same printed board). Inter-integrated circuit (I2C) is a system for serial data exchange between the microcontrollers and specialized integrated circuits of a new generation.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |