SlideShare a Scribd company logo
In the partial fulfillment of the course
INSTR/EEE 241 – Microprocessor Programming & Interfacing
BITS- Pilani K.K.Birla Goa Campus
Project by:
NAVYA (2011A3PS240G) VAMSI REDDY (2011A8PS346G)
OMPRAKASH REDDY (2011A8PS317G) GAUTHAM REDDY (2011A8PS364G)
Problem statement:
PROBLEM NO :11
System to be designed: microwave oven
 5 different power levels (100%, 80%, 60%, 40%, and 20%)
 Time of cooking divided into 10 sec slots
 Time set as multiple of 10 min, 1 min or 10 sec
 Time is to be displayed
 Door gets locked when cooking begins and should open when cooking is
aborted
 When stop pressed once, cooking aborted, timer not cleared
 Second press of stop clears the timer
 When time becomes zero, buzzer starts and will stop only if stop button is
pushed.
 If quick start (pushing start button without setting time and power) is
pressed, default power taken(100%) and time as 30sec , which gets
incremented upon further press of start button
ASSUMPTIONS MADE:
1. User cannot set the time more than 99:59 min.
2. If the user has set the time then he can press start button only once.
However, if he did not enter the time then he can press start/quick start
any no. of times.
3. The door will automatically get locked once the user presses start/quick
start and will open when the process gets completed.
4. LED will work according to the power mode. Ex- If power is 80% then the
time will be divided in 10s slots and LED will be on for 8sec and off for 2 sec.
5.Multiple keys cannot be pressed simultaneously
COMPONENTS USED:
1) 89C51 MICROCONTROLLER
2) 7447 IC
3) 4 SEVEN SEGMENT DISPLAYS
4) 4 TRANSISITORS
5) PIEZO BUZZER
6) 6 PUSH BUTTONS
7) 12 MHZ CLOCK CRYSTAL
8) ONE LED
9)2 RESISTORS
CIRCUIT DIAGRAM
FLOWCHART:
No Yes
Yes
No
No
Yes
Yes
No
Yes
No
Yes Yes
No
No No
No
Yes
Port initialization
No. of presses : POWER
button(n)
n<=5
Power = [100-(n-1)20]%
n=n-5
Stop
Time Set
Set timer: n1-10min,
n2-min ,n3-10 sec
Total Time = n1*600 + n2*60 + n3*10 (sec)
7 Segment Display(Time)
Start
Display countdowntime & Set power
led on for 12-2n (sec) & off for 2n-2
(sec) for every 10 sec slot
Stop
Countdown Time=0
BUZZER
Stop
Start
Quick Start
Power = 100%
Stop
Start
Time = Time + 30 (sec)
Display countdown time
& Set power led
Start
Stop
Countdown Time=0
BUZZER
ALP CODE:
SEL_DISA EQU P1.0
SEL_DISB EQU P1.1
SEL_DISC EQU P1.2
SEL_DISD EQU P1.3
START EQU P1.4
STOP EQU P1.5
TEN_MIN EQU P1.6
ONE_MIN EQU P1.7
TEN_SEC EQU P3.0
POWER EQU P3.1
BUZZ EQU P3.7
ORG 0000H
MAIN:
CLR BUZZ
SETB SEL_DISA
SETB SEL_DISB
SETB SEL_DISC
SETB SEL_DISD
MOV R0,#1
MOV R1,#0 ;FOR 10_MIN
MOV R2,#0 ;FOR 1_MIN
MOV R3,#0 ;FOR 10_SEC
MOV R4,#0 ;FOR 1_SEC
MOV R5,#0 ;FOR START
MOV R6,#0 ;POWER
;WAIT FOR POWER BUTTON TO BE PRESSED
W1: MOV R7,#20
JB POWER,$
MOV R5,A
ADD A,#1
MOV A,R5
CJNE R5,#6,W2
MOV R5,A
SUBB A,#5
MOV A,R5
W2:
ACALL DELAY
DEC R7
CJNE R7,#00,W2
JB START,X6
JB TEN_MIN,X10
JB ONE_MIN,X10
JB TEN_SEC,X10
JMP W1
;SETTING TIME FOR TIMER NORMAL MODE
X10: JB START,X6
MOV R7,#20H
X11:JNB TEN_MIN,X7
SETB SEL_DISA
CLR SEL_DISB
CLR SEL_DISC
CLR SEL_DISD
INC R1
MOV P2,R1
X7:JNB ONE_MIN,X8
CLR SEL_DISA
SETB SEL_DISB
CLR SEL_DISC
CLR SEL_DISD
INC R2
MOV P2,R2
X8:JNB TEN_SEC,X9
CLR SEL_DISA
CLR SEL_DISB
SETB SEL_DISC
CLR SEL_DISD
INC R3
MOV P2,R3
X111: ACALL DELAY
DEC R7
CJNE R7,#00,X111
X9:JMP X10
;SETTING TIME FOR TIMER USING QUICK START MODE
JNB START,X13
INC R5
MOV R7,#20
S1:ACALL DELAY
DEC R7
CJNE R7,#00,S1
X13:
MOV A,R5
MOV B,#2
DIV AB
MOV A,B
CJNE A,#00,X21
MOV A,R3
ADD A,#03
MOV R3,A
X21:
MOV A,R5
MOV B,R0
DIV AB
CJNE A,#1,X22
MOV A,R0
ADD A,#2
MOV R0,A
X22:
MOV A,R5
MOV B,#20
DIV AB
MOV A,B
CJNE A,#00,X23
MOV A,R1
ADD A,#1
X23:
X6:
;RUNNING TIMER
X3:JB STOP,A1
MOV R4,#09
X2:MOV R7,#20
X1:SETB SEL_DISA
CLR SEL_DISB
CLR SEL_DISC
CLR SEL_DISD
MOV A,R1
MOV P2,A
CLR SEL_DISA
SETB SEL_DISB
CLR SEL_DISC
CLR SEL_DISD
MOV A,R2
MOV P2,R2
CLR SEL_DISA
CLR SEL_DISB
SETB SEL_DISC
CLR SEL_DISD
MOV A,R3
MOV P2,A
CLR SEL_DISA
CLR SEL_DISB
CLR SEL_DISC
SETB SEL_DISD
MOV A,R4
MOV P2,A
ACALL DELAY
DEC R7
CJNE R7,#00,X1
DEC R4
CJNE R4,#00,X2
ACALL POW
DEC R3
CJNE R3,#00,X3
MOV R3,#05
DEC R2
CJNE R2,#00,X3
MOV R3,#05
MOV R2,#09
DEC R1
CJNE R1,#00,X3
SETB BUZZ
A1:
POW:
MOV R7,#20
MOV A,R5
MOV B,#2
MUL AB
MOV R6,A
MOV A,#12
SUBB A,R6
Y1:ACALL DELAY
DEC R7
CJNE R7,#00,Y1
MOV R7,#20
MOV A,R5
MOV B,#2
MUL AB
MOV R6,A
SUBB A,#2
Z1:ACALL DELAY
DEC R7
CJNE R7,#00,Z1
RET
;DELAY OF 50 MSEC
DELAY:
MOV TMOD,#01H
MOV TH0,#3CH
MOV TL0,#0B0H
MOV R7,#00H
SETB TR0
DEL: JNB TF0,DEL
CLR TF0
RET
END
Design of Microwave oven using 8051 micro controller

