刚学用松翰的片 请各位帮忙看看问题

[复制链接]
查看2984 | 回复0 | 2014-7-31 23:09:45 | 显示全部楼层 |阅读模式
用的是SN8P2711BS的片子   我想要P4.1口为低电平 点亮一个LED

看看着程序哪里不对
#include <sn8p2711b.h>
typedef unsigned int uint16;
typedef unsigned char uint8;
void main(void)
{
   uint16 i=0;
   
        while(1)
        {
          FP41=0;
          FP41M=0;
          for(i=0;i<2000;i++);
          FP41=1;
          FP41M=1;
        }
}
您需要登录后才可以回帖 登录 | 注册

本版积分规则