CN1801080A - Developing method and system for programmable control device - Google Patents

Developing method and system for programmable control device Download PDF

Info

Publication number
CN1801080A
CN1801080A CN 200510000015 CN200510000015A CN1801080A CN 1801080 A CN1801080 A CN 1801080A CN 200510000015 CN200510000015 CN 200510000015 CN 200510000015 A CN200510000015 A CN 200510000015A CN 1801080 A CN1801080 A CN 1801080A
Authority
CN
China
Prior art keywords
action event
unit
user
programmable control
control unit
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.)
Granted
Application number
CN 200510000015
Other languages
Chinese (zh)
Other versions
CN100359462C (en
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.)
Sunplus Technology Co Ltd
Original Assignee
Sunplus Technology 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 Sunplus Technology Co Ltd filed Critical Sunplus Technology Co Ltd
Priority to CNB2005100000159A priority Critical patent/CN100359462C/en
Publication of CN1801080A publication Critical patent/CN1801080A/en
Application granted granted Critical
Publication of CN100359462C publication Critical patent/CN100359462C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention discloses a development method and device of editable control device, which contains function unit with at least one functional object. The method comprises the following steps: receiving the user input information; selecting the function object of editable control device; allocating the triggering state of the function object; setting the movement event executed by control device in the triggering state condition; defining the movement event; setting the present triggering state of function object in at least one movement event; analyzing the input information from user; generating the control program of editable control device; compiling and linking the control program; forming the executable set code. The invention displays simple direct-view and easy expansion, which is fit for kinds of complex and multifunctional IC design.

Description

