新聞中心

        EEPW首頁 > 消費電子 > 設計應用 > LED顯示電腦電子鐘

        LED顯示電腦電子鐘

        作者: 時間:2010-10-11 來源:網絡 收藏
        tem=a(k1);
        if k1=7 then tem=a(8);
        a(k1)=0aah;
        if k1=7 then a(8)=0aah;
        call display;
        call time(254);
        call time (254);
        a(k1)=tem;
        if k1=7 then a(8)=tem;
        call display;
        call time(254);
        call time(254);
        call time(254);
        time1=time1-1;
        if mk=0 then
        do;call time(100); /*MOD KEY PROCESS*/
        TIME1=30;
        IF MK=0 THEN
        DO;
        k1=k1-1;
        DO WHILE K1=0FFH;
        K1=7;
        END;
        END;
        end;
        IF SK=0 THEN
        DO;CALL TIME(100); /*SET KEY PROCESS*/
        TIME1=30;
        IF SK=0 THEN
        DO;
        tem=tem+1;
        tem=dec(tem);
        DO CASE K1;
        DO WHILE tem=7;/*week*/
        tem=0;
        END;
        DO WHILE tem=60H;/*scond*/
        tem=0;
        END;
        DO WHILE tem=60H;/*minute*/
        tem=0;
        END;
        DO WHILE tem=24H;/*hour*/
        tem=0;
        END;
        DO WHILE tem=32H;/*date*/
        tem=1;
        END;
        DO WHILE tem=13H;/*month*/
        tem=1;
        END;
        DO while tem=100h; /* YEAR */
        tem=00;
        END;
        DO WHILE TEM>=21H;
        tem=19H;
        END;
        END;
        A(K1)=tem;
        if k1=7 then a(8)=tem;
        END;
        END;
        END;
        END;
        end key;

        本文引用地址:http://www.104case.com/article/166492.htm

        main$program:
        mk=1;sk=1;temp1=0;num=0;p32=1;
        if sk=0 then call beginset;
        clk=0;da=0;ale=1;
        loop:
        do while mk=1 ;
        if a(0)>6 then a(0)=0;
        command=0bfh;
        call rbyt8;
        call display;
        do while mk=0;
        call key;
        call wbyt1(8eh,0);
        command=0beh;
        call wbyt8;
        call wbyt1(0C0H,A(8));
        call wbyt1(8eh,80h);
        end;
        end;
        goto loop;
        end start


        上一頁 1 2 3 4 下一頁

        關鍵詞: 電子鐘 電腦 顯示 LED

        評論


        相關推薦

        技術專區

        關閉
        主站蜘蛛池模板: 辽宁省| 镇赉县| 辽阳市| 永安市| 安宁市| 巴南区| 扶风县| 桐柏县| 集安市| 藁城市| 南乐县| 贵州省| 和政县| 岱山县| 马关县| 收藏| 牡丹江市| 古蔺县| 陇西县| 锦屏县| 无极县| 安国市| 沙田区| 陆良县| 石城县| 宁城县| 宽甸| 泸西县| 含山县| 乌拉特前旗| 延寿县| 葫芦岛市| 赫章县| 庐江县| 谷城县| 兰州市| 灌云县| 耒阳市| 长顺县| 苗栗市| 镇宁|