Home > other >  SCM problem small white! Genuflect is begged Orz buzz the primal
SCM problem small white! Genuflect is begged Orz buzz the primal

Time:09-24

CodePudding user response:

P0.3 wrong

CodePudding 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
  • Related