More Related Content

What's hot

Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Julio César Carrasquel
 
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
Daman Singh
 
Micro controller 8051 Interrupts
Micro controller 8051 InterruptsMicro controller 8051 Interrupts
Micro controller 8051 Interrupts
dharmesh nakum
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
xavierpaulino
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
Devashish Raval
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
AKHIL MADANKAR
 
PLC Troubleshooting & Maintenance
PLC Troubleshooting & MaintenancePLC Troubleshooting & Maintenance
PLC Troubleshooting & Maintenance
NFI - Industrial Automation Training Academy
 
GPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cGPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-c
Zakaria Gomaa
 
Clock Skew 2
Clock Skew 2Clock Skew 2
Clock Skew 2
rchovatiya
 
Using 8051 microcontroller based washing machine control ppt
Using 8051 microcontroller based washing machine control pptUsing 8051 microcontroller based washing machine control ppt
Using 8051 microcontroller based washing machine control ppt
Sangeeth Sb
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
logesh waran
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
HebaEng
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller Nitesh Kumar
 
Distance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino UnoDistance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino Uno
Aswin KP
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
Vijay Kumar
 
8051 Timers / Counters
8051 Timers / Counters8051 Timers / Counters
8051 Timers / CountersPatricio Lima
 
Pentinum 2
Pentinum 2Pentinum 2
Pentinum 2
Prateek Pandey
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller NotesDr.YNM
 
