CN106598402A - Menu generation method for single-chip microcomputer system - Google Patents

Menu generation method for single-chip microcomputer system Download PDF

Info

Publication number
CN106598402A
CN106598402A CN201611159786.7A CN201611159786A CN106598402A CN 106598402 A CN106598402 A CN 106598402A CN 201611159786 A CN201611159786 A CN 201611159786A CN 106598402 A CN106598402 A CN 106598402A
Authority
CN
China
Prior art keywords
menu
sheet
type
instruction
generated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611159786.7A
Other languages
Chinese (zh)
Inventor
王顺强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Trillion Technology Development Co Ltd
Original Assignee
Chongqing Trillion Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Trillion Technology Development Co Ltd filed Critical Chongqing Trillion Technology Development Co Ltd
Priority to CN201611159786.7A priority Critical patent/CN106598402A/en
Publication of CN106598402A publication Critical patent/CN106598402A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses a menu generation method for a single-chip microcomputer system. The method comprises the steps of creating a menu table; receiving a menu type generation instruction, and generating a corresponding menu type in the menu table; generating a running control of a target device in the menu table according to each menu type; receiving a menu item addition instruction, and adding the menu table to a target program according to the menu item addition instruction; analyzing the menu table in the target program to generate a corresponding menu structure; and compiling the menu type corresponding to the menu structure and the running control. The menu table is created for listing out information required for generating a menu; and when the menu needs to be generated, the menu table is added to the target program, then the menu structure can be generated according to contents of the menu table, and corresponding compilation is performed to generate the menu. When menu items of the menu are modified or transplanted, the positions of parts needed to be modified or transplanted can be accurately and quickly found according to the menu structure.

Description

