#include <REGX51.H>
unsigned char a;
unsigned char b;
unsigned char j,k,l;
unsigned char mang[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void tre(long time)
{ long n;
for(n=0;n++;n<time)
{;}}
void quet(unsigned char x)
{ int i,t;
{ for(i=0;i<8;i++)
{
t=x;
t=t&0x80;
//P1_0=ma[i];
if(t==0x80)
P1_0=1;
else
P1_0=0;
x*=2;
P1_1=0;
P1_1=1;
}
P1_2=0;
P1_2=1;
} }
void main(void)
{ unsigned int i,k=0;
unsigned char ma[]={ 0xFF,0xFF,0xC3,0xAF,0xC3,0xFF,0xFF,0xFF };
while(1)
{
for(j=0;j<8;j++)
{
for(i=0;i<8;i++)
{ P2=1<<j;
quet(ma[j]);
tre(1000);
//if(i==16)i=0;
}}}}
unsigned char a;
unsigned char b;
unsigned char j,k,l;
unsigned char mang[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f};
void tre(long time)
{ long n;
for(n=0;n++;n<time)
{;}}
void quet(unsigned char x)
{ int i,t;
{ for(i=0;i<8;i++)
{
t=x;
t=t&0x80;
//P1_0=ma[i];
if(t==0x80)
P1_0=1;
else
P1_0=0;
x*=2;
P1_1=0;
P1_1=1;
}
P1_2=0;
P1_2=1;
} }
void main(void)
{ unsigned int i,k=0;
unsigned char ma[]={ 0xFF,0xFF,0xC3,0xAF,0xC3,0xFF,0xFF,0xFF };
while(1)
{
for(j=0;j<8;j++)
{
for(i=0;i<8;i++)
{ P2=1<<j;
quet(ma[j]);
tre(1000);
//if(i==16)i=0;
}}}}