ARM stacks, subroutines, Cortex M3, LPC 214X
ARM  stacks, subroutines, Cortex M3, LPC 214XARM  stacks, subroutines, Cortex M3, LPC 214X
ARM stacks, subroutines, Cortex M3, LPC 214X
Karthik Vivek
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
محمدعبد الحى
 

What's hot (20)

Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
Introduction on STM32 Platform and Presentation of a Water-Level & Temperatur...
 
Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)Pic ppt 13104022(4th_year)
Pic ppt 13104022(4th_year)
 
Micro controller 8051 Interrupts
Micro controller 8051 InterruptsMicro controller 8051 Interrupts
Micro controller 8051 Interrupts
 
Microcontroller presentation
Microcontroller presentationMicrocontroller presentation
Microcontroller presentation
 
RTC Interfacing and Programming
RTC Interfacing and ProgrammingRTC Interfacing and Programming
RTC Interfacing and Programming
 
MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration MICROCONTROLLER 8051- Architecture & Pin Configuration
MICROCONTROLLER 8051- Architecture & Pin Configuration
 
PLC Troubleshooting & Maintenance
PLC Troubleshooting & MaintenancePLC Troubleshooting & Maintenance
PLC Troubleshooting & Maintenance
 
GPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-cGPIO In Arm cortex-m4 tiva-c
GPIO In Arm cortex-m4 tiva-c
 
Clock Skew 2
Clock Skew 2Clock Skew 2
Clock Skew 2
 
Using 8051 microcontroller based washing machine control ppt
Using 8051 microcontroller based washing machine control pptUsing 8051 microcontroller based washing machine control ppt
Using 8051 microcontroller based washing machine control ppt
 
Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051Addressing mode and instruction set using 8051
Addressing mode and instruction set using 8051
 
8086 memory interface.pptx
8086 memory interface.pptx8086 memory interface.pptx
8086 memory interface.pptx
 
Microprocessor & microcontroller
Microprocessor & microcontroller Microprocessor & microcontroller
Microprocessor & microcontroller
 
Distance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino UnoDistance measurement using Ultrasonic sensor on Arduino Uno
Distance measurement using Ultrasonic sensor on Arduino Uno
 
8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar8051 microcontroller by K. Vijay Kumar
8051 microcontroller by K. Vijay Kumar
 
8051 Timers / Counters
8051 Timers / Counters8051 Timers / Counters
8051 Timers / Counters
 
Pentinum 2
Pentinum 2Pentinum 2
Pentinum 2
 
8051 Microcontroller Notes
8051 Microcontroller Notes8051 Microcontroller Notes
8051 Microcontroller Notes
 
ARM stacks, subroutines, Cortex M3, LPC 214X
ARM  stacks, subroutines, Cortex M3, LPC 214XARM  stacks, subroutines, Cortex M3, LPC 214X
ARM stacks, subroutines, Cortex M3, LPC 214X
 
Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32 Interfacing using ِAtmega16/32
Interfacing using ِAtmega16/32
 

Viewers also liked

Applications of 8051 microcontrollers
Applications of 8051 microcontrollersApplications of 8051 microcontrollers
Applications of 8051 microcontrollers
Dr.YNM
 
Microprocessor in washing machine
Microprocessor in washing machineMicroprocessor in washing machine
Microprocessor in washing machineSandeep Kamath
 
Microwave presentation
Microwave presentation   Microwave presentation
Microwave presentation
Manish Bhagat
 
Washing Machine
Washing MachineWashing Machine
Washing Machine
Saranya karthick
 
S3 Individual Presentation - Washing Machine
S3 Individual Presentation - Washing MachineS3 Individual Presentation - Washing Machine
S3 Individual Presentation - Washing Machine
no suhaila
 
Microwave Oven
Microwave OvenMicrowave Oven
Microwave Oven
mqaseem6
 
Washing machine
Washing  machineWashing  machine
Washing machineEng Eng
 
Washing machine
Washing machineWashing machine
Washing machinevamshi369
 
