SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
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

PDF
Đồ án Xây dựng đồng hồ thời gian thực hiển thị trên LED 7 thanh
Jazmyne Padberg
 
PPTX
Artificial intelligence in power systems seminar presentation
MATHEW JOSEPH
 
PPTX
Artifical intelligence
Bishal Rimal
 
PPTX
case study (1).pptx
PiyushSharma350565
 
PPTX
Embedded Systems using Microwave oven
BOOMIKAD
 
PDF
Esquemas+de+pinagem+de+ecu +nacional
OBD II
 
PPTX
Diabetes Mellitus
MD Abdul Haleem
 
PPTX
Hypertension
Ratheeshkrishnakripa
 
Đồ án Xây dựng đồng hồ thời gian thực hiển thị trên LED 7 thanh
Jazmyne Padberg
 
Artificial intelligence in power systems seminar presentation
MATHEW JOSEPH
 
Artifical intelligence
Bishal Rimal
 
case study (1).pptx
PiyushSharma350565
 
Embedded Systems using Microwave oven
BOOMIKAD
 
Esquemas+de+pinagem+de+ecu +nacional
OBD II
 
Diabetes Mellitus
MD Abdul Haleem
 
Hypertension
Ratheeshkrishnakripa
 

What's hot (20)

PPTX
Code Conversion in 8085 Microprocessor
MOHIT AGARWAL
 
PPTX
Digital Clock
JiaahRajpout123
 
PPTX
Proteus Circuit Simulation
Abdul Haseeb
 
PPTX
Divide by N clock
Mantra VLSI
 
PDF
Keypad Interfacing with 8051 Microcontroller
Sudhanshu Janwadkar
 
PPTX
Using 8051 microcontroller based washing machine control ppt
Sangeeth Sb
 
PPTX
Introduction to DSP Processors-UNIT-6
Ananda Gopathoti
 
PPTX
ARM Processors
Mathivanan Natarajan
 
PPTX
ATmega32-AVR microcontrollers-Part I
VineethMP2
 
PPTX
decade counter
Abhishek Sainkar
 
PPTX
Modified Gate Diffusion Input-MGDI
shubham jha
 
PPTX
Digital electronics logic families
BLESSINAR0
 
PPTX
Multi mode multi corner (mmmc)
shaik sharief
 
PPTX
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Moe Moe Myint
 
PPT
8051 Presentation
Sayan Chakraborty
 
PPTX
Digitalclock project 2016 with timer 555 & IC 7490 & IC 7474 & 7 segment
Ibrahim R
 
PPTX
R2 r dac
sunitabiswal1
 
PPTX
Programmable logic devices
ISMT College
 
DOC
Chap 6
Tanuj Patel
 
Code Conversion in 8085 Microprocessor
MOHIT AGARWAL
 
Digital Clock
JiaahRajpout123
 
Proteus Circuit Simulation
Abdul Haseeb
 
Divide by N clock
Mantra VLSI
 
Keypad Interfacing with 8051 Microcontroller
Sudhanshu Janwadkar
 
Using 8051 microcontroller based washing machine control ppt
Sangeeth Sb
 
Introduction to DSP Processors-UNIT-6
Ananda Gopathoti
 
ARM Processors
Mathivanan Natarajan
 
ATmega32-AVR microcontrollers-Part I
VineethMP2
 
decade counter
Abhishek Sainkar
 
Modified Gate Diffusion Input-MGDI
shubham jha
 
Digital electronics logic families
BLESSINAR0
 
Multi mode multi corner (mmmc)
shaik sharief
 
Ch 1 introduction to Embedded Systems (AY:2018-2019--> First Semester)
Moe Moe Myint
 
8051 Presentation
Sayan Chakraborty
 
Digitalclock project 2016 with timer 555 & IC 7490 & IC 7474 & 7 segment
Ibrahim R
 
R2 r dac
sunitabiswal1
 
Programmable logic devices
ISMT College
 
Chap 6
Tanuj Patel
 
Ad

Viewers also liked (20)

DOCX
Applications of 8051 microcontrollers
Dr.YNM
 
PPTX
Microprocessor in washing machine
Sandeep Kamath
 
PPTX
Microwave presentation
Manish Bhagat
 
PPT
Washing Machine
Saranya karthick
 
PPTX
S3 Individual Presentation - Washing Machine
no suhaila
 
PPTX
Microwave Oven
mqaseem6
 
PPTX
Washing machine
Eng Eng
 
PPTX
Washing machine
vamshi369
 
PPTX
Washing machine
Lạc Lạc
 
PPTX
Microcontroller in automobile and applications
Kartik Kalpande Patil
 
PPTX
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
PPT
Microwave oven
Naveen Sihag
 
DOCX
Traffic light controller
" Its-CooL " is said " Iskool "
 
DOC
8051 Microcontroller Notes
Dr.YNM
 
PPTX
Traffic light controller
Rkrishna Mishra
 
PDF
L2 types-of-computers
rsamurti
 
PPT
Line following bot without using micro controller
Rajat Verma
 
PPT
8051 micro controller
Poojith Chowdhary
 
PPTX
Artificial Neural Networks
Saif Al-Kalbani
 
PPT
Induction Heating
Kamran Taufiq
 
Applications of 8051 microcontrollers
Dr.YNM
 
Microprocessor in washing machine
Sandeep Kamath
 
Microwave presentation
Manish Bhagat
 
Washing Machine
Saranya karthick
 
