Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Control bus I2C. Encyclopedia of Radio Electronics and Electrical Engineering

Free technical library

Encyclopedia of radio electronics and electrical engineering / Computers

Comments on the article Comments on the article

I2C is a two-wire interface developed by Philips. The original specification for the interface had a maximum data rate of 100 Kbps. However, over time, standards have appeared for faster modes of operation I2C. To one tire I2C, devices with different access rates can be connected, since the data rate is determined by the clock signal.

The data transfer protocol is designed in such a way as to guarantee reliable reception of transmitted data.

In data transfer, one device is the "Master", which initiates the data transfer and generates the synchronization signals. Another device "Slave" - ​​starts transmission only on command from the "Master".

In PIC16CXXX microcontrollers, the "Slave" mode of the device is implemented in hardware in the SSP module. The "Master" mode is implemented in software.

Basic Terms Used in Describing Bus I Operation2C:

Transmitter - a device that transmits data on a bus

Receiver - a device that receives data from the bus

"Master" - a device that initiates transmission and generates a clock signal

"slave" - device accessed by "Master"

Multi "Master" - bus mode I2C with more than one "Master"

Arbitration - procedure to ensure that only one "Master" controls the bus

Synchronization - procedure for synchronizing the clock signal from two or more devices

The output stages of the clock (SCL) and data (SDA) conditioners must be made in open collector (drain) circuits to combine several outputs and connected to the power positive through an external resistor in order to have a "1" level on the bus when neither one device does not generate a "0" signal. The maximum capacitive load is limited to 400pF.

Initialization and completion of data transfer

When there is no data transfer on the bus, the SCL and SDA signals are high due to an external resistor.

The START and STOP signals are generated by the "Master" to determine the start and end of data transfer, respectively.

The START signal is generated by a high-to-low transition of the SDA signal while the SCL signal is high. The STOP signal is defined as the SDA transition from low to high when SCL is high. Thus, during data transmission, the SDA signal can only change when the SCL signal is low.

I2C control bus

Device addressing on bus I2C

Two address formats are used to address devices:

Simple 7-bit format with R/W read/write bit;

I2C control bus

and 10-bit format - in the first byte, the two most significant bits of the address and the write / read bit are transmitted, in the second byte, the low part of the address is transmitted.

I2C control bus

Acceptance confirmation

When transmitting data, after each transmitted byte, the receiver must acknowledge receipt of the byte with an ACK signal.

If the "Slave" does not acknowledge receipt of the address or data byte, the "Master" must abort the transmission by issuing a STOP signal.

When transmitting data from the "Slave" to the "Master", the "Master" generates acknowledgment signals for receiving data ACK. If the "Master" does not acknowledge the receipt of a byte, the "Slave" stops transmitting data, "releasing" the SDA line. The "Master" can then generate a STOP signal.

For the data transfer delay, the "Slave" can set a logical zero, indicating the "Master" to wait. After the "release" of the SCL line, data transmission continues.

I2C control bus

I2C control bus

Data transfer from "Master" to "Slave"

I2C control bus

Reading data from "Slave"

I2C control bus

Using the re-START signal to access "Slave"

I2C control bus

Multi-master mode

Communication protocol I2C allows you to have more than one "Master" on the bus. Arbitration and synchronization functions are used to resolve conflicts on the bus during transfer initialization.

Arbitration

Arbitration is performed on the SDA line when the SCL line is high. A device that drives the SDA line high when another sends low loses the right to take "Master" and must go into "Slave" mode. A "master" that has lost the initiative on the bus can generate clock pulses until the end of the byte in which it lost its master properties.

I2C control bus

Synchronization

The clock on the bus occurs after arbitration has been performed on the SCL signal. When the SCL signal goes from high to low, all interested devices start counting the duration of the low level. Devices then begin to transition SCL from low to high according to the required data rate. After the level transitions from low to high, interested devices count the duration of the high level. The first device to pull the SCL signal low determines the clock parameters.

I2C control bus

Publication: cxem.net

See other articles Section Computers.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Artificial leather for touch emulation 15.04.2024

In a modern technology world where distance is becoming increasingly commonplace, maintaining connection and a sense of closeness is important. Recent developments in artificial skin by German scientists from Saarland University represent a new era in virtual interactions. German researchers from Saarland University have developed ultra-thin films that can transmit the sensation of touch over a distance. This cutting-edge technology provides new opportunities for virtual communication, especially for those who find themselves far from their loved ones. The ultra-thin films developed by the researchers, just 50 micrometers thick, can be integrated into textiles and worn like a second skin. These films act as sensors that recognize tactile signals from mom or dad, and as actuators that transmit these movements to the baby. Parents' touch to the fabric activates sensors that react to pressure and deform the ultra-thin film. This ... >>

Petgugu Global cat litter 15.04.2024

Taking care of pets can often be a challenge, especially when it comes to keeping your home clean. A new interesting solution from the Petgugu Global startup has been presented, which will make life easier for cat owners and help them keep their home perfectly clean and tidy. Startup Petgugu Global has unveiled a unique cat toilet that can automatically flush feces, keeping your home clean and fresh. This innovative device is equipped with various smart sensors that monitor your pet's toilet activity and activate to automatically clean after use. The device connects to the sewer system and ensures efficient waste removal without the need for intervention from the owner. Additionally, the toilet has a large flushable storage capacity, making it ideal for multi-cat households. The Petgugu cat litter bowl is designed for use with water-soluble litters and offers a range of additional ... >>

The attractiveness of caring men 14.04.2024

The stereotype that women prefer "bad boys" has long been widespread. However, recent research conducted by British scientists from Monash University offers a new perspective on this issue. They looked at how women responded to men's emotional responsibility and willingness to help others. The study's findings could change our understanding of what makes men attractive to women. A study conducted by scientists from Monash University leads to new findings about men's attractiveness to women. In the experiment, women were shown photographs of men with brief stories about their behavior in various situations, including their reaction to an encounter with a homeless person. Some of the men ignored the homeless man, while others helped him, such as buying him food. A study found that men who showed empathy and kindness were more attractive to women compared to men who showed empathy and kindness. ... >>

Random news from the Archive

Robot gardener 16.06.2017

The Roomba robot vacuum cleaner has a relative gardener. It is called Tertill and looks like Roomba. Tertill's task is to weed the beds, removing everything unnecessary, as Roomba does with garbage on the floor.

The gardener is powered by a built-in solar battery. So that he does not pluck the desired shoots, they should be fenced with special rings included in the kit. Weeding of sections of a given length is also provided.

The robot connects to a smartphone via Bluetooth. There is also a USB port - it is used for charging when the sun's energy is not enough.

Of course, the capabilities of the robot impose some restrictions on the layout of the landing. There should be enough free space between cultivated plants, and the bed itself should be as flat as possible so that the robot does not get stuck. And so that he does not go to weed the neighbor's garden, the site must be fenced. The robot does not uproot weeds, but mows them, so the procedure will have to be repeated constantly.

The approximate cost of the robot is $300.

Other interesting news:

▪ The pendant will protect from criminals

▪ Intel neuromorphic nose

▪ Giant dump truck

▪ Smart ring for women Evie

▪ Toshiba HK3E2 Solid State Drives

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ site section Power supplies. Article selection

▪ Article Skin protection. Basics of safe life

▪ article What is the age of a woman called Balzac and why? Detailed answer

▪ article Actions in case of severe freezing. Tourist tips

▪ article Automotive voltage regulator. Encyclopedia of radio electronics and electrical engineering

▪ article Modeling propellers. physical experiment

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024