Learning Outcomes: After Undergoing The Subject, The Students Will Be Able To

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

LEARNING OUTCOMES

After undergoing the subject, the students will be able to:

 About the Microprocessor and its evolution


 General block diagram of microprocessor
 Describe all the internal parts and pins of 8085
Chapter 1

1.INTRODUCTION

A microprocessor is one of the most central parts of a modern personal computer or, in fact, any
advanced computer device. It integrates the functions of a central processing unit , the portion of
a computer responsible for carrying out programmed instructions, onto a single integrated
circuit that couples the important thinking devices of the machine with the electrical
infrastructure needed to support them. Microprocessor design is able to incorporate a
tremendous amount of processing power in a very small space. Perhaps more than any other
component of the modern computer, the microprocessor has a long and storied history, and an
almost mythological status thanks to its great importance. Each step of the way to modern micro-
processing has spurred more triumphs, innovations, and competition.

1.1 What is a Microprocessor? What are its functions?

Micro-computer is a computer system that uses Microprocessor. It acts as a controlling unit of a


micro-computer, fabricated on a small chip which is capable of performing ALU (Arithmetic
Logical Unit) operations and communicating with the other devices that are connected to it. It is
considered as the brain of the computer.

Microprocessor contains ALU, register array, and a control unit. As it is called as heart of the
system, each unit in the microprocessor perform its own activities resulting in proper output for
the users. So, ALU performs arithmetical and logical operations on the data that is stored in the
memory or an input device. Register array includes registers indicated by alphabets like B, C, D,
E, H, L and accumulator which helps in fast memory accessing. The control unit as usual gives
instructions to the computer’s memory, ALU and input and output devices to respond to the
program’s instructions within the computer.

1.2Evolution of Microprocessor

1.2.1-4-bit Microprocessors

The first microprocessor was introduced in 1971 by Intel Corp. It was named Intel 4004 as it
was a 4 bit processor. It was a processor on a single chip. It could perform simple arithmetic
and logic operations such as addition, subtraction, Boolean AND and Boolean OR. It had a
control unit capable of performing control functions like fetching an instruction from memory,
decoding it, and generating control pulses to execute it. It was able to operate on 4 bits of data
at a time.This first microprocessor was quite a success in industry. Soon other microprocessors
were also introduced. Intel introduced the enhanced version of 4004, the 4040. Some other 4 bit
processors are International’s PPS4 and Toshiba T3472.

1.2.2-8-bit Microprocessors
The first 8 bit microprocessor which could perform arithmetic and logic operations on 8 bit
words was introduced in 1973 again by Intel. This was Intel 8008 and was later followed by an
improved version, Intel 8088. Some other 8 bit processors are Zilog-80 and Motorola M6800.

1.2.3-16-bit Microprocessors

The 8-bit processors were followed by 16 bit processors. They are Intel 8086 and 80286.

1.2.4-32-bit Microprocessors

The 32 bit microprocessors were introduced by several companies but the most popular one is
Intel 80386.

1.3Block Diagram of a Basic Microcomputer

1.3.1How does a Microprocessor Work?

The microprocessor follows a sequence: Fetch, Decode, and then Execute.

The first step is to arrange the instructions in a sequential order that are stored in the memory.
The microprocessor then fetches those instructions from the memory, decodes it and executes
those instructions untill the STOP instruction is reached. Later, it sends the result in binary form
as the computer does not understand human language it sends the instructions in its code
language to the output port. In the meanwhile of processes, the register that stores the data
temporarily and ALU performs arithmetic and logical functions.

1.3.2Features of a Microprocessor

Here is a list of some of the most prominent features of any microprocessor −

Cost-effective − The microprocessor chips are available at low prices and results its low cost.

Size − The microprocessor is of small size chip, hence is portable.


Low Power Consumption − Microprocessors are manufactured by using metaloxide
semiconductor technology, which has low power consumption.

Versatility − The microprocessors are versatile as we can use the same chip in a number of
applications by configuring the software program.

Reliability − The failure rate of an IC in microprocessors is very low, hence it is reliable.

1.4 The Microprocessor's Impact on Society