S3 Individual Presentation - Washing Machine
no suhaila
 
Microwave Oven
mqaseem6
 
Washing machine
Eng Eng
 
Washing machine
vamshi369
 
Washing machine
Lạc Lạc
 
Microcontroller in automobile and applications
Kartik Kalpande Patil
 
TRAFFIC LIGHT CONTROL SYSTEM USING 8085 MICROPROCESSOR
Subash Sambath Kumar
 
Microwave oven
Naveen Sihag
 
Traffic light controller
" Its-CooL " is said " Iskool "
 
8051 Microcontroller Notes
Dr.YNM
 
Traffic light controller
Rkrishna Mishra
 
L2 types-of-computers
rsamurti
 
Line following bot without using micro controller
Rajat Verma
 
8051 micro controller
Poojith Chowdhary
 
Artificial Neural Networks
Saif Al-Kalbani
 
Induction Heating
Kamran Taufiq
 
Ad

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

PPTX
Applications of microcontroller(8051)
vijaydeepakg
 
PDF
Erbe icc-80-50-icc-service-manual
William Narciso Diaz
 
PDF
OT transfer switch sdf d d d d dddddddddddddddd.pdf
pepe882014
 
PPTX
SOLAR WATER PUMP CONTROL WITH FOUR DIFFERENT TIME SLOTS FOR POWER SAVING APPL...
mgokulasukanyasjcet
 
PDF
Sterilization Unit
Rishikesh Bagwe
 
DOCX
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
josnihmurni2907
 
PDF
Guide modulo 9-v 90821
Tim Royce
 
PDF
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
ssuserbe139c
 
PPTX
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
37PaduriHrishitha
 
PPT
20070903200911140 Eurok4 Tm 0719
manxx
 
PPTX
4 MAXsa 10.pptx
PradeepSingh606480
 
PDF
Solution manual 8051 microcontroller by mazidi
Muhammad Abdullah
 
PPTX
plc-ppt-snteli-200503070616plc-ppt-snteli-200503070616
johnsilvister
 
PDF
MANUAL DE TORCÓMETRO norbar detalles de aspectos relacionados con la manipula...
SLatorreAndrs
 
PDF
HVAC 2 التدفئة والتهوية و تكييف الهواء
maymohamed29
 
PDF
الهندسيه الميكانيكيه الشامله hvac 1
maymohamed29
 
PDF
الهندسيه الميكانيكيه الشامله hvac 1
maymohamed29
 
DOCX
Project on PLC (SILO)
Sayan Chakraborty
 
Applications of microcontroller(8051)
vijaydeepakg
 
Erbe icc-80-50-icc-service-manual
William Narciso Diaz
 
OT transfer switch sdf d d d d dddddddddddddddd.pdf
pepe882014
 
SOLAR WATER PUMP CONTROL WITH FOUR DIFFERENT TIME SLOTS FOR POWER SAVING APPL...
mgokulasukanyasjcet
 
Sterilization Unit
Rishikesh Bagwe
 
Twin wheeler modified for arduino simplified serial protocol to sabertooth v22
josnihmurni2907
 
Guide modulo 9-v 90821
Tim Royce
 
honeywell-dc1000-dc1010-dc1030-dc1040-manual.pdf
ssuserbe139c
 
MICROCONTROLLER 8051-BASED SOLAR CHARGE CONTROLLER.pptx
37PaduriHrishitha
 
20070903200911140 Eurok4 Tm 0719
manxx
 
4 MAXsa 10.pptx
PradeepSingh606480
 
Solution manual 8051 microcontroller by mazidi
Muhammad Abdullah
 
plc-ppt-snteli-200503070616plc-ppt-snteli-200503070616
johnsilvister
 
MANUAL DE TORCÓMETRO norbar detalles de aspectos relacionados con la manipula...
SLatorreAndrs
 
HVAC 2 التدفئة والتهوية و تكييف الهواء
maymohamed29
 
الهندسيه الميكانيكيه الشامله hvac 1
maymohamed29
 
الهندسيه الميكانيكيه الشامله hvac 1
maymohamed29
 
Project on PLC (SILO)
Sayan Chakraborty
 

More from Gautham Reddy (20)

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

Recently uploaded (20)

DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PDF
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PPTX
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
PPTX
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
PPTX
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
PDF
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
PDF
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
PPTX
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
PPTX
How to Apply for a Job From Odoo 18 Website
Celine George
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
PPTX
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Care of patients with elImination deviation.pptx
AneetaSharma15
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Antianginal agents, Definition, Classification, MOA.pdf
Prerana Jadhav
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
A Smarter Way to Think About Choosing a College
Cyndy McDonald
 
An introduction to Dialogue writing.pptx
drsiddhantnagine
 
TEF & EA Bsc Nursing 5th sem.....BBBpptx
AneetaSharma15
 
The Minister of Tourism, Culture and Creative Arts, Abla Dzifa Gomashie has e...
nservice241
 
BÀI TẬP TEST BỔ TRỢ THEO TỪNG CHỦ ĐỀ CỦA TỪNG UNIT KÈM BÀI TẬP NGHE - TIẾNG A...
Nguyen Thanh Tu Collection
 
20250924 Navigating the Future: How to tell the difference between an emergen...
McGuinness Institute
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
How to Apply for a Job From Odoo 18 Website
Celine George
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Kanban Cards _ Mass Action in Odoo 18.2 - Odoo Slides
Celine George
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Care of patients with elImination deviation.pptx
AneetaSharma15
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 

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