#include reg51.h
sbit BZ=P1 5;
Void main()
{
TMOD=0x01
TH0=(65536-500)/256;
TL0=(65536-500)% 6;
ET0=1;
TR0=1;
EA=1;
While(1)
{
}
}
Void t0()interrupt 1
{
TH0=(65536-500)/256;
TL0=(65536-500)% 6;
Bz=~ bz
}
#include reg51.h
sbit BZ=P1 5;
Void main()
{
TMOD=0x01
TH0=(65536-500)/256;
TL0=(65536-500)% 6;
ET0=1;
TR0=1;
EA=1;
While(1)
{
}
}
Void t0()interrupt 1
{
TH0=(65536-500)/256;
TL0=(65536-500)% 6;
Bz=~ bz
}