Today, we literally swim in a sea of silicon. There are dozens of chips in every car and dozens in
every office. Microprocessors in the form of watches, pagers, cellular phones, and Sharp
Wizard's adorn our bodies as jewelry. Beyond embedded systems, the rapid rise of the Internet
now appears to be on the verge of ensuring that the personal computer truly becomes ubiquitous.
Where in the past PCs have been concentrated in the workplace and scattered in the homes of
the wealthier third of American society, the Internet is almost certain to lower the final obstacles
and make it possible to create a new class of information appliances that will extend the reach of
the Net until it matches that of television or the telephone. Microprocessors are everywhere, but
how is modern life different? In many areas the advent of microelectronics obviously does have
clear benefits. That can be seen in the effect of computing technology on the disabled; the
transformation of certain kinds of boring and dangerous manual labor; advances in medical
technology and weather forecasting. Indeed the easy answer is that microprocessors have
transformed modern society. They affect the way we work and play, the way we travel and
communicate. They offer remarkable processing power at infinitesimal cost.
Chapter 2
2.1Bus architecture

A bus is a collection of wires, chips and slots inside the computer through which data are
transmitted from one part of the computer to another from peripheral devices. It is also called a
pathway in the computer on which data travels. It is a set of parallel distinct wires, serving
different purposes, which allow devices attached to it to communicate with the CPU.

The bus architecture in computer system is as shown below:

The function of BUS are:

 It carries information from one component to another.


 It carries data, address or control signal.
 One component of the computer can interact with other through a bus.
 There are three main part of bus.
Control Bus:

It carries the control signal. The control signal is used for controlling and coordinating the
various activities of the computer. It is generated from the control unit of the CPU. Different
architectures result in a different number of lines within the control bus, as each line is used to
perform a specific task.

For instance, different specific lines are used for each of read, write and reset requests. These
are not a group of lines like address bus and data bus, but individual lines that provide a pulse to
indicate a microprocessor operation. The control unit generates a specific control signal for
every operation, such as memory read or input/output operation. This signal is also used to
identify a device type, with which the microprocessor intends to communicate.

Address Bus:

Address bus carries memory address within the device. It allows the CPU to reference memory
locations within the device. It connects the CPU and other peripherals and carries only memory
address. In a computer system, each peripheral or memory location is identified by a numerical
value, called an address and the address bus is used to carry this numerical value as well as it
also contains a few control lines to carry control commands. The address bus is unidirectional,
bits flow in one direction from the processor to peripherals.

The processor uses the address bus to perform the first function of identifying a peripheral or a
memory location. The address bus contains the connections between the processor and memory
that carry the signals relating to the address which the CPU is processing at that time, such as
the locations that the CPU is reading from or writing to. The processor uses the address bus to
perform, identifying a peripheral or a memory location.

When the address bus carries 8 bit at a time, the CPU could address only 256 (i.e. 28) bytes of
RAM. Most of the early PCs had 20 bit address buses. So, CPU could address 220bytes of data.
Now, with 32-bit address buses, CPU can address 4GB of RAM. If there is wider bus path, more
information can be processed at a time and hence, it also affects the processing speed of a
computer.
Data Bus:

Data bus transfer data from one location to another across the computer. On these lines, the
meaningful data which is to be retrieved from a device is placed. Data bus is used by CPU to
transfer data. It may be 16-bit or 32-bit data bus. It is an electrical path that connects the CPU,
memory and other hardware devices on the motherboard. These lines are bidirectional in which
the data flows in both directions between the processor and memory and peripheral devices. The
number of wires in the bus affects the speed at which data can be travel between hardware
components just as the number of lanes on a highway affects the time it takes people to reach
their destination. Each wire can transfer 1 bit of data at a time and 8 wire bus can move 8 bit at
a time, which is 1-byte data at a time. A 16-bit bus can transfer 2 bytes. 32 bits can transfer 4
bytes and so on. Intel 80286 microprocessor used16 bit data bus and Intel 80386 used 32-bit
data bus. When the data bus width grows larger, more data can be transferred.

The transmission of the data on bus lines takes place between approximately 1M baud for the
microcomputer to about 1000 M baud or more for the large more expensive computers (1 baud
= 1 bit/sec). Communication between the different units of a processing system is carried out
along address and data bus and also along various control lines. All control operations are
governed by the master timing source and clock.

2.2Bus organization of 8085

The microprocessor MPU performs various operations with peripheral devices or a memory
location by using three sets of communication lines called buses: the address bus, the data bus
and the control bus. And these three combined lines is called as system bus.
Image 1 bus structure