Washing machine
Washing machineWashing machine
Washing machine
Lạc Lạc
 
Microcontroller in automobile and applications
Microcontroller in automobile and applicationsMicrocontroller in automobile and applications
Microcontroller in automobile and applications
Kartik Kalpande Patil
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
" Its-CooL " is said " Iskool "
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
Rkrishna Mishra
 
L2 types-of-computers
L2 types-of-computersL2 types-of-computers
L2 types-of-computers
rsamurti
 
Line following bot without using micro controller
Line following bot without using micro controllerLine following bot without using micro controller
Line following bot without using micro controller
Rajat Verma
 
8051 micro controller
8051 micro controller8051 micro controller
8051 micro controller
Poojith Chowdhary
 
Artificial Neural Networks
Artificial Neural NetworksArtificial Neural Networks
Artificial Neural Networks
Saif Al-Kalbani
 
Induction Heating
Induction HeatingInduction Heating
Induction Heating
Kamran Taufiq
 
micro controller
micro controllermicro controller
micro controller
Yasir Hashmi
 

Viewers also liked (20)

Applications of 8051 microcontrollers
Applications of 8051 microcontrollersApplications of 8051 microcontrollers
Applications of 8051 microcontrollers
 
Microprocessor in washing machine
Microprocessor in washing machineMicroprocessor in washing machine
Microprocessor in washing machine
 
Microwave presentation
Microwave presentation   Microwave presentation
Microwave presentation
 
Washing Machine
Washing MachineWashing Machine
Washing Machine
 
S3 Individual Presentation - Washing Machine
S3 Individual Presentation - Washing MachineS3 Individual Presentation - Washing Machine
S3 Individual Presentation - Washing Machine
 
Microwave Oven
Microwave OvenMicrowave Oven
Microwave Oven
 
Washing machine
Washing  machineWashing  machine
Washing machine
 
Washing machine
Washing machineWashing machine
Washing machine
 
Washing machine
Washing machineWashing machine
Washing machine
 
Microcontroller in automobile and applications
Microcontroller in automobile and applicationsMicrocontroller in automobile and applications
Microcontroller in automobile and applications
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSORTRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
 
Microwave oven
Microwave ovenMicrowave oven
Microwave oven
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 
Traffic light controller
Traffic light controllerTraffic light controller
Traffic light controller
 
L2 types-of-computers
L2 types-of-computersL2 types-of-computers
L2 types-of-computers
 
Line following bot without using micro controller
Line following bot without using micro controllerLine following bot without using micro controller
Line following bot without using micro controller
 
8051 micro controller
8051 micro controller8051 micro controller
8051 micro controller
 
Artificial Neural Networks
Artificial Neural NetworksArtificial Neural Networks
Artificial Neural Networks
 
Induction Heating
Induction HeatingInduction Heating
Induction Heating
 
micro controller
micro controllermicro controller
micro controller
 

Similar to Design of Microwave oven using 8051 micro controller

Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051) vijaydeepakg
 
Erbe icc-80-50-icc-service-manual
Erbe icc-80-50-icc-service-manualErbe icc-80-50-icc-service-manual
Erbe icc-80-50-icc-service-manual
William Narciso Diaz
 
Sterilization Unit
Sterilization UnitSterilization Unit
Sterilization Unit
Rishikesh Bagwe
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
josnihmurni2907
 
Guide modulo 9-v 90821
Guide modulo 9-v 90821Guide modulo 9-v 90821
Guide modulo 9-v 90821
Tim Royce
 
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdfhoneywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
ssuserbe139c
 
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptxMICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
37PaduriHrishitha
 
20070903200911140 Eurok4 Tm 0719
20070903200911140 Eurok4 Tm 071920070903200911140 Eurok4 Tm 0719
20070903200911140 Eurok4 Tm 0719
manxx
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiMuhammad Abdullah
 
Dgs co 968-034 digital co sensor module
Dgs co 968-034 digital co sensor moduleDgs co 968-034 digital co sensor module
Dgs co 968-034 digital co sensor module
en.ofweek.com Industrial B2B Marketplace
 
Advanced insrumentation lab manual
Advanced insrumentation lab manualAdvanced insrumentation lab manual
Advanced insrumentation lab manual
Gautam sai teza
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportAkash Mhankale
 
