microcomputer-and-microprocessor-ssi-15th-april2020-final-1
microcomputer-and-microprocessor-ssi-15th-april2020-final-1
Microcomputer and
Microprocessor
By
Dr. Sikder Sunbeam Islam
EEE, IIUC
Microcomputer System: Introduction
Microcomputer is used to describe a system that includes a minimum
of a microprocessor, program memory, data memory, and
input/output (I/O). It is called ‘micro’ because of its small size.
Power of the Microcomputer is determined by the capabilities of
microprocessor. It’s clock frequency determines the speed of the
microcomputer. Microprocessor is the CPU (central processing unit) of
the microcomputer.
Microcomputer has three basic blocks:
(a) Microprocessor Unit
(b) Memory Unit , and
(c) Input /output unit
Microcomputer System :Introduction cont.
Microcomputer System: Microprocessor Unit/CPU
Both program and data are fed into the CPU for execution.
The CPU reads the first instruction (Like, instruction may
be simple ADD two numbers) from the program memory
with help of address of memory location and control signal
and then execute it.
After the data manipulation is completed result is
transferred to the output of the computer.
Microcomputer System: Microprocessor and Microcontroller
Microcomputer System: Microprocessor Architecture(Based on instruction set)
Data Bus: This is used for the exchange of data between the processor,
memory and peripherals, and is bi-directional so that it allows data flow in
both directions along the wires. Data bus may be 8 bits, 16 bits, 32 bits or 64
bits.
Address Bus: This is a unidirectional bus. This bus is usually 8 to 32 bits wide.
Information transfer takes place from the microprocessor to the memory or I/O
elements. For a 16 bit address bus, microprocessor can generate 216 = 65,536
different possible address.
Microcomputer System: Instruction Execution
To execute an instruction processor must follows minimum of four
steps: (1) Instruction Fetch (2) Instruction Decode (3) Instruction
execute (4) Store or, Store of Result
Instruction Fetch: Control unit collect the instructions from main
memory and put them in CPU register. This is called instruction fetch.
Instruction Decode: When instruction reaches in processor register, CU
decodes or interprets the instruction and sends necessary signals and
data to ALU.
Instruction Execute: ALU process the data with arithmetic and logic
operations and gives a result according to instructions.
Store Result: Finally CU stores result in Accumulator or main memory.
These four steps to execute an instruction are called machine cycle.
Classification of Memory
Acts as
Acts as
When CS is high, chip is not selected at all, hence D7 to D0 are driven to high
impedance state.
When CS = 0 and WE = 0, data on lines D7 – D0 acts as input bus ( data are
written into the word addressed by A0 through A9).
When CS = 0 and WE = 1, data on lines D7 – D0 acts as output bus (the contents
of memory word whose address is on A9 – A0 will appear on lines D7 – D0.)
Main Memory Array Design:
Linear Decoding
2. Interface an 8-bit microprocessor with a 1K×8 ROM Chip, two 512×8 RAM
Chips and two RAM 256×8 Chips.
Exercise:
Problem: Considering the figure bellow, determine the
address map of this system.
References