| 全部内容 | 本站公告 | 购物咨询 | 付款确认 | 购物反馈 | 网站建议 | 贵宾交流 | 商品评论 | 文章评论 | 发新留言 |
| 标题: | 〖yorton〗我的问题的代码(787)………… 购物咨询 | ||
| 发送时间: | 2008/11/4 9:55:34 | 更新时间: | 2008/11/4 13:22:20 |
| 留言内容: |
我的问题的代码,请问为何发送和接收指示灯同时闪烁?谢
#includereg52.h int a,b=0; unsigned int c; void main() { P3=0x2B; c=50000; P1=0x14; while(c--); c=50000; P3=0xd4; P1=0x04; while(c--); c=50000; P3=0x2B; P1=0x5d; while(c--); c=50000; P3=0xd4; P1=0x24; while(c--); c=50000; P3=0x2B; P1=0x34; while(c--); c=50000; P3=0xd4; P1=0x9C; while(c--); c=50000; P3=0x2B; P1=0x54; while(c--); c=50000; P3=0xd4; P1=0x46; while(c--); c=50000; P3=0x2B; P1=0xDD; while(c--); c=50000; P3=0xd4; P1=0x05; while(c--); } 2008-11-4 11:41:16 [yorton]〖119.129.197.49〗:waiting for massage! 2008-11-4 13:22:20 [51dz]〖58.61.55.214〗:发送接收灯就是P3.0和P3.1的引脚状态变化指示,你的代码有更改P3口的状态,LED自然就会闪了. | ||
| 本站实事求是保留用户意见和问题!拒绝广告和灌水!但系统只显示最近2年或者最近2万次留言(约5000标题)!过期留言自动删除!重要内容请自行备份!不便之处请谅解! |