文件名称:lesson5
介绍说明--下载内容均来自于网络,请自行研究使用
proteus单片机仿真 数码管
#include <reg51.h>
unsigned char code Tab[] {0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90}
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
}
}-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
}
}
#include <reg51.h>
unsigned char code Tab[] {0xC0,0xF9,0xA4,0xB0,0x99,0x92,0x82,0xF8,0x80,0x90}
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
}
}-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
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
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