Module 4 Part 1
Module 4 Part 1
2
PRINCIPLES OF DIGITAL
SYSTEMS
NUMBER SYSTEM
Number system is a basis for counting various items.
Modern computers communicate and operate with binary
numbers which use only the digits 0 and 1.
22
Introduction to Avionics
23
Volume – I
24
Introduction to Avionics
25
Volume – I
Example: 25BH
Step 1: Hexadecimal to Binary
2 5 B
0010 0101 1011
Binary number = 0010 01011011
AND GATE
In AND gate the output Y is product of two inputs A
and B. Hence even if one input is zero, the output becomes
zero. If both input signals are equal to one then the output is
also one.
Y=A.B
26
Introduction to Avionics
TRUTH TABLE
input output
A B Y
0 0 0
0 1 0
1 0 0
1 1 1
OR GATE
In the OR gate the output Y is sum of two inputs A
and B. Hence even if anyone of input is one or both input
are one then output becomes one. The output becomes zero
zer
only when both inputs are zero.
Y=A+B.
27
Volume – I
TRUTH TABLE
INPUT OUTPUT
A B Y
0 0 0
0 1 1
1 0 1
1 1 0
NOT GATE
The NOT gate performs the basic function called
inversion orr complementation. The purpose of this gate is to
convert one logic level into opposite logic level. It has one
input and one output. When
hen a high level is applied to an
inverter, a low level appears at its output and vice versa.
Y= -A.
28
Introduction to Avionics
TRUTH TABLE
Input Output
A B
0 1
1 0
NAND GATE
NAND gate is construction of NOT & AND gate.
It has two or more input and only one output. When inputs
are HIGH, the output is LOW. If any one or both input is
LOW, then the output is HIGH. The smallest circle or
bubble represents the operation of inversion.
Y= - (A.B)
29
Volume – I
TRUTH TABLE
input output
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
NOR GATE
NOR is construction of NOT-OR
OR gates. It has two or
more inputs and one output. The output is HIGH only when
all the input is LOW. If both inputss are HIGH then output
is low. The small circle or bubble represents the operation of
inversion.
Y= - (A+B).
30
Introduction to Avionics
TRUTH TABLE
Input Output
A B Y
0 0 1
0 1 1
1 0 1
1 1 0
EX-OR GATE
An exclusive OR gate is a gate with one or more
mor
inputs and one output. In two input EX-OR
OR gate, if both
inputs A and B same (00 or11) means the output is always
HIGH. For other inputs the output will be LOW.
Y= (-AB+A-B)
31
Volume – I
TRUTH TABLE
Input Output
A B Y
0 0 0
0 0 1
1 1 1
1 1 0
32
Introduction to Avionics
MICROPROCESSOR
BUS
The various blocks are interconnected by a set of
wires called “BUS”. The bus is used to transfer the
information in binary form. The bus is also used for
connection to the external devices. There are two types of
Buses. The address bus and data bus.
• The address bus transfers the address which is
required for the selection of the external devices.
• The data bus is used for transfer data.
33
Volume – I
REGISTER ARRAY
The register consists of group of registers. A register
consists of set of flip flops. Each flip flop can store one bit of
data. If 8 flip flops are grouped to form a register, the register
can hold 8 bits of data and it is called 8-bit register.
• All the registers are connected to the internal bus so
that the data in the register can be used by ALU and
data in the registers can be changed by ALU.
34
Introduction to Avionics
35
Volume – I
36
Introduction to Avionics
37
Volume – I
38
Introduction to Avionics
39
Volume – I
MEMORY
It is a circuit that can store bits – high or low,
generally voltage levels or capacitive charges representing 1
or 0.
A flip – flop or a latch is a basic element of memory.
To write or store a bit in the latch, we need an input data
and an enable signal. The stored bit is always available on
the output line Dout. This latch which can store one binary
bit is called a memory cell.
Four such cells or latches grouped together is called as
register, which has four input lines and four output lines and
can store four bits.
ROM doesn’t need the WR signal
CS –Chip Select
RD-Read Signal
WR –Write signal
The primary function of memory is to store
instructions and data and to provide that information to the
MPU whenever it requires it. The MPU request information
by sending the address of a specific memory register on the
address bus and enables the data flow by sending the control
signal.
40
Introduction to Avionics
CLASSIFICATION OF MEMORIES
41
Volume – I
Read/Write Memory
The memory is volatile, i.e. all the contents are
destroyed when the power is turned off.
RAM
This memory is made up of flip flops, and it stores
the bit as a voltage. It is more expensive and consumes more
power than dynamic memory. It has low density but its
speed is very high.
DRAM
This is made up of MOS transistor gates, and it stores
the bit as charge. It has high density and it consumes low
power, and cheaper. But the charge leak is a disadvantage
for it.
42
Introduction to Avionics
ROM
It is a non-volatile memory.
Masked ROM
A bit pattern is permanently recorded by the masking
and metallization process.
PROM
It has nichrome or polysilicon wires arranged in a
matrix. This memory can be programmed by a special
PROM programmer. The process is known as burning the
PROM and the information stored is permanent.
EPROM
This memory stores a bit by charging the floating gate
of an FET. High voltages are required to charge the gate.
All the information can be erased by exposing the chip to
ultraviolet light through its quartz window.
Disadvantages
The erasing process takes 15 to 20 minutes.
The entire chip has to be erased.
EE-PROM
This is similar to EPROM, except that information
can be altered by using electrical signals at the register levels
rather than erasing all the information.
43
Volume – I
Flash Memory
The Flash memory can be erased either in it’s entirely
or at the sector level. These chips can be erased and
programmed atleast a million times. This is suitable for low
power systems. Zero power RAM is a CMOS R/W memory
with battery backup built internally. It includes lithium cells
and voltage sensing circuitry. When the external power
supply falls below 3V, the power switching circuitry connects
the lithium battery.
DIGITAL COMPUTER
Any accessory with a micro processing chip can be
considered as a type of digital computer. However, today
digital computers are commonly referred to as personal
computers, and laptops.
A digital computer is designed to process data in
numerical form. Its circuits directly perform the
mathematical operations of addition, subtraction,
multiplication and division. The numbers operated by a
digital computer are expressed in binary digits.
Binary digits are easily expressed in the computer
circuitry by the presence (1) or absence (0) of a current or
voltage.
Digital computers can store the results of calculations
for later use, and also it compares the results with other data.
DC’s are used for reservation systems, scientific
investigation, data processing and many others.
44
Introduction to Avionics
Processing Data
The operations of DC are carried out by logic circuits,
whose single output is determined by the conditions of the
inputs, usually two or more. The various circuits processing
data in the computer must operate in highly synchronized
manner and this can be achieved by using the clock. Clock
rates ranges from several million cycles per second to several
hundred million. Fastest computers having clock.
Clock rate – The speed at which a microprocessor
executes instructions. Every computer contains an internal
clock that regulates the rate at which instructions are
executed and synchronizes all the various computer
components.
Rates of about billion cycles per second. Operating at
these rates, DC’s are capable of performing thousands to
trillions of arithmetic or logic operations per second.
Analog Computers
It represents data as physical quantities and operates
on the data by manipulating the quantities. The key
45
Volume – I
46
Introduction to Avionics
QUESTIONS
Part – A
Part – B
1. With a neat sketch explain 8085 microprocessor
architecture in detail.
2. Draw the functional representation of ROM memory
cell and explain the concept underlying the ROM.
3. Describe with a block schematic how a digital computer
can be used to measure analog signal
4. Explain the interference of seven segment LED with the
microprocessor to display a binary data.
5. Compare the memory mapped I/O and peripheral
mapped I/O in Microprocessor.
47