الهندسيه الميكانيكيه الشامله hvac 1
الهندسيه   الميكانيكيه  الشامله  hvac  1الهندسيه   الميكانيكيه  الشامله  hvac  1
الهندسيه الميكانيكيه الشامله hvac 1
maymohamed29
 
الهندسيه الميكانيكيه الشامله hvac 1
الهندسيه   الميكانيكيه  الشامله  hvac  1الهندسيه   الميكانيكيه  الشامله  hvac  1
الهندسيه الميكانيكيه الشامله hvac 1
maymohamed29
 
Project on PLC (SILO)
Project on PLC (SILO)Project on PLC (SILO)
Project on PLC (SILO)
Sayan Chakraborty
 
Topviewsimulator
TopviewsimulatorTopviewsimulator
TopviewsimulatorRashmi
 
Time controlled switch catalogue - huimu instrumrnts v1.0 compressed
Time controlled switch catalogue - huimu instrumrnts v1.0 compressedTime controlled switch catalogue - huimu instrumrnts v1.0 compressed
Time controlled switch catalogue - huimu instrumrnts v1.0 compressed
HUIMU Industrial (HUIMULTD)
 

Similar to Design of Microwave oven using 8051 micro controller (20)

Manual acc
Manual accManual acc
Manual acc
 
Applications of microcontroller(8051)
Applications of microcontroller(8051) Applications of microcontroller(8051)
Applications of microcontroller(8051)
 
Erbe icc-80-50-icc-service-manual
Erbe icc-80-50-icc-service-manualErbe icc-80-50-icc-service-manual
Erbe icc-80-50-icc-service-manual
 
Sterilization Unit
Sterilization UnitSterilization Unit
Sterilization Unit
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
 
Guide modulo 9-v 90821
Guide modulo 9-v 90821Guide modulo 9-v 90821
Guide modulo 9-v 90821
 
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdfhoneywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
 
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptxMICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
 
Manual acc
Manual accManual acc
Manual acc
 
20070903200911140 Eurok4 Tm 0719
20070903200911140 Eurok4 Tm 071920070903200911140 Eurok4 Tm 0719
20070903200911140 Eurok4 Tm 0719
 
4 MAXsa 10.pptx
4 MAXsa 10.pptx4 MAXsa 10.pptx
4 MAXsa 10.pptx
 
Solution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidiSolution manual 8051 microcontroller by mazidi
Solution manual 8051 microcontroller by mazidi
 
Dgs co 968-034 digital co sensor module
Dgs co 968-034 digital co sensor moduleDgs co 968-034 digital co sensor module
Dgs co 968-034 digital co sensor module
 
Advanced insrumentation lab manual
Advanced insrumentation lab manualAdvanced insrumentation lab manual
Advanced insrumentation lab manual
 
Digital Alarm Clock 446 project report
Digital Alarm Clock 446 project reportDigital Alarm Clock 446 project report
Digital Alarm Clock 446 project report
 
الهندسيه الميكانيكيه الشامله hvac 1
الهندسيه   الميكانيكيه  الشامله  hvac  1الهندسيه   الميكانيكيه  الشامله  hvac  1
الهندسيه الميكانيكيه الشامله hvac 1
 
الهندسيه الميكانيكيه الشامله hvac 1
الهندسيه   الميكانيكيه  الشامله  hvac  1الهندسيه   الميكانيكيه  الشامله  hvac  1
الهندسيه الميكانيكيه الشامله hvac 1
 
Project on PLC (SILO)
Project on PLC (SILO)Project on PLC (SILO)
Project on PLC (SILO)
 
Topviewsimulator
TopviewsimulatorTopviewsimulator
Topviewsimulator
 
Time controlled switch catalogue - huimu instrumrnts v1.0 compressed
Time controlled switch catalogue - huimu instrumrnts v1.0 compressedTime controlled switch catalogue - huimu instrumrnts v1.0 compressed
Time controlled switch catalogue - huimu instrumrnts v1.0 compressed
 

More from Gautham Reddy

Steel Melting Shop (SMS)
Steel Melting Shop (SMS)Steel Melting Shop (SMS)
Steel Melting Shop (SMS)
Gautham Reddy
 
