#include<reg52.h>
//#include<intrins.h>
void Delay(int t)
{
	while(t--);
}
void main()
{
    unsigned int i;
	Delay(50000);
	while(1)
	{		
	    P1=0x7f;
		for(i=1;i<=8;i++)
		{
			//Delay(50000);
			P1>>=1;
			P1=_cror_(P1,1);
			P1=P1|0x80;//相当于每次对高位赋值为一
		}
	}
}

  

posted on 2011-11-18 19:21    阅读(551)  评论(0编辑  收藏  举报