CodePudding user response:
P0.3 wrongCodePudding user response:
Should be AT89C51 egg chicken, this is a very simple program, probably by hand,
Sbit k1=p0 ^ 0;
...
The main ()
{
While (1)
{
if(! K1) p1=255;
if(! K2) p1=0;
if(! K3) p1=15;
if(! K4) p1=240;
}
}
CodePudding user response:
Karnaugh map simplification of logic, several conditions on the switch