#include<reg52.h>
#include<intrins.h>
#define uint unsigned int
#define uchar unsigned char
uhar temp;
void delay(uint z);
void main()
{
temp=0xf5;
P0=temp;
while(1)
{
delay(1000);
temp=_crol_(temp,1);
P0=temp;
}
}
void delay(uint z)
{
uint x,y;
for(x=z;x>0;x--)
for(y=110;y>0;y--);
}
|