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

標題: 51單片機53L0x源程序,實測可測2m [打印本頁]

作者: 銘記薔薇    時間: 2019-3-31 18:09
標題: 51單片機53L0x源程序,實測可測2m
51單片機53L0x程序,實測可測2m

單片機源程序如下:
  1. #include "main.h"

  2. void main(void)
  3. {
  4.         Usart_Config();   //串口配置
  5.     Timer0_Config();  //定時器0配置
  6.         system_start();          //系統上電自檢
  7.                
  8.         while(1)
  9.         {
  10.          system_service();//系統服務
  11.         }
  12. }


  13. void Timer0_isr() interrupt 1 using 1
  14. {
  15.            timer0cnt++;

  16.         if(checkcnt<5000) checkcnt++;
  17.         if(systemtick!=0) systemtick++;
  18.         if(keycnt !=0) keycnt ++;
  19.       
  20.     TH0 = (65536-1000)/256;   
  21.         TL0 = (65536-1000)%256;                  
  22.             
  23. }

  24. void Usart_Isr() interrupt 4 using 1
  25. {
  26.     if (RI)
  27.     {
  28.         RI = 0;             //Clear receive interrupt flag
  29.     }
  30.     if (TI)
  31.     {
  32.         TI = 0;             //Clear transmit interrupt flag
  33.         busy = 0;           //Clear transmit busy flag
  34.     }
  35. }
復制代碼

所有資料51hei提供下載:
53L0x.rar (76.26 KB, 下載次數: 6)





作者: admin    時間: 2019-4-1 04:41
本帖需要重新編輯補全電路原理圖,源碼,詳細說明與圖片即可獲得100+黑幣(帖子下方有編輯按鈕)




歡迎光臨 (http://www.raoushi.com/bbs/) Powered by Discuz! X3.1