A kind of development approach of programmable control unit and system
Technical field
The present invention relates to the control device field, particularly relate to a kind of development approach and system of programmable control unit.
Background technology
Along with society and development of science and technology, each electronic product is universal day by day, for all many-sides such as study, work and life of people have been brought bigger facility.Correspondingly, also increasingly extensive based on the application of the programmable control unit (as MCU, microcontroller) of microprocessor.For example, in office, microcontroller is applied to computer keyboard, display, printer, duplicating machine, facsimile recorder and telephone system etc.; In family, microcontroller is applied to micro-wave oven, washing machine and dryer, security system, lawn watering device controller and music/video recreational facilities etc.
For general microcontroller, must link to each other with other peripheral circuit and could realize more function.For example: be connected to expand its storage space with peripheral storage, link to each other with A/D (mould/number), D/A (D/A) converter and LCD (LCD) driver and to realize the man-machine conversation, even adopt special-purpose voice IC (integrated circuit) to realize voice or music playback function.
Usually, programmable control unit such as single-chip microcomputer or embedded control chip is realized the function that various electronic product has by the control program that operation is stored in wherein.
At present, in the prior art, the development approach of control device mainly comprises the following stage:
1) understands control device hardware configuration and function thereof;
2) the familiar assembly instruction collection of grasping control device;
3) be familiar with comprising the use of the instrument chain of tool software such as assembler, linker and bundled device;
4) design control device system architecture comprises hardware configuration and software architecture;
5) implement the hardware configuration design, and write application program at it;
6) debugging verification system design.
In this development approach of prior art,, and need the implementation procedure of the Hardware Response Delay of consideration control device because the developer comes the control program of being made up of assembly instruction of edit structureization according to the design rule of complexity; And development system can only compile and link according to the assembly instruction of developer's input, and finally be converted to the executable machine code, therefore has the some shortcomings part: at first, if realization is to the programming Control of control device, then need to understand the related hardware of its hardware capability and peripheral connecting circuit thereof, bring greater inconvenience to the developer; Secondly, the developer need be familiar with the assembly instruction collection and grasp certain skill, its programming process complexity, difficult expansion; In a word, for being familiar with the assembly instruction collection, understanding the hardware configuration and the bottom details of programmable control unit, need expend a large amount of time before the developer and be used for study in early stage, thereby increase the construction cycle, prolong the Time To Market of product, increase product development cost, and product quality is difficult to guarantee; And if end product quality do not experience the test of long-term market, might there be more potential problem, the function that can influence follow-up product expands or the transplanting of product.
Along with the development of IC technology, though some peripheral function parts such as storer etc. can be integrated in the middle of the control device, yet the development approach of the prior art still is difficult to satisfy effectively people to the electronic product demands of developing.
Another kind of prior art can be consulted United States Patent (USP) the 5th, 867, and No. 818, its announcement a kind of " programmable sound synthesizer apparatus and method thereof ".Though this method is simple and directly perceived, can shorten the programming time of opertaing device, but this programmed method is subjected to the limitation of programmable control device condition, for example this programmable sound synthesizer apparatus needs the storer that is respectively applied for the storage I/O state and the incident of execution specially, and needs the corresponding separately addressing circuit of configuration thus; And in the I/O status register, the output data of I/O state, input port trigger condition and the output port of respectively user being set is stored one by one again; And identify that according to the input port trigger condition utilization that the user sets circuit identifies whether the trigger condition of input port satisfies; When this trigger condition satisfies, be addressed to event memory according to the events corresponding addressing circuit again and carry out events corresponding.The execution of the function of this programmable control device the satisfying of input port trigger condition that place one's entire reliance upon arranged again.Though the inventor also mentions a kind of more common IC design, it still depends on the triggering of input port and can only realize simple output function.Obviously, some IC designs that the simple programmed method that discloses out around the inventor is explained have been difficult to be adapted to the exploitation of complexity, diversified programmable control device, thereby, make user's application be restricted.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of development approach and system of programmable control unit, and it realizes simple, intuitive and expansion easily; Can be applied to have the IC design of various complexity, diversified function.
For this reason, the technical scheme of technical solution problem of the present invention is: a kind of development approach of programmable control unit is provided, and this programmable control unit comprises functional unit, and described functional unit has at least one functional object; Comprise step:
1) receives user's input information; Comprise:
11) functional object of selected described programmable control unit;
12) the triggering state of configuration aforementioned functional object;
13) action event of being carried out by control device when the aforementioned functional object is triggered under the triggering state is set;
14) definition aforementioned activities incident; And the current triggering state of set-up function object in an action event at least;
2) resolve described user's input information, generate the control program of described programmable control unit;
3) this control program is collected, links, generate the executable machine code.
Preferably, described step 2) specifically comprise:
21) with the selected information of functional object and the state of triggering configuration information, when being triggered and the corresponding informance of action event be converted to the compiling parameter;
22) definition with trigger event is converted to the compiling parameter, and generates the control program of assembly language form in conjunction with all compiling parameters.
Preferably, described step 2) in, also comprise and obtain the program module relevant with functional object, it is bonded in the control program.
Preferably, in the described step 1), also comprise the allocated resource file; Also comprise aforementioned executable machine code of binding and described resource file after the described step 3), generate final executable machine code.
Preferably, comprise also that in described step 13) setting described functional object is triggered when receiving the predetermined external signal; Perhaps when carrying out predetermined function, be triggered; Perhaps when switching to the triggering state, be triggered.
Preferably, the action event of described step 14) setting comprises the triggering state that produces output signal, handoff functionality object or starts another action event.
Preferably, the action event of described step 14) setting is function of movement or action constant.
Preferably, described action constant comprises logic-high signal or logic-low signal or single positive pulse signal or single negative positive pulse signal or positive pulse string signal or negative pulse string signal.
Preferably, the described functional object of described step 11) comprises input pin, keyboard, infrared reception order, comparer, output pin and/or timer.
Preferably, the described functional object of described step 11) is note or the fragment of sound that audio playing unit is play, or the image scanning drive signal of image-display units generation.
The present invention also provides a kind of development system of programmable control unit, is used to provide Integrated Development Environment, comprising:
User interaction unit is used to receive user's input information; Described user's input information comprises: the selected information of functional object, trigger state configuration information, when being triggered and the set information of the corresponding informance of action event and action event;
Compilation unit is used to resolve described user's input information, generates control program automatically;
Functional module group is used to compilation unit to provide the functional object running program to support the compiling of compilation unit;
Assembly unit is used for converting the control program that compilation unit produces to object code;
Link unit is used for aforementioned object code is linked with relevant library file, generates the executable machine code.
Preferably, described compilation unit comprises:
Functional object and trigger mechanism processing unit are used for the selected information of functional object, trigger state configuration information, are converted to first with the corresponding informance of action event when being triggered and compile parameter;
The action event processing unit is used for the set information of action event is converted to the second compiling parameter, and generates control program in conjunction with the first and second compiling parameters.
Preferably, described action event processing unit comprises action event preprocessing part and compiling part; Described action event preprocessing part is used for the set information of action event is carried out passing to the compiling part after the pre-service; Described compiling part receives the compiling parameter that described pretreated parameter and functional object and trigger mechanism processing unit are transmitted simultaneously, and generates control program.
Preferably, described compilation unit also comprises driver element, is used for receiving from user interaction unit the information of input, and drives functional object and trigger mechanism processing unit and action event processing unit.
Preferably, described compilation unit also comprises the resource file processing unit, is used for the resource file configuration information of process user input; This system also comprises the binding unit, is used for executable machine code that link unit is produced and bundlees with relevant resource file, generates final executable machine code.
Preferably, described resource file processing unit and functional object and trigger mechanism processing unit are integrated.
With respect to prior art, the invention has the beneficial effects as follows: at first, because development system of the present invention and development approach are at the characteristics of programmable control unit, its functional unit is divided into functional object, and with complexity, the design of diversified control device and programming process are refined as selected functional object, the configure trigger state, stages such as declaration and definition action event, therefore, behind the selected functional object of developer, only need to come the configure trigger state from the angle of functional description, and the action event when functional object is triggered under relative set and the definition triggering state, development system can generate control program automatically according to aforementioned information, and carry out follow-up compilation and link, be converted into the executable machine code, finish the functional development of programmable control unit, make the design of control device, programming and even debug process obtain bigger simplification, and it realizes simple, intuitive.Secondly, in development system of the present invention and the development approach, the invention enables the developer to need not to understand the hardware configuration of control device, need not learn to be familiar with the assembly language of this control device and control device to be carried out obscure programming with this yet, only need be from the modular functionality demand of actual product, to functional object, trigger mechanism and action event etc. are described, development system can generate the control program of assembly language format automatically, therefore easily the function of programmable control unit is expanded, can be applied to various function development, as I/O, infrared reception, Timer, voice playing and graphic presentation etc., and make things convenient for the upgrading of product.Once more, facts have proved, adopt developer of the present invention only to need the short period (several hrs) just can finish programming process to control device, the construction cycle that shortens consumer products thus (usually, this process need is tens days~tens days in the prior art), save human cost.
Description of drawings
Fig. 1 is the principle schematic of the performance history of programmable control unit;
Fig. 2 is the process flow diagram of the development approach of programmable control unit of the present invention;
Fig. 3 is the synoptic diagram that receives user's edit file among the present invention;
Fig. 4 is the block diagram of the development system of programmable control unit of the present invention;
Fig. 5 is the block diagram of compilation unit among the present invention;
Fig. 6 is actual keyboard scan hardware connection diagram;
Fig. 7 is the synoptic diagram of selected button disk array combination in the example one of the present invention;
Fig. 8 is the synoptic diagram of User Defined keyboard array combination in the example one of the present invention;
Fig. 9 is the synoptic diagram that generates control program among the present invention;
Figure 10 is the block diagram of the embodiment of programmable control unit of the present invention;
Figure 11 is the block diagram of the embodiment of programmable control unit of the present invention.
Embodiment
Seeing also Fig. 1, is the principle schematic of the performance history of programmable control unit.
At first, provide Integrated Development Environment (IDE), on data processing equipment 910, generate control program by data processing equipment 910; Generate the executable machine code by means such as compilation, links again; Subsequently, this executable machine code is loaded on the debugging apparatus 930 by connecting lines 920 such as parallel port line, Serial Port Lines, and starts this executable machine code and move and debug by data processing equipment 910.Executable machine code debugging apparatus 930 in service is by connecting lines such as parallel port line, Serial Port Line 920 and data processing equipment 910 exchange messages.
After debugging successfully, this executable machine code can be downloaded (for example, adopting means such as burning) and in programmable control unit, finish the exploitation of programmable control unit.
Wherein, data processing equipment 910 of the present invention includes but not limited to all kinds of electronic equipments with data-handling capacity such as computing machine, notebook computer; Described debugging apparatus 930 includes but not limited to that single-chip microcomputer, control device emulation board, in-circuit emulator etc. have real-time simulation interface, for the hardware platform of running software.
Seeing also Fig. 2, is the process flow diagram of the development approach of programmable control unit of the present invention.
Step S100, data processing equipment 910 provides user interface, creates new control program and guides the user to edit for the user, receives the input information from the user.
Seeing also Fig. 3, is the detailed process synoptic diagram that the user edits among the described step S100.
Step S110 sets the basic parameter of this programmable control unit hardware.
Described basic parameter comprises the base type of programmable control unit, applied system clock etc., is used to provide programmable control unit to carry out the information of operation.
Step S120, the functional object of selected this programmable control unit.
The functional unit tight association of described functional object and programmable control unit includes but not limited to that input port, the output port of output circuit, the button of keyboard scanning circuit, the infrared signal of the input circuit of programmable control unit receives order, timer/counter etc.Described functional object is when being triggered and satisfy trigger condition, and programmable control unit will be finished the corresponding action function.
Step S130, the triggering state of configuration aforementioned functional object and the functional object action event that timed unit carries out that is triggered under specific triggering state.
Usually, functional object can be triggered when receiving the predetermined external signal, as: when functional object is input port, can set when input port is high level, this input port is triggered under the current state.Also can trigger functional object by the operation of functional object self, as: when functional object is Timer, if this Timer is TM0, can set when TM0 overflows, this Timer is triggered under the current state.Can also be that control device is then carried out the action event of setting when switching to the triggering state of this functional object, as: when functional object is output port, under the triggering state, will export prearranged signal.
For the functional object that triggers according to external signal, the circuit of described functional object correspondence or corresponding functional unit can be sent to the external signal that receives the event response circuit, and whether this event response circuit is triggered according to this external signal arbitration functions unit; Described functional object also can produce trigger pip and be sent to the event response circuit when its function corresponding unit receives the predetermined external signal.
Certainly, for the identical functions object, can dispose a plurality of different triggering states.Under different triggering states, can be set in functional object different action event when being triggered.
Certainly, can also under some triggering state of functional object action event be set, then under this triggering state, this functional object timed unit that is triggered will not carried out any operation.
Step S140 sets described action event; Wherein, at least one comprises the incision to current triggering state in the described action event.
Described action event is used to describe the action that programmable control unit is carried out.Action event is after setting, and it is selected to be triggered state by the difference of different functional objects simultaneously.
Usually, described action event can be set by user-defined function of movement, and when carrying out described function, control device may produce the triggering state of specific output signal or handoff functionality object or start another action event.
Described action event can also be the action constant of user's appointment, the action constant indicates the output action of this output port when being for general on functional object for output port, include but not limited to logic-high signal or logic-low signal or single positive pulse signal or single undersuing or positive pulse string signal and negative pulse string signal.
Step S200,910 couples of users' of data processing equipment input information compiles, generates automatically the control program of assembly language format.
At first, the selected information of functional object and the configuration transitions of trigger mechanism (triggering state, trigger condition) are the compiling parameter; Secondly, the set information of action event is converted to the compiling parameter, and generates the control program of assembly language form in conjunction with all compiling parameters.
In addition, when processing capacity object and trigger mechanism, also can transfer the program module relevant with this functional object, it is organically combined in the control program, in order to the operation of automatic realization, thereby concerning the user, can describe software and hardware in functional layer and trigger environment hardware bottom layer, and not needing to be concerned about the realization details of control device bottom hardware, user friendly follow-up function expands.
Among the present invention, described program module can be to adopt the functional module of assembly language design, is used to realize the operation to the control device bottom hardware, for example, to the scanning of keyboard array etc., thereby supports the process that the information to user's input compiles.
Step S300 collects, links described control program, generates the executable machine code.
In addition, for further expanding the function of programmable control unit, functional object selected among the described step S120 can also be the EventNote (note) of Music (music) playing module and the EventSect (voice segments) of Speech (voice) playing module.Correspondingly, among the described step S100, also need to be provided with application resource: get final product various resource files and correlation parameter thereof that the programming Control device uses when operation.The step S400 that after step S300, also comprises binding executable machine code and resource file.
Step S500 after generating the executable machine code, can carry out commissioning test; If debugging is passed through, then can load (for example adopting the burning mode) to programmable control unit, finish the exploitation of required function, this does not give unnecessary details.
Seeing also Fig. 4, is the block diagram of the development system of programmable control unit of the present invention.
Described development system provides Integrated Development Environment (IDE), comprises user interaction unit 110, compilation unit (QPL Complier) 120, functional module group (QPL Module) 130, assembly unit (QPL Assembler) 140, link unit (QPL Linker) 150.
Described user interaction unit 110 is used to receive user's input information.Described user's input information comprises the selected information of functional object, the configuration information of trigger mechanism, the set information of action event.
See also Fig. 5, described compilation unit 120 is used to resolve user's input information, generates control program automatically.It comprises functional object and trigger mechanism processing unit (QPDEC) 121, action event processing unit (QPDEF) 122.
Described functional object and trigger mechanism processing unit 121 are used for the configuration transitions of the selected information of functional object and trigger mechanism is the compiling parameter and is sent to action event processing unit 122; Described action event processing unit 122 is used for the set information of action event is converted to the compiling parameter, and generates the control program of assembly language form in conjunction with all compiling parameters.
Described functional module group 130 is used to compilation unit 120 to provide the functional object running program to support the compilation process of compilation unit 120.Specifically, when compilation unit 120 scans a certain functional object that comprises in the selected information of functional object, the running program of then extracting this functional object from functional module group 130 (for example, when scanning the button that is provided with keyboard, just can therefrom take out the keyboard scan program), and it is organically combined in the control program one by one.
Need to prove that the function of described action event processing unit 122 can be realized that also i.e. action event preprocessing part (QPDCC) and compiling be (QPDEF) partly by two discrete parts; Described action event preprocessing part carries out passing to the compiling part after the pre-service to the set information of action event; Described compiling part receives the compiling parameter that this pretreated parameter and functional object and trigger mechanism processing unit 121 are transmitted simultaneously, and generates control program.
In addition, described compilation unit 120 can also have driver element (QPC), receives the information of input from user interaction unit 110, and drives functional object and trigger mechanism processing unit 121, action event processing unit 122 respectively.
Wherein, the actuation step of this driver element is as follows: the functional object that the transmission user interactive unit receives and the parameter of trigger mechanism information be to functional object and trigger mechanism processing unit and action event processing unit, and receive the first compiling parameter of described functional object and trigger mechanism processing unit feedback and pass to the action event processing unit; Transmission action event set information is given the action event processing unit, and the action event processing unit generates the second compiling parameter; The action event processing unit generates control program in conjunction with the first compiling parameter and the second compiling parameter that driver element transmitted.
The actuation step of this driver element can also be: the functional object that the transmission user interactive unit receives and the parameter of trigger mechanism information are to functional object and trigger mechanism processing unit and action event processing unit, and receive the first compiling parameter of described functional object and trigger mechanism processing unit feedback, pass to the action event processing unit; Transmission action event set information is given the preprocessing part in the action event processing unit, and receives the second compiling parameter of described preprocessing part feedback, passes to the compiling part of action event processing unit; The compiling part of action event processing unit generates control program in conjunction with the first compiling parameter and the second compiling parameter that driver element transmitted.
Described assembly unit 140 is used for converting the assembly routine that compilation unit 120 produces to object code.
Described link unit 150 is used for aforementioned object code is linked with relevant library file, generates the executable machine code.
In addition, as previously mentioned, for further expanding the function of programmable control unit, when the functional object that the user selectes can also be the EventSect (voice segments) of the EventNote (note) of Music (music) playing module and Speech (voice) playing module.Correspondingly, the user need be provided with application resource by user interaction unit 110: get final product resource file and correlation parameter thereof that the programming Control device uses when operation.Described compilation unit 120 also has the resource file processing unit, is used for the resource file configuration information of user's input is integrated into the control program of assembly language, and this resource file processing unit can combine with functional object and trigger mechanism processing unit.And the present invention also comprises binding unit (QPL Binder) 160, is used for executable machine code that link unit 150 is produced and bundlees with relevant resource file, generates final executable machine code.
Be the system design of checking may command programmer, guarantee the quality of product, development system of the present invention also comprises debugging unit (QPL Debugger) 170, is used for final executable machine code is debugged, and this does not give unnecessary details.
Understanding for ease of to development system of the present invention and method is described in further detail the present invention below in conjunction with embodiment.
At first, the user sets up new user engineering in Integrated Development Environment, and the user interaction unit of development system generates two source files automatically: resource is introduced source file (Resource) and control engineering program source file (File).Described resource is introduced the description that source file is used to realize resource file, introduces the resource file that the user need use; Described control program source file is used to be provided with hardware environment and trigger mechanism, describes action event.
Wherein, present embodiment carries out finer division to the control program source file, is split as hardware environment and trigger mechanism source of configuration file (Declaration) and action event definition source file (Definition).
Subsequently, user interaction unit receives the editor of user to source file, and the guiding user finishes the programming to programmable control unit.
In programming process, present embodiment provides QPL (Quick Program Language) the modularization programming language, makes performance history become simply, fast and directly perceived.The QPL language is that a kind of convenient, flexible modularization is described the hardware environment of application program and the higher level lanquage of action event.It comprises three syntactic units: the one, and resource file is described part; The 2nd, the description part of hardware environment and trigger mechanism configuration, trigger the periphery that is used for the description control device, removes the worry of user's Treated Base hardware details from; The 3rd, the description part of action event definition is used to describe when the corresponding action of carrying out of timed unit that is triggered of a certain functional object.
Example Yi $Keyscan (the simple and easy programmed method of keyboard)
Seeing also Fig. 6, is actual keyboard hardware connection diagram.
When selecting functional object, IDE (Integrated Development Environment) provides the keyboard scan configured list, makes the user can select various keyboard arrays of satisfying the demand easily by this tabulation; If the user is not content with the default keyboard definition that system provides, the user can also independently dispose by IDE so.
See also Fig. 7, development system is a plurality of combinations of keyboard array easily of user definition, supports determinant and direct-connected, and the user will use EasyN as long as specify.
See also Fig. 8, also can carry out User Defined, only need to specify which I/O as Scan Line (sweep trace), which I/O gets final product as Sense Line (incoming line).Development system can make the user need not to be concerned about the details of hardware bottom layer automatically for the user does the initialization of IO, the scanning of keyboard.IDE can generate the KeyScan section automatically in the Declaration file, and generates each functional object TG1 to TG8 of keyboard matrix EASY8 under this section:
$KeyScan:
EASY8
TG1 TG2 TG3 TG4 &
TG5 TG6 TG7 TG8
And the keyboard support is provided with the pull-up resistor and the pull down resistor of the incoming line (Sense Line) of keyboard scan.Keyboard is also supported the setting of the high and low level of keyboard scan output line (Scan Line) output, and being provided with according to the actual conditions of user's keyboard matrix circuit of SenseLine, Scan Line determined.
Development system also can be avoided mistake automatically, because Sense Line, Scan Line are relevant with chip I/O interface hardware, the I/O interface case of each family chip is not quite alike, when causing mistake is set if the user does not understand, system can show the miscue dialog box, and the guiding user carries out correct setting operation.
After configuration finished, the trigger condition that the user just can use the QPL language to provide was described trigger condition and the action event that each button of keyboard described in grammer.
Because the keyboard module of development system can be discerned the situation that two keys are pressed simultaneously, and can discern the action that certain button is pressed, lifted.Therefore trigger condition can be that key is pressed triggering or key discharges triggering.
In the keypad function object, action event can be a function of movement name, and the user can do corresponding function body definition and describe in the description part Definition of follow-up function of movement file; Action event also can be expressed as attonity.
Simultaneously, the user can be provided with some different triggering states, and under different triggering states, the user can be provided with different action event for each button, and system provides state switching function SetState to carry out state exchange to make things convenient for the user.
Be illustrating of functional object and trigger mechanism programming description below.
$KeyScan:
[1] DebounceLevel=10
[2] Easy8
[3] TG1 TG2 TG3 TG4 TG5 TG6 TG7 TG8
[4] K_S0:Path_A@Path_B/Path_C X X X X
[5] K_S1:/Path_C X/Path_A /Path_C X /@Path_B X X
[6] ……
[7] K_Sn: X /Path_C X/Path_A /Path_C X /@Path_B X X
Wherein,
[1] is setting to the button anti-trembling function;
[2] be the keyboard array size that is provided with by IDE;
[3] be the keyboard array that IDE generates, each of TG1~TGn (n=8) expression keyboard triggers button (being functional object);
[4] be that the user uses the keyboard state K_S0 of QPL language configuration and the trigger condition and the action event of each button under this state.K_S0 is the triggering state.
Path_A, Path_B, the title of the execution function of movement when Path_C is triggering, corresponding one by one with TG1~TGn, represent this trigger that button is pressed or the execution action when discharging (in fact, the user when being provided with action event herein, the user also declares this action event simultaneously, so must describe the practical significance of these action event of definition in the part in follow-up action event; Action event can be multiplexing), there is not action event triggering button corresponding or use X correspondence no matter when pressing or discharge, all to carry out action.
If the action event front has '/' character, represent that so this action triggers, and triggers otherwise be illustrated in when pressing when discharging.
The user can also be provided with the execution attribute of function of movement simultaneously, method is exactly to add ' @ ' symbol in the function of movement front, if be added with ' @ ' symbol before the function of movement that is provided with, system can adopt the mode of quick function when being illustrated in trigger condition and satisfying, promptly enter a certain function of movement and carry out instruction in this function in the mode of calling (call) function, and with " return " in this function the instruction (returning) from function turn back to the instruction of calling this function originally, the execution of this function can form nested execution; If do not have ' @ ' symbol before the function of movement that is provided with, system can adopt the generic function mode when being illustrated in trigger condition and satisfying, promptly adopt " goto " instruction mode to enter function and carry out instruction in this function, and with the execution of " end " order fulfillment instruction in this function, and can as call function, not return, the execution of this function can not form nested execution.
[5]~[7] similar with [4], be the keyboard state K_S1 that the user uses QPL language configuration ..., K_Sn and the trigger condition and the action event of each button under these states.
When the user switches to certain state of KeyScan with current state, then under this state, if the user has triggered a certain button, the action event of the correspondence of this button will be carried out by programmable control unit under this state so.
Subsequently, carry out action event and describe (in the Definition file, carrying out), just the practical significance to the action event declared previously defines, promptly the function body to the function of movement declared previously defines, and can be to adopt some higher level lanquages, as ANSI-C, Pascal, Fortran etc., the function that is used to describe the execution action of realization, and some states of setting button are current executing state at least one function.
Need to prove that the switching of the triggering state of each functional object of programmable control unit can be undertaken by dual mode.A kind of mode be call the state switching function SetState that development system provides (x, y), the implication of parameter x, y is: x is used to indicate event source, can be " KEY ", " IR ", " IN ", " OUT ", " TM ", " ME " etc.; Y is used for representing that (1~n), 0 is stateless to indication event source state index.Another kind of mode is to carry out state to switch in action event.
That is to say that in programming process, the user only needs the triggering button of selected button disk array; The triggering state and the trigger condition of configure trigger button; And setting the performed action event (function of movement or attonity) of button programmable control unit when satisfying trigger condition (pressing/discharge) gets final product.In addition, the user does not need to be concerned about whether the I/O pin that keyboard uses uses conflict mutually with other I/O, do not need to consider how to carry out the detection of keyboard scan, do not need to consider that under a certain state button is pressed or how to trigger corresponding action when discharging that the details of all these relevant hardware, bottom most softwares is coordinated solution by the IDE of development system and QPL Complier wherein and QPL Module.
Example two IRScan (infrared scan method of reseptance)
Selected functional object, be provided with trigger condition and with the corresponding relation of action event.
At first, the selected port that is used to receive infrared signal in this example.If the user does not select, then development system will be selected default port for use.
Need to prove, concerning this example,, therefore need to set the power control terminal mouth and the effective/disarmed state thereof of infrared receiver device, control device can be deactivated it when the sleep state of power saving owing to the power consumption of specifying infrared receiver device is bigger.
Secondly, for this example, also need the numbering (ID) of selected infrared remote receiver.Have only and when comprising the receiver of specifying this numbering in the infrared command that receives, just carry out action event.
Subsequently, specify the type (ID of infrared command) of the infrared signal of this pin reception.And dispose the action event of dissimilar infrared signal correspondences.
Simultaneously, the user can be provided with several different triggering states, and under different triggering states, the user can be provided with different action event for each infrared signal.
Be illustrating of functional object and trigger mechanism description below.
$IrScan:
[1] IrReceivePin=Pa.0
[2] IrRxPowerCtrl(pb.1)/high
[3] IrRxId=1
[4] Rx1 Rx2 Rx3 Rx10
[5] Ir_S0:Path_A Path_B Path_C X
[6] Ir_S1:Path_C Path_A Path_C X
[7] ……
[8] Ir_Sn:X Path_C Path_A Path_C
Wherein,
[1] be the infrared reception IO port that the user is provided with, the user can the selectivity setting, otherwise uses default IO port.
[2] be the user carries out power supply control to infrared remote receiver port and effective status setting thereof.
[3] be the setting that infrared remote receiver is numbered.
[4] be the order ID of each infrared signal of reception.
[5] be the setting of the action event of correspondence when receiving the infrared signal Rxm (wherein, m=0~63) of a certain order under a certain triggering state I r_S0.
[6]~[7] similar with [5].Be to triggering state I r_S1 ..., the setting of the action event of correspondence when receiving the infrared signal Rxm (m is a positive integer) of a certain order under the Ir_Sn.
When the user switches to certain state I r_Sn of IrScan (n is a positive integer) with current state, under this state, if receive the infrared signal of a certain order, then the action event of the infrared signal correspondence of this order will be performed so.That is to say that after the infrared remote receiver of assigned I D was received infrared command Rxm (m is a positive integer), programmable control unit can be carried out the corresponding down action event of Rxm under the current triggering state.Action event comprises the required movement function name or specifies attonity (X).
Subsequently, carry out the description of the practical significance of action event, just the function body to the function of movement declared previously defines, and some states of setting the IrScan functional object at least one function are current executing state.
That is to say that in programming process, the user is by the Irscan grammer that the QPL language that uses development system provides, can succinctly specify the action event when receiving a certain infrared command signal intuitively; And need not to be concerned about how hardware realizes infrared scan, and when receiving a certain infrared command signal, how related with action event this infrared command signal is.Simultaneously, the user can be provided with different triggering states, and under different triggering states, the user can be provided with different action event for each infrared command signal.About the details of bottom is coordinated to solve by the IDE of development system and QPL Complier wherein and QPL Module.
Example San $Input (incoming event)
At first, select functional object.It in this example selected input pin.
Subsequently, specify the trigger condition of input pin, and the action event of correspondence when disposing different input pins and being triggered.
Input pin can trigger when high level jumps to low level, perhaps triggers when low level jumps to high level.
Simultaneously, the user can be provided with different triggering states, under different triggering states, and the different action event of correspondence when the user can be triggered for each input pin setting.Action event comprises the required movement function name or specifies attonity.
Be illustrating of functional object and trigger mechanism description below.
$Input:
[1] DebounceLevel=10
[2] Pa.1 Pb.2 Pa.3 Pc.6
[3] I_S0:Path_A Path_B /Path_C
[4] I_S1:/Path_C X/Path_A /Path_C
[5] ……
[6] I_Sn:X /Path_C X/Path_A /Path_C
Wherein,
[1] is the setting of user to the input signal anti-trembling function.
[2] be the input pin that the user is provided with.The user can check available pin by the information that IDE provides, and comes correct base pin selection (if select incorrect, Compiler will point out mistake) with this.
[3] be that the user uses the input pin of QPL language configuration to trigger state I _ S0 and the trigger condition and the action event of each input pin under this state.I_S0 is the triggering state.
Path_A, Path_B, Path_C are the execution function of movement names when being triggered.If function of movement name front has '/' character, represent that so this function of movement triggers when high level jumps to low level at input pin, trigger when low level jumps to high level otherwise be illustrated in input pin.All the other and KeyScan are similar.
[4]~[6] similar with [3], be that the user uses the input pin of QPL language configuration to trigger state I _ S1 ..., I_Sn and the trigger condition and the action event of each input pin under these states.
Subsequently, carry out function of movement description in the action event, just the function of movement of declaring is previously carried out the function body definition, and a state of setting input pin is current executing state at least one function.
This example is in programming process, and the user can succinctly specify any input pin and action event intuitively by the Input grammer that the QPL language that uses development system provides; And need not to be concerned about how hardware realizes input pin scanning, and how to realize the related of a certain input pin and action event.Simultaneously, the user can be provided with different triggering states, under different triggering states, and different action event when the user can be provided with each input pin and is triggered.About the details of hardware, bottom most software is coordinated to solve by the IDE of development system and QPL Complier wherein and QPL Module.
Example Si $Output (outgoing event)
At first, select functional object.It in this example selected output pin.
The action event of the correspondence when subsequently, specifying different output pins to be triggered.
Action event comprises the required movement constant or specifies attonity.Wherein, the action constant can be expressed as logic-high signal, or is logic-low signal, or is single positive pulse signal, or is single undersuing, or is the positive pulse string signal, or is the negative pulse string signal.
Simultaneously, the user can be provided with several different triggering states, and under different triggering states, the user can be provided with different action event for each output pin.
Be illustrating of functional object and trigger mechanism description below.
$Output:
[1] FlashRate=50
[2] Duty=0.6
[3] Pa.1 Pb.2 Pa.3 Pc.6
[4] O_S0:H L P+
[5] O_S1:L P- X SP-
[6] ……
[7] O_Sn:X SP+ P-/Duty=0.3/80
Wherein,
[1] frequency of this burst signal that is the output signal that is provided with of user for just or for the negative pulse string signal time.
[2] dutycycle of this burst signal that is the output signal that is provided with of user for just or for the negative pulse string signal time.
[3] be the output pin that the user is provided with.The user can check available output pin by the information that IDE provides, and comes correct base pin selection (if select incorrect, Compiler will point out mistake) with this.
[4] be the output state O_S0 that is provided with of user and under this state the output state of each output pin.
[5]~[7] similar with [4], be the output state O_S1 that the user is provided with ..., O_Sn and the output state of each output pin under this state.
Notice that at this, " H ", " L " represent output logic height or logic-low signal respectively; " P+ ", " P-" represent respectively just exporting or are the negative pulse string signal; " SP+ ", " SP-" then be respectively single just or single undersuing.
When the user switches to certain triggering state with current state, programmable control unit will drive the corresponding with it signal waveform of each output pin output under this state so.
Subsequently, carry out action event and describe, a state promptly setting output pin at least one function is current executing state.
In this example, in programming process, the user can succinctly specify any output pin and action event intuitively by the Onput grammer that the QPL language that uses development system provides; And need not to be concerned about how hardware realizes output pin scanning, and how to realize the related of a certain output pin and action event.Simultaneously, the user can be provided with different triggering states, and under different triggering states, the user can be provided with different action event for each output pin.About the details of hardware, bottom most software is coordinated to solve by the IDE of development system and QPL Complier wherein and QPL Module.
Example Wu $TimerEvents (timer event)
At first, select functional object.It in this example selected timer.
The action event that correspondence when subsequently, specifying the different timing device to satisfy the timer counter overflow condition is carried out.This action event comprises the required movement function name or specifies attonity.
Simultaneously, the user can be provided with different triggering states, and under different triggering states, the user can be provided with different action event for each timer.This action event comprises the required movement function name or specifies attonity.
Be illustrating of functional object and trigger mechanism description below.
$TimerEvents:
[1] TM1 TM2 TM3 TM4
[2] T_S0:T_Path_A T_Path_B T_Path_C X
[3] T_S1:T_Path_C T_Path_A T_Path_C X
[4] ……
[5]T_Sn:X T_Path_C T_Path_A T_Path_C
Wherein,
[1] is the ID of the clock that is provided with of user.
[2] be the setting of the action event when a certain clock is triggered under a certain state T_S0, wherein, " T_Path_A ", " T_Path_B ", " T_Path_C " are respectively the function of movement name of appointment, and " X " is the attonity of appointment.
[3]~[5] similar with [2].Be to state T_S1 ..., a certain clock is triggered under the T_Sn, the setting of the action event when promptly satisfying the timer counter overflow condition.
When the user switches to certain triggering state of timer with current state, then under this triggering state, if the timing time of a certain clock arrives, the action event of this clock correspondence will be performed under this state so.
And after the triggering state was set, the user can be provided with the timer counter initial value that adds deduct of timer TMm (m is a positive integer), when timer counter overflows on this counting initial value basis, can carry out the action event of this timer correspondence under this state.
Subsequently, carry out function of movement description in the action event, just the function of movement of declaring is previously carried out the function body definition, and a state of setting input pin is current executing state at least one function.
In this example, the timerevent grammer of user by using the QPL language to provide, can succinctly specify timing time when a certain clock to come then action event intuitively, and need not to be concerned about how programmable control unit realizes the related of clock and its respective action incident.Simultaneously, the user can be provided with different triggering states, and under different triggering states, the user can be the different action event of each clock setting.The details of all these relevant hardware, bottom most software is by IDE, and Compiler, Module coordinate to solve.
Example Liu $MusicEvents (music incident)
At first, select functional object.In this example selected resource file and appointment note ID wherein.
Resource file is meant music file (as the MIDI music) and the correlation parameter thereof that programmable control unit uses when operation.
Usually, a plurality of notes (EventNote) can be set in the MIDI music.As shown in the table:
EventNote
ME1 ME2 ME3 ME4 ME5 …… ME12
C0 C#0 D0 D#0 E0 …… F#0
ME13 ME14 ME15 ME16 ME17 …… ME24
C1 C#1 D1 D#1 E1 …… F#1
……
Therefore, by selected some notes, and the action event of appointment note correspondence when different notes are play.Then when specific note was played, programmable control unit can be carried out the action event of setting.This action event comprises the required movement function name or specifies attonity.
Simultaneously, the user can be provided with some different triggering states, and under different triggering states, the user can be provided with different action event for the note of each appointment.
Be illustrating of functional object and trigger mechanism description below.
$MusicEvents:
[1] ME1 ME2 ME3 ME10
[2] M_S0:M_Path_A M_Path_B M_Path_C X
[3] M_S1:M_Path_C M_Path_A M_Path_C X
[4] ……
[5] M_Sn:X M_Path_C M_Path_A M_Path_C
Wherein,
[1] be the note ID tabulation that the user is provided with, note ID maximum can be ME128.
[2] be that wherein, " M_Path_A ", " M_Path_B ", " M_Path_C " are respectively the function of movement name of appointment to the setting of the action event when specifying note to be played under a certain state M_S0, " X " is the attonity of appointment.
[3]~[5] similar with [2].Be to state M_S1 ..., the setting of the action event when a certain note is played under the M_Sn.
When the user switches to certain musicevent state with current state,, under this state, specify the action event of note correspondence to be performed so if specify note to be played.
Subsequently, carry out function of movement description in the action event, just the function of movement of declaring is previously carried out the function body definition, and a state of setting input pin is current executing state at least one function.
In this example, the action event when a certain note is played can succinctly be specified intuitively in the musicevent grammer of user by using the QPL language to provide, and how to realize the related of a certain note and its respective action incident and need not the care program.Simultaneously, the user can be provided with different triggering states, and under different triggering states, the user can be provided with different action event for the designated tone symbol.The details of all these relevant hardware, bottom most software is by IDE and Compiler wherein, and Module coordinates to solve.
Example Qi $SpeechEvents (speech play incident)
For the speech play incident, it handles the music incident that thinking is similar to example six, and this does not give unnecessary details.
After the editor end of user to source file, can start compilation unit by IDE, generate the control program of assembly language format automatically according to the information of user's input by compilation unit.
See also Fig. 9, the driver element of compilation unit receives the information of input from user interaction unit 110; Resource is introduced source file (Resource) and hardware environment and trigger mechanism source file (Declaration) pass to functional object and trigger mechanism processing unit (QPDEC).
Functional object and trigger mechanism processing unit are introduced source file and hardware environment and trigger mechanism source file with resource and are converted the first compiling parameter to, feed back to driver element.
Driver element passes to action event preprocessing part (QPDCC) with action event source file (Definition); The action event preprocessing part carries out generating the second compiling parameter after the pre-service to this action event source file, feeds back to driver element.
Driver element passes to compiling part (QPDEF) with the first and second compiling parameters, generates the control program of assembly language format.
In this process, when compilation unit 120 scans a certain functional object that comprises in the selected information of functional object, then from functional module group 130, extract the running program of this functional object, and it is organically combined in the control program one by one.
Subsequently, assembly unit and link unit collect, link described control program, generate the executable machine code.
In addition, for further expanding the function of programmable control unit, when selected functional object is the EventSect (voice segments) of the EventNote (note) of Music (music) playing module or Speech (voice) playing module, also comprise binding executable machine code and resource file, generate the step of complete executable machine code.
After generating the executable machine code, can download and commissioning test; If debugging is passed through, then can load and be burned onto programmable control unit, finish the exploitation of required function, this does not give unnecessary details.
Seeing also Figure 10, is the block diagram of programmable control unit of the present invention.
This programmable control unit comprises functional unit 810, storage unit 820, event response circuit 830, executive circuit 840 and reset circuit 850.
Described functional unit 810 is the devices that can realize specific function in the programmable control unit, have some functional objects, when these functional objects were triggered, programmable control unit can go to finish the action related with it according to setting in advance, thereby finishes user's functional requirement effectively.
Usually, functional unit 810 includes but not limited to input circuit, output circuit, keyboard scanning circuit, Timer, analog to digital converter, infrared receiving circuit, voice playing circuit, music circuit etc.
In general, for the device that can receive external signal, when it receives prearranged signal, can think that promptly this functional object is triggered.And,, think that then output circuit is triggered when control device starts this output circuit with to external output signal the time for output circuit.
In addition, be further to expand the function of programmable control unit, can also be with timer in the control device, or note or the fragment of sound play are defined as functional object.At this moment, if when the timer timing time arrives or voice playing circuit is play specific fragment of sound or the music circuit is play specific note, think that then this functional object is triggered.
In addition, for same functional object, can set a plurality of different trigger conditions for it, for example, for keyboard, button is pressed or lifts and can think two different trigger conditions, and corresponding different trigger condition can be set different action event.
And, a plurality of different triggering states can be set for same functional object, under specific triggering state, specify corresponding action event, thereby further enrich the form of expression of trigger mechanism.
The action event of correspondence when functional object is triggered under the triggering state of the described functional object of storage and each the triggering state in this storage unit 820.Above-mentioned information can be included in the user and adopt in the control program that development approach of the present invention finishes.This information can be stored in the storage space, also can adopt a plurality of storage spaces to preserve, and this does not give unnecessary details.
When functional object 810 is triggered, event response circuit 830 will be learned relevant trigger pip, thereby inquiry storage unit 820 is with the current triggering state of arbitration functions object 810; And search corresponding action event according to trigger pip.
Trigger pip can be anomalous event signal or the interrupt event signal that functional object produces.For example, when functional object is a timer, described trigger pip is a timer timing spill over.When functional object is input circuit, then can be the external signal of its reception.
Executive circuit 840 is carried out described action event according to the lookup result of event response circuit 830 subsequently.
Reset circuit 850 is mainly used in the reset operation of realizing described programmable control unit.
Seeing also Figure 11, is an embodiment of programmable control unit of the present invention.
This programmable control unit comprises processor 710, storer 720, input/output end port 730, low-voltage resets and electrify restoration circuit 740, Timer 750, audio process 760, digital mixer (multi-channel sound hardware combiner circuit) 770, D/A converting circuit 780.
After providing the unit to be triggered, trigger pips such as the general input in the input/output end port 730, specific function input/output port, D/A converting circuit 780 can produce the relative trigger signal.Wherein, the general input port in the input/output end port 730 is when receiving external signal, and connected pin reads circuit and will produce trigger pip and send to processor 710; Perhaps connected sleep-awake circuit will produce aborted or event interrupt signal, send to processor 710; General input in the input/output end port 730 can be formed various types of keyboard matrix circuits, receiving that key is pressed or key when lifting signal, to produce trigger pip and send to processor 710, the sleep-awake circuit that perhaps is connected with input port will produce aborted or event interrupt signal, send to processor 710.The specific function input port comprises infrared command reception/port, comparer relatively input port and analog-digital converter circuit port, when receiving infrared command, produce trigger pip respectively and send to processor 710, or comparator input signal produces trigger pip when equating and sends to processor 710, produces trigger pip in the time of maybe will receiving simulating signal and be converted into digital signal from control device is outside and sends to processor 710.After general output port in the input/output end port 730 is triggered, processor 710 will be carried out the instruction of output action constant, exportable logic high, logic low, single positive pulse signal, single undersuing or burst signal according to current triggering state.
Timer 750 will produce the event interrupt signal and can send to processor 710 after timing/timing time arrives.
Audio process 760 and digital mixer 770 are used for sound signal is handled and carried out the hyperchannel audio mixing and handle, when playing specific note or fragment of sound, processor 710 also can receive corresponding trigger pip according to prior setting by D/A converting circuit 780.
In addition, low-voltage resets and electrify restoration circuit 740 can cause reseting event when triggering, and sends to processor 710.
Corresponding relation between storer 720 storage action incidents, trigger pip and the action event.
Processor 710 is searched corresponding relation in the storer 720 according to trigger pip, and the address that obtains action event, carries out the corresponding action incident.
Be understandable that it is image receiving unit that trigger pip provides unit further, be used for from the outside picture signal that receives of control device.
The signal output unit that is used for the output signal of output processor generation can also be the image display driver circuit, and this does not give unnecessary details.
In sum, the present invention is with each functional object of programmable control unit modular division, simultaneously control program module is turned to that functional object is selected, parts such as trigger mechanism configuration and action event setting, the user can stand in higher aspect and describe software and hardware triggering environment, and do not need to be concerned about that bottom is soft, the realization details of hardware, so that the exploitation of product application program simplify, quick and clear and intuitive, and user friendly follow-up function expands.
The present invention can each component function of cooperative control device, the details of shielding bottom hardware, the user is provided the environment of a functional description, make the developer to be placed on main energy on the function of product, and do not need the hardware resource of this device very familiar, therefore what the user did just needs to consider to realize which function of control device, and does not need to be concerned about and the details of implementation bring the user bigger function design space with this.
The invention provides the QPL higher level lanquage, it has the advantage of modular functionality descriptive language and integrated program design higher level lanquage concurrently, the utilization modular functionality is described grammer, the user can stand in higher aspect and describe software and hardware triggering environment, and do not need to be concerned about that bottom is soft, the realization details of hardware, institute is so that the product application program is clear and intuitive, thereby made things convenient for user's follow-up function to expand; Use integrated program design higher level lanquage grammer, various Play Control instructions, incident steering order, the time steering order that the convenient, flexible utilization system of user's energy provides controlled the behavior of hardware, be equipped with the control stream of integrated programming language simultaneously, expression syntax, the user can describe action event fully.
The present invention can be applied to the programmable control unit in a plurality of fields, adopt the control device of the present invention's exploitation can be applied to voice class controller, communication, electronic multimedia product, as children electronic organ, electronic speech toy, e-book, chord ring, game machine, smart phone, multi-functional toy etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (16)

