Docsity

I2C and USB Serial Interfaces: A Comparison, Exams of Introduction to Sociology

Partial preview of the text

Download I2C and USB Serial Interfaces: A Comparison and more Exams Introduction to Sociology in PDF only on Docsity!

  • Serial Interfaces --- Part 2 ECE 153B --- Mar 5,

The I

C Bus



I

2

C (Inter – IC) Bus

 Serial, 2-wire bus  different than point–to–point communications  Developed by Philips Semiconductor in early 1980’s  Max speeds  100 Kbps in “standard” mode  400 Kbps in “fast” mode  3.4 Mbps in “high-speed” mode  Software controlled addressing  No address decoding hardware

The I

C Bus

Electrical implementation –

Open drain connection to data and clock buses

The I

C Bus

Each device has a unique 7-bit I

(^2)

C address

4 most significant bits are (typically) fixed andassigned to specific categories of devices •

e.g. 4’b1010 is assigned to serial EEPROMs

3 less significant bits are programmable through hardwareaddress pins

The I

C Bus

I

C Bus Terminology



Transmitter 

Device that sends data to the bus 

Can be master-transmitter or slave-transmitter 

Receiver 

Device that receives data from the bus 

Can be master-receiver or slave-receiver

The I

C Bus

I

2

C Bus Terminology



Master 

The component that initiates a transfer (Start command),generates the clock signal (SCL), and terminates the transfer(Stop command) 

Slave 

The device addressed by the master. A slave can be eitherreceiver or transmitter

The I

C Bus

I

2

C address of the targeted device is sent in the first byte

LSB of initial byte indicates direction of transfer (R/W)

Each transmission sequence begins with Start

condition

and ends with Stop

or ReStart

condition

The I

C Bus

 Terminology for I 2 C Bus Transfer  F (FREE)  The bus is free or idle; the data line SDA and the SCL clock are both in the high state.  S (START) or R (RESTART)  Data transfer begins with a Start condition. The level of the SDA dataline changes from high to low, while the SCL clock line remains high.When this occurs, the bus becomes 'busy'.  C (CHANGE)  While the SCL clock line is low, the data bit to be transferred can beapplied to the SDA data line by a transmitter. During this time, SDAmay change its state, as long as the SCL line remains low.

USB •

The Universal Serial Bus

USB 

Developed to provide simple connectivitybetween PC’s and a diverse range of peripheraldevices 

Up to 127 USB devices can be connected to a hostcomputer

USB is both a serial protocol and a physical link 

One pair of wires transmits differential data



Second pair of wires provides power to downstreamperipherals

USB 

USB peripherals are slaves, responding tocommands from the host 

When a peripheral is attached to a USB network, thehost communicates with the device to learn its identityand to discover which device driver is required 

Process is called “enumeration” 

Plug and play feature

USB 

USB peripherals only communicate with the host 

Peripherals cannot communicate directly with eachother

USB communications take place between thehost and “endpoints” located in the peripherals

USB 

The host device driver 

USB is a complex standard that requires extensive softwaresupport, both on the firmware side and in the host computer  A USB host driver is a “difficult beast”  Most devices, however, can make use of general-purpose driversprovided with Windows or Linux, e.g. HID, mass storage, ...  IC vendors offer specialized parts (camera controllers, audiodevices, etc.) for the peripheral side of the interface

Firewire 

Firewire developed by Apple Computer in 1986 

became IEEE Standard 1394 in 1987  aka iLink (Sony), Linx(Texas Instr) .... and others 

Intended for high-bandwidth isochronous (real-time) datainterfacing 

IEEE 1394a : 100, 200, or 400 Mbs half-duplex  IEEE 1394b : 800, 1600, 3200 Mbs (beta mode 8b-10b)  IEEE 1394c : 800 over cat5E copper cable with RJ