A kind of menu generating method for Single Chip Microcomputer (SCM) system
Technical field
The present invention relates to Single Chip Microcomputer (SCM) system technical field, more particularly to a kind of menu formation side for Single Chip Microcomputer (SCM) system Method.
Background technology
With the development of science and technology, integrated circuit technique has been widely used in industrial control field.For people's Live and work is provided a great convenience.
In integrated circuits, single-chip microcomputer can be integrated in one the various functions of computer, with single-chip microcomputer as core, then The control system for coordinating other external circuit compositions is referred to as Single Chip Microcomputer (SCM) system.The application of Single Chip Microcomputer (SCM) system needs software and hardware phase With reference to.During traditional design of singlechip system menu, using sequential organization, i.e., often increase a menu item and be required for dosing one Section program code, the advantage of the method is easy left-hand seat, is easy to staff to carry out the addition operation of menu item, but, if needing Program code is modified and just be bothered very much, and error-prone.
Therefore, how when menu is designed, it is ensured that the convenience modified to the corresponding program code of menu item and standard Really property, is the current technical issues that need to address of those skilled in the art.
The content of the invention
It is an object of the invention to provide a kind of menu generating method for Single Chip Microcomputer (SCM) system, can when menu is designed, Ensure convenience and the accuracy modified to the corresponding program code of menu item.
To solve above-mentioned technical problem, the invention provides following technical scheme:
A kind of menu generating method for Single Chip Microcomputer (SCM) system, including:
Create menu sheet;
Receive Menu Type and generate instruction, and corresponding Menu Type is generated in the menu sheet;
According to each Menu Type, the operation control of target device is generated in the menu sheet;
Menu item addition instruction is received, and the menu sheet is added to by target program according to menu item addition instruction Under;
The menu sheet under to the target program is analyzed, and generates corresponding menu structure;
The corresponding Menu Type of the menu structure and operation control are compiled.
Preferably, the establishment menu sheet is one WPS table of establishment or an Excel table.
Preferably, the reception Menu Type generates instruction, and corresponding Menu Type is generated in the menu sheet, wraps Include:
Receive Menu Type and generate instruction;
Generated according to the Menu Type and instructed, main menu and some submenus are generated in the menu sheet.
Preferably, it is described that the operation control of target device is generated in the menu sheet according to each Menu Type, including:
According to each Menu Type, generate in the menu sheet target device text show control, text-entry control, Single choice control and many selected controls.
Preferably, menu item addition instruction is received, and is added to the menu sheet according to menu item addition instruction Under target program, including:
Receive menu sheet duplicate instructions and menu sheet pastes instruction;
The menu sheet is replicated according to the menu sheet duplicate instructions;
Instruction is pasted according to the menu sheet menu sheet for replicating to be affixed under the target program.
Preferably, to the target program under the menu sheet be analyzed, generate corresponding menu structure, including:
Read the menu type information of the menu sheet under the target program;
Analyze the execution sequence of each Menu Type;
Execution sequence according to each Menu Type generates corresponding Menu Frame structure.
Preferably, it is described that the corresponding Menu Type of the menu structure and operation control are compiled, including:
Read the corresponding the current set of menu type of the Menu Frame structure and run control accordingly;
Current operation control is compiled.
Compared with prior art, above-mentioned technical proposal has advantages below:
The menu generating method for Single Chip Microcomputer (SCM) system that the embodiment of the present invention is provided, including:Create menu sheet;Receive Menu Type generates instruction, and corresponding Menu Type is generated in menu sheet;According to each Menu Type, generate in menu sheet The operation control of target device;Menu item addition instruction is received, and menu sheet is added to by target according to menu item addition instruction Under program;Menu sheet under target program is analyzed, corresponding menu structure is generated;To the corresponding menu class of menu structure Type and operation control are compiled.In the technical program, by create menu sheet and in menu sheet generate Menu Type and Corresponding operation control, the information generated required for menu is set out to come, then when needing to generate menu, by the menu Table is added under target program, you can is automatically generated menu structure according to the content of menu sheet, and is correspondingly compiled generation Menu.Because the menu structure of the menu is known, then when subsequently needing to modify the menu item of menu or transplant, The position for needing modification or the part transplanted can be accurately and quickly found according to menu structure, single-chip microcomputer system is substantially reduced The R&D cycle of system.This method can also extend to be changed by when running, you can to realize user-defined bill function.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with basis These accompanying drawings obtain other accompanying drawings.
The menu generating method flow process for Single Chip Microcomputer (SCM) system that Fig. 1 is provided by a kind of specific embodiment of the invention Figure.
Specific embodiment
The present invention core be to provide a kind of menu generating method for Single Chip Microcomputer (SCM) system, can design menu when, Ensure convenience and the accuracy modified to the corresponding program code of menu item.
In order that the above objects, features and advantages of the present invention can become apparent from it is understandable, below in conjunction with the accompanying drawings to this Bright specific embodiment is described in detail.
Elaborate detail in order to fully understand the present invention in the following description.But the present invention can with it is various not It is same as alternate manner described here to implement, those skilled in the art can do class in the case of without prejudice to intension of the present invention Like popularization.Therefore the present invention is not limited by following public specific embodiment.
Refer to Fig. 1, the menu formation for Single Chip Microcomputer (SCM) system that Fig. 1 is provided by a kind of specific embodiment of the invention Method flow diagram.
A kind of specific embodiment of the present invention includes there is provided a kind of menu generating method for Single Chip Microcomputer (SCM) system:
S11:Create menu sheet.Wherein, create menu sheet and preferably create a WPS table or an Excel table.
It should be noted that menu sheet can also be other electrical forms, present embodiment be simply preferably WPS tables or Excel tables, do not limit this, specifically depend on the circumstances.
S12:Receive Menu Type and generate instruction, and corresponding Menu Type is generated in menu sheet.
Generated according to the Menu Type of user input and instructed, required Menu Type is generated in menu sheet.
Wherein, receive Menu Type and generate instruction, and corresponding Menu Type is generated in menu sheet, including:Receive dish Single type generates instruction;Generated according to Menu Type and instructed, main menu and some submenus are generated in menu sheet.Under main menu Comprising each submenu, wherein, each submenu is further divided into optional type menu, input type menu and other types menu Deng.
S13:According to each Menu Type, the operation control of target device is generated in menu sheet.
Wherein, according to each Menu Type, the operation control of target device is generated in menu sheet, including:According to each menu Type, the text that target device is generated in menu sheet shows control, text-entry control, single choice control and many selected controls etc. Deng.
S14:Menu item addition instruction is received, and menu sheet is added under target program according to menu item addition instruction.
Preferably, menu item addition instruction is received, and menu sheet is added to by target program according to menu item addition instruction Under, including:Receive menu sheet duplicate instructions and menu sheet pastes instruction;Menu sheet is replicated according to menu sheet duplicate instructions;According to Menu sheet pastes instruction and the menu sheet of duplication is affixed under target program.
In the present embodiment, the establishment of menu sheet and the generation of Single Chip Microcomputer (SCM) system menu item is not in an application Under program, a menu sheet is such as created to create an Excel table, and the menu item of Single Chip Microcomputer (SCM) system is to generate journey in single-chip microcomputer Create under sequence.When needing to carry out menu item addition, the menu sheet that will be created when menu sheet duplicate instructions are received enters Row is replicated, and the menu sheet is pasted the menu formation of specified location, i.e. Single Chip Microcomputer (SCM) system when stickup instruction is received Under target program.
S15:Menu sheet under target program is analyzed, corresponding menu structure is generated.
Menu sheet under target program is analyzed, corresponding menu structure is generated, including:Under reading target program The menu type information of menu sheet;Analyze the execution sequence of each Menu Type;It is right that execution sequence according to each Menu Type is generated The Menu Frame structure answered.
When needing to generate menu item in Single Chip Microcomputer (SCM) system, menu sheet is being added to by mesh according to menu item addition instruction After under beacon course sequence, the content of menu sheet is automatically analyzed, generate menu structure.Wherein, corresponding Menu Type is provided with menu sheet With corresponding operation control.As described in above-mentioned embodiment, Menu Type is provided with main menu and submenu, and it has included difference The execution sequence of Menu Type, so as to generate corresponding Menu Frame structure.
S16:The corresponding Menu Type of menu structure and operation control are compiled.
The corresponding Menu Type of menu structure and operation control are compiled, including:Read Menu Frame structure correspondence The current set of menu type and run control accordingly;Current operation control is compiled.
In the present embodiment, the menu design mode of traditional Single Chip Microcomputer (SCM) system is changed, when menu design is carried out, First it is to be set out the information needed for generating the menu needed for Single Chip Microcomputer (SCM) system in the way of menu sheet in the way of electrical form Come, then, the content in menu sheet is added in the menu generating program of Single Chip Microcomputer (SCM) system, the menu formation of Single Chip Microcomputer (SCM) system Automatic Program analyzes the content in menu sheet and generates menu structure, and is correspondingly compiled the corresponding Single Chip Microcomputer (SCM) system of generation Menu.Because the menu structure of the menu is known, then subsequently needing that the menu item of menu is modified or transplanted When, the position for needing modification or the part transplanted can be accurately and quickly found according to menu structure, substantially reduce monolithic The R&D cycle of machine system.
A kind of menu generating method for Single Chip Microcomputer (SCM) system provided by the present invention is described in detail above.Herein In apply specific case the principle and embodiment of the present invention be set forth, the explanation of above example is only intended to side Assistant's solution present invention and its core concept.It should be pointed out that for those skilled in the art, without departing from this On the premise of inventive principle, some improvement and modification can also be carried out to the present invention, these are improved and modification also falls into the present invention In scope of the claims.

