找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 3693|回复: 2
收起左侧

。。。。

[复制链接]
ID:34618 发表于 2012-3-25 15:31 | 显示全部楼层 |阅读模式

#include<reg52.h>
#include<intrins.h>
#define unint unsigned int 
#define uchar unsigned char
unint x,i;
delay(unint x)
{
  while(x--)
  {
  for(i=0;1<120;i++);
  }
}

main()
{
 
   P0=0xfe;
   while(1)
   {
   delay(100);
   P0=_crol_(P0,1);
  
   }

 

 

}

 

回复

使用道具 举报

ID:34618 发表于 2012-3-25 15:31 | 显示全部楼层
怎么不行啊、。。。。
回复

使用道具 举报

ID:34608 发表于 2012-3-25 22:03 | 显示全部楼层
你说的什么不行啊,没说清楚哦!!程序没有错啊!!
回复

使用道具 举报

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

本版积分规则

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

Powered by 单片机教程网

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