找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 1756|回复: 6
收起左侧

这段有问题吗为何打不开P1^0

[复制链接]
ID:106428 发表于 2016-2-26 13:27 | 显示全部楼层 |阅读模式
#include <reg52.h>
#include <intrins.H>
void yc()
void main()
{
    P1=0x00;
/*        uchat x,y;
        for(x=7;x>0;x--)
        {
                
        }*/

}


回复

使用道具 举报

ID:58502 发表于 2016-2-26 22:55 来自手机 | 显示全部楼层
首先,void yc()还没完整,你可以先去掉,
回复

使用道具 举报

ID:106152 发表于 2016-2-26 23:32 | 显示全部楼层
#include <reg52.h>
#include <intrins.H>
#define uchar unsigned char
void main()
{
    P1=0x00;   //看外电路试0xff
/*        uchar x,y;
        for(x=7;x>0;x--)
        {
                 
        }*/
while(1);

}
回复

使用道具 举报

ID:89409 发表于 2016-2-27 02:01 | 显示全部楼层
我来看看 学习学习
回复

使用道具 举报

ID:106491 发表于 2016-2-27 10:05 | 显示全部楼层
樓上的正解,還是看看外圍電路試一下
回复

使用道具 举报

ID:74145 发表于 2016-2-27 12:57 | 显示全部楼层
#include <reg52.h>
#include <intrins.H>
#define uchar unsigned char
void main()
{
    P1=0x00;  
while(1);
}
或者是
while(1)
{
  P1=0X00;
}
回复

使用道具 举报

ID:29126 发表于 2016-3-8 14:06 | 显示全部楼层
程序不完整呀
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|51黑电子论坛 |51黑电子论坛6群 QQ 管理员QQ:125739409;技术交流QQ群281945664

Powered by 单片机教程网

快速回复 返回顶部 返回列表