Claims (7)

1. a kind of menu generating method for Single Chip Microcomputer (SCM) system, it is characterised in that include:
Create menu sheet;
Receive Menu Type and generate instruction, and corresponding Menu Type is generated in the menu sheet;
According to each Menu Type, the operation control of target device is generated in the menu sheet;
Menu item addition instruction is received, and the menu sheet is added under target program according to menu item addition instruction;
The menu sheet under to the target program is analyzed, and generates corresponding menu structure;
The corresponding Menu Type of the menu structure and operation control are compiled.
2. method according to claim 1, it is characterised in that the establishment menu sheet is to create a WPS table or Excel tables.
3. method according to claim 1 and 2, it is characterised in that the reception Menu Type generates instruction, and described Corresponding Menu Type is generated in menu sheet, including:
Receive Menu Type and generate instruction;
Generated according to the Menu Type and instructed, main menu and some submenus are generated in the menu sheet.
4. method according to claim 3, it is characterised in that described according to each Menu Type, it is raw in the menu sheet Into the operation control of target device, including:
According to each Menu Type, the text that target device is generated in the menu sheet shows control, text-entry control, single choice Control and many selected controls.
5. method according to claim 4, it is characterised in that receive menu item addition instruction, and according to the menu item Addition instruction is added to the menu sheet under target program, including:
Receive menu sheet duplicate instructions and menu sheet pastes instruction;
The menu sheet is replicated according to the menu sheet duplicate instructions;
Instruction is pasted according to the menu sheet menu sheet for replicating to be affixed under the target program.
6. method according to claim 5, it is characterised in that the menu sheet under to the target program is carried out point Analysis, generates corresponding menu structure, including:
Read the menu type information of the menu sheet under the target program;
Analyze the execution sequence of each Menu Type;
Execution sequence according to each Menu Type generates corresponding Menu Frame structure.
7. method according to claim 6, it is characterised in that described to the corresponding Menu Type of the menu structure and fortune Row control is compiled, including:
Read the corresponding the current set of menu type of the Menu Frame structure and run control accordingly;
Current operation control is compiled.
CN201611159786.7A 2016-12-15 2016-12-15 Menu generation method for single-chip microcomputer system Pending CN106598402A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611159786.7A CN106598402A (en) 2016-12-15 2016-12-15 Menu generation method for single-chip microcomputer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611159786.7A CN106598402A (en) 2016-12-15 2016-12-15 Menu generation method for single-chip microcomputer system