Porters 5 forces for mobile industry
Porters 5 forces for mobile industryPorters 5 forces for mobile industry
Porters 5 forces for mobile industry
Gautham Reddy
 
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
Gautham Reddy
 
Biofuels
 Biofuels Biofuels
Biofuels
Gautham Reddy
 
Resource Allocation in an OFDM-Based Cognitive Radio System
Resource Allocation in an OFDM-Based Cognitive Radio SystemResource Allocation in an OFDM-Based Cognitive Radio System
Resource Allocation in an OFDM-Based Cognitive Radio System
Gautham Reddy
 
OTI Cyber warefare
OTI Cyber warefareOTI Cyber warefare
OTI Cyber warefare
Gautham Reddy
 
Case study of profiles of electrical steel
Case study of profiles of electrical steelCase study of profiles of electrical steel
Case study of profiles of electrical steel
Gautham Reddy
 
Bidding strategies in deregulated power market
Bidding strategies in deregulated power marketBidding strategies in deregulated power market
Bidding strategies in deregulated power marketGautham Reddy
 
Bidding strategies in deregulated power market
Bidding strategies in deregulated power marketBidding strategies in deregulated power market
Bidding strategies in deregulated power marketGautham Reddy
 
Targeted Drug Delivery to CNS using Nanoparticles
Targeted Drug Delivery to CNS using NanoparticlesTargeted Drug Delivery to CNS using Nanoparticles
Targeted Drug Delivery to CNS using NanoparticlesGautham Reddy
 
Global positioning system (GPS)
Global positioning system (GPS)Global positioning system (GPS)
Global positioning system (GPS)Gautham Reddy
 
Global positioning system (GPS)
Global positioning system (GPS)Global positioning system (GPS)
Global positioning system (GPS)Gautham Reddy
 
Nano-particles and targeting strategies in drug delivery
Nano-particles and targeting strategies in drug deliveryNano-particles and targeting strategies in drug delivery
Nano-particles and targeting strategies in drug deliveryGautham Reddy
 
Role of nanoparticles in drug delivery
Role of nanoparticles in drug deliveryRole of nanoparticles in drug delivery
Role of nanoparticles in drug deliveryGautham Reddy
 
Bioelectronics and biosensors
Bioelectronics and biosensorsBioelectronics and biosensors
Bioelectronics and biosensorsGautham Reddy
 
Resource allocation in OFDM based cognitive radio system
Resource allocation in OFDM based cognitive radio systemResource allocation in OFDM based cognitive radio system
Resource allocation in OFDM based cognitive radio systemGautham Reddy
 
Cadancesimulation
CadancesimulationCadancesimulation
Cadancesimulation
Gautham Reddy
 

More from Gautham Reddy (20)

Steel Melting Shop (SMS)
Steel Melting Shop (SMS)Steel Melting Shop (SMS)
Steel Melting Shop (SMS)
 
Porters 5 forces for mobile industry
Porters 5 forces for mobile industryPorters 5 forces for mobile industry
Porters 5 forces for mobile industry
 
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
sequential circuit that encodes a hexadecimal 16-key keypad output to 4 – bit...
 
Biofuels
 Biofuels Biofuels
Biofuels
 
Resource Allocation in an OFDM-Based Cognitive Radio System
Resource Allocation in an OFDM-Based Cognitive Radio SystemResource Allocation in an OFDM-Based Cognitive Radio System
Resource Allocation in an OFDM-Based Cognitive Radio System
 
OTI Cyber warefare
OTI Cyber warefareOTI Cyber warefare
OTI Cyber warefare
 
Case study of profiles of electrical steel
Case study of profiles of electrical steelCase study of profiles of electrical steel
Case study of profiles of electrical steel
 
Bidding strategies in deregulated power market
Bidding strategies in deregulated power marketBidding strategies in deregulated power market
Bidding strategies in deregulated power market
 
Bidding strategies in deregulated power market
Bidding strategies in deregulated power marketBidding strategies in deregulated power market
Bidding strategies in deregulated power market
 
Targeted Drug Delivery to CNS using Nanoparticles
Targeted Drug Delivery to CNS using NanoparticlesTargeted Drug Delivery to CNS using Nanoparticles
Targeted Drug Delivery to CNS using Nanoparticles
 
Global positioning system (GPS)
Global positioning system (GPS)Global positioning system (GPS)
Global positioning system (GPS)
 