Address bus:

The address bus is a group of 16 lines generally called as A0 – A15 to carry a 16-bit address of
memory location.
In a computer system, each peripheral or memory location is identified by a binary number
called an address. This is similar to the postal address of a house.
The address bus is unidirectional, that means bit flow in only one direction from MPU to
peripheral.
MPU carries 16-bit address i.e. 216 = 65,536 or 64K memory locations.

Data Bus:

The data bus is a group of eight bidirectional lines used for data flow in both the directions
between MPH and peripheral devices.
The 8 data lines are manipulating 8-bit data ranging from 00 to FF i.e. (28 = 256) numbers
from 0000 0000 -1111 1111
This 8 bit data is called as word length and the register size of a microprocessor and MPH is
called 8–bit microprocessor.

Control bus:
Control bus is having various single lines used for sending control signals in the form of pulse to
the memory and I/O devices.
The MPU generates specific control signals to perform a particular operations. Some of these
control signals are memory read, memory write, I/O read and I/O write.

Pin diagram of 8085


The 8085 and Its Buses

 The 8085 is an 8-bit general purpose microprocessor that can address 64K Byte of
memory.
 It has 40 pins and uses +5V for power. It can run at a maximum frequency of 3 MHz.
 The pins on the chip can be grouped into 6 groups:
 Address Bus.
 Data Bus.
 Control and Status Signals.
 Power supply and frequency.
 Externally Initiated Signals.
 Serial I/O ports.

8085 Pin description

 Higher Order Address pins- A15 – A8


 The address bus has 8 signal lines A8 – A15 which are unidirectional.
 Lower Order Address/ Data Pins- AD7-AD0
 These are time multiplexed pins and are DE-multiplexed using the pin ALE
 So, the bits AD0 – AD7 are bi-directional and serve as A0 – A7 and D0 – D7 at
the same time.
 During the execution of the instruction, these lines carry the address bits
during the early part, then during the late parts of the execution, they
carry the 8 data bits.
 In order to separate the address from the data, we can use a latch to save the
value before the function of the bits changes.
 Control Pins – RD, WR
 These are active low Read & Write pins
 Status Pins – ALE, IO/M (active low), S1, S0
 ALE (Address Latch Enable)-Used to DE-multiplex AD7-AD0
 IO/M – Used to select I/O or Memory operation
 S1,S0 – Denote the status of data on data bus
 Interrupt Pins – TRAP, RST7.5, RST 6.5, RST 5.5, INTR, INTA
 These are hardware interrupts used to initiate an interrupt service routine stored
at predefined locations of the system memory.
 Serial I/O pins – SID (Serial Input Data), SOD (Serial Output Data)
 These pins are used to interface 8085 with a serial device.
 Clock Pins- X1, X2, CLK(OUT)
 X1, X2– These are clock input pins. A crystal is connected between these pins such
that fcrystal= 2f8085 where fcrystal= crystal frequency & f8085 = operating frequency of
8085
 CLK(OUT) – This is an auxiliary clock output source
 Reset Pins – Reset In (active low), Reset Out
 Reset In is used to reset 8085 whereas Reset Out can be used to reset other
devices in the system
 DMA (Direct Memory Access) pins – HOLD, HLDA
 These pins are used when data transfer is to be performed directly between an
external device and the main memory of the system.
 Power Supply Pins – +VCC, VSS
2.3Architecture of 8085

This is the functional Block Diagram of 8085 Microprocessor.

Accumulator:-It is a 8-bit register which is used to perform arithmetical and logical operation. It
stores the output of any operation. It also works as registers for i/o accesses.

Temporary Register:-It is a 8-bit register which is used to hold the data on which the
accumulator is computing operation. It is also called as operand register because it provides
operands to ALU.

Registers:-These are general purposes registers. Microprocessor consists 6 general purpose


registers of 8-bit each named as B,C,D,E,H and L. 聽 Generally theses registers are not used for
storing the data permanently. It carries the 8-bits data. These are used only during the execution
of the instructions.
These registers can also be used to carry the 16 bits data by making the pair of 2 registers. The
valid register pairs available are BC,DE HL. We can not use other pairs except BC,DE and HL.
These registers are programmed by user.
Image 2 Programmatic model of 8085

ALU:-ALU performs the arithmetic operations and logical operation.

