0% found this document useful (0 votes)
231 views22 pages

Lecture-1 (Introduction To Microprocessors and Assembly Language)

This document provides an introduction to a course on microprocessors and assembly language. It outlines topics that will be covered, including various microprocessors and their architectures. Recommended textbooks are listed. It is recommended that students have a basic understanding of digital logic, computer organization, and programming. Diagrams are provided explaining the concept of a computer and the major components of a central processing unit. Key differences between microprocessors and microcontrollers are also summarized.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
231 views22 pages

Lecture-1 (Introduction To Microprocessors and Assembly Language)

This document provides an introduction to a course on microprocessors and assembly language. It outlines topics that will be covered, including various microprocessors and their architectures. Recommended textbooks are listed. It is recommended that students have a basic understanding of digital logic, computer organization, and programming. Diagrams are provided explaining the concept of a computer and the major components of a central processing unit. Key differences between microprocessors and microcontrollers are also summarized.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 22

Introduction

Microprocessors and Assembly Language

Course Teacher:
Md. Obaidur Rahman, Ph.D.
Assistant Professor,
Department of Computer Science and Engineering (CSE),
Dhaka University of Engineering & Technology (DUET), Gazipur.

Course ID: CSE - 4503


Course Title: Microprocessors and Assembly Language
Department of Computer Science and Engineering (CSE),
Islamic University of Technology (IUT), Gazipur.
Topics to be Covered in this Course !!
 Microprocessor and Assembly Language:
 Microprocessors and Microcomputers
 Evaluation of Microprocessors Applications
 Intel 8086 Microprocessor: internal architecture, register
structure, programming model, addressing modes,
instruction set
 Assembly language programming
 Coprocessors.
 An overview of Intel 80186, 80286, 80386, 80486 and
Pentium microprocessors
 RISC and CISC processors.

2 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Recommended Texts
 Microprocessors and Interfacing: Programming and Hardware,
Author: Douglas V. Hall
 Assembly Language Programming and Organization of the
IBM PC, Author: Ytha Yu, Charles Marut
 Microprocessor, architecture, programming & application with
the 8085, Author: Gaonkar
 The Intel Microprocessor 8086…Arch. Prog, Interfacing.
Author: Bary, Bray
 Microprocessor and Microcomputer – Based System Design,
Author: Mohamed Rafiquzzaman

 Don’t worry !! Lecture materials will be provided ☺


3 CSE-4503: Microprocessors and Assembly Language
Islamic University of Technology (IUT)
Does Earlier Knowledge Require ??
 You should have the knowledge about –
 Number Systems.
 Basics of “Digital Logic Design” course.
 Basics of “Computer Organization and Architecture”
course.
 “Basic Programming”.

4 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Lecture References:
 Book:
 Microprocessors and Interfacing: Programming and Hardware,
Author: Douglas V. Hall
 Lecture Materials:
 ECP2036: Microprocessor and Interfacing.
 Web Materials:
 Wikipedia, the free encyclopedia
 http://www.cpu-world.com/Arch/8085.html
 http://www.ehow.com/way_5230222_8085-microprocessor-
tutorial.html

5 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Concept of Computer

Computer Data Processing

Data Storage

6 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Major Components of Computer

MEMORY
I/O
SYSTEM
BUS

Computer

CPU

7 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
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

8 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Central Processing Unit
 A central processing unit (CPU), or sometimes just called
Microprocessor (µ µP), is a description of a class of logic
machines that can execute computer programs.

• This broad definition can easily be applied to many early


computers that existed long before the term "CPU" ever came
into widespread usage. However, the term itself and its
initialism have been in use in the computer industry at least
since the early 1960s.
• The form, design and implementation of CPUs have changed
dramatically since the earliest examples, but their fundamental
operation has remained much the same.

9 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Central Processing Unit/Microprocessor (µP)
To synchronize and control the
overall operation of the µP system
Control Unit &
Instruction Decoder
To decode instruction and To perform the arithmetic and logical
operations within the CPU
pass the necessary control signals to CU

Arithmetic/Logic Unit A set of internal storage


locations within the CPU
To perform shift and rotate
operations that may either be Registers
arithmetic or logical in nature
• Control and Status Registers
• User-Variable Registers
10 CSE-4503: Microprocessors and Assembly Language
Islamic University of Technology (IUT)
So .. What is Microprocessor?
 A microprocessor (abbreviated as µP or uP) is a Silicon Chip
that contains an electronic central processing unit (CPU). In
the world uP or CPU used interchangeably, which is made
from miniaturized transistors and other circuit elements on a
single semiconductor integrated circuit (IC).
 The integration of the whole CPU onto a single VLSI Chip
