文件名称:lesson8
介绍说明--下载内容均来自于网络,请自行研究使用
proteus单片机仿真 继电器
#include<reg51.h>
sbit S1 P3^2
sbit S2 P3^3
sbit Relay P0^0
void main()
{
while(1)
{
if(S1 0) Relay 1
if(S2 0) Relay 0
}
}-Proteus single-chip microcomputer simulation- relay
# include < reg51. H >
Sbit S1 P3 ^ 2
Sbit S2 P3 ^ 3
Sbit Relay P0 ^ 0
Void main ()
{
While (1)
{
If (S1 0) Relay 1
If (S2 0) Relay 0
}
}
#include<reg51.h>
sbit S1 P3^2
sbit S2 P3^3
sbit Relay P0^0
void main()
{
while(1)
{
if(S1 0) Relay 1
if(S2 0) Relay 0
}
}-Proteus single-chip microcomputer simulation- relay
# include < reg51. H >
Sbit S1 P3 ^ 2
Sbit S2 P3 ^ 3
Sbit Relay P0 ^ 0
Void main ()
{
While (1)
{
If (S1 0) Relay 1
If (S2 0) Relay 0
}
}
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lesson8
.......\lesson8.SEC
.......\lesson8_1
.......\lesson8_1.c
.......\lesson8_1.DSN
.......\lesson8_1.hex
.......\lesson8_1.lnp
.......\lesson8_1.LST
.......\lesson8_1.M51
.......\lesson8_1.OBJ
.......\lesson8_1.plg
.......\lesson8_1.PWI
.......\lesson8_1.uvopt
.......\lesson8_1.uvproj
.......\lesson8_1_uvproj.bak
.......\lesson8_2.DSN
.......\lesson8_2.PWI