欧美极品高清xxxxhd,国产日产欧美最新,无码AV国产东京热AV无码,国产精品人与动性XXX,国产传媒亚洲综合一区二区,四库影院永久国产精品,毛片免费免费高清视频,福利所导航夜趣136

專注電子技術學習與研究
當前位置:單片機教程網 >> MCU設計實例 >> 瀏覽文章

XS128單片機實驗:B口燈交替閃亮

作者:韓冰   來源:本站原創   點擊數:  更新時間:2013年11月30日   【字體:


#include <hidef.h>           /* common defines and macros */
#include "derivative.h"      /* derivative-specific definitions */
#include "WQ.h"
//This is the first program of mine,it's used to text the board;
//LED will twinkle in very fast speed;
void DELAY(int y)
  {
   int i,x;
   for (i=y;i>0;i--)
      for(x=220;x>0;x--); 
  }
void main(void) {
  DDRB =0XFF;       //置1,作為輸出口
  while(1){
  PORTB=0x55;
  DELAY(550);
  PORTB=0XAA;
  DELAY(550);
  }
 
}
 
 

關閉窗口

相關文章