therefore greatly reduced the cost of processing capacity.
 Architectures of Microprocessors:
 8-bit designs  RISC (Reduced Instruction Set Computer)
 16-bit designs  CISC (Complex Instruction Set Computer)
 32-bit designs  Special-purpose designs: Microcontrollers,
 64-bit designs Digital Signal Processors (DSP) and Graphics
 Multi-core designs Processing Units (GPU).

11 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
List of Microprocessors
1971 - Intel 4004, 1st single chip CPU, 4-bit processor, 45 instructions
1972 - Intel 4040, enhanced 4004, 60 instructions
1972 - Intel 8008, 8-bit µP
1972 - Texas Instrument TMS 1000, 1st single µC, 4-bit
1974 - Intel 8080, successor to the 8008, used in Altair 8800
1975 - Motorola 6800, used MOS technology
1976 - Intel 8085, updated 8080, +5V power supply
1976 - Zilog Z80, improved 8080
1976 - TI TMS 9900, 1st 16-bit µP
1978 - Zilog Z8000, Motorola 68000, 16-bit µP
1978 - Intel 8086, 16-bit, IBM’s choice...

12 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Similar but Different !! Microcontroller (µ
µC)
 Microcontroller is an IC
dedicated to perform one
task.
 Integrates the memory and
other features of a MEMORY
microprocessor. I/O SYSTEM
 A microcontroller is the BUS

integration of
 Microprocessor CPU
 Memory
 ROM types – commonly
flash PROM
 RAM – Static ram

13 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
List of Microcontrollers
1972 - Texas Instrument TMS 1000, 1st single µC, 4-bit
1976 - Intel 8048, 8-bit µC, 1k ROM, 64b RAM, 27 I/O
1980 - Intel 8051, 4k ROM, 128b RAM, 32 I/O, 2 16-bits timers
1980s
(MCS-51 family)
- Intel 8031, 8052, 8751, …
- Atmel AT89C51, AT 89C1052/2051,…
- Dallas Semiconductor DS5000 series…
-Philips, National Semiconductor, …
- (Other µCs) Microchip PIC16 series, Motorola 68HC11, Zilog’s
Z86

14 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Microprocessor System Vs Microcontroller System
µP µC
• Single-chip CPU • Single-chip IC
Hardware • RAM-ROM ratio high • ROM-RAM ration high
Architecture • Interrupt, I/O, Timer – • Interrupt, I/O, timer-
external. Internal
• Not much on Real-time • Need to respond to Real
time
• Microcomputer system • Control oriented activities
Application • Processing information • Control of I/O devices
• Process intensive to • Control intensive to
Instruction handle Large volume of handle I/O using single
set data Bit
• Operates on byte, words, • Operates mostly on Bit &
pointers, and arrays. byte
• Longer development • Shorter development time
time • ANDing, ORing,
• ANDing, ORing, XORing in bit level is
XORing in bit level is easy
less easy
15 CSE-4503: Microprocessors and Assembly Language
Islamic University of Technology (IUT)
Microprocessor System Vs Microcontroller System

Data Bus
CPU CPU RAM ROM

General Serial
purpose RAM ROM I/O Timer COM
Micro Port Serial
Port I/O
processor Timer
Port COM
Port
Address Bus

General-Purpose Microprocessor System Microcontroller

16 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Assembly Language
 Assembly language:
 Assembly language is used for most programming because it
is extremely difficult to program a microprocessor in its
native, that is hexadecimal machine language.
 Assembler:
 An assembler is a program that converts software written in
symbolic machine language (the source programme) into
hexadecimal machine language (object programme).
 The primary reason to use assembler is because
development and modification are always difficult in machine
language.

17 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Example of 8085 Assembly Language
Address Instruction

202A MVI A, 21H ; Copies 21 into accumulator


202C MVI B, 2AH ; Copies 2A into B register
202E ADD B ; Adds B reg. content with Acc
and stores the result in Acc.
202F STA [41 FF] ; Stores the Acc (the sum) into
the memory location 41 FF.
2032 HLT ; Stops the program

18 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Memory storage of the Assembly language
Address Instruction/Data

202A MVI A,
202B 21
202C MVI B,
202D 2A
202E ADD B
202F STA
2030 FF
2031 41
2032 HLT

19 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Another Example of 8085 Assembly
Language
Address Instruction

2020 MVI B, 24 ; Copies 24 into accumulator


2022 INR B ; Increment B reg content by 1
2023 MOV A, B ; Copies B register into Acc.
2024 SUB B ; Subtracts B reg content from
Acc and stores the result in
Acc.
2025 STA [5F FF] ; Stores the Acc content into
the memory location 5F FF.
2028 HLT ; Stops the program

20 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Assembly Language vs. Machine Language

21 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)
Thank You !! and

22 CSE-4503: Microprocessors and Assembly Language


Islamic University of Technology (IUT)

You might also like