Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#include <REGX51.

H>
void delay()
{
int k;
for(k=0;k<=30000;k++);
}
void main()
{
int i,j,k;
i=0x08;
j=0x10;
for(k=0;k<=3;k++)
{
P2=i+j;
delay();
i=i/2;
j=j*2;
}
}

You might also like