#include <REGX51.H>
unsigned int i,j;
void delay(unsigned int ms)
{
for(i=0;i<=ms;i++);
}
void sang_thuan1()
{
//unsigned char sang_thuan1[]={0x00,0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};
unsigned int x=1;
for(j=0;j<8;j++)
{
P2=x;
x=x<<1|1;
delay(10000);
}
}
unsigned int i,j;
void delay(unsigned int ms)
{
for(i=0;i<=ms;i++);
}
void sang_thuan1()
{
//unsigned char sang_thuan1[]={0x00,0x01,0x03,0x07,0x0f,0x1f,0x3f,0x7f,0xff};
unsigned int x=1;
for(j=0;j<8;j++)
{
P2=x;
x=x<<1|1;
delay(10000);
}
}