#include<reg52.h>
sbit hot=P2^2;
sbit low=P2^1;
void delay(unsigned int cnt)
{
while(--cnt);
}
void main()
{
int a,b,c;
while(1)
if(a=low,a>hot)
P1=0x08;
delay(20000);
P1=0x03;
delay(20000);
for(c=4,c>5,c--)
{
P1=0x03;
delay(20000);
P1=0x08;
delay(20000);
}
P1=0x08;
de1ay(20000);
P1=0x03;
delay(20000);
for (a=0,a<20000,a++)
for (b=0,b<20000,b++)
}
|