首页|资源下载
登录|注册

您现在的位置是:电子研发网 > 资源下载 > msp430基础程序集合

msp430基础程序集合

  • 资源大小:297
  • 上传时间: 2021-01-23
  • 上传用户:suyuxi4376
  • 资源积分:2 下载积分
  • 标      签: 基础

资 源 简 介

LED 程序 P4OUT=BitCode; //输出位码 LED 流水灯实验 P2OUT=Code[Bit[i]]; //输出段码 #include "msp430x14x.h" BitCode>>=1;//位码右移一位 #define uint unsigned int if(BitCode==0) BitCode=0x80; #define uchar unsigned char DelayMs(1); //延时1ms uchar LedData=0x80; P2OUT=0xFF; //延时子程序 } void DelayMs(uint ms){ } while(ms--){ void main(){ for(uint i=0;i<800;i++);

相 关 资 源