IN The Name Of Almighty ALLAH
Presentation Title Page
 Name:Fawad Masood Khattak
 ID: (CU-58-2011)
 Section A
 EE-2011A
 Topic:
 emu8086 shows how to keep constant Temperature
 Contact : Fawadkttk@gmail.com
 CECOS University Peshawar,Pakistan
Thermometer by Fawad Masood Ktk
 It is also accessible from the "virtual devices" menu of
the emulator.
Temperature Range Fawad Masood Ktk
 Temperature Range Is In Between of 60 Degree to 80
Degree
Use of : Fawad Masood Ktk
 Using Heater and Thermometer
 It is assumed that air temperature is lower 60°.
 Temperature Rises Fast thus Emulator Should Be Set
Run At Maximum Speed
#Start=thermometer.exe
 Thermometer.exe is started automatically from
c:emu8086devices.
#make-bin# Fawad Masood Ktk
 Here Your Program Will Change Into Binary Form
 And In First 2 Instructions we are Supposed To Move
The Data From CS To DS i.e Set Data Segment To Code
Segment
 Instructions Are :
 Mov ax,cs ; Move Data From CS to AX
 Mov ds,ax ; The Move It To DS
 Because It Is Not possible To move Data from CS To DS
Directly We Use Accumulator For It.
Use For Port In Next Instruction
 Here We Used Instruction i.e
 In al,125
 This Means That On the Port 125 There Is Direct Data
will Go to The Accumulator Rather Then Accumulator
We can’t Use any Other Temporary Registers Because
This Is The Orignal Format for input Output
Instruction

Use Of Compare Fawad Masood Ktk
 Cmp al,60
 Now That Data Which Came From the Port 125 to Al Is
Compared With 60 ,That data Will Be Either Less Or
Greater Then 60 On port 125
 Note:
 125 Port is Use For The Temperature Measure
Use Of JL Command Fawad Masood Ktk
 Jl Low
 Low:
 If The Value Of al Is Less The 60 This Means That it
will go to Low Loop Where It is defined As:
 Mov al,1 ; Move 1 in Al (1=ON)
 Out 127,al
 AL data Put It into Port 127 and The Heater Get ON
NOTE Fawad Masood Ktk
 127 Port Is Flame Port
 125 Port Is For Temperature Measure
 Now Last Instruction Is :
 Jmp Ok
Again Compare Command
 Cmp al,80
 This Means If The Value In Al Is equal To 80 or Less
The 80 Then Go To Next Instruction
 Jle ok
 Jg High ; Jump Greater To High
 Where
 High:
 Mov Al,0 (Move 0 To Al)
 Out 127,al >> Put The Value in Port 127
Thermometer Fawad Masood Ktk
 The Heater Turned Off
 OK:
 Jmp start >>> Endless Loop
Thank You Fawad Masood Ktk

Microprocessor Use Of Emulator 8088/86 Thermometer By Fawad Masood Khattak

  • 1.
    IN The NameOf Almighty ALLAH
  • 2.
    Presentation Title Page Name:Fawad Masood Khattak  ID: (CU-58-2011)  Section A  EE-2011A  Topic:  emu8086 shows how to keep constant Temperature  Contact : Fawadkttk@gmail.com  CECOS University Peshawar,Pakistan
  • 3.
    Thermometer by FawadMasood Ktk  It is also accessible from the "virtual devices" menu of the emulator.
  • 5.
    Temperature Range FawadMasood Ktk  Temperature Range Is In Between of 60 Degree to 80 Degree
  • 6.
    Use of :Fawad Masood Ktk  Using Heater and Thermometer  It is assumed that air temperature is lower 60°.  Temperature Rises Fast thus Emulator Should Be Set Run At Maximum Speed
  • 7.
    #Start=thermometer.exe  Thermometer.exe isstarted automatically from c:emu8086devices.
  • 8.
    #make-bin# Fawad MasoodKtk  Here Your Program Will Change Into Binary Form  And In First 2 Instructions we are Supposed To Move The Data From CS To DS i.e Set Data Segment To Code Segment  Instructions Are :  Mov ax,cs ; Move Data From CS to AX  Mov ds,ax ; The Move It To DS  Because It Is Not possible To move Data from CS To DS Directly We Use Accumulator For It.
  • 9.
    Use For PortIn Next Instruction  Here We Used Instruction i.e  In al,125  This Means That On the Port 125 There Is Direct Data will Go to The Accumulator Rather Then Accumulator We can’t Use any Other Temporary Registers Because This Is The Orignal Format for input Output Instruction 
  • 10.
    Use Of CompareFawad Masood Ktk  Cmp al,60  Now That Data Which Came From the Port 125 to Al Is Compared With 60 ,That data Will Be Either Less Or Greater Then 60 On port 125  Note:  125 Port is Use For The Temperature Measure
  • 11.
    Use Of JLCommand Fawad Masood Ktk  Jl Low  Low:  If The Value Of al Is Less The 60 This Means That it will go to Low Loop Where It is defined As:  Mov al,1 ; Move 1 in Al (1=ON)  Out 127,al  AL data Put It into Port 127 and The Heater Get ON
  • 12.
    NOTE Fawad MasoodKtk  127 Port Is Flame Port  125 Port Is For Temperature Measure  Now Last Instruction Is :  Jmp Ok
  • 13.
    Again Compare Command Cmp al,80  This Means If The Value In Al Is equal To 80 or Less The 80 Then Go To Next Instruction  Jle ok  Jg High ; Jump Greater To High  Where  High:  Mov Al,0 (Move 0 To Al)  Out 127,al >> Put The Value in Port 127
  • 14.
    Thermometer Fawad MasoodKtk  The Heater Turned Off  OK:  Jmp start >>> Endless Loop
  • 15.
    Thank You FawadMasood Ktk