
I2C is often faster than UART and has a peak frequency of 3.4 MHz. A few drawbacks of I2C are that it can only function in half-duplex, which means that data can only be transmitted in one direction at a time, and that it increases circuit complexity with additional memory/layout.
128 units Type of I2C Device AddressThis means that since a 7-bit value can range from 0 to 127, you can have up to 128 devices on an I2C bus. We always end the 8 bit after finishing the 7 bit address. I used the extra bit to let the leave know if the mother was reading from or writing to it.
Protocol for aerial communicationAn acronym for the inter-integrated controller is I2C. A serial communication protocol called I2C is used to connect low-power devices. EEPROM, microcontrollers, A/D and D/A converters, and input/output interfaces are a few examples.
The primary distinction between I2C and erial is that the former is a point-to-point connection, while the latter is a bus that supports numerous devices, each with its own address. I2C has superior performance over serial, however serial can support longer wires depending on your needs.
For many embedded applications, the de facto standard for digital communication between ICs is the I2C (inter-IC) bus, which is a 2-wire, multi-drop link. Serial, 8-bit, bidirectional data transfer is theoretically efficient at 400 kHz, however it can happen at up to 3.4 Mbp.
Data transfer rates on the I2C-bu are as follows: 100 kbit/s in the standard mode, 400 kbit/s in the Fa t-mode, 1 Mbit/s in the Fa t-mode Plu, and 3.4 Mbit/s in the high-peed mode. The number of interfaces linked to the bu is limited by the capacitance of the bu.
The Serial Peripheral Interface (PI) and Inter-Integrated Circuit (I2C) standards were developed to offer a simple means of transferring digital data between computers and microcontrollers, such as Arduinos. It's simple to use both the PI and I2C protocols thanks to Arduino libraries.
Although PI and I2C are on separate pins, you can use both at once.
When it comes to PI, it's better than I2C. Nonetheless, we usually like the I2C interface over the PI interface since it requires fewer pins overall. However, you can easily convert a PI OLED to an I2C interface if you already have one.
UART can be better suitable if you require simple, point-to-point communication between two devices. However, PI's manager/layout setup and support for many devices might be a preferable option if your application calls for multiple devices to connect with a central controller.