⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu_str.c

📁 进行单片机与LCD的接口通讯与显示。使用清华的液晶。
💻 C
字号:
#include <reg51.h>
#define uchar unsigned char
#define uint unsigned int
extern uchar idata buf[30];
/* Chain-table structure defination*/
uchar code menu_str[97][30]={
                             {"Entry:"},                    /*0*/
                             {"normal display:"},           /*1*/
                             {"display:"},                  /*2*/ //第二层开始
                             {"programming:"},              /*3*/
                             {"fault ack.:"},               /*4*/
                             {"operating stats/measure:"},  /*5*/ //第三层开始
                             {"history events:"},           /*6*/
                             {"date/time setting:"},        /*7*/
                             {"language:"},                 /*8*/
                             {"scale:"},                    /*9*/
                             {"motor specifications:"},     /*10*/
                             {"freqency setting:"},         /*11*/
                             {"groups in operation:"},      /*12*/
                             {"control mode:"},             /*13*/
                             {"fwd/rev & jog:"},            /*14*/
                             {"DC applying:"},              /*15*/
                             {"limit parameters:"},         /*16*/
                             {"calibration:"},              /*17*/
                             {"power unit:"},                /*18*/ //第四层开始
                             {"general measurement:"},       /*19*/
                             {"general states:"},            /*20*/
                             {"motor voltage:            V"}, /*21*/
                             {"motor current:            A"}, /*22*/
                             {"motor power:            KVA"},/*23*/
                             {"motor frequency:          HZ"},/*24*/
                             {"motor speed:            rd/s"},/*25*/
                             {"freq. reference:"},           /*26*/
                             {"ref freq.:          HZ"},   /*27*/
                             {"minimum freq.:        HZ"}, /*28*/
                             {"maximum freq.:        HZ"},/*29*/
                             {"bypass freq.:        HZ"}, /*30*/
                             {"group 1:"},                   /*31*/
                             {"group 2:"},                   /*32*/
                             {"group 3:"},                   /*33*/
                             {"group 4:"},                   /*34*/
                             {"group 5:"},                   /*35*/
                             {"group 6:"},                   /*36*/
                             {"basic v/f control:"},         /*37*/
                             {"advanced v/f control:"},      /*38*/
                             {"vector control:"},             /*39*/
                             {"fwd/rev:"},                    /*40*/
                             {"jog freq. in Hz:          HZ"},/*41*/
                             {"jog time in sec.:        SEC"},/*42*/
                             {"DC mag. Time :          SEC"},/*43*/
                             {"DC mag. current:          %"},/*44*/
                             {"DC braking time:        SEC"},/*45*/
                             {"DC braking current:        %"},/*46*/
                             {"DC unblance limit:          %"},/*47*/
                             {"output overvoltage limit:   %"},/*48*/
                             {"output over current limit:  %"},/*49*/
                             {"trans overtemp. limit:      %"},/*50*/
                             {"cabinet overtemp. limit:    %"},/*51*/
                             {"motor overtemp. limit:      %"},/*52*/
                             {"scale of Vab:              V"},                 /*53*/
                             {"scale of Vbc:              V"},                /*54*/
                             {"offset of Vab:             V"},               /*55*/
                             {"offset of Vbc:             V"},               /*56*/
                             {"scale of current A:          A"},          /*57*/
                             {"scale of current C:          A"},          /*58*/
                             {"offset of current A:         A"},         /*59*/
                             {"offset of current C:         A"},         /*60*/
                             {"phase A"},                   /*61*/  //第五层开始
                             {"phase B"},                   /*62*/
                             {"phase C"},                   /*63*/
                             {"Vab:                        V"},/*64*/
                             {"Vbc:                        V"},/*65*/
                             {"Vneutral:                   V"},/*66*/
                             {"output power:            KVA"},/*67*/
                             {"output frequency:         HZ"},/*68*/
                             {"output speed:           rd/s"},/*69*/
                             {"sum hours of operation:      h"},/*70*/
                             {"sum kWh:                 kWh"},/*71*/
                             {"main switch state:"},        /*72*/
                             {"main transformer state:"},    /*73*/
                             {"pulse state:"},               /*74*/
                             {"P.U. cabinet state:"},        /*75*/
                             {"motor state:"},               /*76*/
                             {"UPS state:"},                 /*77*/
                             {"peripherial state:"},        /*78*/
                             {"current date:"},            /*79*/
                             {"current time:"},             /*80*/
                             {"v/f relation:"},             /*81*/
                             {"ramp-up time,in sec.:      SEC"},/*82*/
                             {"ramp-down time,in sec.:    SEC"},/*83*/
                             {"ramp type:"},                   /*84*/
                             {"boost starting voltage:     %"},/*85*/
                             {"unit 1: state/Vdc:"},      /*86*/      //第六层开始
                             {"unit 2: state/Vdc:"},      /*87*/
                             {"unit 3: state/Vdc:"},      /*88*/
                             {"unit 4: state/Vdc:"},      /*89*/
                             {"unit 5: state/Vdc:"},      /*90*/
                             {"unit 6: state/Vdc:"},      /*91*/
                             {"linear:"},              /*92*/
                             {"parabolic:"},               /*93*/
                             {"event1:"},                   /*94*/
                             {"event2:"},                   /*95*/
                             {"abcd"}                       /*96*/
                            };

uchar code message_str[2][30]={
                            {"please input password:"},
                            {"password is wrong!"},
                            } ;

/*uchar code m[35][2]={
                     {100},     //request normal display
                     {101},    //request fault message
                     {102},    //ack. fault message
                     {103},    //request history events:
                     {104},    //request date/time setting:
                     {105},    //send modified time
                     {106},
                    };
uchar m1[12][3]={{0},
                };
*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -