Sie sind auf Seite 1von 15

CHAPTER 1

1.1 BUS ORGANIZATION OF MICROPROCESSOR


1.1.1 Microprocessor
Microprocessor is processing device of every computing device. It is like an artificial brain. It
needs to communicate with outer world. for example, It needs to communicate with Input
devices to get data ,it needs to communicate with memory to process data according to
instructions written in memory and finally it needs to communicate with output devices to
display the output on O/P devices. To communicate with external world, Microprocessor make
use of buses. There are different types of buses used in Microprocessor:

1.1.2 Address Bus:


It is a group of wires or lines that are used to transfer the addresses of Memory or I/O devices. It
is unidirectional .In Intel 8085 microprocessor, Address bus was of 16 bits. This means that
Microprocessor 8085 can transfer maximum 16 bit address which means it can address 65,536
different memory locations. This bus is multiplexed with 8 bit data bus. So the most significant
bits (MSB) of address goes through Address bus (A7-A0) and LSB goes through multiplexed
data bus (AD0-AD7).
1.1.3 DATA BUS
As name tells that it is used to transfer data within Microprocessor and Memory/Input or Output
devices. It is bidirectional as Microprocessor requires to send or receive data. The data bus also
works as address bus when multiplexed with lower order address bus. Data bus is 8 Bits long.

The word length of a processor depends on data bus, thats why Intel 8085 is called 8 bit
Microprocessor because it have an 8 bit data bus.
1.1.4 CONTROL BUS
Microprocessor uses control bus to process data, that is what to do with the selected memory
location. Some control signals are Read, Write and Opcode fetch etc. Various operations are
performed by microprocessor with the help of control bus. This is a dedicated bus, because all
timing signals are generated according to control signal.

OR
There are three buses in Microprocessor:
1.Address Bus
2.Data Bus
3.ControlBus

1.Address Bus:-Generally, Microprocessor has 16 bit address bus. The bus over
which the CPU sends out the address of the memory location is known as Address
bus. The address bus carries the address of memory location to be written or to be
read from.
The address bus is unidirectional. It means bits flowing occurs only in one direction,
only from microprocessor to peripheral devices.

We can find that how much memory location it can using the formula 2^N. where N
is the number of bits used for address lines.

here,

2^16 = 65536bytes or 64Kb

So we can say that it can access upto 64 kb memory location.

Q.>If a processor has 4 GB memory then how many address lines are required to
access this memory?

Ans: 4GB= 4 * 1GB

4 = 2^2

1GB = 2^30

4GB = 2^2 * 2^30 = 2^32

So 32 address lines are required to access the 4 GB memory.

2.Data Bus:-8085 Microprocessor has 8 bit data bus. So it can be used to carry the
8 bit data starting from 00000000H(00H) to 11111111H(FFH). Here 'H' tells the
Hexadecimal Number. It is bidirectional. These lines are used for data flowing in
both direction means data can be transferred or can be received through these
lines. The data bus also connects the I/O ports and CPU. The largest number that
can appear on the data bus is 11111111.

It has 8 parallel lines of data bus. So it can access upto 2^8 = 256 data bus lines.

3.Control Bus:-The control bus is used for sending control signals to the memory
and I/O devices. The CPU sends control signal on the control bus to enable the
outputs of addressed memory devices or I/O port devices.

Some of the control bus signals are as follows:


1.Memory read
2.Memory write
3.I/O read
4.I/O write.

1.2 MICROPROCESSOR OPERATION


The process of data manipulation and communication with peripherals is determined by the
logic design of the microprocessor. This logic design is called architecture. All the operations
of microprocessor can be classified into following types:
(a) Microprocessor initiated operations
(b) Internal operations
(c) Peripheral or externally initiated operations
Microprocessor initiated operations
Microprocessor initiated operations are usually one of the following operations :
(a) Memory read: Reads data from memory.
(b) Memory write: Writes data into the memory.
(c) I/O Read: Accepts data from input devices.
(d) I/O Write: Sends data to output devices
All these operations are initiated by microprocessor and executed by peripheral devices as a
part of communication process between microprocessor and memory or peripheral devices.
To perform these communication operations, the MPU needs to perform following steps
(a) Identify the memory location or the peripheral devices.
(b) Provide synchronization signal i.e. timing signals.

(c) Transfer the binary information (data and instruction).


All these functions are performed with the help of communication lines called system bus.
The details of the three types of buses i.e. Address bus, data bus and control bus have been
discussed in FIGURE.

Internal data operations


These are the operations which are internally performed by the microprocessor. They are
classified into five groups:
1)

Store 8-bit data

2)

Perform arithmetic and logical operation

3)

Test for the conditions

4)

Sequence the execution of instructions

5)

Store data temporarily during execution in the R/W memory locations called the stack.

To perform these operations microprocessor requires registers, Arithmetic and logic unit,
buses and control unit.
To store 8-bit data microprocessor has six general purpose registers. During program
execution, these registers are used to store 8- or 16-bit data. The details of these registers
i.e. B, C, D, E, H and L have already been discussed in register unit.
Arithmetic and logical operations are performed in accumulator and the conditions are
tested by the flag register. Program counter is used to sequence the execution of
instructions and stack memory is used for temporary storage of data during execution and
stack pointer is used to address the stack memory.

Peripheral or Externally initiated operations