Global positioning system (GPS)
Global positioning system (GPS)Global positioning system (GPS)
Global positioning system (GPS)
 
Nano-particles and targeting strategies in drug delivery
Nano-particles and targeting strategies in drug deliveryNano-particles and targeting strategies in drug delivery
Nano-particles and targeting strategies in drug delivery
 
Idealism vs Realism
Idealism vs RealismIdealism vs Realism
Idealism vs Realism
 
Satellite antennas
Satellite antennasSatellite antennas
Satellite antennas
 
Role of nanoparticles in drug delivery
Role of nanoparticles in drug deliveryRole of nanoparticles in drug delivery
Role of nanoparticles in drug delivery
 
Bioelectronics and biosensors
Bioelectronics and biosensorsBioelectronics and biosensors
Bioelectronics and biosensors
 
Resource allocation in OFDM based cognitive radio system
Resource allocation in OFDM based cognitive radio systemResource allocation in OFDM based cognitive radio system
Resource allocation in OFDM based cognitive radio system
 
Fuzzy adaptive GSA
Fuzzy adaptive GSAFuzzy adaptive GSA
Fuzzy adaptive GSA
 
Cadancesimulation
CadancesimulationCadancesimulation
Cadancesimulation
 

Recently uploaded

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 

Recently uploaded (20)

The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 