Publications (1)

Publication Number Publication Date
CN106598402A true CN106598402A (en) 2017-04-26

Family

ID=58802544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611159786.7A Pending CN106598402A (en) 2016-12-15 2016-12-15 Menu generation method for single-chip microcomputer system

Country Status (1)

Country Link
CN (1) CN106598402A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851687A (en) * 2005-04-22 2006-10-25 英华达(上海)电子有限公司 Mobile phone functional menu individual customization method
US7523404B2 (en) * 2004-12-30 2009-04-21 Sap Aktiengesellschaft System and method for generating complex character-based computing interfaces
CN101699396A (en) * 2009-10-21 2010-04-28 厦门敏讯信息技术股份有限公司 Method for generating wireless terminal menu and device thereof
CN101776993A (en) * 2009-01-09 2010-07-14 鸿富锦精密工业(深圳)有限公司 System and method automatically generating software interactive interface
CN102902663A (en) * 2012-10-11 2013-01-30 无锡中微腾芯电子有限公司 Method for manufacturing menu of TSK series probe stations in offline mode by utilizing Excel

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7523404B2 (en) * 2004-12-30 2009-04-21 Sap Aktiengesellschaft System and method for generating complex character-based computing interfaces
CN1851687A (en) * 2005-04-22 2006-10-25 英华达(上海)电子有限公司 Mobile phone functional menu individual customization method
CN101776993A (en) * 2009-01-09 2010-07-14 鸿富锦精密工业(深圳)有限公司 System and method automatically generating software interactive interface
CN101699396A (en) * 2009-10-21 2010-04-28 厦门敏讯信息技术股份有限公司 Method for generating wireless terminal menu and device thereof
CN102902663A (en) * 2012-10-11 2013-01-30 无锡中微腾芯电子有限公司 Method for manufacturing menu of TSK series probe stations in offline mode by utilizing Excel

Similar Documents

Publication Publication Date Title
CN105205117B (en) A kind of tables of data moving method and device
CN106250199B (en) A kind of the dynamic micro services call method and device of multilingual cloud compiling
CN104866327B (en) A kind of PHP development approaches and framework
CN106371825A (en) Dynamic form generation method and apparatus for mobile end application interface
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN103176774A (en) Compiling method, compiling device and compiling system of application program
CN102609341A (en) Hardware equipment automation testing system and testing method thereof
CN101859244A (en) Multi-toolchain engineering construction method and system
CN101604241A (en) A kind of code generating method of embedded system
CN103744647A (en) Java workflow development system and method based on workflow GPD
CN103678135A (en) System and method for achieving cross-process and cross-thread debugging in large-data environment
CN105468797A (en) Information processing method and apparatus
CN104750606A (en) Reflection-based automated testing method
CN105843662A (en) Software product compiling method and equipment
CN106815027A (en) A kind of high resiliency calculating platform for power network multidimensional business composite computing
CN103605526A (en) Template componentized code generating method based on chain-of-responsibility pattern
CN101944061B (en) Method and device for debugging codes
CN101980546A (en) Intelligent network platform, service execution method and method for analyzing service abnormality
CN103699478A (en) Test case generation system and test case generation method
CN104932904A (en) Configurable database programming mode aiming at intelligent smart home
CN107085641A (en) A kind of quick positioning copper sheet void method in Allegro softwares
CN102566481B (en) C language-based PLC (Programmable Logic Controller) control system and realization method thereof
CN112068879B (en) Method and device for constructing client application program development framework based on configuration
CN102811257A (en) Automatic publication and combination method for Web service
CN106598402A (en) Menu generation method for single-chip microcomputer system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170426