SlideShare a Scribd company logo
Microprocessor &
Interfacing
Subject Code : EEE - 323
Introduction to Microprocessor & Code
Presenter :
Avijit Adhikary
ID : 173-33-549
MD. Sajib RANA
ID : 173-33-551
Presentation Name
Index • Definition of Microprocessor
• Operations of Microprocessor
• Inside of a Microprocessor
• An Executed Code that is performed by
EMU8086 Emulator
Definition
What is Microprocessor?
 Microprocessor is an electronic circuit that
functions as the central processing unit
(CPU) of a computer, providing
computational control.
 Microprocessor is the core of the system.
 It called as heart of a computer.
Operations
Types of Operations :
 Initially microprocessor performs two basic things while executing the instruction:
 It performs some basic operations like addition, subtraction, multiplication, division
and some logical operations, using its:
 Arithmetic Operation : Addition, Subtraction, Multiplication, Division
 Logical Operation : Logical Operations (Such as AND, OR, XOR)
In Short “ It’s called as Central Processing Unit(CPU) that execute ALU operations.”
Inside
Inside of a Microprocessor :
 Internally, the microprocessor is
made up of three main units.
 Arithmetic and Logic Unit (ALU)
 Control Unit
 Array of Registers
Executed Code
 Write a program in assembly language to check whether a number is even or odd.
.MODEL SMALL ; Established Code
Structure
.STACK 100H ; Enter into DOS
.DATA
MSG1 DW ' is an EVEN Number $’ ; Define Data MSG1
MSG2 DW ' is an ODD Number $’ ; Define Data MSG2
.CODE
MAIN PROC
MOV AX, @DATA
MOV DS, AX ; Initialized “DS” Register
MOV AH, 1 ; Input a Number from Keyboard
INT 21H
MOV BL, 2 ; Move “2” into “BL” Register
DIV BL ; Divide Inputted value by BL Register Value
MOV AL, AH ; Move “AH” register value into “AL”
CMP AL, 0 ; Subtract “AL” value from “0”
JNZ ODD ; Jump ODD
EVEN:
LEA DX, MSG1 ; Collect Data Address as MSG1
MOV AH, 9 ; Print MSG1
INT 21H
JMP EXIT ; Jump to Exit
ODD:
LEA DX, MSG2 ; Collect Data Address as MSG2
MOV AH, 9 ; Print MSG2
INT 21H
EXIT:
MOV AH, 4CH ; Exit from DOS
INT 21H
MAIN ENDP
Program : Part 1 Program : Part 2
Executed Code
Figure (MI.01) : Enter into the program
Executed Code
Figure (MI.02) : Initialized DS
Executed Code
Figure (MI.03) : Move “1” to “AH” for input a keyword from
keyboard
Executed Code
Figure (MI.04) : Input a Number on Black Window
Executed Code
Figure (MI.05) : Move “2” into “BL” register
Executed Code
Figure (MI.06) : Divide inputted value by “BL” register
Executed Code
Figure (MI.07) : Move “AH” register Value into “AL”
Register
Executed Code
Figure (MI.08) : Move “AH” register value into “AL”
Executed Code
Figure (MI.09) : Compare “AL” register value with “0”
Executed Code
Figure (MI.10) : Pointer moves at “ODD” sub-function
Executed Code
Figure (MI.11) : Move “9” into “AH” for print string
Executed Code
Figure (MI.12) : Print “1” as an “ODD” number
Executed Code
Figure (MI.13) : Exit from DOS
Executed Code
Figure (MI.14) : Input another number
Executed Code
Figure (MI.15) : Store “2” into “BL” register
Executed Code
Figure (MI.16) : Compare “AL” register value with “0”
Executed Code
Figure (MI.17) : Continue loop for “EVEN” number
Executed Code
Figure (MI.18) : Enter into “EVEN” sun-function
Executed Code
Figure (MI.19) : Call Interrupt key to exit from loop
Executed Code
Figure (MI.20) : Exit from DOS
Have You any
Question
?
Introduction to Microprocessor & Code

More Related Content

PPT
Origin of Microprocessor and Classification of Microprocessor
PPT
Evolution Of Microprocessor
PDF
Microprocessors evolution introduction to microprocessor
PPTX
Classification OF Microprocessor
PPTX
[ PPT ] NS _ppt 4..ppt microprocesser and microcontroller fundamentals
PDF
Introduction to-microprocessors
PPT
Introduction for microprocessor
PPTX
Microprocessor
Origin of Microprocessor and Classification of Microprocessor
Evolution Of Microprocessor
Microprocessors evolution introduction to microprocessor
Classification OF Microprocessor
[ PPT ] NS _ppt 4..ppt microprocesser and microcontroller fundamentals
Introduction to-microprocessors
Introduction for microprocessor
Microprocessor

