Professional Documents
Culture Documents
(EEE-342)
4 Credit Hours
Theory 3
Lab 1
Instructor
M. Faizan Malik
Lab
Microprocessor LAB, LAB Block
What is a Computer?
12
Introduction
What is a Computer?
Computer
Device capable of
Performing computations
Making Logical Decisions
13
Introduction
What is a Computer?
Programs
Set of instructions that process data
Guide computer through orderly sets of actions specified by
“Programmer”
Computer System
Consists of various hardware devices
Keyboard
Screen
Disks
Memory
Processing Units
14
Introduction
Computer
RAM
Inputs
Central Processing
ALU Unit
Outputs
ROM
15
Introduction
2. Output Unit
Puts information on various output devices
Monitors
Printouts
Speakers
16
Introduction
17
Introduction
18
Introduction
Computer Architecture
RISC Vs CISC
Instruction Set = Set of Instructions (low level) that CPU can process
19
Von Neumann Vs Harvard
Von Neumann Architecture
A single memory has
DATA: the information being used
Instructions: Program to be executed
A single Bus connects CPU with the memory
At a time, either Instruction can be read OR data can be read
or written
2 cycles complete an
instruction
1st : Read instruction
2nd : Read/Write Data
23
RISC Vs CISC
RISC
Reduced Instruction Set Computer
CISC RISC
Large Instruction set Small and Compact
Instruction set
25
Programming Languages
Programming Language: A set of rules, symbols and
special words used to construct a computer program
Machine Language
The binary representation of instructions a computer can perform
26
Programming Languages
High Level Languages
27
Programming Languages
Low Level (Assembly Language)
English-like abbreviations
Represent basic operations of computer
29
Programming Languages
Assembly is a Low Level Language
FORTRAN
High Level Pascal
COBOL
BASIC
C++
Middle Level C
30
Programmer’s Model of Computer
It does not matter whether the machine is
microprocessor / microcontroller based or a larger
machine
31
Address Space
Address Space is set of storage locations, each of which
has an Address
32
Registers
Registers serve many important functions, including
temporary storage of data
33
Instruction Set
Set of commands that computer can obey
34
Buses
Bus – Collection of wires through which data is
transmitted from one part of computer to another
Types of Buses
1. Data Bus
2. Address Bus
3. Control Bus
35
Data Bus
Data is shared among various components inside a
computer using wires known as Data Lines
36
Address Bus
Addresses are accessed in a computer using wires known
as Address Lines
37
Control Bus
These lines control the operation of a computer
38
Acknowledgement
40