COS10004 Lecture 6.1 Data Communication
COS10004 Lecture 6.1 Data Communication
COS10004 Lecture 6.1 Data Communication
Dr Chris McCarthy
THIS LECTURE
• Data Communications
• Serial
– RS-232, USB
– Parity
• Serial versus Parallel
What is COMMUNICATION???
• COMMUNICATION is the act of conveying intended
meaning from one group to another through the use of
mutually understood signs or other form of activities.
DATA COMMUNICATIONS
• Data communications is the process of
using computing and communication
technologies to transfer data from one
place to another, and vice versa.
Source: https://www.techopedia.com/definition/6765/data-communications-dc
DATA COMMUNICATIONS MODES
There are three modes of data communication
• Simplex: Data travels in one direction only
System A System B
Source: https://www.techopedia.com/definition/6765/data-communications-dc
WHY DO WE NEED DATA
COMMUNICATION IN COMPUTER
SYSTEMS?
http://www.webopedia.com/TERM/C/computer.html
COMPUTER BASIC ARCHITECTURE
Control BUS
Address BUS
Central
Processing
Unit
(CPU)
DATA BUS
DATA COMMUNICATION
• A computer that sits only talking to itself is
of little use.
• Computers collect information from the
world around them (probably in analogue
form) or from another computer (in digital
form)
• Computers send information to the world
around them (probably in analogue form)
or to another computer (in digital form)
4/9/20 COS10004 Computer Systems
8
DATA COMMUNICATION
• Almost all computer systems need to send or
receive data from other systems or peripherals
• Such data communications can be sent over a
number of lines in parallel or over a single line as
a serial packet
System 1
System 2
System 1
System 2
There has to be a common ground (often another
wire) if sending electricity, but light signals (via fibre
optics) do not need a ground.
4/9/20 COS10004 Computer Systems
9
DATA COMMUNICATION
• Serial Communication: Data send one bit at a
time
• RS-232
System 1
System 2
11101010
• USB
System 2
System 1
1
0
1
0
3 2 RxD Receive PC In
Clear to
5 8 CTS CTS Flow
Send
Data Set
6 6 DSR Ready
Ready
Signal
7 5 SG Common
Ground
Carrier Modem
RS232 line voltage can be 8 1 CD
Detect connected
-12 - +12V, 0-12V, 0-5V,
Data
0-3.3V. 20 4 DTR Terminal Ready
Mixing them up burns out Ready
the chips. Ring
22 9 RI Line Ringing
Indicator
4/9/20 COS10004 Computer Systems
11
RS-232 SERIAL COMMUNICATIONS
• Originally designed for teletypes, adapted to
acoustic modems, modems and input devices
(incl. mice).
1 0 1 1 0 0 0 1
Peripheral
Computer
Data End of
Available Data cycle
4/9/20 COS10004 Computer Systems
Taken 23
DATA COMMUNICATIONS: PARALLEL
DR DT Data
Peripheral
Computer
1 Device places data onto data bus 0 0
when Data Taken (DT) is low
2 Device raises Data Ready (DR) 1 0
3 Computer sees DR high and takes 1 0
the data Data End of
Available Data cycle
4 Computer raises DT 1 1 Taken
5 Device sees DT high and lowers 0 1
DR Computer Peripheral
1
6 Computer sees DR low and lowers 0 0 Data
DT
2 5
Data Ready
4
6
Data Taken
3
4/9/20 COS10004 Computer Systems
Computer reads Data
24
DATA COMMUNICATIONS
Parallel Serial
• Fast, whole data word • Slower, all data word
transmitted at once transmitted one bit at
• Only good over short a time
distances: expensive • Good over short and
and bulky cables; long distances; less
cross-interference; cross-interference;
cheaper cables