Single-chip microcomputer running water lamp program, burned into the single-chip microcomputer, 8 lights are on, what is going on, the following procedures, please advise. thank you
Your program is too complicated, and the delay position is wrong. The main loop program should be changed to the following.
while( 1)
{
If (me! =8)
{
P2 = Table [1];
i++;
while(num & lt; 100); num = 0;
}
else I = 0;
}
Similarly c3344c pointed out:
et 1 = 1; //This line should be changed to et0 =1;
tr 1 = 1; //This line should be changed to TR0 =1;