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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3334|回復: 1
收起左側

LCD12864和ADC0831、DA0832的 proteus仿真及源程序

[復制鏈接]
ID:137190 發表于 2016-9-4 23:42 | 顯示全部樓層 |閱讀模式
0.png

0.png
  1. #include <absacc.h>
  2. #include <intrins.h>
  3. #include <reg51.h>
  4. #include "HZcode.h"
  5. #include "LCD.h"
  6. #include "1302.h"
  7. #include "key.h"
  8. #include "adc0831.h"

  9. uchar time0_count;         //time0計數器

  10. //time0初始化
  11. void time0_init(void)
  12. {
  13.         EA = 1;
  14.         ET0 = 1;
  15.         TMOD = 0x01;
  16.         PT0 = 1;
  17.         TH0 = 0x3C;
  18.         TL0 = 0xB0;
  19.         TR0 = 1;
  20. }

  21. void main(void)
  22. {
  23.        
  24.         I_init();
  25.         InitLCD();
  26.         time0_init();
  27.         show_hz();
  28.         show_date_time();
  29.         while(1)
  30.         {
  31.                 judge_key();
  32.         }
  33.                
  34. }
  35. void time0_interrupt(void)interrupt 1
  36. {
  37.         TH0 = 0x3c;
  38.         TL0 = 0xb0;
  39.         time0_count++;
  40.         if(time0_count==20)
  41.         {
  42.                 time0_count=0;
  43.                 show_date_time();
  44.                 a = readadc();
  45.                 b1 = a/100;
  46.                 b2 = (a%100)/10;
  47.                 b3 = (a%100)%10;
  48.                 show_ad();
  49.                 P3 = a;   //進行數模轉換
  50.         }
  51. }
復制代碼


包含ad0831、lcd、da0808、ds1302、24c64,這個程序實現了在LCD上顯示漢字符的效果。在proteus仿真軟件中可直接運行。
主程序如下:

0.png

【仿真】proteus中LCD和ADC0831、DA0832的聯合仿真.rar

94.17 KB, 下載次數: 53, 下載積分: 黑幣 -5

回復

使用道具 舉報

ID:116487 發表于 2020-5-6 11:36 | 顯示全部樓層
看看能不能進行仿真
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表