There are four externally initiated operations, for which individual pins on the
microprocessor chip are assigned. These operations are RESET, READY, HOLD and
INTERRUPT. The details of all these operations have been discussed in section

1.2 PIN DIAGRAMME OF 8085

8085 is a general purpose microprocessor having 40 pins and works on single


power supply. To study the pin diagram we group
the signals into 5 categories:

1.Power Supply
2.Clock Signals
3.Interrupt Signals
4.Address and Data bus
5.Control and Status signals
6.Serial I/O Port
7.DMA Request Signals

Power Supply Signal and clock signal:


VCC:-Vcc is to be connected to +5V power supply.
Vss:-Ground reference
X1 and X2:- This pin is used for providing the clock frequency to the
microprocessor. Generally Crystal oscillator or LC oscillator is used to generate the
frequency. The frequency generated here is internally divided into two.As we know
that the basic operating timing frequency of the microprocessor is 3 MHz so
6 MHz frquency is applied.

Serial Input Output port:SID and SOD:-These pins are used for serial data communication.

Interrupt Signal:Pin 6 to 11:- These pins are used for interrupt signals. Generally and external
devices are connected here which requests the microprocessor to perform a
particular task.

There are 5 pins for hardware interruptsTRAP, RST7.5, RST 6.5, RST5.5 and INTR
INTA is used for acknowledgement. Microprocessor sends the acknowledgement to
external devices through the INTA pin.

Address Bus and DATA Buses:AD0-AD7:-These are multiplexed address and data bus. So it can be used to carry
the lower order 8 bit address as well as the data. Generally these lines are
demultiplexed using the Latch.
During the opcode fetch operation, in the first clock cycle the lines deliever the
lower order address bus A0-A7.
In the subsequent IO/M read or write it is used as data bus D0-D7. CPU can read or
write data through these lines.

A8-A15:- These are address bus used to address the memory location.

8085 consists of various units and each unit performs its own functions. The various units of a
microprocessor are listed below
Accumulator
Arithmetic and logic Unit
General purpose register
Program counter
Stack pointer
Temporary register
Flags
Instruction register and Decoder
Timing and Control unit
Interrupt control
Serial Input/output control
Address buffer and Address-Data buffer
Address bus and Data bus

Accumulator
Accumulator is nothing but a register which can hold 8-bit data. Accumulator aids in storing two
quantities.
The data to be processed by arithmetic and logic unit is stored in accumulator.
It also stores the result of the operation carried out by the Arithmetic and Logic unit.
The accumulator is also called an 8-bit register. The accumulator is connected to Internal Data
bus and ALU (arithmetic and logic unit). The accumulator can be used to send or receive data
from the Internal Data bus.
Arithmetic and Logic Unit
There is always a need to perform arithmetic operations like +, -, *, / and to perform logical
operations like AND, OR, NOT etc. So there is a necessity for creating a separate unit which can

perform such types of operations. These operations are performed by the Arithmetic and Logic
Unit (ALU). ALU performs these operations on 8-bit data.
But these operations cannot be performed unless we have an input (or) data on which the desired
operation is to be performed. So from where do these inputs reach the ALU? For this purpose
accumulator is used. ALU gets its Input from accumulator and temporary register. After
processing the necessary operations, the result is stored back in accumulator.
General Purpose Registers
Apart from accumulator 8085 consists of six special types of registers called General Purpose
Registers.
What do these general purpose registers do?
These general purpose registers are used to hold data like any other registers. The general
purpose registers in 8085 processors are B, C, D, E, H and L. Each register can hold 8-bit
data. Apart from the above function these registers can also be used to work in pairs to hold 16bit data.
They can work in pairs such as B-C, D-E and H-L to store 16-bit data. The H-L pair works as a
memory pointer.
A memory pointer holds the address of a particular memory location. They can store 16-bit
address as they work in pair.

Program Counter and Stack Pointer

Program counter
it is a special purpose register.

Consider that an instruction is being executed by processor. As soon as the ALU finished
executing the instruction, the processor looks for the next instruction to be executed. So, there is
a necessity for holding the address of the next instruction to be executed in order to save time.
This is taken care by the program counter.
A program counter stores the address of the next instruction to be executed. In other words the
program counter keeps track of the memory address of the instructions that are being executed
by the microprocessor and the memory address of the next instruction that is going to be
executed.
Microprocessor increments the program whenever an instruction is being executed, so that the
program counter points to the memory address of the next instruction that is going to be
executed. Program counter is a 16-bit register.
Stack pointer
It is also a 16-bit register which is used as a memory pointer. A stack is nothing but the portion of
RAM (Random access memory).
So does that mean the stack pointer points to portion of RAM?
Yes. Stack pointer maintains the address of the last byte that is entered into stack.
Each time when the data is loaded into stack, Stack pointer gets decremented. Conversely it is
incremented when data is retrieved from stack.
Temporary Register:
As the name suggests this register acts as a temporary memory during the arithmetic and logical
operations. Unlike other registers, this temporary register can only be accessed by the
microprocessor and it is completely inaccessible to programmers. Temporary register is an 8-bit
register.
In the next article let us discuss about the

FLAGS
TIMING AND CONTROL UNIT
INTERRUPT CONTROL

and various other units of 8085 processor.

Das könnte Ihnen auch gefallen