1. the development approach of a programmable control unit, this programmable control unit comprises functional unit, described functional unit has at least one functional object; It is characterized in that, comprise step:
1) receives user's input information; Comprise:
11) functional object of selected described programmable control unit;
12) the triggering state of configuration aforementioned functional object;
13) action event of being carried out by control device when the aforementioned functional object is triggered under the triggering state is set;
14) definition aforementioned activities incident; And the current triggering state of set-up function object in an action event at least;
2) resolve described user's input information, generate the control program of described programmable control unit;
3) this control program is collected, links, generate the executable machine code.
2. the development approach of programmable control unit as claimed in claim 1 is characterized in that, described step 2) specifically comprise:
21) with the selected information of functional object and the state of triggering configuration information, when being triggered and the corresponding informance of action event be converted to the compiling parameter;
22) definition with trigger event is converted to the compiling parameter, and generates the control program of assembly language form in conjunction with all compiling parameters.
3. the development approach of programmable control unit as claimed in claim 2 is characterized in that: described step 2), also comprise and obtain the program module relevant with functional object, it is bonded in the control program.
4. as the development approach of each described programmable control unit of claim 1 to 3, it is characterized in that: in the described step 1), also comprise the allocated resource file; Also comprise aforementioned executable machine code of binding and described resource file after the described step 3), generate final executable machine code.
5. as the development approach of each described programmable control unit of claim 1 to 3, it is characterized in that: comprise also that in described step 13) setting described functional object is triggered when receiving the predetermined external signal; Perhaps when carrying out predetermined function, be triggered; Perhaps when switching to the triggering state, be triggered.
6. as the development approach of each described programmable control unit of claim 1 to 3, it is characterized in that: the action event that described step 14) is set comprises the triggering state that produces output signal, handoff functionality object or starts another action event.
7. as the development approach of each described programmable control unit of claim 1 to 3, it is characterized in that: the action event that described step 14) is set is function of movement or action constant.
8. the development approach of programmable control unit as claimed in claim 7 is characterized in that: described action constant comprises logic-high signal or logic-low signal or single positive pulse signal or single negative positive pulse signal or positive pulse string signal or negative pulse string signal.
9. as the development approach of each described programmable control unit of claim 1 to 3, it is characterized in that: the described functional object of described step 11) comprises input pin, keyboard, infrared reception order, comparer, output pin and/or timer.
10. as the development approach of each described programmable control unit of claim 1 to 3, it is characterized in that: the described functional object of described step 11) is note or the fragment of sound that audio playing unit is play, or the image scanning drive signal of image-display units generation.
11. the development system of a programmable control unit is used to provide Integrated Development Environment, it is characterized in that, comprising:
User interaction unit is used to receive user's input information; Described user's input information comprises: the selected information of functional object, trigger state configuration information, when being triggered and the set information of the corresponding informance of action event and action event;
Compilation unit is used to resolve described user's input information, generates control program automatically;
Functional module group is used to compilation unit to provide the functional object running program to support the compiling of compilation unit;
Assembly unit is used for converting the control program that compilation unit produces to object code;
Link unit is used for aforementioned object code is linked with relevant library file, generates the executable machine code.
12. the development system of programmable control unit according to claim 11 is characterized in that, described compilation unit comprises:
Functional object and trigger mechanism processing unit are used for the selected information of functional object, trigger state configuration information, are converted to first with the corresponding informance of action event when being triggered and compile parameter;
The action event processing unit is used for the set information of action event is converted to the second compiling parameter, and generates control program in conjunction with the first and second compiling parameters.
13. the development system of programmable control unit according to claim 12 is characterized in that: described action event processing unit comprises action event preprocessing part and compiling part; Described action event preprocessing part is used for the set information of action event is carried out passing to the compiling part after the pre-service; Described compiling part receives the compiling parameter that described pretreated parameter and functional object and trigger mechanism processing unit are transmitted simultaneously, and generates control program.
14. development system according to claim 12 or 13 described programmable control units, it is characterized in that: described compilation unit also comprises driver element, be used for receiving the information of input, and drive functional object and trigger mechanism processing unit and action event processing unit from user interaction unit.
15. the development system of programmable control unit according to claim 11 is characterized in that: described compilation unit also comprises the resource file processing unit, is used for the resource file configuration information of process user input; This system also comprises the binding unit, is used for executable machine code that link unit is produced and bundlees with relevant resource file, generates final executable machine code.
16. the development system of programmable control unit according to claim 15 is characterized in that: described resource file processing unit and functional object and trigger mechanism processing unit are integrated.
CNB2005100000159A 2005-01-04 2005-01-04 Developing method and system for programmable control device Expired - Fee Related CN100359462C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100000159A CN100359462C (en) 2005-01-04 2005-01-04 Developing method and system for programmable control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100000159A CN100359462C (en) 2005-01-04 2005-01-04 Developing method and system for programmable control device

