You are on page 1of 25

INTRODUCTION OF

MICROPROCESSOR
OUTLINES
 Block diagram of a computer system
 Basic components of a computer system using block diagrams:
 Cpu
 Memory
 Input and output unit
 Evolution of microprocessor : 4,8,16,32 dan 64 byte
 Nibble, byte, word dan longword
 Fecthing and execution cycles.
 Internal structure and basic operation of a microprocessor
(arithmetic and logic unit, control unit, register sets, accumulator,
condition code register, program counter, stack pointer)
 Bus system: data bus, address bus and control bus.
 Microprocessor clock system
 Examples of microprocessor: 8085,8086.
2
DIAGRAM OF A COMPUTER SYSTEM
A computer is a programmable machine that receives input, stores and manipulates
data//information, and provides output in a useful format.

Diagram Of A Computer System


BLOCK DIAGRAM OF A BASIC COMPUTER
SYSTEM
Basic computer system consist of a Central processing unit (CPU), memory
(RAM and ROM), input/output (I/O) unit.

Address bus

ROM RAM I/O I/O


CPU interface devices

Data bus Control


bus

Block diagram of a basic computer system 4


BASIC COMPONENT OF MICROCOMPUTER

1. CPU - Central Processing Unit


 The portion of a computer system that carries out the instructions of
a computer program
 The primary element carrying out the computer's functions. It is the
unit that reads, Decode and executes program instructions.
 The data in the instruction tells the processor what to do.

Pentium D dual core processors


5
2. Memory
 Physical devices used to store data or programs.
 Computer main memory comes in two principal varieties:
random-access memory (RAM) and read-only memory (ROM).
 RAM can be read and written to anytime the CPU commands it, but
ROM is pre-loaded with data and software that never changes, so the
CPU can only read from it.
 ROM is typically used to store the computer's initial start-up
instructions.
 In general, the contents of RAM are erased when the power to the
computer is turned off, but ROM retains its data indefinitely.
 In a PC, the ROM contains a specialized program called the BIOS that
orchestrates loading the computer's operating system from the hard disk
drive into RAM whenever the computer is turned on or reset.

6
3. I/O Unit
 Input/output (I/O), refers to the communication between an
information processing system (such as a computer), and the outside
world possibly a human, or another information processing system.
 Inputs are the signals or data received by the system, and outputs are
the signals or data sent from it
 Devices that provide input or output to the computer are called
peripherals
 On a typical personal computer, peripherals include input devices like
the keyboard and mouse, and output devices such as the display and
printer. Hard disk drives, floppy disk drives and optical disc drives
serve as both input and output devices. Computer networking is another
form of I/O.

7
DATA SIZE

Nibble 4 bit

Byte 8 bit

Word 16 bit

Long word 32 bit

8
INTERNAL STRUCTURE AND BASIC
OPERATION OF MICROPROCESSOR

Address bus
Register
ALU
Section
Data bus

Control and timing


section Control bus

Block diagram of a microprocessor 9


ARITHMETIC AND LOGIC UNIT (ALU)

 The component that performs the arithmetic and logical


operations
 The most important components in a microprocessor, and
is typically the part of the processor that is designed first.

10
INTERNAL STRUCTURE OF ALU

2 bits of ALU 4 bits of ALU 11


CONTROL UNIT

 The circuitry that controls the flow of information


through the processor, and coordinates the activities of
the other units within it.
 In a way, it is the "brain within the brain", as it controls
what happens inside the processor, which in turn controls
the rest of the PC.
 On a regular processor, the control unit performs the
tasks of fetching, decoding, managing execution and
then storing results.

12
REGISTER SETS

 The register section/array consists completely of circuitry


used to temporarily store data or program codes until
they are sent to the ALU or to the control section or to
memory.
 The number of registers are different for any particular
CPU and the more register a CPU have will result in easier
programming tasks.
 Registers are normally measured by the number of bits
they can hold, for example, an "8-bit register" or a "32-bit
register".

13
REGISTER IN MOTOROLA 68000
MICROPROCESSOR
31 16 15 8 7 0
D0
D1
D2
D3 DATA REGISTERS
D4
D5
D6
D7
31 16 15 8 7 0
A0
A1
A2
A3 ADDRESS REGISTERS
A4
A5
A6
A7

USER STACK POINTER

SUPERVISOR STACK POINTER


A7 STACK POINTER

PC PROGRAM CONTER 14
15 8 7 0
SYSTEM BYTE USER VYTE SR STATUS REGISTER
ACCUMULATOR

 A register in which intermediate arithmetic and logic


results are stored.
 example for accumulator use is summing a list of
numbers.

15
CONDITION CODE REGISTER (CCR) = FLAGS

 An 8 bit register used to store the status of CPU, such as


carry, zero, overflow and half carry.

16
Flag Name Description

Indicates that the result of a mathematical or


Z Zero flag
logical operation was zero.

Indicates that the result of an operation


C Carry flag produced an answer greater than the number of
available bits.

Indicates that the result of an operation has


V Overflow Flag
overflowed.
Interrupts can be enabled or disabled by
I interrupts
respectively setting or clearing this flag

17
PROGRAM COUNTER (PC)

A 16 bit register, used to store the next address


of the operation code to be fetched by the CPU.

18
STACK POINTER (SP)

 The stack is configured as a data structure that


grows downward from high memory to low
memory.
 At any given time, the SP holds the 16-bit
address of the next free location in the stack.
 The stack acts like any other stack when there is
a subroutine call or on an interrupt. ie. pushing
the return address on a jump, and retrieving it
after the operation is complete to come back to
its original location.
19
DATA BUS

 The data bus is 'bi-directional'


 data or instruction codes from memory or
input/output.are transferred into the microprocessor
 the result of an operation or computation is sent out
from the microprocessor to the memory or input/output.
 Depending on the particular microprocessor, the data bus
can handle 8 bit or 16 bit data.

20
ADDRESS BUS

 The address bus is 'unidirectional', over which the


microprocessor sends an address code to the memory or
input/output.
 The size (width) of the address bus is specified by the
number of bits it can handle.
 The more bits there are in the address bus, the more
memory locations a microprocessor can access.
 A 16 bit address bus is capable of addressing 65,536
(64K) addresses.

21
CONTROL BUS

 The control bus is used by the microprocessor to send


out or receive timing and control signals in order to
coordinate and regulate its operation and to
communicate with other devices, i.e. memory or
input/output.

22
MICRO PROCESSOR CLOCK

 Also called 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.

23
EXAMPLES OF MICRO PROCESSOR
 Intel 8086
 Motorola 6800

 Zilog Z80

24
REPORT 1 – 10 MARKS
 Compare between:
 Intel8086
 Motorola 6800
 Zilog Z80

 According to:
 Data bus Size
 Address Bus Size
 Register Set.
 Clock Rate.
 Basic System design.

25

You might also like