Professional Documents
Culture Documents
Interfacing A Buzzer Using 8051 Microcontroller: Abstract
Interfacing A Buzzer Using 8051 Microcontroller: Abstract
Interfacing A Buzzer Using 8051 Microcontroller: Abstract
ABSTRACT:
Buzzer is a electronic device that converts the electronic signal into buzzing
noise, that is applied to it. It can be used as electronic bell or as quiz buzzer in many
applications around us.
Buzzer Interfacing:
This project shows the interface with 8051 microcontroller to a buzzer. When a push
button is pressed, the buzzer will get ON and OFF (number of times set in the code)
and then stops.
BACKGROUND THEORY:
Once the circuit is powered, the compiler will initialize the stack pointer and the
variables having the non-zero initial values and perform other initialization process
and then calls the main function. It then checks if any of the buttons is pressed.
In other words the microcontroller scans for any of its input pins at port P1 to be zero
or at logic low level. In case a button is pressed, the display function is called by
passing the corresponding number. The microcontroller then sends the relevant
signals to the port connected to the 7 segment display.
The microcontroller will turn on the buzzer for a second and turns it off but the
number will be continously displayed on the 7 segment display until the RST button is
pressed.
PRINCIPLE:
CIRCUIT DIAGRAM:
& to interface it to pin P2.0 and buzzer should get on when P2.0 is High.
ORG 00H
MOV P3,#00H;Configure PORT3 as output
again:setb P2.0 ;transistor ON,Buzzer ON
Acall Delay
clr P2.0; transistor Off,Buzzer off
Acall Delay
sjmp again
Delay:Mov R3,#08H
Up2:Mov R2,#0FFH
Up1:Mov R1,#0FFHH
Here:DJNZ R1,Here
DJNZ R2,Up1
DJNZ R3,Up2
RET
end
RESULTS:
MPMC LAB 18311A0494,495,496
APPLICATIONS:
CONCLUSION: When a push button is pressed, the buzzer will get ON and OFF
(number of times set in the code) and then stops.
FUTURE SCOPE:
REFERENCES: