#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
void Delay500ms() //@11.0592MHz
{
unsigned char i, j, k;
_nop_();
i = 4;
j = 129;
k = 119;
do
{
do
{
while (--k);
} while (--j);
} while (--i);
}
void main()
{
P1=0xfe;
while(1)
{
Delay500ms();
P1=_crol_(P1,1);
}
}
|