#defineucharunsignedchar
uchartimes;
sibtjdq=P1^4;
sbitfmq=P1^5;
voidt0isr()interrupt1
{
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
times++;
if(times>=200)
{
jdq=~jdq;
fmq=~jdq;
}
}
main()
{
TMOD=0x01;
TH0=(65536-50000)/256;
TL0=(65536-50000)%256;
TR0=1;
ET0=1;
EA=1;
jdq=0;
fmq=0;
while(1);
}