Design of Microwave oven using 8051 micro controller

  • 1. In the partial fulfillment of the course INSTR/EEE 241 – Microprocessor Programming & Interfacing BITS- Pilani K.K.Birla Goa Campus Project by: NAVYA (2011A3PS240G) VAMSI REDDY (2011A8PS346G) OMPRAKASH REDDY (2011A8PS317G) GAUTHAM REDDY (2011A8PS364G)
  • 2. Problem statement: PROBLEM NO :11 System to be designed: microwave oven  5 different power levels (100%, 80%, 60%, 40%, and 20%)  Time of cooking divided into 10 sec slots  Time set as multiple of 10 min, 1 min or 10 sec  Time is to be displayed  Door gets locked when cooking begins and should open when cooking is aborted  When stop pressed once, cooking aborted, timer not cleared  Second press of stop clears the timer  When time becomes zero, buzzer starts and will stop only if stop button is pushed.  If quick start (pushing start button without setting time and power) is pressed, default power taken(100%) and time as 30sec , which gets incremented upon further press of start button ASSUMPTIONS MADE: 1. User cannot set the time more than 99:59 min. 2. If the user has set the time then he can press start button only once. However, if he did not enter the time then he can press start/quick start any no. of times. 3. The door will automatically get locked once the user presses start/quick start and will open when the process gets completed. 4. LED will work according to the power mode. Ex- If power is 80% then the time will be divided in 10s slots and LED will be on for 8sec and off for 2 sec. 5.Multiple keys cannot be pressed simultaneously
  • 3. COMPONENTS USED: 1) 89C51 MICROCONTROLLER 2) 7447 IC 3) 4 SEVEN SEGMENT DISPLAYS 4) 4 TRANSISITORS 5) PIEZO BUZZER 6) 6 PUSH BUTTONS 7) 12 MHZ CLOCK CRYSTAL 8) ONE LED 9)2 RESISTORS
  • 5. FLOWCHART: No Yes Yes No No Yes Yes No Yes No Yes Yes No No No No Yes Port initialization No. of presses : POWER button(n) n<=5 Power = [100-(n-1)20]% n=n-5 Stop Time Set Set timer: n1-10min, n2-min ,n3-10 sec Total Time = n1*600 + n2*60 + n3*10 (sec) 7 Segment Display(Time) Start Display countdowntime & Set power led on for 12-2n (sec) & off for 2n-2 (sec) for every 10 sec slot Stop Countdown Time=0 BUZZER Stop Start Quick Start Power = 100% Stop Start Time = Time + 30 (sec) Display countdown time & Set power led Start Stop Countdown Time=0 BUZZER
  • 6. ALP CODE: SEL_DISA EQU P1.0 SEL_DISB EQU P1.1 SEL_DISC EQU P1.2 SEL_DISD EQU P1.3 START EQU P1.4 STOP EQU P1.5 TEN_MIN EQU P1.6 ONE_MIN EQU P1.7 TEN_SEC EQU P3.0 POWER EQU P3.1 BUZZ EQU P3.7 ORG 0000H MAIN: CLR BUZZ SETB SEL_DISA SETB SEL_DISB SETB SEL_DISC SETB SEL_DISD
  • 7. MOV R0,#1 MOV R1,#0 ;FOR 10_MIN MOV R2,#0 ;FOR 1_MIN MOV R3,#0 ;FOR 10_SEC MOV R4,#0 ;FOR 1_SEC MOV R5,#0 ;FOR START MOV R6,#0 ;POWER ;WAIT FOR POWER BUTTON TO BE PRESSED W1: MOV R7,#20 JB POWER,$ MOV R5,A ADD A,#1 MOV A,R5 CJNE R5,#6,W2 MOV R5,A SUBB A,#5 MOV A,R5 W2: ACALL DELAY DEC R7 CJNE R7,#00,W2 JB START,X6 JB TEN_MIN,X10
  • 8. JB ONE_MIN,X10 JB TEN_SEC,X10 JMP W1 ;SETTING TIME FOR TIMER NORMAL MODE X10: JB START,X6 MOV R7,#20H X11:JNB TEN_MIN,X7 SETB SEL_DISA CLR SEL_DISB CLR SEL_DISC CLR SEL_DISD INC R1 MOV P2,R1 X7:JNB ONE_MIN,X8 CLR SEL_DISA SETB SEL_DISB CLR SEL_DISC CLR SEL_DISD INC R2 MOV P2,R2 X8:JNB TEN_SEC,X9 CLR SEL_DISA CLR SEL_DISB
  • 9. SETB SEL_DISC CLR SEL_DISD INC R3 MOV P2,R3 X111: ACALL DELAY DEC R7 CJNE R7,#00,X111 X9:JMP X10 ;SETTING TIME FOR TIMER USING QUICK START MODE JNB START,X13 INC R5 MOV R7,#20 S1:ACALL DELAY DEC R7 CJNE R7,#00,S1 X13: MOV A,R5 MOV B,#2 DIV AB MOV A,B CJNE A,#00,X21 MOV A,R3 ADD A,#03
  • 10. MOV R3,A X21: MOV A,R5 MOV B,R0 DIV AB CJNE A,#1,X22 MOV A,R0 ADD A,#2 MOV R0,A X22: MOV A,R5 MOV B,#20 DIV AB MOV A,B CJNE A,#00,X23 MOV A,R1 ADD A,#1 X23: X6: ;RUNNING TIMER X3:JB STOP,A1 MOV R4,#09
  • 11. X2:MOV R7,#20 X1:SETB SEL_DISA CLR SEL_DISB CLR SEL_DISC CLR SEL_DISD MOV A,R1 MOV P2,A CLR SEL_DISA SETB SEL_DISB CLR SEL_DISC CLR SEL_DISD MOV A,R2 MOV P2,R2 CLR SEL_DISA CLR SEL_DISB SETB SEL_DISC CLR SEL_DISD MOV A,R3 MOV P2,A CLR SEL_DISA CLR SEL_DISB
  • 12. CLR SEL_DISC SETB SEL_DISD MOV A,R4 MOV P2,A ACALL DELAY DEC R7 CJNE R7,#00,X1 DEC R4 CJNE R4,#00,X2 ACALL POW DEC R3 CJNE R3,#00,X3 MOV R3,#05 DEC R2 CJNE R2,#00,X3 MOV R3,#05 MOV R2,#09 DEC R1 CJNE R1,#00,X3 SETB BUZZ A1:
  • 13. POW: MOV R7,#20 MOV A,R5 MOV B,#2 MUL AB MOV R6,A MOV A,#12 SUBB A,R6 Y1:ACALL DELAY DEC R7 CJNE R7,#00,Y1 MOV R7,#20 MOV A,R5 MOV B,#2 MUL AB MOV R6,A SUBB A,#2 Z1:ACALL DELAY DEC R7 CJNE R7,#00,Z1 RET
  • 14. ;DELAY OF 50 MSEC DELAY: MOV TMOD,#01H MOV TH0,#3CH MOV TL0,#0B0H MOV R7,#00H SETB TR0 DEL: JNB TF0,DEL CLR TF0 RET END