Publications (2)

Publication Number Publication Date
CN1801080A true CN1801080A (en) 2006-07-12
CN100359462C CN100359462C (en) 2008-01-02

Family

ID=36811112

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100000159A Expired - Fee Related CN100359462C (en) 2005-01-04 2005-01-04 Developing method and system for programmable control device

Country Status (1)

Country Link
CN (1) CN100359462C (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104503771A (en) * 2015-01-14 2015-04-08 北京纵横机电技术开发公司 Integrated development platform of train network control system
CN104572108A (en) * 2015-01-14 2015-04-29 北京纵横机电技术开发公司 Train network control system software development method
CN107665118A (en) * 2017-08-31 2018-02-06 深圳市润隆电子有限公司 Programmable control method, system, electronic equipment and storage medium
CN107664960A (en) * 2017-08-23 2018-02-06 深圳市顺讯电子有限公司 A kind of programmable control system and method
CN108459552A (en) * 2018-01-31 2018-08-28 南京拓控信息科技股份有限公司 A kind of programmable automation control method of intelligence object-oriented
WO2018177207A1 (en) * 2017-03-28 2018-10-04 腾讯科技(深圳)有限公司 Operation control method, apparatus and storage medium
CN111756940A (en) * 2020-07-07 2020-10-09 广州威谱通信设备有限公司 Simplified digital voice communication system with programmable addressing and double-input sound mixing
CN112346767A (en) * 2020-11-11 2021-02-09 蘑菇物联技术(深圳)有限公司 Method, system, computer device and storage medium for updating control program
CN108287724B (en) * 2017-12-27 2021-09-07 杭州迈杰教育科技有限公司 Teaching controller code burning method, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5321829A (en) * 1990-07-20 1994-06-14 Icom, Inc. Graphical interfaces for monitoring ladder logic programs
US6366116B1 (en) * 2001-01-18 2002-04-02 Sunplus Technology Co., Ltd. Programmable driving circuit
US7065740B2 (en) * 2001-08-24 2006-06-20 Microsoft Corporation System and method to automate the management of computer services and programmable devices
JP3548829B2 (en) * 2002-01-10 2004-07-28 オムロン株式会社 Unit, PLC and User Program Processing Method

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572108A (en) * 2015-01-14 2015-04-29 北京纵横机电技术开发公司 Train network control system software development method
CN104503771A (en) * 2015-01-14 2015-04-08 北京纵横机电技术开发公司 Integrated development platform of train network control system
CN104572108B (en) * 2015-01-14 2018-02-16 北京纵横机电技术开发公司 A kind of train network control system software development methodology
CN104503771B (en) * 2015-01-14 2018-03-20 北京纵横机电技术开发公司 A kind of train network control system integrating and developing platform
WO2018177207A1 (en) * 2017-03-28 2018-10-04 腾讯科技(深圳)有限公司 Operation control method, apparatus and storage medium
US10845981B2 (en) 2017-03-28 2020-11-24 Tencent Technology (Shenzhen) Company Limited Operation control method, device and storage medium
CN107664960A (en) * 2017-08-23 2018-02-06 深圳市顺讯电子有限公司 A kind of programmable control system and method
CN107665118A (en) * 2017-08-31 2018-02-06 深圳市润隆电子有限公司 Programmable control method, system, electronic equipment and storage medium
CN108287724B (en) * 2017-12-27 2021-09-07 杭州迈杰教育科技有限公司 Teaching controller code burning method, electronic equipment and storage medium
CN108459552A (en) * 2018-01-31 2018-08-28 南京拓控信息科技股份有限公司 A kind of programmable automation control method of intelligence object-oriented
CN108459552B (en) * 2018-01-31 2021-07-23 南京拓控信息科技股份有限公司 Intelligent object-oriented programmable automatic control method
CN111756940A (en) * 2020-07-07 2020-10-09 广州威谱通信设备有限公司 Simplified digital voice communication system with programmable addressing and double-input sound mixing
CN112346767A (en) * 2020-11-11 2021-02-09 蘑菇物联技术(深圳)有限公司 Method, system, computer device and storage medium for updating control program

Also Published As

Publication number Publication date
CN100359462C (en) 2008-01-02

Similar Documents

Publication Publication Date Title
CN1273888C (en) Imaging device, information processing device, program executive method and program generating method
CN1268149C (en) Pronounciation control device and terminal device and system used on carried pronounciation control device
CN1253790C (en) Display device and driving method thereof
CN1165857C (en) Device for implementing hierarchical state charts and methods and apparatus useful therefor
CN1288584C (en) Information display control apparatus, server, recording medium which records program and program
CN1568458A (en) Method to add new software features without modifying existing code
CN1601483A (en) Automation software testing system based on script explanatory tool
CN1932776A (en) Automatic operating method for interface test in embedded operating system
CN1271545C (en) Language translation system
CN1841376A (en) Data-driven actions for network forms
CN1734423A (en) Computer-readable program product, process and apparatus for installing device driver
CN1795434A (en) Program execution control device, program execution control method, control program and recording medium
CN1801080A (en) Developing method and system for programmable control device
CN1707431A (en) Signal processing apparatus and method thereof
CN1725177A (en) Built-in equipment integrated development system and using method thereof
CN1758221A (en) Program processing apparatus
CN1873625A (en) Method for automatic generating random excitation based on percentage of function coverage
CN1758222A (en) Program processing apparatus
CN1801081A (en) Programmable control device method thereof
CN1633803A (en) Display, electronic device, data transmitting method, information terminal, host apparatus, program, recording medium
CN1098501C (en) simulator and method for SQL relational database
CN1737747A (en) Information processing device
CN1577291A (en) Program debug apparatus, program debug method and program
CN1955956A (en) Method of graphic and XML file interexchange based on BPEL
CN1669226A (en) Keyboard

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080102

Termination date: 20150104

EXPY Termination of patent right or utility model