A place for technology lover, a complete innovative place to guide you in your innovention and make your ideas come true.Be it design,coding,circuits or taking a break in life. To grow your knowledge and keep you motivated ,inspired and energetic.
Monday, 17 June 2013
8051 interfacing with the buzzer
download link of complete project: http://d01.megashares.com/dl/
Labels:
8051 coding,
8051 interfacing,
8051 projects,
at89c51,
buzzer,
keil code
Subscribe to:
Post Comments (Atom)
About the author
Scholar Ratan pal singh is a Google scholar, a man with innovative ideas and a nothing is impossible attitude, is a tech-lover.
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.
"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."
He works as a independent researcher and freelance website and software developer.
Member of IEEE comsoc society, Green technology society and has published research paper and codes in many international journals and opensource.
"Failure is the pillar of success and Honesty with oneself is the only true way of achieving self-confidence."
Sir, Can U please post the complete code ??
ReplyDelete#include
ReplyDelete#define buzzer P0_1
void HmsDelay(unsigned char) ;
void main()
{
while(1)
{
buzzer = 1 ; // Make LED ON
HmsDelay(5) ; // 500 ms delay
buzzer = 0 ;
HmsDelay(5) ;
}
}
void HmsDelay(unsigned char hmsDelay) { // 100 mSec @ 11.0592 MHz
unsigned int i ;
unsigned char j ;
if (hmsDelay == 0) hmsDelay = 1 ; // Non zero value
for (j=0; j<=hmsDelay; j++)
for(i=0;i<=17000;i++)
;
}
use #include in the header of program
ReplyDeleteI m providing u the complete link of file with LED program for downloading from 4shared.com u can use that to drive your buzzer by changing the LED to buzzer in program and adjusting the time intervals according to your needs......incase of further queries I welcome your comments.....
use this password to extract this archive and download : circuitsandprogram
http://d01.megashares.com/dl/zIlpiG7/1
CODE:
ReplyDeleteorg 00H
HERE: JNB P2.3,HERE ;keep monitoring for high
SET B P1.5 ;set bit P1.5
CLR P1.5 ;make P1.5 low
SJMP HERE ; keep repeating
END
What is this code for ??Should we program it in assembly or C??
this code is in assembly language
ReplyDeleteand the one for which I have posted the link that is for C
it will be the best option to download the file from the link and just open keil uvision and then select the file option then open the project file from the downloaded folder provided by me
the folder contains
c code of program
hex file and other files
and complete project of keil u vision
in case of further queries I am there to help you..............
I downloaded keil uvision 5 and when I click on open project ,the file which u had sent is not at all seen in dialog box opened. Should the file be changed in to any other format .?
ReplyDeleteafter downloading the file do the following.........
ReplyDelete1) extract the file using 7zip and password circuitsandprogram
2) you will see a folder 1LED Blink on extracting
3) open the folder and open the file LED.uvproj it is a 14kb file
4) file will get opened in keiluvision incase it doesnot then right click the file and choose
openwith keiluvision
you will never see the file in the dialog box on its own,you have to browse to the location where you have saved the downloaded file and extracted folder then choose the extracted folder 1LED Blink and then you will see the file........
ReplyDeletefollow the steps in the previous comment...no need to change any file format...
In the circuit diagram P 2.3 is connected to both vcc and gnd.How will it work ?
ReplyDeleteAnd now after having hex file ,which programmer should be used to burn the hex file in to the microcontroller?
ReplyDeleteyes the connections in diagram are fine
ReplyDeleteyou can use magic burner or any other burner provided with your hardware
hi ratan sir
ReplyDeleteThis is manasa. I'm trying to generate birthday tune on 8051 micro controller . Could you please help in writing the code
hi manasa,
Deleteno need to change the code, just replace the buzzer with a preprogrammed buzzer which plays happy birthday tune.
alternatively, it is needed to change the code and output different frequencies for a particular interval of time to generate the correct tune.
the first option is the fastest and easiest one but often this buzzer are hard to find, i had a buzzer once which played 5 sounds and i have used it for my personal alarm along with a clock and counter.
in case you don't find such type of buzzer follow the second option, here is a link of an article of the worlds most popular electronics magazine just go through it, you will find complete circuit and code...
http://www.electronicsforu.com/electronicsforu/circuitarchives/view_article.asp?sno=461
Hi ratan Sir I am doing mini project about pir sensor based home security using buzzer and at89c51microcontroller please help me to write code and connections of circuit diagram
ReplyDeletePlease make a code
Delete