Professional Documents
Culture Documents
INTERFACING
Dr. Bikram Keshari Mishra
Associate Professor
Department of Computer Sc. and Engg.
Silicon Institute of Technology, Bhubaneswar
INTERFACING
• SPI developed by
• SPI is an interface bus that enables serial exchange of data (one bit
at a time) betwn two devices-
– one called a master
– other called a slave
12/13/2022 4
Dr. Bikram K. Mishra
SPI bus – single master & single slave
12/13/2022 6
Dr. Bikram K. Mishra
Data Transmission in SPI
Inter-Integrated Circuits
(IIC/I2C)
I2C Features
• I2C bus is very cheap.
• Reduces board space and cost by:
– Allowing use of ICs with fewer pins.
– Allowing components to be located close to their point of use.
• I2C bus is :
– bi-directional
– synchronous to a common clock
Dr. Bikram K. Mishra 8
12/13/2022
I2C Bus Configuration
• Master node :
– Initiates a transfer by generating START and STOP conditions
– Generates the clock
– Transmits the slave address
– Determines data transfer direction
• Slave node :
– receives clock
– responds when addressed by master.
– Slaves cannot initiate communication.
12/13/2022 9
Dr. Bikram K. Mishra
1
12/13/2022 Dr. Bikram K. Mishra 10
RS – 232 C
11
12/13/2022 Dr. Bikram K. Mishra
Software Handshaking :
Uses Ctrl-S and Ctrl-Q to represent request to suspend and clear to
resume respectively
12/13/2022 13
Dr. Bikram K. Mishra
USB
15
12/13/2022 Dr. Bikram K. Mishra
Tier-star Topology
• A USB host may have multiple host controllers and each host controller may
provide one or more USB ports.
• Up to 127 devices including hubs, may be connected to a single host
controller.
• Root hub — It is a hub that is built into the host controller.
16
12/13/2022 Dr. Bikram K. Mishra
Four Tires USB Tree Structure
26
12/13/2022 Dr. Bikram K. Mishra
CAN
• Msg. transmitted from any node on a CAN bus do not contain addrs
of transmitting or receiving nodes.
• All other nodes receive the msg and performs an acceptance test on the
identifier to determine if the msg is relevant to that particular node.
1) Data Frame :
– Used when a node transmits infm to any other node in the system
– Data Frames consists of :
• Arbitration Fields
• Control Fields
• Data Fields
• CRC Fields (Cyclic Redundancy Check)
• a 2-bit Acknowledge Field
• an End of Frame.
3) Error Frame:
– If transmitting or receiving node detects an error, it will
immediately abort transmission and send error frame.
4) Overload Frame:
– Used to provide delay between messages.
– It is transmitted when the nodes become too busy.
CAN Benefits
• Low cost: As CAN serial bus uses two wires. Also, driven by low cost protocol
devices, they are relatively cheap.
• Good Speed: CAN supports data rate of 1 MBit/s @ 40m bus length.
• Standardized: ISO has standardized CAN via ISO-DIS 11898 high speed
applications) and ISO-DIS 11519-2 (low speed applications).
– Less complication
– Less power consumption
– Cheaper rates
– Robustness
Bluetooth Architecture
Piconets
Scatter-net
• Scatter-net is formed by
combining various piconets.
34
12/13/2022 Dr. Bikram K. Mishra
Advantages over Infrared
ISA Bus
• It operates at 8.33MHz.
• Its data transfer data rate is 8MB/s.
• It has 24 address lines and 16 data lines.
• It is used to connect printer, scanner, modem, sound card, CD-
ROM etc.
• Since PCI bus does not accept 8-bit and 16-bit ISA cards, ISA
bus is also provided along with PCI bus to interface 8-bit and
16-bit ISA cards.