Flag Registers:-It consists of 5 flip flop which changes its status according to the result stored in
an accumulator. It is also known as status registers. It is connected to the ALU.
There are five flip-flops in the flag register are as follows:
1.Sign(S)
2.zero(z)
3.Auxiliary carry(AC)
4.Parity(P)
5.Carry(C)
The bit position of the flip flop in flag register is:

All of the three flip flop set and reset according to the stored result in the accumulator.
1.Sign- If D7 of the result is 1 then sign flag is set otherwise reset. As we know that a number on
the D7 always decides the sign of the number.
if D7 is 1: the number is negative.
if D7 is 0: the number is positive.
2. Zeros(Z)-If the result stored in an accumulator is zero then this flip flop is set otherwise it is
reset.

3. Auxiliary carry(AC)-If any carry goes from D3 to D4 in the output then it is set otherwise it is
reset.

4. Parity(P)-If the no of 1's is even in the output stored in the accumulator then it is set otherwise
it is reset for the odd.

5. Carry(C)-If the result stored in an accumulator generates a carry in its final output then it is
set otherwise it is reset.

Instruction registers(IR):-It is a 8-bit register. When an instruction is fetched from memory then
it is stored in this register.

Instruction Decoder:- Instruction decoder identifies the instructions. It takes the information
from instruction register and decodes the instruction to be performed.

Program Counter:-It is a 16 bit register used as memory pointer. It stores the memory address of
the next instruction to be executed. So we can say that this register is used to sequencing the
program. Generally the memory have 16 bit addresses so that it has 16 bit memory.
The program counter is set to 0000H.

Stack Pointer:-It is also a 16 bit register used as memory pointer. It points to the memory
location called stack. Generally stack is a reserved portion of memory where information can be
stores or taken back together.

Timing and Control Unit:-It provides timing and control signal to the microprocessor to perform
the various operation.It has three control signal. It controls all external and internal circuits. It
operates with reference to clock signal.It synchronizes all the data transfers.
There are three control signal:
1.ALE-Arithmetic Latch Enable, It provides control signal to synchronize the components of
microprocessor.
2.RD- This is active low used for reading operation. 3.WR-
This is active low used for writing operation.

There are three status signal used in microprocessor S0, S1 and IO/M. It changes its status
according the provided input to these pins.
Serial Input Output Control-There are two pins in this unit. This unit is used for serial data
communication.

Interrupt Unit-There are 6 interrupt pins in this unit. Generally an external hardware is
connected to these pins. These pins provide interrupt signal sent by external hardware to
microprocessor and microprocessor sends acknowledgement for receiving the interrupt
signal. Generally INTA is used for
acknowledgement.

Register Section:-Many registers has been used in

microprocessor. It consists of PIPO(Parallel Input Parallel Output) register.


Questions

A.Very short answer type questions:

1)Write a full form of VLSI.

2)Name the first microprocessor chip developed.

3)Which firm developed the first microprocessor chip.

4)Intel 4004 is _______bit microprocessor.

5)Name the 8bit microprocessor developed by Motorola.

6)Name the 8 bit microprocessor developed by Zilog.

7)What is the full form of ALU?

8)What is the function of flag register?

9)What is the function of program counter?

10)In stack,data is stored in ___________manner.

11)Write full form of ASCII.

12)What is the function of memory?

13)What are the different types of system bus?

14)Explain accumulator register in 8085 microprocessor.

15)How many flags are there in 8085 microprocessor?

16)What is carry flag in 8085 microprocessor?

17)What is the function of stack pointer?

18)What is bus in 8085?

19)What is meant by unidiarectional and bidirectional bus?

20)What is opcode?

21)What is operand?
B.Long answer type questions:

1)Explain the purpose of the registers inside the cpu.

2)Explain the function of control unit of the CPU.

3)Explain the functions of address bus, data bus and control bus.

4)What are the functional blocks of a microcomputer?

5)What is the difference between a microprocessor and microcomputer?

6)Describe some important applications of microprocessors.

7)What are the various registers of 8085?

8)Draw the block diagram of 8085 microprocessor. Explain the function of each block.

9)Why is the data bus bidirectional?

10)Explain instruction cycle, machine cycle and T state.

11)Draw and Explain the timing diagram for fetch operation.

12)Draw and Explain the timing diagram for memory read operations.

You might also like