2020handout4 Supervisory Control Circuits
2020handout4 Supervisory Control Circuits
source of
transmitter receiver user of
information
information
estimate of
channel message signal
transmitted received
signal signal
AUTHOR: UCHIYABU 1
4.1 Supervisory Control Data Transmission Terminology
Data transmission occurs between a transmitter and a receiver over some transmission
medium.
A direct link is a transmission path between two devices in which signals propagate
directly from transmitter to receiver with no intermediate devices, other than
amplifiers or repeaters used to increase signal strength. This term can apply to both
guided and unguided media.
simplex
In half-duplex operation, both stations may transmit, but only one at a time.
AUTHOR: UCHIYABU 2
In full-duplex operation, both stations may transmit simultaneously. In full-duplex,
the medium is carrying signals in both directions at the same time.
The definitions are according to the American National Standards Institute (ANSI).
According to the International Telecommunications Union – Telecommunications (ITU-
T), the term simplex is used to correspond to ANSI half-duplex while duplex is
used to correspond to ANSI full-duplex.
Hybrid Operation
Hybrid-Operation is an operation where a combination of one-way and two-way
circuits where one-way circuits predominate and a number of two-way circuits are
provided for overflow situations.
hybrid operation
AUTHOR: UCHIYABU 3
Frequency, Spectrum, and Bandwidth
A signal is generated by the transmitter and transmitted over a medium. The
generated signal is a function of time, but it can also be expressed as a function of
frequency. The generated signal consists of components of different frequencies.
A communication signal can be viewed in the frequency domain or in the time
domain. The frequency domain view of a signal is more important to an
understanding of data transmission than a time domain view.
A digital signal is one in which the signal intensity maintains a constant level for
some period of time and then abruptly changes to another constant level.
The simplest sort of signal is a periodic signal, in which the same signal pattern
repeats over time.
AUTHOR: UCHIYABU 4
s(t + T) = s(t) -∞ < t < +∞
where the constant T is the period of the signal (T is the smallest value that satisfies
the equation). Otherwise, a signal is aperiodic.
The sine wave is the fundamental periodic signal. A general sine wave can be
represented by three parameters: peak amplitude (A), frequency (f), and phase (φ).
The peak amplitude is the maximum value or strength of the signal over time
typically, measured in volts.
The frequency is the rate [in cycles per second, or Hertz (Hz)] at which the signal
repeats. An equivalent parameter is the period (T) of a signal, which is the amount
of time it takes for one repetition (T = 1/f)
Phase is a measure of the relative position in time within a single period of a signal.
For a periodic signal f(t), phase is the fractional part (t/T) of the period T through
which t has advanced relative to an arbitrary origin. The origin is usually taken as the
last previous passage through zero from the negative to the positive direction.
s(t) = A sin(2πft + φ)
The general sine wave can be written s(t) = A sin(2πft + φ), a sinusoid
There is a relationship between the two sine waves: one in time and one in space.
The wavelength (λ) of a signal is the distance occupied by a single cycle, or, the
distance between two points of corresponding phase of two consecutive cycles.
AUTHOR: UCHIYABU 5
The components of this signal are sine waves of frequencies f and 3f.
So for each signal, there is a time domain function s(t) that specifies the amplitude of
the signal at each instant in time. Similarly, there is a frequency domain function S(f)
that specifies the peak amplitude of the constituent frequencies of the signal.
AUTHOR: UCHIYABU 6
Most of the energy in the signal is contained in a relatively narrow band of frequencies.
This band is referred to as the effective bandwidth, or just bandwidth.
If a signal includes a component of zero frequency, that component is a dc
component (dc) or constant component
With no dc component, a signal has an average amplitude of zero. With a dc
component, it has a frequency term at (f = 0) and a nonzero average amplitude.
Conclusions:
1. In general, any digital waveform will have infinite bandwidth.
If we attempt to transmit this waveform as a signal over any medium, the
transmission system will limit the bandwidth that can be transmitted.
2. For any given medium the greater the bandwidth transmitted, the greater the cost.
2.1 Economic and practical reasons dictate that digital information be approximated
by a signal of limited bandwidth.
AUTHOR: UCHIYABU 7
2.2 Limiting the bandwidth creates distortions, which makes the task of interpreting
the received signal more difficult.
3. The more limited the bandwidth, the greater the distortion, and the greater the
potential for error by the receiver.
an example
1. Source
The source generates the data to be transmitted.
Examples are telephones and personal computers
2. Transmitter
The transmitter transforms and encodes the data generated by a source system in
such a way as to produce electromagnetic signals that can be transmitted across
some transmission system.
AUTHOR: UCHIYABU 8
Example: a modem takes a digital bit stream from an attached device such as a
personal computer and transforms that bit stream into an analogue signal that can
be handled by the telephone network.
3. Transmission System
This can be a single transmission line or a complex network connecting source and
destination.
4. Receiver
The receiver accepts the signal from the transmission system and converts it into a
form that can be handled by the destination device.
Example: a modem will accept an analogue signal coming from a network or
transmission line and convert it into a digital bit stream.
5. Destination
Takes the incoming data from the receiver.
Associated Terminology
AUTHOR: UCHIYABU 9
Error Detection and Correction are required in circumstances where errors cannot
be tolerated. This is usually the case with data processing systems.
For example, in transferring a file from one computer to another, it is not acceptable
for the contents of the file to be accidentally altered.
Flow Control is required to assure that the source does not overwhelm the
destination by sending data faster than they can be processed and absorbed.
AUTHOR: UCHIYABU 10
4.3 Using MODEMs in the Communication Model
AUTHOR: UCHIYABU 11
1. XON/XOFF Signalling: implemented in software
When the modem decides that it has too much data arriving, it sends an XOFF
character to the connected terminal to tell it to stop transmitting characters.
The sending terminal is advised to stop transmitting characters when the modem
memory buffer fills up to 66% full. This delay in transmission of characters by the
terminal allows the modem to process the data in its memory buffer.
Once the data has been processed (and the memory buffer has emptied to 33%
full, the modem sends an XON character to the terminal and transmission of data
to the modem then resumes.
XON and XOFF are two defined ASCII characters DC1 and DC3 respectively.
These characters (DC1 and DC3) are reserved for control purposes. They should be
removed from the standard stream of information transmitted.
AUTHOR: UCHIYABU 12
4.4 Using the UART/USART in Asynchronous Communication
UART stands for Universal Asynchronous Receiver Transmitter
USART stands for Universal Synchronous Asynchronous Receiver Transmitter
The UART/USART:
1. translates data from parallel to serial form and vice versa
2. is an integrated circuit used for serial communications over a computer or peripheral
device serial port
3. performs serial‐to‐parallel conversion on data characters received from the
communication link and parallel‐to‐serial conversion on data characters sent to the
communication link
4. is used in conjunction with communication standards such as EIA, RS‐232, RS‐422
or RS‐485
AUTHOR: UCHIYABU 13
Typical connection details of the UART
The main purpose of the UART is to prepare the 8-bit parallel output of a
microprocessor for asynchronous serial data communication. The timing pulses are
derived from the microprocessor master clock through external connections.
The UART has a separate signal line for transmit (TX) and one for receive (RX) so that
it can operate in the full-duplex or a half-duplex mode.
The Control connections of the UART provide hardware signals for handshaking.
Handshaking is a process of synchronising the two devices at the end of a data
communications link.
AUTHOR: UCHIYABU 14
The UART transparently removes the burden of programming the above routines in
the microprocessor.
AUTHOR: UCHIYABU 15
format of a typical serial asynchronous data message
The first few bytes in the message contain synchronisation data which allows the
receiver to synchronise onto the incoming bit stream. Hereafter synchronisation is
maintained by a timing signal or clock. The receiver follows the incoming bit stream
and maintains a close synchronisation between the transmitter clock and the receiver
clock.
Whenever another data character is not immediately ready for transmission, the
transmitter repeatedly sends a special synchronising character until it can transmit the
next data character.
Synchronous communications provides for far higher speeds of transmission of data,
but is avoided in many systems because of the greater technical complexity of the
communications hardware.
AUTHOR: UCHIYABU 16
Advantages: Synchronous Transmission v Asynchronous Transmission
1. Synchronous character transmission eliminates the non-information-carrying start
and stop bits associated with asynchronous transfers
2. Synchronous character transmission allows faster data transmission
AUTHOR: UCHIYABU 17
Parallel and Serial Data Transmission
Binary bits can be moved from one place to another either in serial or in parallel.
In serial communication bits are transmitted from one place to another one bit at a
time.
In parallel communication all bits of a word are transmitted from one place to another
simultaneously.
Parallel Transfer
In parallel data transfers, all the bits of a code word are transferred simultaneously.
The binary word to be transmitted is usually loaded into a register containing one flip-
flop for each bit. Each flip-flop output is connected to a wire to carry that bit to the
receiving circuit, which is usually also a storage register.
In parallel data transmission, there is one wire for each bit of information to be
transmitted. Multiple parallel lines that carry binary data are referred to as a data
bus. All eight lines are referenced to a common ground wire.
AUTHOR: UCHIYABU 18
4. The capacitance and inductance of the bus lines severely distort the pulse signals.
Reducing the line length decreases the inductance and capacitance, permitting
higher speeds.
5. Crosstalk between the lines also limits the speed.
6. Serial data transfer helps achieve higher rates
Serial Transfer
Relatively high data rate transfers are achievable by using serial communication
systems where each bit of a word is transmitted one after another.
This figure shows the code 10011101 being transmitted 1 bit at a time.
The least significant bit (LSB) is transmitted first, and the most significant bit (MSB)
last. The MSB is on the right, indicating that it was transmitted later in time than the
LSB. Each bit is transmitted for a fixed interval of time t.
The voltage levels representing each bit appear on a single data line (with respect to
ground) one after another until the entire word has been transmitted.
Example: the bit interval of 10 μs, means that the voltage level for each bit in the
word appears for 10 μs.
It would therefore take 80 μs to transmit an 8-bit word.
Serial-Parallel Conversion
Both parallel and serial transmission occur in computers and other equipment. One of
the techniques used for converting between parallel and serial and vice versa is the
use of shift registers.
AUTHOR: UCHIYABU 19
parallel-to-serial and serial-to-parallel data transfers with shift registers
AUTHOR: UCHIYABU 20
Asynchronous and Synchronous Transmission
Asynchronous: line is idle when not in use. Data starts at arbitrary time
AUTHOR: UCHIYABU 21