Microprocessor CH 01
Microprocessor CH 01
- Hari K.C.
Chapter 01 : Introduction to microprocessor
Microprocessor:
• A Microprocessor is a multipurpose programmable, clock driven, register
based electronic device that reads binary instructions from a storage
device called memory, accepts binary data as input, processes data
according to those instructions and provide result s as output.
• The microprocessor operates in binary 0 and 1 known as bits are
represented in terms of electrical voltages in the machine
• That means 0 represents low voltage level and 1 represents high voltage
level.
• Each microprocessor recognizes and processes a group of bits called the
word and microprocessors are classified according to their word length .
• 8 bits microprocessor with 8 bit word and 32 bit microprocessor with 32 bit
word etc.
• The processor on a single chip is called a Microprocessor which can process
micro-instructions. Instructions in the form of 0sand 1s are called micro-
instructions.
• The microprocessor is the CPU part of a microcomputer, and it is also available as
a single integrated circuit.
• Thus as main components, the microprocessor will have theControl Unit (CU) and
the Arithmetic Logic Unit (ALU) of a microcomputer. An example is Intel 8085
microprocessor. In addition to the microprocessor features, a microcomputer will
have the following additional features:
• Bit – Based on bit configuration, the microcontroller is further divided into three categories.
• 8-bit microcontroller − This type of the microcontroller is used to execute arithmetic and
logical operations like addition, subtraction, multiplication division, etc. For example, Intel
8031 and 8051 are an 8-bit microcontroller.
• 16-bit microcontrollers − This type of the microcontroller is used to perform arithmetic and
logical operations where higher accuracy and performance is required. Forexample, Intel
8096 is a 16-bit microcontroller.
• The symbolic notation used to describe the micro operation transfers among
register is called register transfer language.
• It is one of the forms of hardware description language (HDL).
• The term register transfer implies the availability of hardware logic circuits that
can perform a stated instruction and transfer the data.
• It also transfers result of the operation to the same or another register. The term
language is borrowed from programmers who apply this term to programming
language.
• RTL is the convenient tool for describing the internal organization of digital
computers in concise and precise manner.
• It can also be used to facilitate the design process of digital systems such as
microprocessors.
Fetch and execute cycle of MOV A, B in terms of
RTL specification:
• Within the fetch cycle, the operations performed during execution
of instruction MOV A, B are:
• First step: The program counter contains the address of the next
instruction to be executed. If the next instruction to be executed is
MOV A, B; the program counter contains the address of the
memory location where the instruction code for MOV A, B resides.
Second step:
• When the control unit issues the memory read signal, the contents o f
the address memory location specified by MAR will be transferred to
the memory buffer register (MBR).
• Suppose t2 is the time period for this operation.
• t2 : MBR ç Memory or [MAR]
Third step:
Finally the contents of MBR will be transferred to the instruction
register and then the program counter gets incremented.
Let t3 be the time required by the CPU to complete these operations.
t3 : IR ç (MBR)
PC ß PC + 1
• After the fetch cycle completed, the execution starts. The execute
cycle steps:
First step:
At the start of execution cycle, the instruction register (IR) consists of
instruction code for instruction MOV A, B.
The address field of instructions specifies the addresses of the two
memory locations A & B.
The first step needed is to obtain the data from the location B.
For this the address field of IR indicating the address of memory
location will be transferred to address bus through the MAR.
Let t1 be this time taken
T1: MAR ß(IR(address of B))
Second step:
When the control unit issues a memory read signal, the contents of
location B will be output (written) to the memory buffer register (MBR).
Now the content of B which is to be written to memory location A is
contained in MBR.
T2: MBRßB
Third step:
Now, we need the memory location of A because it is being written
with the data of location B.
For this the address field of IR indicating the address of memory
location A.
T3: MAR ß(IR(address of A))
Fourth step:
When the control unit issues the memory write signal, the contents of
MBR will be written to the memory location indicated by the contents
of MAR in time t4.
T4: AßMBR
• Communication system
• Some Examples are:
– Calculators
– Accounting system
– Games machine
– Complex Industrial Controllers – Traffic light Control
– Data acquisition systems
– Military applications