SERIAL BUS COMMUNICATION PROTOCOLS I 2 C

Similar documents
The I2C Bus. NXP Semiconductors: UM10204 I2C-bus specification and user manual HAW - Arduino 1

Chapter 02: Computer Organization. Lesson 04: Functional units and components in a computer organization Part 3 Bus Structures

SPI I2C LIN Ethernet. u Today: Wired embedded networks. u Next lecture: CAN bus u Then: wireless embedded network

Raspberry Pi. Hans- Petter Halvorsen, M.Sc.

Definitions and Documents

NB3H5150 I2C Programming Guide. I2C/SMBus Custom Configuration Application Note

Elettronica dei Sistemi Digitali Costantino Giaconia SERIAL I/O COMMON PROTOCOLS

LOCAL INTERCONNECT NETWORK (LIN)

AND8336. Design Examples of On Board Dual Supply Voltage Logic Translators. Prepared by: Jim Lepkowski ON Semiconductor.

USB2.0 <=> I2C V4.4. Konverter Kabel und Box mit Galvanischetrennung

Arbitration and Switching Between Bus Masters

Chapter 13. PIC Family Microcontroller

AN601 I2C 2.8 Communication Protocol. SM130 SM130 - Mini APPLICATION NOTE

HDMM01 V1.0. Dual-axis Magnetic Sensor Module With I 2 C Interface FEATURES. Signal Path X

USING I2C WITH PICAXE

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

Chapter 11: Input/Output Organisation. Lesson 06: Programmed IO

Chapter 12: Multiprocessor Architectures. Lesson 09: Cache Coherence Problem and Cache synchronization solutions Part 1

UM I 2 C-bus specification and user manual. Document information

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )

The I 2 C-bus and how to use it (including specifications)

The Programming Interface

Serial port interface for microcontroller embedded into integrated power meter

Computer and Set of Robots

Next Generation Intelligent LCDs

ADVANCED PROCESSOR ARCHITECTURES AND MEMORY ORGANISATION Lesson-17: Memory organisation, and types of memory

Microcontrollers in Practice

LIN (Local Interconnect Network):

7 OUT1 8 OUT2 9 OUT3 10 OUT4 11 OUT5 12 OUT6 13 OUT7 14 OUT8 15 OUT9 16 OUT10 17 OUT11 18 OUT12 19 OUT13 20 OUT14 21 OUT15 22 OUT16 OUT17 23 OUT18

Chapter 12. Development Tools for Microcontroller Applications

Serial Communications

Application Note 83 Fundamentals of RS 232 Serial Communications

DS1307ZN. 64 x 8 Serial Real-Time Clock

Programming Flash Microcontrollers through the Controller Area Network (CAN) Interface

Integration of Arduino as a slave system to LonWorks based System using I2C Interface

Lizy Kurian John Electrical and Computer Engineering Department, The University of Texas as Austin

Chapter 2 Logic Gates and Introduction to Computer Architecture

THE I 2 C-BUS SPECIFICATION VERSION 2.1 JANUARY document order number:

Accessing I2C devices with Digi Embedded Linux 5.2 example on Digi Connect ME 9210

Pre-tested System-on-Chip Design. Accelerates PLD Development

MPR121 Serial Communication

Bluetooth Audio Data Transfer between Bluetooth chipset (PMB6752&PMB6625) and TriCore Host TC1920

A+ Guide to Managing and Maintaining Your PC, 7e. Chapter 1 Introducing Hardware

Microcomputer Protocol Implementation at Local Interconnect Network Georgi Krastev

Programmable set for Ethernet Modbus/TCP in IP67 TI-BL67-PG-EN-2

MMC314xMR. Ultra Small 3-axis Magnetic Sensor, With I 2 C Interface. Signal Path X. Signal Path Y. Signal Path Z FEATURES

User s Manual of Board Microcontroller ET-MEGA2560-ADK ET-MEGA2560-ADK

Serial Communications

The Secrets of RS-485 Half-duplex Communication

AVR315: Using the TWI Module as I2C Master. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

AVR311: Using the TWI Module as I2C Slave. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Lab 2.0 Thermal Camera Interface

RS-422/485 Multiport Serial PCI Card. RS-422/485 Multiport Serial PCI Card Installation Guide

Hardware Connections between Arduino and IMU Nori Wilkins Apr. 5, 2013

AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.

I 2 C Master Mode Overview and Use of the PICmicro MSSP I 2 C Interface with a 24xx01x EEPROM

DECT Module UM-9802 Datasheet

2.0 Command and Data Handling Subsystem

How to design and implement firmware for embedded systems

RS485 & RS422 Basics

udrive-usd-g1 Embedded DOS micro-drive Module Data Sheet

RS-485 Protocol Manual

Computer Performance. Topic 3. Contents. Prerequisite knowledge Before studying this topic you should be able to:

Allows the user to protect against inadvertent write operations. Device select and address bytes are Acknowledged Data Bytes are not Acknowledged

Bi-directional level shifter for I²C-bus and other systems.

Freescale Semiconductor, Inc. Product Brief Integrated Portable System Processor DragonBall ΤΜ

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

AVR151: Setup and Use of the SPI. Introduction. Features. Atmel AVR 8-bit Microcontroller APPLICATION NOTE

Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A

The FT6x06 series ICs include FT6206 /FT6306, the difference of their specifications will be listed individually in this datasheet.

