Description: Proteus single-chip microcomputer simulation, digital tube
# include < reg51. H >
Unsigned char code Tab [] {xa4 xc0 0, 0 xf9, 0, 0 xb0, 0 x99, 0 x92, 0 x82, 0 xf8, 0 x80, 0 x90}
Void Delay ()
{
Unsigned char I, j
For (I 0 I < 255 i++)
For (j 0 j < 255 j++)
}
Void main ()
{
Unsigned char I 1
While (1)
{
P0 Tab [I]
Delay ()
I++
If (I > 9) I 0
}
}
To Search:
File list (Check if you may need any files):
lesson5
.......\lesson5.DSN
.......\lesson5.PWI
.......\lesson5_1
.......\lesson5_1.c
.......\lesson5_1.hex
.......\lesson5_1.lnp
.......\lesson5_1.LST
.......\lesson5_1.M51
.......\lesson5_1.OBJ
.......\lesson5_1.plg
.......\lesson5_1.uvopt
.......\lesson5_1.uvproj
.......\lesson5_1_uvproj.bak
.......\lesson5_2
.......\lesson5_2.c
.......\lesson5_2.hex
.......\lesson5_2.lnp
.......\lesson5_2.LST
.......\lesson5_2.M51
.......\lesson5_2.OBJ
.......\lesson5_2.plg
.......\lesson5_2.uvopt
.......\lesson5_2.uvproj
.......\lesson5_2_uvproj.bak