Home > other >  For help, I want to make the simulation dynamic digital tube display, plus total simulation not out
For help, I want to make the simulation dynamic digital tube display, plus total simulation not out

Time:10-22

#include
#include
# define uint unsigned int
# define uchar unsigned char
Sbit p36=P3 ^ 6;

Uchar code cc []={x5b x3f 0, 0 x06, 0, 0 x4f, 0 x66, 0 x6d, 0 x7d, 0 x07, 0 x7f, 0 x6f};
Uchar code addr []={x0f2 x0f0 0, 0 x0f1, 0, 0 x0f3};
Void delay (uint I)
{the while (I -)
;
}
Void main (void)
{
Uchar vv [4].
P36=1;

V. v. [0]=4;
V. v. [1]=6;
V. v. [2]=7;
V. v. [3]=3;
While (1)
{
uchar i;
I=4;
While (I -)
{


The P2=addr [3 -] I;
P0=cc [vv [3 - I]];
If (I==1)
{
P0=cc [vv [3 - I]] | 0 x80.
}
P36=0;
Delay (50);
P36=1;

}
}
}

CodePudding user response:

CodePudding user response:

The original poster in the triode class B and C, add two voltage meter on both ends of the E, see if triode conduction closed, conduction and closing Vce has no change,
  • Related