专家
公告
财富商城
电子网
旗下网站
首页
问题库
专栏
标签库
话题
专家
NEW
门户
发布
提问题
发文章
proteus
光照度控制装置ad与单片机连接
2019-07-18 11:04
发布
×
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
站内问答
/
proteus
10392
9
1286
用的是0808和C51,实现的是根据光照度传感器的模拟信号输出数字信号给
单片机
进行判断是否输出另一个信号。但是引线该怎么连接?
友情提示:
此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
9条回答
钓自己的渔夫
2019-07-18 23:22
a410670107 发表于 2016-5-30 21:26
start需要程序的配合嘛。数据传输开始的标志
这个程序应该怎么写?
#include <reg51.h>
#define uchar unsigned char
#define uint unsigned int
sbit OUT=P2^0;
sbit START=P2^5;
sbit EOC=P2^6;
sbit OE=P2^7;
sbit shuchu=P2^0;
unsigned int aa=0;
void delayms(uint ms)
{
uchar i;
while(ms--)
{
for(i=0;i<144;i++);
}
}
void main()
{
uint a;
START=0;
OE=1;
START=1;
START=0;
while(!EOC)
OE=1;
a=P1;
if(a<128)
shuchu=0;
else
shuchu=1;
delayms(1000);
}
对吗?
加载中...
查看其它9个回答
一周热门
更多
>
相关问题
STM32F4上I2C(在PROTEUS中模拟)调试不通的问题
6 个回答
为什么Proteus 仿真点阵字体缺笔画 而且速度奇慢
7 个回答
2012~~单片机C语言程序设计实训100例-基于8051+Proteus仿真(第2版)
27 个回答
新手求帮忙解决proteus的问题
1 个回答
大家好,请问用三菱plc仿真软件跟mcgs组态软件怎么样连接?
1 个回答
相关文章
×
关闭
采纳回答
向帮助了您的知道网友说句感谢的话吧!
非常感谢!
确 认
×
关闭
编辑标签
最多设置5个标签!
proteus
保存
关闭
×
关闭
举报内容
检举类型
检举内容
检举用户
检举原因
广告推广
恶意灌水
回答内容与提问无关
抄袭答案
其他
检举说明(必填)
提交
关闭
×
打开微信“扫一扫”,打开网页后点击屏幕右上角分享按钮
×
付费偷看金额在0.1-10元之间
确定
×
关闭
您已邀请
0
人回答
查看邀请
擅长该话题的人
回答过该话题的人
我关注的人
这个程序应该怎么写?
#include <reg51.h>
#define uchar unsigned char
#define uint unsigned int
sbit OUT=P2^0;
sbit START=P2^5;
sbit EOC=P2^6;
sbit OE=P2^7;
sbit shuchu=P2^0;
unsigned int aa=0;
void delayms(uint ms)
{
uchar i;
while(ms--)
{
for(i=0;i<144;i++);
}
}
void main()
{
uint a;
START=0;
OE=1;
START=1;
START=0;
while(!EOC)
OE=1;
a=P1;
if(a<128)
shuchu=0;
else
shuchu=1;
delayms(1000);
}
对吗?
一周热门 更多>