📄 lcd的多屏多层菜单.htm
字号:
height=14 alt=保存该页为文件 src="lcd的多屏多层菜单.files/saveas.gif" width=14
border=0></A>
<OBJECT id=WebBrowser
classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 width=0
height=0></OBJECT><A
href="http://www.zhaoxu.net/cgibin/report.cgi?forum=1&topic=22"><IMG
height=15 alt=本贴有问题,发送短消息报告给版主 src="lcd的多屏多层菜单.files/report.gif"
width=16 border=0></A> <A
href="http://www.zhaoxu.net/cgibin/fav.cgi?action=add&forum=1&topic=22"><IMG
height=15 alt=加入个人收藏&关注本贴 src="lcd的多屏多层菜单.files/fav.gif"
width=13 border=0></A> <A
href="http://www.zhaoxu.net/cgibin/printpage.cgi?forum=1&topic=22"><IMG
height=16 alt=显示可打印的版本 src="lcd的多屏多层菜单.files/printpage.gif" width=16
border=0></A> <A
href="javascript:openScript('pag.cgi?forum=1&topic=22',500,400)"><IMG
height=16 alt=把本贴打包邮递 src="lcd的多屏多层菜单.files/pag.gif" width=16
border=0></A> <A
href="http://www.zhaoxu.net/cgibin/topic.cgi?forum=1&topic=22#"><SPAN
style="CURSOR: hand"
onclick="window.external.AddFavorite('http://www.zhaoxu.net/cgibin/topic.cgi?forum=1&topic=22', ' <朝旭网络>论坛 - 一套lcd汉字显示的多屏多层菜单,实际使用的。大家给提提意见。')"><IMG
height=15 alt=把本贴加入IE收藏夹 src="lcd的多屏多层菜单.files/fav_add1.gif"
width=15 border=0></SPAN></A> <A
href="http://www.zhaoxu.net/cgibin/lbfriend.cgi?forum=1&topic=22"><IMG
height=16 alt=发送本页面给朋友 src="lcd的多屏多层菜单.files/emailtofriend.gif"
width=16 border=0></A> </TD></TR></TBODY></TABLE></TD>
<TD width=1 bgColor=#000000 height=24></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="97%" align=center bgColor=#000000
border=0>
<TBODY>
<TR>
<TD height=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="97%" align=center border=0>
<TBODY>
<TR>
<TD width=1 bgColor=#000000 height=24></TD>
<TD bgColor=#f8f8f8><A name=end>
<TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#f8f8f8>
<TBODY>
<TR>
<TD vAlign=top width=178 bgColor=#f8f8f8 rowSpan=2><IMG height=4
src="lcd的多屏多层菜单.files/cgibin.htm" width=0><BR>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width=30> <IMG height=15 alt=该用户目前不在线
src="lcd的多屏多层菜单.files/offline1.gif" width=15></TD>
<TD>
<TABLE
style="FILTER: glow(color=#9898BA,direction=135)"> <FONT
color=#990000><B>zhaoxu</B></FONT>
<TBODY></TBODY></TABLE></TD>
<TD> <IMG alt=此人为坛主 src="lcd的多屏多层菜单.files/teamad.gif"
width=16></TD></TR></TBODY></TABLE> <FONT color=#555555>头衔:
论坛坛主<BR></FONT> <FONT color=#333333></FONT> <BR> <IMG
height=16 src="lcd的多屏多层菜单.files/pips10.gif" width=100>
<BR> <FONT color=#555555>威望: 0</FONT> <BR> <FONT
color=#333333>级别: <A target=_blank
href="http://www.zhaoxu.net/cgibin/lookinfo.cgi?action=style">究级天王
[荣誉]</A></FONT> <BR> <FONT color=#555555>来自: 保密</FONT>
<BR> <FONT color=#333333>鉴定: 已设置保密</FONT> <BR> <FONT
color=#555555>魅力: <IMG height=8 alt=1108
src="lcd的多屏多层菜单.files/bar4.gif" width=11></FONT> <BR> <FONT
color=#333333>经验: <IMG height=8 alt=798
src="lcd的多屏多层菜单.files/bar5.gif" width=4></FONT> <BR> <FONT
color=#555555>金钱: 3135 雷傲元</FONT> <BR> <FONT
color=#333333>总发贴数: <B>21</B> 篇</FONT> <BR> <FONT
color=#555555>注册日期: 2001/09/17</FONT><BR><IMG height=4
src="lcd的多屏多层菜单.files/cgibin.htm" width=0><BR></TD>
<TD width=1 bgColor=#f8f8f8 height="100%" rowSpan=2>
<TABLE height="100%" cellSpacing=0 cellPadding=0 width=1
bgColor=#9898ba>
<TBODY>
<TR>
<TD width=1></TD></TR></TBODY></TABLE></TD>
<TD vAlign=top width=* bgColor=#f8f8f8 height="100%"><IMG height=4
src="lcd的多屏多层菜单.files/cgibin.htm" width=0><BR> <A
title=给zhaoxu发送一个短消息
href="javascript:openScript('messanger.cgi?action=new&touser=zhaoxu',420,320)"><IMG
height=16 src="lcd的多屏多层菜单.files/message.gif" width=16
border=0>消息</A> <A title=查看zhaoxu的个人资料
href="http://www.zhaoxu.net/cgibin/profile.cgi?action=show&member=zhaoxu"><IMG
height=16 src="lcd的多屏多层菜单.files/profile.gif" width=16
border=0>查看</A> <A title=搜索zhaoxu在本分论坛的全部贴子 target=_blank
href="http://www.zhaoxu.net/cgibin/search.cgi?action=startsearch&TYPE_OF_SEARCH=username_search&NAME_SEARCH=topictitle_search&FORUMS_TO_SEARCH=1&SEARCH_STRING=zhaoxu"><IMG
height=16 src="lcd的多屏多层菜单.files/find.gif" width=16
border=0>搜索</A> <A title=加zhaoxu为我的好友
href="javascript:openScript('friendlist.cgi?action=adduser&adduser=zhaoxu',420,320)"><IMG
height=16 src="lcd的多屏多层菜单.files/friend.gif" width=16
border=0>好友</A> <A title=复制这个贴子
href="http://www.zhaoxu.net/cgibin/post.cgi?action=copy1&forum=1&topic=22&postno=1"><IMG
height=16 src="lcd的多屏多层菜单.files/copy.gif" width=16
border=0>复制</A> <A title=引用回复这个贴子
href="http://www.zhaoxu.net/cgibin/post.cgi?action=replyquote&forum=1&topic=22&postno=1"><IMG
height=16 src="lcd的多屏多层菜单.files/reply.gif" width=16
border=0>引用</A> <A
href="http://www.zhaoxu.net/cgibin/post.cgi?action=reply&forum=1&topic=22"><IMG
height=16 alt=回复贴子 src="lcd的多屏多层菜单.files/replynow.gif" width=16
border=0>回复</A> <BR>
<HR width="100%" color=#000000 SIZE=1>
<TABLE style="TABLE-LAYOUT: fixed" cellSpacing=0 cellPadding=0
width="100%">
<TBODY>
<TR>
<TD vAlign=top width=32><IMG height=13
src="lcd的多屏多层菜单.files/09.gif" width=13> </TD>
<TD
style="LEFT: 0px; WIDTH: 100%; LINE-HEIGHT: 130%; LETTER-SPACING: 0pt; WORD-WRAP: break-word"><FONT
color=#555555><FONT color=#555555>#include<reg52.h>
<BR>#include<absacc.h> <BR>#include<hz-string_t.c>
<BR><BR>#define INPUTSET256; <BR><BR>#define DEBUG 0
//0:运行,1:调试 <BR>#define ENABLE_INTERRUPT
1//1:中断允许,0:中断禁止 <BR><BR>//定义8155地址 <BR>#define I8155A0x7000
<BR>#define I8155B0x7200 <BR>#definePA1 <BR>#define PB2
<BR>#define PC3 <BR><BR>//定义25045地址 <BR>#define OUTNUMBER
0x01a1 <BR>#define INNUMBER 0x01a2 <BR>#define PASSWORD_ADDR
0x01a3 <BR>#define HIDE_PASSWORD_ADDR 0x01af <BR><BR>//定义键盘扫描码
<BR>#defineBUTTON_START0x28 <BR>#define BUTTON_STOP0x48
<BR>#define BUTTON_SET0x84 <BR>#define BUTTON_OK0x88
<BR>#define BUTTON_SLAVE0x81 <BR>//0,1,2,3,4,5,6,7,8,9
<BR>unsigned char code
keyscancode[]={0x82,0x11,0x12,0x14,0x21,0x22,0x24,0x41,0x42,0x44};
<BR><BR>#include<x25045.h> <BR>#include<tm12864.h>
<BR><BR><BR><BR><BR>//new var <BR>unsigned char bdata bitvar;
<BR>sbit keypush=bitvar^0; <BR>sbit
rrtime_flag=bitvar^1;//读取运行参数标志 <BR>sbit showflag=bitvar^2;
<BR><BR><BR>unsigned char keycode,tempkey,i,j; <BR>unsigned
char menuitem=0x00; <BR>unsigned int runtime[32];
<BR><BR><BR>unsigned int xdata starttime[36]; <BR>unsigned int
xdata stoptime[32]; <BR>unsigned int xdata betweentime[32];
<BR>unsigned char xdata runno1[36]; <BR>unsigned char xdata
linkrun[4]; <BR>unsigned char xdata linkrunno1[4];
<BR><BR>unsigned char xdata submenuitem=0; <BR>unsigned long
xdata i8155out; <BR>unsigned char xdata
main_temp,outputnumber,inputnumber; <BR>unsigned int xdata
tempvar[9]; <BR>char xdata showstr[5]=" ";
<BR>//new var end <BR><BR><BR>//定义DS12887地址 <BR><BR>#define
P12887SEC 0x7f00//12887秒地址
<BR>#define P12887SEC_ALM 0x7f01//12887秒报警地址
<BR>#define P12887MIN 0x7f02//12887分地址
<BR>#define P12887MIN_ALM 0x7f03//12887分报警地址
<BR>#define P12887HOUR 0x7f04//12887时地址
<BR>#define P12887HOUR_ALM 0x7f05//12887时报警地址
<BR>#define P12887WEEK 0x7f06//12887星期地址
<BR>#define P12887DAY 0x7f07//12887日期地址
<BR>#define P12887MONTH 0x7f08//12887月地址
<BR>#define P12887YEAR 0x7f09//12887年地址
<BR>#define P12887MCA 0x7f0a//寄存器a地址
<BR>#define P12887MCB 0x7f0b//寄存器a地址
<BR>#define P12887MCC
0x7f0c//寄存器a地址 <BR>#define P12887MCD
0x7f0d//寄存器a地址 <BR>#define P12887RAM
0x7f0e//12887不掉电RAM起始地址 <BR><BR>void
init_12887();
//DS12887初始化程序 <BR>void
gettime_12887();
//取DS12887时间子程序(年月日时分) <BR>void
settime_12887();
//设置DS12887时间子程序 <BR><BR><BR>void
i8155_init(unsigned int memaddress,unsigned char command);
<BR>//intel 8155 端口输出 <BR>//memaddress:8155基址;
<BR>//portnum:端口号(1:PA、2:PB、3:PC) <BR>//portstatu:端口输出字
<BR>void i8155_outport(unsigned int memaddress,unsigned char
portnum,unsigned char portstatu); <BR><BR>//intel 8155 端口输入
<BR>//memaddress:8155基址; <BR>//portnum:端口号(1:PA、2:PB、3:PC)
<BR>//返回值:端口状态 <BR>unsigned char i8155_inport(unsigned int
memaddress,unsigned char portnum); <BR><BR>void
showinitscreen(); <BR>void init(); <BR><BR>void timer0()
interrupt 1 using 1 <BR>{ <BR>unsigned char temp; <BR>//晶振为
11.0592MHZ 时计数 9216(0xdb00) 次为 10ms <BR>TH0=0xd8;
<BR>TL0=0x00; <BR><BR>temp=(XBYTE[0x7e00]&0x0f);//有键按下时
!=0x0f <BR>if(temp!=0x0f)//是否有键按下 <BR>{ <BR>if(keypush==1)
<BR>{ <BR>keycode=~temp;
<BR>if((XBYTE[0x7ee0]&0x0f)!=0x0f) <BR>{
<BR>keycode=keycode&0x1f; <BR>} <BR>else
if((XBYTE[0x7ed0]&0x0f)!=0x0f) <BR>{
<BR>keycode=keycode&0x2f; <BR>} <BR>else
if((XBYTE[0x7eb0]&0x0f)!=0x0f) <BR>{
<BR>keycode=keycode&0x4f; <BR>} <BR>else
if((XBYTE[0x7e30]&0x0f)!=0x0f) <BR>{
<BR>keycode=keycode&0x8f; <BR>} <BR><BR>} <BR>else <BR>{
<BR>keypush=1; <BR>keycode=0; <BR>} <BR>} <BR>else <BR>{
<BR>keypush=0; <BR>} <BR>} <BR>void ds12887_int1() interrupt 2
using 2 <BR>{ <BR>rrtime_flag=0; <BR>ACC=XBYTE[P12887MCC];
//读寄存器C 清除中断请求标志IRQF <BR>}
<BR><BR><BR>//**************************************************************
<BR>// <BR>//主程序 <BR>//
<BR>//**************************************************************
<BR>void main() <BR>{ <BR><BR>i8155out=0x00;
<BR>x25045_disable();
<BR><BR><BR>outputnumber=x25045_readbyte(OUTNUMBER);
<BR>for(i=0;i<outputnumber;i++) <BR>{
<BR>runtime<I>=(int)0x00; <BR>runno1<I>=0x00;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -