APPLICATION OVER I2C Kıvanç ÖZBEK 504031549. What is I2C? 2-wired communication interface Communication protocol used in small areas Defined in 1980’s.

Slides:



Advertisements
Similar presentations
I2C bus Inter Integrated Circuits bus by Philips Semiconductors
Advertisements

Common Customer Issue: I2C Cable Glitches
COEN 180 SRAM. High-speed Low capacity Expensive Large chip area. Continuous power use to maintain storage Technology used for making MM caches.
EXTERNAL COMMUNICATIONS DESIGNING AN EXTERNAL 3 BYTE INTERFACE Mark Neil - Microprocessor Course 1 External Memory & I/O.
Embedded Systems I2CI2C. Feature 3 wire GND SCL(clock) SDA(data) All devices share the same bus wire Using wire and, each device gain access to bus (become.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Lecture 8: Serial Interfaces
EE 316 Computer Engineering Junior Lab Word Mastermind.
EE 316 Computer Engineering Junior Lab PS/2 Keyboard.
9/20/6Lecture 3 - Instruction Set - Al Hardware interface (part 2)
I2CI2C CS-423 Dick Steflik. Inter-Integrated Circuit Developed and patented by Philips for connecting low speed peripherals to a motherboard, embedded.
EE 316 Computer Engineering Junior Lab Digital Hangman.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
Interfaces A practical approach. Lesson 2 I2C and SPI
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
Microprocessor Block Diagram
1 © Unitec New Zealand I2C Lecture 10 Date: - 2 Nov, 2011 Embedded Hardware ETEC 6416.
Arduino Nano to Uno I2C Communication Mike Pluma The-Bao Nguyen EE 444 Spring 2013.
Critical Design Review 27 February 2007 Black Box Car System (BBCS) ctrl + z: Benjamin Baker, Lisa Furnish, Chris Klepac, Benjamin Mauser, Zachary Miers.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
Lecture 111 Lecture 11: Lab 3 Overview, the ADV7183B Video Decoder and the I 2 C Bus ECE 412: Microcomputer Laboratory.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
VERIFICATION OF I2C INTERFACE USING SPECMAN ELITE By H. Mugil Vannan Experts Mr. Rahul Hakhoo, Section Manager, CMG-MCD Mr. Umesh Srivastva, Project Leader.
Embedded Bus – i2c David E. Culler Lab 2 Feb 2, 2015
I2C UNIT 23 로봇 SW 교육원 조용수. 학습 목표 I2C I2C Protocol 구조 N051 I2C 동작 I2C Register 2.
Objectives How Microcontroller works
7/23 Inter-chip Serial Communication: SPI and I 2 C Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
ITÜ COMPUTER ENGINEERING INTERCONNECTION PROTOCOLS PROJECT PRESENTATION Ersan Öztürk /12/2005 JAVA RADIO.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Input/Output 2 What is I/O? How we get the CPU to communicate with devices From the computer’s point of view, it’s just 1’s and 0’s Gets interpreted.
PCA9557: REMOTE 8-BIT I 2 C AND SMBus LOW- POWER I/O EXPANDER.
I2C Master Core Simulation Environment. I2C Master Core Requirements Coverage (*) Requirement I2C IP RS-906: The I2C IP shall define the period of time,
Design of a Novel Bridge to Interface High Speed Image Sensors In Embedded Systems Tareq Hasan Khan ID: ECE, U of S Term Project (EE 800)
1 Synchronous Serial IO Send a separate clock line with data –SPI (serial peripheral interface) protocol –I 2 C (or I2C) protocol Encode a clock with data.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Chris Wallau ECE5330 November 17, 2008 Remote Thermometer and Display.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
Electrical Characteristics of Logic Gates Gate Characteristics Last Mod: January 2008  Paul R. Godin.
Embedded Communication Protocols Don Heer 10/18/10 1.
Microcontroller basics Embedded systems for mortals.
How do ABI test Digital ICs?. Test principles ABI digital tests are designed to find faults on boards. To do this the following principles are used: Confirm.
October 12th 2005 ICALEPCS 2005D.Charlet The SPECS field bus  Global description  Module description Master Slave Mezzanine  Implementation  Link development.
1 of 20 How to use the Compass A. Compass. 2 Compass: - Provides heading relative to Magnetic North, not true North HMC5883L V input - I2C (not.
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
B1011 Processor to Processor ENGR xD52 Eric VanWyk Fall 2014.
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
REMOTE JAMMING DEVICE.
The I2C Bus.
LAPTOP THEFT IDENTIFIER.
MGITER,NAVSARI. AVR MICROCONTROLLER AND INTERFACING
Chapter 11: Inter-Integrated Circuit (I2C) Interface
(Inter-IC bus) By Tejaswini Gadicherla
Lecture-1 Introduction
I2C Protocol and RTC Interfacing
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
EEPROM Comparison – Parallel or Serial
Internet-of-Things (IoT)
Circuits.
Serial EEPROM (Atmel 24C-512)
Jeremy Reed ATMEL AT24C512 2-wire Serial EPROM Jeremy Reed
I2C Protocol and RTC Interfacing
I/O Experiments Assignment 1.
IN5350 – CMOS Image Sensor Design
Presentation transcript:

APPLICATION OVER I2C Kıvanç ÖZBEK

What is I2C? 2-wired communication interface Communication protocol used in small areas Defined in 1980’s by Philiphs Bidirectional data transmission 7 bit slave address Acknowledgement after each byte

I2C Properties Random selection procedure Transmission capacity up to 400 KHz Line length up to 4 meters Line capacitance up to 400 pF Divice capacitance up to 10 pF

Roles Master –Controling the clock signal –Defining the slave address –Defining the Start – Stop conditions Slave –Sending ack after each byte –Controling the data line during read operations –Taking clock from the line

About the application

The term open-collector typically refers to a transistor output where the collector (output) of the transistor is not connected to a positive voltage. Since a transistor used in outputs is a saturated switch, the collector needs to be connected to a positive voltage to complete the transistor circuit. This positive voltage need not be any specific value as long as it is above the saturation of the transistor. Because of this, an open collector output can be connected to a range of voltages using a pullup resistor. This resistor is required for the output to function as it completes the transistor's circuit.

About the application

wvalue=0x00; rvalue = outp(data,wvalue); delay(wait); wvalue=0x0f; rvalue=outp(control,wvalue);/*scl ve sda 1 yapildi*/ delay(wait); wvalue=0x80; rvalue = outp(data,wvalue);/*sda 0 yaparak start cond. olusturuldu*/

About the application wvalue=0x00; rvalue=outp(control,wvalue); /*scl 0 yapildi*/ delay(wait); wvalue=0x80; rvalue = outp(data,wvalue); /*sda 0 yapildi*/ delay(wait); wvalue=0x0f; rvalue=outp(control,wvalue); /*scl 1 yapildi*/ delay(wait); wvalue=0x00; rvalue = outp(data,wvalue); /*sda 1 yapilarak stop cond. olusturuldu*/ delay(wait);

About the application check: for(i;i<5;i++){ rvalue=inportb(status); rvalue<<=4; delay(wait); if(rvalue>127){ //scl 0 okundu delay(wait); rvalue=inportb(status); rvalue<<=4; if(rvalue<128){ //scl 1 okunursa hat mesgul printf("Hat mesgul\n"); i=0; } else{//isMain 0 ise sda 1 kalacaktir dolayisiyla ana master calisir wvalue=isMain; rvalue = outp(data,wvalue);//sda belirlenerek hat sahipligi olustu delay(wait); }

About the application } } printf("Hat uygun kullanilabilir\n"); wvalue=0x00; rvalue=outp(control,wvalue); //scl 0 delay(wait*2); if(inportb(status) > 127){ //sda kontrol edildi printf("Ana master calisacak\n"); goto check; }

Encountered Difficulties No direct access to parallel port in XP –Because it is not allowed to use ports directly in windows xp, windows me is used. No device to watch parallel port outputs –There were no hardware to watch the outputs so again parallel port is used to see what is written to the port. Outer power supply –Game port pin 1(Vcc) and pin 4(Gnd) used.

Thank you for your interest Questions?