Project 2 Digit Up/Down Counter Circuit Using Microcontroller 8051
Project 2 Digit Up/Down Counter Circuit Using Microcontroller 8051
Submitted By:
dp g f e d c b a
1 1 1 1 1 0 0 1
while(1)
{
if(switch1==0)
{
x++;
delay(200);
}
else if(switch2==0)
{
x--;
delay(200);
}
y=x/10;
SEGMENT=ch[y];
digit1=0;
delay(10);
digit1=1;
z=x%10;
SEGMENT=ch[z];
digit2=0;
delay(10);
digit2=1;
}
}
2 Digit Up Down Counter Circuit Applications
Conclusion: