//program to buzz the buzzer
//Target board s/n 102011
//Manufacturer Technophilia
#include "reg51.h" // header file for 8051 series of microcontroller
#include "delay.h" //header file for generating time delay
void main()
{
while(1)
{
p03=0; //buzzer will play when we send a data 0 to it
delay(1000); //plays the buzzer for 1000mili second or 1second
p03=1; //buzzer will stop when we send a data 1 to it
delay(1000); //stop the buzzer for 1000mili second or 1second
}
}
No comments:
Post a Comment