DESIGN OF 6 DOF ROBOTIC ARM CONTROLLED OVER THE INTERNET

Am186ER/Am188ER AMD Continues 16-bit Innovation

Microtronics technologies Mobile:

Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB

Location-Aware and Safer Cards: Enhancing RFID Security and Privacy

Pmod peripheral modules are powered by the host via the interface s power and ground pins.

Interfacing 3V and 5V applications

Sample Project List. Software Reverse Engineering

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

I2C PRESSURE MONITORING THROUGH USB PROTOCOL.

AN736. An I 2 C TM Network Protocol for Environmental Monitoring THE I 2 C BUS SPECIFICATION INTRODUCTION

COMPUTER SCIENCE AND ENGINEERING - Microprocessor Systems - Mitchell Aaron Thornton

Technical Support Bulletin Nr.18 Modbus Tips

CHAPTER 2: HARDWARE BASICS: INSIDE THE BOX

Chapter 5 Real time clock by John Leung

Hello, and welcome to this presentation of the STM32 Serial Audio Interface. I will present the features of this interface, which is used to connect

MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence :

Bluetooth to serial HC-06 wireless module

Surveillance System Using Wireless Sensor Networks

Interfacing Of PIC 18F252 Microcontroller with Real Time Clock via I2C Protocol

Technical Note TN_158. What is the Camera Parallel Interface?

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

- 35mA Standby, mA Speaking pre-defined phrases with up to 1925 total characters.

AVR1309: Using the XMEGA SPI. 8-bit Microcontrollers. Application Note. Features. 1 Introduction SCK MOSI MISO SS

Implementing a Digital Answering Machine with a High-Speed 8-Bit Microcontroller

TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT

Software User Guide UG-461

Pen Drive to Pen Drive and Mobile Data Transfer Using ARM

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

Transcription:

DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK Lesson-18: SERIAL BUS COMMUNICATION PROTOCOLS I 2 C 1

Interconnecting number of device circuits, Assume flash memory, touch screen, ICs for measuring temperatures and ICs for measuring pressures at a number of processes in a plant. ICs mutually network through a common synchronous serial bus I 2 C An 'Inter Integrated Circuit' (I2C) bus, a popular bus for these circuits. 2

Synchronous Serial Bus Communication for networking Each specific I/O synchronous serial device may be connected to other using specific interfaces, for example, with I/O device using I 2 C controller I 2 C Bus communication use of only simplifies the number of connections and provides a common way (protocol) of connecting different or same type of I/O devices using synchronous serial communication 3

IO I 2 C Bus Any device that is compatible with a I 2 C bus can be added to the system (assuming an appropriate device driver program is available), and a I 2 C device can be integrated into any system that uses that I 2 C bus. 4

Serial IO I 2 Cbus Serial bus controller for I 2 C in a Microcontroller Serial IO bus IO Device Interface IO Device Interface IO Device Interface IO Device Interface Processor of system B Processor of system C Processor of system D Processor of system E 5

Originally developed at Philips Semiconductors Synchronous Serial Communication 400 kbps up to 2 m and 100 kbps for longer distances Three I 2 C standards Industrial 100 kbps I 2 C, 100 kbps SM I2C, 400 kbps I 2 C 6

Distributed Systems (ICs) on I 2 C Bus using serial data line and clock 7

I 2 C Bus The Bus has two lines that carry its signals one line is for the clock and one is for bi-directional data. There is a standard protocol for the I 2 C bus. 8

Device Addresses and Master in the I 2 C bus Each device has a 7-bit address using which the data transfers take place. Master can address 127 other slaves at an instance. Master has at a processing element functioning as bus controller or a microcontroller with I 2 C (Inter Integrated Circuit) bus interface circuit. 9

Slaves and Masters in the I 2 C bus Each slave can also optionally has I 2 C (Inter Integrated Circuit) bus controller and processing element. Number of masters can be connected on the bus. However, at an instance, master is one, which initiates a data transfer on SDA (serial data) line and which transmits the SCL (serial clock) pulses. From master, a data frame has fields beginning from start bit 10

Bits as per I 2 C Bus Protocol 11

Synchronous Serial Bus Fields and its length First field of 1 bit Start bit similar to one in an UART Second field of 7 bits address field. It defines the slave address, which is being sent the data frame (of many bytes) by the master Third field of 1 control bit defines whether a read or write cycle is in progress Fourth field of 1 control bit defines whether is the present data is an acknowledgment (from slave) 12

Synchronous Serial Bus Fields and its length Fifth field of 8 bits I 2 C device data byte Sixth field of 1-bit bit NACK (negative acknowledgement) from the receiver. If active then acknowledgment after a transfer is not needed from the slave, else acknowledgement is expected from the slave Seventh field of 1 bit stop bit like in an UART 13

Disadvantage of I 2 C bus Time taken by algorithm in the hardware that analyzes the bits through I 2 C in case the slave hardware does not provide for the hardware that supports it. Certain ICs support the protocol and certain do not. Open collector drivers at the master need a pull-up resistance of 2.2 K on each line 14

Summary 15

We learnt I 2 C is a serial bus for interconnecting the ICs. A start bit and a stop bit like in UART. It has seven fields for start, 7-bits address, defining a read or write, definition of byte as acknowledging byte, data byte, NACK and end bit. 16

End of Lesson 18 of Chapter 3 17