• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » What is I²C Protocol? Relevance of I²C in Arduino

By Abhishek Ghosh June 12, 2018 11:14 pm Updated on June 12, 2018

What is I²C Protocol? Relevance of I²C in Arduino

Advertisement

Previously, we discussed about UART. What is I²C Protocol? I squared C (also pronounced as I-two-C) or I²C is a bus serial communication protocol designed by Philips for home automation and home electronics applications. Since 2006, licensing fees not needed to implement the I²C protocol. Fees needed to obtain I²C slave addresses allocated by NXP. I²C can connect a microprocessor and various circuits. In computing, a bus means a communication system which transfers data between components inside a computer, or between two or multiple computers. What is relevance of I²C in Arduino? Previously we talked about RX TX in Arduino and serial connection (in the article on UART) too. Each I²C bus consists of two signals – SCL (clock signal) and SDA (data signal). You noticed them on various Arduino modules as pins. We can use it by including Wire library.

 

What is I²C Protocol?

 

From our previous discussions, serial ports are asynchronous. So no clock data is transmitted. Hence the devices using serial ports must have agreement of time on a data rate. Two devices need to have clocks which are close to the same rate. Too much difference will cause garbled data. Asynchronous serial ports demands hardware – UART, which is somewhat complex. Also asynchronous serial ports inherently suited to communications between only two devices. There is no theoretical limit to asynchronous serial communications, but most UART devices only support a certain set of fixed baud rates.

 

I²C is a half-duplex bidirectional synchronous serial bus, where several devices, masters or slaves, can be connected to the bus. Exchanges always take place between a single master and one (or all) slave(s), always on the initiative of the master (never from master to master or from slave to slave). However, nothing prevents a component from passing from master to slave status and vice versa. The connection is made via two lines:

Advertisement

---

SDA (Serial Data Line): bidirectional data line,
SCL (Serial Clock Line): bidirectional synchronization clock line.

The 2 lines are pulled at voltage level VDD through pull-up resistors. Maximum number of devices is limited by the number of available addresses, 7 address bits and one R/W bit (read or write), ie 128 devices, but it also depends on the bus capacity (on which depends the maximum speed of the bus). It should be noted that addresses are reserved to broadcast messages and that many addresses are already allocated by manufacturers which greatly limits the number of devices (a variant of 10-bit addressing also exists).

In Ultra-fast mode (UFm) mode, the bus is unidirectional, so there can only be one master. The 2 lines are renamed USCL (clock line) and USDA (data line), and the master side, they are always output and push-pull type. This mode has limited use.

The equipment connected to the bus is connected via open collector on both SDA and SCL lines. The equipment is thus wired on the bus by the principle of “AND wired”, which means that in case of simultaneous emission of two devices, the value 0 overwrites the value 1. So we can say:

the logical state “0” or “LOW” is the “dominant” state,
the logical state “1” or “HIGH” is the “recessive” state.

When the bus is not in use, it is high (through pull-up resistors).

Dominant or “0” or “LOW” : from -0.5 V to 0.3x VDD
Recessive or “1” or “HIGH” : 0.7x V DD to VDD

There are five transmission speeds:
Standard mode (Sm) ≤ 100 kbit/s,
Fast mode (Fm) ≤ 400 kbit/s,
Fast plus mode (Fm+) ≤ 1 Mbit/s,
High-speed mode (Hs-mode) ≤ 3.4 Mbit/s,
Ultra-fast mode (UFm) ≤ 5 Mbit/s, unidirectional only.

Above things we discussed is around physical layer. I²C defines basic types of transactions, each of which begins with a START and ends with a STOP:

Single message where a master writes data to a slave.
Single message where a master reads data from a slave.
Combined format, where a master issues at least two reads or writes to one or more slaves.

What is I2C Protocol

To initiate the address frame, the master device leaves SCL high and pulls SDA low.
The address frame is always first in any new communication sequence. For a 7-bit address, the address is clocked out most significant bit (MSB) first, followed by a R/W bit indicating whether this is a read (1) or write (0) operation.The 9th bit of the frame is the NACK/ACK bit.
After the address frame has been sent, data can begin being transmitted. During data writing operation, the value on SDA not changed to avoid imposing false stop condition.
Once all the data frames have been sent, the master will generate a stop condition. Stop conditions are defined by a 0 to 1 (low to high) transition on SDA after a 0 to 1 transition on SCL. In this situation, SCL remains high.

There is official website to learn more in-depth and other layers :

Vim
1
https://www.i2c-bus.org/

Tagged With i2c arduino ppt , i2c bus what is , i2c protocol Arduino PPT , why is 1 recessive in I2C

This Article Has Been Shared 831 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is I²C Protocol? Relevance of I²C in Arduino

  • Choosing The Correct LCD Display For Arduino Like Boards

    Choosing The Correct LCD Display For Arduino Like Boards Is Crucial For Budget, For Compatibility With Wider Range Of Board & Microcontroller.

  • 7 Segment LED Display Tutorial For Dummies

    Here is Step By Step 7 Segment LED Display Tutorial For Dummies On How To Light Up With Battery To Control With Arduino Without Library.

  • Arduino 2 Push Button One LED : Switch On/Off

    Here is Circuit Diagram and Code For Arduino 2 Push Button One LED to Switch On/Off Project. It is Very Easy Yet Important Basic Behind Using Sensors to Switch On/Off an Event.

  • Arduino Stepper Motor Buying Guide (Driver IC Included)

    Here is Arduino Stepper Motor Buying Guide Including Needed Basics on Driver IC. Stepper Motor is Much More Complicated From Buying Point Than Servo Motor.

  • Breadboard Fuse Holder and Fuse For Arduino Projects

    Here is Basic Details on Breadboard Fuse Holder and Fuse For Arduino Projects. It Prudent to Use Fuse When Basic Matter Around Fuse is Known. Without Knowing Using Fuse Provides False Sense of Security.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What Online Casinos Have No Deposit Bonus in Australia March 30, 2023
  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023

About This Article

Cite this article as: Abhishek Ghosh, "What is I²C Protocol? Relevance of I²C in Arduino," in The Customize Windows, June 12, 2018, March 30, 2023, https://thecustomizewindows.com/2018/06/what-is-i2c-protocol-relevance-of-i2c-in-arduino/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT