Lecture-1(Intro to Microprocessors)
Lecture-1(Intro to Microprocessors)
to
Microprocessors
⮚ Coprocessors.
2
Recommended Texts
⮚ Microprocessors and Interfacing: Programming and Hardware, by Douglas V. Hall
⮚ Assembly Language Programming and Organization of the IBM PC, by Ytha Y. Yu,
Charles Marut
3
Some tips before we begin
🞂 Basic Programming
4
Concept of Computer
Data
Computer
Processing
Data Storage
MEMORY
I/O
SYSTEM
BUS
Computer
CPU
Architectures of Microprocessors:
❖ RISC (Reduced Instruction Set Computer)
❖ CISC (Complex Instruction Set Computer)
❖ Special-purpose designs: Microcontrollers, Digital
Signal Processors (DSP) and Graphics Processing Units
(GPU).
9 CSE – 341 : Microprocessors
Concept about Microprocessor
🞂 A microprocessor incorporates most or all of
the functions of a central processing unit
(CPU) on a single integrated circuit (IC).
Die of an Intel 80486DX2
microprocessor (actual size:
12×6.75 mm) in its packaging
CPU
Overall size of the system is large Overall size of the system is smaller
Data Bus
CPU CPU RAM ROM
General Seria
purpose RAM ROM I/ Timer l
Micro O Seria
COM I/
processor Port Timer
Port O l
Port COM
Address Bus Port
🞂 Assembler:
🞂 An assembler is a program that converts assembly language into
machine language.
A machine language consists of binary digits. Assembly language follows a syntax similar to the
English Language.
Machine language varies depending on the Assembly language consists of a standard set of
platform. instructions.
18
High level language vs Machine language
🞂 int a, b, c;
a = 83;
b = -2; // high level language
c = a + b;
--------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
🞂 0010 0001 0000 0100
🞂 0001 0001 0000 0101
🞂 0011 0001 0000 0110 //machine language
🞂 0111 0000 0000 0001
🞂 0000 0000 0101 0011
🞂 1111 1111 1111 1110
add cl, 2 : add the value 2 with the current value of cl // after adding 2, cl is now
and store sum in cl holding the value 5
❑ Subtract 2 from 3
mov cl, 3 : copy the value 3 in the internal register cl //so currently cl is
holding the value 3
sub cl, 2 : sub the value 2 from the current value of cl //after subtracting 2, cl is now
holding the value 1
🞂 mov cl, 5
🞂 add cl, 6
🞂 sub cl, 10