Académique Documents
Professionnel Documents
Culture Documents
Introduction
Introduction
What is a Microprocessor?
Definition (Contd.)
Definition (Contd.)
Takes in: The data that the microprocessor
manipulates must come from somewhere.
Definition (Contd.)
Definition (Contd.)
Definition (Contd.)
Arithmetic and Logic Operations:
10
Definition (Contd.)
Program: A program is a sequence of instructions
that bring data into the microprocessor, processes
it and sends it out.
11
Definition (Contd.)
Programming Languages
Machine language
12
Definition (Contd.)
Programming Languages
Assembly language
13
Definition (Contd.)
Programming Languages
14
Definition (Contd.)
Programming Languages
15
Definition (Contd.)
Stored in memory :
16
Definition (Contd.)
Stored in memory:
17
Definition (Contd.)
Produces: For the user to see the result of the
execution of the program, the results must be
presented in a human readable form.
18
A Microprocessor-based system
From the above description, we can draw the
following block diagram to represent a
microprocessor-based system:
Output
Input
Memory
19
20
I/O
Input / Output
ALU
Register
Array
Control
System Bus
Memory
ROM RAM
21
Arithmetic/Logic Unit
Register Array
Control Unit
22
The control unit receives the bit pattern for this instruction
(0100011011) from memory.
It decodes the bit pattern and determines that this is an Add operation
(0100).
It also determines that the inputs to the addition come from Register R1
(01) and Register R2 (10).
It finally determines that the results go into register R3 (11).
It issues a control signal connecting one input of the adder (in the ALU)
to register R1 (in the Register Array) and the other input to register R2.
Then after an appropriate amount of time, it issues a control signal to
register R3 to store the output of the adder.
23
EN
R1
EN
R2
S0
S1
R3
EN
R4
S0
4 X 1 MUX
4 X 1 MUX
S1
Adder
24
Memory
25
Memory
To execute a program:
26
Input/Output ( I/O )
27
System Bus
28
29
Machine Language
30
31
Assembly Language
32
Assembly Language
33
Assembly Language
34
35
Compiler
Assembler
Machine language
Object code
36
37
Microprocessor
Memory
Output
Storage
38
39
40
Application Programs
Operating System
Hardware
Hardware
System
Programs
41
Operating Systems
MS-DOS
MS Windows
Macintosh OS
OS/2
UNIX
42