What's hot (20)

PDF
Introduction to Microprocessors
PPTX
Microprocessors
PDF
Memory interfacing of microcontroller 8051
PPTX
Chapter 1 CSC118
PPT
Introduction to-microprocessor
PPTX
Timeline of Processors
PDF
Report on evolution of processor by sandesh agrawal
PDF
Microprocessor and Microcontroller - ITVoyagers
PPTX
Microprocessors - Introduction
PPTX
Microprocessor
PPT
Microprocessors
DOCX
Basic concepts of microprocessors jahid
PPTX
Difference between microprocessor and microcontroller
PPT
Microprocessors and controllers
PPTX
Microprocessor
PPSX
Evolution of microprocessors
PPT
Microprocessors and microcontrollers
PPTX
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
Introduction to Microprocessors
Microprocessors
Memory interfacing of microcontroller 8051
Chapter 1 CSC118
Introduction to-microprocessor
Timeline of Processors
Report on evolution of processor by sandesh agrawal
Microprocessor and Microcontroller - ITVoyagers
Microprocessors - Introduction
Microprocessor
Microprocessors
Basic concepts of microprocessors jahid
Difference between microprocessor and microcontroller
Microprocessors and controllers
Microprocessor
Evolution of microprocessors
Microprocessors and microcontrollers
MICROPROCESSOR,BASICS AND MEMORY CONCEPT
Ad

Similar to Introduction to Microprocessor & Code (20)

PPT
Module_01.ppt
PPTX
Controller Implementation in Verilog
PPTX
Sudhir tms 320 f 2812
PPT
CPU Organization,Datatransfer and manipulation
PPTX
overview-Microprocessor of 8085 processor
PPTX
Instruction Set Architecture
PPTX
Bidirect visitor counter
PPT
Introduction to-microprocessor
PPTX
Introduction to Microcontrollers
PPT
Introduction to uP-Chadasdffpter I-3.ppt
PPTX
Unit IV Fundamentals of Computer Organization.pptx
PDF
Project single cyclemips processor_verilog
PPTX
CAO-Unit-I.pptx
PPTX
Arduino course
PPTX
Whitepaper proposal presentation _pre.pptx
PDF
arduinocourse-180308074529 (1).pdf
PPTX
introduction to computer engineering for beginner
DOCX
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
PDF
Lecture 10.cont,11 (plc)
Module_01.ppt
Controller Implementation in Verilog
Sudhir tms 320 f 2812
CPU Organization,Datatransfer and manipulation
overview-Microprocessor of 8085 processor
Instruction Set Architecture
Bidirect visitor counter
Introduction to-microprocessor
Introduction to Microcontrollers
Introduction to uP-Chadasdffpter I-3.ppt
Unit IV Fundamentals of Computer Organization.pptx
Project single cyclemips processor_verilog
CAO-Unit-I.pptx
Arduino course
Whitepaper proposal presentation _pre.pptx
arduinocourse-180308074529 (1).pdf
introduction to computer engineering for beginner
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Lecture 10.cont,11 (plc)
Ad

More from Avijit Adhikary (7)

PPTX
Chandrayaan 2
PPTX
Power Plant Scheme
PPTX
Faults in Power System
PPTX
Application of Electromagnetics
PPTX
Application of control system
PPTX
Application of control system
PPTX
Generator
Chandrayaan 2
Power Plant Scheme
Faults in Power System
Application of Electromagnetics
Application of control system
Application of control system
Generator

Recently uploaded (20)

PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPT
introduction to datamining and warehousing
PPTX
Safety Seminar civil to be ensured for safe working.
PPTX
OOP with Java - Java Introduction (Basics)
PPTX
Geodesy 1.pptx...............................................
PDF
PPT on Performance Review to get promotions
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Sustainable Sites - Green Building Construction
PDF
Digital Logic Computer Design lecture notes
PPTX
UNIT 4 Total Quality Management .pptx
PDF
composite construction of structures.pdf
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Well-logging-methods_new................
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
UNIT-1 - COAL BASED THERMAL POWER PLANTS
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
introduction to datamining and warehousing
Safety Seminar civil to be ensured for safe working.
OOP with Java - Java Introduction (Basics)
Geodesy 1.pptx...............................................
PPT on Performance Review to get promotions
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Sustainable Sites - Green Building Construction
Digital Logic Computer Design lecture notes
UNIT 4 Total Quality Management .pptx
composite construction of structures.pdf
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Lecture Notes Electrical Wiring System Components
Well-logging-methods_new................
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Model Code of Practice - Construction Work - 21102022 .pdf
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf

Introduction to Microprocessor & Code