I2c serial interface




















If bit 0 in the address byte is set to 1 then the master device will read from the slave I2C device. Master device needs no address since it generates the clock via SCL and addresses individual I2C slave devices. The communication is initiated by the master device. It generates the Start condition S followed by the address of the slave device B1.

If the bit 0 of the address byte was set to 0 the master device will write to the slave device B2. Otherwise, the next byte will be read from the slave device. Once all bytes are read or written Bn the master device generates Stop condition P. This signals to other devices on the bus that the communication has ended and another device may use the bus.

Most I2C devices support repeated start condition. This means that before the communication ends with a stop condition, master device can repeat start condition with address byte and change the mode from writing to reading.

I2C bus is used by many integrated circuits and is simple to implement. Any microcontroller can communicate with I2C devices even if it has no special I2C interface.

I2C specifications are flexlible — I2C bus can communicate with slow devices and can also use high speed modes to transfer large amounts of data.

Because of many advantages, I2C bus will remain as one of the most popular serial interfaces to connect integrated circuits on the board. Main menu Skip to primary content. Skip to secondary content. Improve Article. Save Article. Like Article. Last Updated : 16 Feb, Start and Stop Condition.

Next Architectural Genres by Grady Booch. Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. We use cookies to ensure you have the best browsing experience on our website. Start Your Coding Journey Now!



0コメント

  • 1000 / 1000