Home > Back-end >  Using 8 bit digital tube can move the dynamic display of digital circuit and software design.
Using 8 bit digital tube can move the dynamic display of digital circuit and software design.

Time:09-25

I don't know the program is wrong or my figure is wrong, please answer,
The first number in turn to the left since last digital tube, disappear until the last number in the first digital tube, this is a cycle,
This code I see from the books, according to the reason is not wrong, but I tried it on, don't scroll even Numbers are not showing, I don't know much about myself, and
#include
Void move_disp ()
{
Unsigned char move []={0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x06, 0 x6f, 0 x6f, 0 x6d, 0 x3f, 0 x4f, 0 x06, 0 x7d, 0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x00 to 0 x00};
Unsigned char TAB []={0 x7f, 0 XBF, 0 XDF, 0 xef, 0 xf7, 0 XFB, 0 XFD, 0 xfe};
Unsigned char m, n, k;
For (m=0; M & lt; 15. M++)
{
For (k=0; K & lt; 10; K++)
{
For (n=0; N & lt; 8; N++)
{
P0=TAB [n].
The P2=move [m + n];
Time1ms ();
The P2=0 XFF;
}
}
}
}
Void main ()
{
While (1)
{
Move_disp ();
}
}

CodePudding user response:

Or have other ideas to solve this problem, please let us know

CodePudding user response:

But please don't too hard, well, maybe I don't understand
  • Related