devices and communication buses for devices …€¦ · devices and computer system ... sdio(secure...
TRANSCRIPT
![Page 1: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/1.jpg)
CHAPTER 2
DEVICES AND COMMUNICATION
BUSES FOR DEVICES NETWORK
![Page 2: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/2.jpg)
I/O PORT TYPES
Types of Serial ports
Synchronous Serial Input
Synchronous Serial Output
Asynchronous Serial UART input
Asynchronous Serial UART output
![Page 3: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/3.jpg)
TYPES OF PARALLEL PORTS
Parallel port one bit Input
Parallel one bit output
Parallel Port multi-bit Input
Parallel Port multi-bit Output
![Page 4: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/4.jpg)
SYNCHRONOUS SERIAL INPUT
![Page 5: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/5.jpg)
SYNCHRONOUS SERIAL OUTPUT
![Page 6: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/6.jpg)
SYNCHRONOUS SERIAL INPUT/OUTPUT
![Page 7: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/7.jpg)
ASYNCHRONOUS SERIAL INPUT
![Page 8: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/8.jpg)
ASYNCHRONOUS SERIAL OUTPUT
![Page 9: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/9.jpg)
TWO MODES OF COMMUNICATION BETWEEN
DEVICES AND COMPUTER SYSTEM
Full Duplex – Both devices or device and
computer system simultaneously communicate
each other
Half Duplex – Only one device can
communicate with another at an instance
![Page 10: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/10.jpg)
TEN WAYS OF TRANSMITTING SYNCHRONOUS
SERIAL BITS
![Page 11: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/11.jpg)
ASYNCHRONOUS COMMUNICATION
Clocks of the receiver and transmitter
independent, unsynchronized
Ex: UART Serial, Telephone or modem
Communication, RS232C communication
between the UART devices.
![Page 12: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/12.jpg)
RS232C COMMUNICATION
![Page 13: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/13.jpg)
RS232C COMMUNICATION
When a modem connects, modem sends data
carrier detect DCD signal at an instance t0.
Communicates data set ready (DSR) signal at
an instance t1 when it receives the bytes on
the line.
Receiving computer (terminal) responds at an
instance t2 by data terminal ready (DTR) signal.
After DTR, request to send (RTS) signal is sent
at an instance t3
![Page 14: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/14.jpg)
RS232C COMMUNICATION
Receiving end responds by clear to send (CTS)
signal at an instance t4. After the response
CTS, the data bits are transmitted by modem
from an instance t5 to the receiver terminal.
![Page 15: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/15.jpg)
PROTOCOL
A protocol is a standard adopted, which tells the way in which the bits of a frame must be sent from a device (or controller or port or processor) to another
HDLC, Frame Relay, for synchronous communication device or system.
For asynchronous transmission from a device port− RS232C, UART, X.25, ATM, DSL and ADSL
Ethernet and token ring protocols used in LAN networks
![Page 16: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/16.jpg)
HDLC(HIGH LEVEL DATA LINK CONTROL)
It is bit oriented protocol
Support both half and full duplex mode in point to point and multipoint
HDLC are characterized by
Station type
Primary station, secondary and combined station
Configuration
Unbalanced , symmetrical and balance configuration
![Page 17: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/17.jpg)
HDLC(CONTINUED)
Normal response mode, asynchronous
balanced mode
Frame type
I –frame
S- frame
U- frame
![Page 18: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/18.jpg)
HDLC(CONTINUED)
Flag field : 8 bit sequence with bit pattern 01111110 that identifies both the beginning and end of the frame and serves as synchronization pattern for the receiver
Address field: it contains the address of the secondary station.
Control field: it its 1 or 2 byte segment of the frame for flow and error control.
Information field: data from network layer
FCS field: error detecting field
![Page 19: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/19.jpg)
HDLC(CONTINUED)
![Page 20: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/20.jpg)
HDLC(CONTINUED)
The first field defines the type
N(s) represents sequence number of the frame
N(r) represents acknowledgement number
when piggybacking is used
P/F it means poll if frame is sent from P to S
And final if frame is sent from S to P
Code in S frame : RR(receiver ready 00),
RNR(receiver not ready 10), REJ(reject 01),
SREJ(selective reject 11)
![Page 21: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/21.jpg)
HDLC(CONTINUED)
I frames are used to transfer user data and
control information relating to user data
S frames are used to transfer control
information
U frames are reserved for system management
and managing the link itself
![Page 22: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/22.jpg)
SPI( SYNCHRONOUS PERIPHERAL INTERFACE)
Full-duplex Synchronous communication.
SCLK, MOSI and MISO
Device selection as master or slave can be
done by a signal to hardware input SS.
(Slave select when 0) pin
![Page 23: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/23.jpg)
SPI( SYNCHRONOUS PERIPHERAL INTERFACE)
![Page 24: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/24.jpg)
SCI(SERIAL CONNECT INTERFACE)
UART asynchronous mode port Full-duplex
mode
SCI programmable for transmission and for
reception
![Page 25: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/25.jpg)
SI(SERIAL INTERFACE)
SI is synchronous- asynchronous serial
communication port called USART
![Page 26: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/26.jpg)
SDIO(SECURE DIGITAL INPUT OUTPUT)
![Page 27: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/27.jpg)
PARALLEL PORT AT DEVICES
8-bit IOs
Short distances, generally within a circuit board or IC or nearby external devices
Advantage− Number of 8 bits over the wires in parallel.
High data transfer rate
Disadvantage− More number of wires
High capacitance results in delay
High capacitance can also result in noise and cross talk
![Page 28: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/28.jpg)
PORT INTERFACING
![Page 29: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/29.jpg)
PARALLEL IO PORT HANDSHAKING AND
INTERFACING
![Page 30: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/30.jpg)
INTEL 8255 PROGRAMMABLE PERIPHERAL
INTERFACE(PPI)
Intel 8255 provides 24 parallel input/output pins.
Used in many microcomputer/microcontroller system
24 pins are divided into three 8-bit ports
Port A and Port B can be used as an 8 bit i/o port
Port c can be used as two 4 bit i/o ports or produce handshake signals for port A and B or 8 bit i/o port
![Page 31: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/31.jpg)
INTEL 8255 PROGRAMMABLE PERIPHERAL
INTERFACE(PPI)
Alternatively, the ports can be grouped as
Group A (Port A and Port C upper four bits)
Group B (Port B and Port C lower four bits).
Eight data lines are available to read/write data
into ports or CR under the status of RD’ and
WR’ Pins.
Address lines A0 and A1 allow access a data
register for each port or CR.
00-Port A, 01- Port B, 10- Port C, 11-CR.
![Page 32: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/32.jpg)
INTEL 8255 PROGRAMMABLE PERIPHERAL
INTERFACE(PPI)
8255 has three different operating modes −
Mode 0 − In this mode, Port A and B is used as
two 8-bit ports and Port C as two 4-bit ports.
Mode 1 − In this mode, Port A and B is used as
8-bit I/O ports. They can be configured as
either input or output ports.
Mode 2 − In this mode, Port A can be
configured as the bidirectional port and Port B
either in Mode 0 or Mode 1.
![Page 33: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/33.jpg)
SOPHISTICATED INTERFACING
FEATURES IN DEVICE PORTS
In built schmitt trigger circuit is used to
conditioning the signal to noise elimination.
Datagate(xililnx) to reduce power dissipation
when device are operated at high speeds.
Device for I/O may integrate a SerDes
(serialization and De-serialization) subunit.
![Page 34: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/34.jpg)
HTTP
hypertext transfer protocol
It is an application layer protocol that allows
web based applications to communicate and
exchange data.
It is TCP/IP based protocol
Features : connectionless, stateless, any data
Working of HTTP
![Page 35: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/35.jpg)
HTTP
HTTP contains three main section: start line,
headers, body which contains plain text
information and binary data
Information is depended on the http message
whether it is a request or response.
![Page 36: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/36.jpg)
TCP/IP PROTOCOL
Transmission control protocol and internet
protocol
![Page 37: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/37.jpg)
UDP PROTOCOL
![Page 38: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/38.jpg)
UDP PROTOCOL
![Page 39: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/39.jpg)
TCP/IP PROTOCOL
![Page 40: DEVICES AND COMMUNICATION BUSES FOR DEVICES …€¦ · DEVICES AND COMPUTER SYSTEM ... SDIO(SECURE DIGITAL INPUT OUTPUT) PARALLEL PORT AT DEVICES 8-bit IOs Short distances, generally](https://reader034.vdocuments.net/reader034/viewer/2022042319/5f08d3f97e708231d423eacc/html5/thumbnails/40.jpg)
TCP/IP PROTOCOL