CN209357044U - A kind of instruction encoding and decoding and execute system - Google Patents

A kind of instruction encoding and decoding and execute system Download PDF

Info

Publication number
CN209357044U
CN209357044U CN201822259385.XU CN201822259385U CN209357044U CN 209357044 U CN209357044 U CN 209357044U CN 201822259385 U CN201822259385 U CN 201822259385U CN 209357044 U CN209357044 U CN 209357044U
Authority
CN
China
Prior art keywords
controller
resistor
operational order
resistance value
instruction
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.)
Active
Application number
CN201822259385.XU
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.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information 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 Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN201822259385.XU priority Critical patent/CN209357044U/en
Application granted granted Critical
Publication of CN209357044U publication Critical patent/CN209357044U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

The utility model discloses a kind of instruction encoding and decoding and execute system, comprising: electric resistance array, multiplexer circuit, controller and executive device;Include multiple rows of resistor by preset order arrangement on electric resistance array;The gating command that multiplexer circuit is sent according to controller, control gate the correspondence resistor in electric resistance array;Multiplexer circuit is sent to controller after being used to obtain the resistance value of the resistor of gating;Controller is for generating and sending gating command to multiplexer circuit, table is corresponded to according to the resistance value and operational order prestored, it determines the corresponding operational order of the resistance value of received resistor and carries out operational order generation, the operational order of generation is sent to executive device and is executed.The utility model simplifies the complexity of cataloged procedure by the way of the instruction of resistance value respective operations, and number of devices needed for reducing decoding process, reduces cost.

Description

A kind of instruction encoding and decoding and execute system
Technical field
The utility model relates to encoding and decoding technique fields, more particularly to a kind of instruction encoding and decoding and execute system.
Background technique
Currently, common decoding method is binary coding in programmable applications field.Using binary coding When, with binary representation one it is several when, digit is very more, mostly used in actual use be sent into digital display circuit before decimally, send Reconvert again reads Binary Conversion for the decimal system after operation at binary number for people after entering machine.It is related to compiling Code, the operation such as transcoding, working principle is relative complex, causes study and application difficulty big, not convenient enough.Meanwhile in two into System and it is metric convert mutually it is important, it is desirable that programmer, which requires to have, can accomplish to see binary number, directly energy Decimal number is converted to, vice versa, there are relatively high technical requirements to personnel.
Also, after receiving the coded command for being converted to binary number, it is also necessary to be generated most using binary decoding Eventually operational order, which need to rely on the arithmetic unit unit compared with multiple types, such as: arithmetic logical unit (ALU) it is basic Function be add, subtract, multiplication and division arithmetic, with or the logical operations, and displacement, supplement such as non-, exclusive or etc. operate.Using two When system interpretation method is run, the operation of arithmetic unit and operation species are determined by controller, and the data of arithmetic unit processing, which come from, deposits Reservoir;Treated, and result data usually sends memory back to, or is temporarily deposited in arithmetic unit.Therefore, entirely decoding process needs More hardware infrastructure equipment is relied on, realization is complex, and cost of implementation is higher.
Therefore, how providing a kind of instruction encoding and decoding for being able to solve the above problem and executing system is those skilled in the art The current problem to be solved of member.
Utility model content
The purpose of the utility model is to provide a kind of instruction encoding and decoding and system is executed, using the instruction of resistance value respective operations Mode simplifies the complexity of cataloged procedure, and number of devices needed for reducing decoding process, reduces cost.
In order to solve the above technical problems, the utility model provides a kind of instruction encoding and decoding and executes system, comprising: resistance Array, multiplexer circuit, controller and executive device;
Include multiple rows of resistor by preset order arrangement on the electric resistance array;
The gating command that the multiplexer circuit is sent according to the controller, control gate in the electric resistance array Corresponding resistor;The multiplexer circuit is sent to the controller after being used to obtain the resistance value of the resistor of gating;It is described The input terminal of multiplexer circuit connects the electric resistance array, and the control terminal and output end of the multiplexer circuit are separately connected The controller;
The output end of the controller connects the executive device, and the controller refers to for generating and sending the gating It enables to the multiplexer circuit, corresponds to table according to the resistance value and operational order prestored, determine the resistance value pair of received resistor The operational order answered simultaneously carries out operational order generation, and the operational order of generation is sent to the executive device and is executed.
Preferably, the multiplexer circuit gates row's resistor, the corresponding behaviour of the resistance value of every row's resistor every time It instructs.
Preferably, each resistor is fixedly installed on the corresponding position in the electric resistance array, and the resistor is can Adjust resistor.
Preferably, resistor described in every row includes an operation code resistor and several numeric data code resistors;
The resistance value and operational order prestored in the controller, which corresponds in table, includes: the resistance value of operation code resistor with The corresponding relationship of action type, the resistance value of numeric data code resistor and the corresponding relationship of operating parameter.
Preferably, the electric resistance array includes the multiple rows of resistance slot and multiple fixed resistors arranged by preset order, The resistance slot is used to be inserted into for the fixed resistor.
It preferably, include an operation code slot and several numeric data code slots on resistance slot described in every row;
The resistance value and operational order prestored in the controller, which corresponds in table, includes: the definite value of insertion operation code slot The resistance value of resistor and the corresponding relationship of action type, and it is inserted into the resistance value and operation ginseng of the fixed resistor of numeric data code slot Several corresponding relationships.
Preferably, hard contact is provided on the fixed resistor, be provided on the resistance slot for it is described The hard contact of hard contact contact conducting on fixed resistor.
Preferably, further includes:
The display being connect with the controller, for being sent to the operational order of the executive device to the controller Content and its implementing result shown.
Preferably, further includes:
Multiple indicator lights, the indicator light are connect with the controller correspondingly with each operational order, the finger Show that idsplay order of the lamp for sending according to the controller carries out corresponding display operation.
Preferably, further includes:
The voice broadcast equipment being connect with the controller, operational order content for being sent to the control instruction with And the implementing result of operational order carries out voice broadcast.
Preferably, further includes:
The single instrction connecting with the controller executes key and multiple instructions executes key;
The controller, which receives, to be triggered the single instrction and executes after the single instrction generated after key executes instruction, and institute is controlled System is stated to work according to single instrction execution pattern;The controller receive the triggering multiple instructions execute generate after key it is more After instruction execution instruction, controls the system and work according to all instructions execution pattern.
Preferably, further includes:
The beginning key and pause button being connect with the controller;
After the controller receives the sign on for triggering and generating after the beginning key, controls the system and start work Make;After the controller receives the pause instruction for triggering and generating after the pause button, the system halt work is controlled, directly Until receiving the sign on again.
Preferably, the multiplexer circuit includes Multipexer selection switch and analog-digital converter;
The Multipexer selection switchs the gating command sent according to the controller and the preset order, selection It is connected between each row's resistor in the electric resistance array of property;The input terminal connection of the Multipexer selection switch The output end of the electric resistance array, the Multipexer selection switch connects the analog-digital converter;The analog-digital converter Control terminal connects the controller with output end.
Preferably, the controller is single-chip microcontroller.
The utility model provides a kind of instruction encoding and decoding and executes system, includes electric resistance array, multiplexer circuit, control Device processed and executive device, the resistance value for presetting different resistors corresponds to different operational orders, later in electric resistance array The interior corresponding resistor of setting, subsequently through the correspondence resistor on gating electric resistance array, the resistance value of the resistor according to gating Table is corresponded to the resistance value and operational order pre-saved, to determine the type of operational order, and executive device is sent to and is held Row.As it can be seen that in the present invention, when staff wants to encode, it is binary decimal mutually to be not required to master Transfer capability, but only need to remember the corresponding operational order of different resistance values, to reduce the technology to staff It is required that working principle is relatively simple.And it is subsequent when being decoded, a plurality of types of arithmetic units are not need to rely on, but Only need that the resistance value of the resistor currently gated is compared with the corresponding table of resistance value and operational order prestored by controller Lai Operational order is generated, entire decoding process needs not rely on more hardware foundation institute holding equipment, simplifies decoding process, Cost of implementation is lower.
Detailed description of the invention
It, below will be to the prior art and embodiment in order to illustrate more clearly of the technical scheme in the embodiment of the utility model Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only the utility model Some embodiments for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other attached drawings.
Fig. 1 is a kind of instruction encoding and decoding provided by the utility model and the structural schematic diagram for executing system;
Fig. 2 is another instruction encoding and decoding provided by the utility model and the structural schematic diagram for executing system;
Fig. 3 is a kind of structural schematic diagram of electric resistance array provided by the utility model.
Specific embodiment
The core of the utility model is to provide a kind of instruction encoding and decoding and executes system, using the instruction of resistance value respective operations Mode simplifies the complexity of cataloged procedure, and number of devices needed for reducing decoding process, reduces cost.
It is practical new below in conjunction with this to keep the objectives, technical solutions, and advantages of the embodiments of the present invention clearer Attached drawing in type embodiment, the technical scheme in the utility model embodiment is clearly and completely described, it is clear that is retouched The embodiment stated is the utility model a part of the embodiment, instead of all the embodiments.Based on the implementation in the utility model Example, every other embodiment obtained by those of ordinary skill in the art without making creative efforts belong to The range of the utility model protection.
The utility model provides a kind of instruction encoding and decoding and executes system, and shown in Figure 1, Fig. 1 is the utility model A kind of instruction encoding and decoding that there is provided and the structural schematic diagram for executing system;It include: electric resistance array 13, multiplexer circuit 12, control Device 11 processed and executive device 14.
Include multiple rows of resistor by preset order arrangement on electric resistance array 13.
The gating command that multiplexer circuit 12 is sent according to controller 11, control gate the corresponding electricity in electric resistance array 13 Hinder device;Multiplexer circuit 12 is sent to controller 11 after being used to obtain the resistance value of the resistor of gating;Multiplexer circuit 12 Input terminal connect electric resistance array 13, the control terminal and output end of multiplexer circuit 12 be separately connected controller 11.
The output end of controller 11 connects executive device 14, and controller 11 is selected for generating and sending gating command to multichannel Circuit 12 is selected, table is corresponded to according to the resistance value and operational order prestored, determines the corresponding operational order of the resistance value of received resistor And operational order generation is carried out, the operational order of generation is sent to executive device 14 and is executed.
It is understood that including according to certain tactic multiple groups resistor, due to operation on electric resistance array 13 Instruction need to be sent in order executive device 14 execution, therefore usually operational order generation be also required in sequence successively into Row.Therefore, it needs to gate a part of resistor every time to determine that the corresponding operational order of its resistance value is generated, gates again later Next part resistor generates next part operational order.Here resistance value and operational order corresponds to table needs and pre-saves to control In device 11 processed, the corresponding relationship of each resistance value and operational order is preserved in the correspondence table.
The utility model provides a kind of instruction encoding and decoding and executes system, includes electric resistance array 13, multiplexer circuit 12, controller 11 and executive device 14, the resistance value for presetting different resistors correspond to different operational orders, Zhi Hou The corresponding resistor of setting in electric resistance array 13, subsequently through the correspondence resistor on gating electric resistance array 13, according to gating The resistance value of resistor corresponds to table with the resistance value pre-saved and operational order, to determine the type of operational order, and is sent to and holds Luggage is set 14 and is executed.As it can be seen that in the present invention, when staff wants to encode, being not required to master binary system With metric mutual transfer capability, but only need to remember the corresponding operational order of different resistance values, to reduce pair The technical requirements of staff, working principle are relatively simple.And it is subsequent when being decoded, it is not need to rely on multiple types Arithmetic unit, but only need the resistance value of the resistor currently gated and the resistance value that prestores and operational order pair by controller 11 Table is answered to be compared to generate operational order, entire decoding process needs not rely on more hardware foundation institute holding equipment, Decoding process is simplified, cost of implementation is lower.
In an advantageous embodiment, multiplexer circuit 12 gates row's resistor, the resistance value of every row's resistor every time A corresponding operational order.
It is understood that if only comprising a multiple selector in multiplexer circuit 12, due to multi-path choice Device is the structure of multiselect one, i.e., is gated circuit all the way every time, and therefore, then being only capable of gating every time, resistance generates one all the way Operational order, operational order serially generates at this time;Certainly, if if including multiple multiple selector in multiplexer circuit 12, Resistor all the way can be then gated if each multiple selector respectively, thus parallel generation operational order.Certainly, specific to use Which kind of above mode the utility model is not especially limited, in addition, for the multiple selector for including in multiplexer circuit 12 Number the utility model is also not construed as limiting.In above-described embodiment, the corresponding operation of every row's resistor in electric resistance array 13 is enabled to refer to It enables, this set structure facilitates multiplexer circuit 12 to select to be connected, and structural arrangement rule is convenient for managing.Certainly, One operational order specifically corresponds to row's resistor or a column resistor the utility model is not construed as limiting.
Wherein, every row's resistor corresponds to a serial number in electric resistance array 13, which represents according to the row The operational order that the resistance value of resistor generates executes sequence.
It is understood that the operational order of transmission is to deposit due to when generation operational order is sent to executive device 14 In sequence, i.e. sequence of operations instruction needs to be sent in particular order, therefore, in order to distinguish the suitable of these instructions Sequence, when being encoded according to resistance, i.e., it needs to be determined that the sequence for the operational order that one group of acquired resistance value corresponds to.For Realize the purpose, the present embodiment is provided with multiple rows of resistor on electric resistance array 13, every row's resistor be provided with one it is suitable Sequence number, such as 1,2 etc., when being gated every time, it is required to according to the sequence of serial number from small to large on electric resistance array 13, Successively gating by rows.The serial number of the row's resistor gated, operational order corresponding with row's resistor Execution sequence is identical.
Wherein, the utility model can carry row's resistor that this operation needs to be connected in each gating command Serial number obtains its resistance value after row's resistor is connected later, and the operational order generated later is sent to execution Execution sequence when device 14 is identical as the serial number of row's resistance;Wherein, the serial number in gating command is according to default Sequence sequentially generates.As an example it is assumed that including serial number 1~7 on electric resistance array 13, preset order is suitable from 1 to 7 Sequence, the then gating command firstly generated carry number 1, backgating first row resistor, generate first operational order hair It send to executive device 14;Generate later and carry the gating command of number 2, backgating second row resistor, generation Article 2 Operational order is sent to executive device 14, repeats the process, until whole resistors are gated and finished.In this setup, So that staff when electric resistance array 13 is arranged, can respectively arrange the resistance value of resistor, by controlling to control in electric resistance array 13 It makes the content of each operational order and executes sequence, and the encoding-decoding process clear logic for instructing whole operation is clear, side Staff to it is a series of continuous operation instruction generations.
Certainly, can also be during starting to be decoded every time, the whole gating commands of transmission to multiplexer circuit 12, it Multiplexer circuit 12 can successively gate each row's resistor on electric resistance array 13 according to preset order afterwards.As an example it is assumed that It include 7 row's resistors on resistor, number is respectively 1~7, and preset order is from 1 to 7, then multiplexer circuit 12 can be from the One row's resistor starts to gate, and until gating the 7th row's resistor, and in the process, one row's resistor of every gating obtains Obtain the resistance value of row's resistor.By this way, it is possible to reduce the generation quantity of gating command simplifies entire decoding process, and And it can guarantee that the sequence of operations instruction that respective sequence is finally generated according to coded sequence is sent to executive device 14 simultaneously.
In addition, it should be noted that in the above-described embodiments, controller 11, which can choose, will temporarily receive each group resistance value It is cached, after receiving whole resistance values, sequentially generates instruction according still further to preset order, instruct after all generating, then Executive device 14 is successively sent to according to preset order.Or controller 11 can be referred to after often receiving one group of resistance value It enables and generating, but the operational order of generation is not sent to executive device 14, but after instruction all generates, then press Executive device 14 is successively sent to according to preset order.Or controller 11 can be to be instructed after often receiving one group of resistance value It generates, every one operational order of generation is sent to executive device 14.It is specific not made using which kind of mode, the utility model above It is specific to limit.
Preferably, each resistor is fixedly installed on the corresponding position in electric resistance array 13, and resistor is adjustable Resistor.
It is understood that electric resistance array 13 is made of fixed several row's adjustable resistors in the present embodiment, work Personnel constitute different operational orders by adjusting the resistance value of adjustable resistor.This mode, user only need to carry out resistance value Adjustment.Compared to the mode for being inserted into resistor in slot, this mode is not allowed to easily cause the loss of resistor, and reliability is more It is high.
Further, every row's resistor includes an operation code resistor and several numeric data code resistors;
The resistance value and operational order prestored in controller 11, which corresponds in table, includes: the resistance value of operation code resistor is (referred to as Operation code) with the corresponding relationship of action type, the resistance value (referred to as numeric data code) of numeric data code resistor is corresponding with operating parameter Relationship.
It is understood that operation code is the type for controlling operational order, such as write command or reading instruction, number It is then for specifically being limited operating parameter according to code, it is understood that be defined to operation content, such as instruct For summarizing instruction, then numeric data code can limit added numerical value etc.;Every complete operational order is by operation code and entirely The corresponding content composition of portion's numeric data code.Since the operating parameter that different operation instruction includes is different, when the utility model is answered When with from different application scenarios, the quantity of numeric data code resistor can be set according to practical application request, can be 1 Or it is multiple.
In another preferred embodiment, electric resistance array 13 includes multiple rows of resistance slot and multiple fixed by preset order arrangement It is worth resistor, resistance slot for fixed resistor for being inserted into.
It is understood that fixed resistor wants small compared to volume for adjustable resistor and cost is relatively low, therefore, use The modes of multiple fixed resistors insertion slots constitutes required operational order, can reduce electric resistance array 13 volume and System cost.
It is further known that including an operation code slot and several numeric data code slots on every row's resistance slot;
The resistance value and operational order prestored in controller 11, which corresponds in table, includes: the fixed resistor of insertion operation code slot Resistance value and action type corresponding relationship, and insertion numeric data code slot fixed resistor resistance value and operating parameter pair It should be related to.
It is understood that working as the utility model application since the operating parameter that different operation instruction includes is different When from different application scenarios, the quantity of numeric data code slot can be set according to practical application request, can be 1 or more It is a.
Preferably, it is provided with hard contact on fixed resistor, is provided with and is used for and fixed value resistance on resistance slot The hard contact of hard contact contact conducting on device.
It is understood that the connection type of hard contact is easy setting and contact engaging and separating force compared to for socket connection type It is small, feel is preferable.And for the mode of magnetic connection, being completely embedded property is more preferable and cost is lower.Certainly, fixed value resistance The modes such as socket is connect or magnetic connects also can be used with resistance slot in device.The connection type of fixed resistor and resistance slot The utility model is not construed as limiting.
In a preferred embodiment, the system further include:
The display 15 being connect with controller 11, for being sent in the operational order of executive device 14 to controller 11 Hold and its implementing result is shown.Wherein, display 15 here can be light-emitting diode display, and the utility model does not limit aobvious Show the type of device 15.
It is understood that needing to carry out implementing result display or display operation instruction in many application scenarios Content, under this mode, user can be facilitated to understand the executive condition of operational order in time, and then be adjusted and locate in time Reason, user experience are more preferable.
In a preferred embodiment, the system further include:
Multiple indicator lights 17, indicator light 17 are connect with controller 11 correspondingly with each operational order, indicator light 17 Idsplay order for sending according to controller 11 carries out corresponding display operation.
Wherein, display lamp here can carry out respectively different display operations to mention after receiving different idsplay orders Show the current execution state of user.For example, indicator light 17 does not work when operational order is not carried out;It is indicated when in the process of implementation Lamp 17 gives a green light;If operational order executes failure, indicator light 17 sends out a warning.Here indicator light 17 can be LED light, when So, the utility model does not limit the concrete type of indicator light 17.It is being connect in addition, the utility model does not order each indicator light 17 within a certain time yet Display mode after receiving all kinds of idsplay orders.It is understood that being here respectively that an indicator light is arranged in every operational order 17, such as if having 1~7 operational order, then 7 indicator lights 17 are respectively set, when every operational order executes, indicator light 17 For showing the executive condition of this operational order.For example, in executing normal execution failure, being not carried out, execute, executing completion Deng improving the convenience of user so that user be facilitated uniformly to get information about the executive condition of each operational order.
In a preferred embodiment, the system further include:
The voice broadcast equipment 16 being connect with controller 11, operational order content and behaviour for being sent to control instruction Make the implementing result instructed and carries out voice broadcast.
It is understood that being set since the instruction decoding method in the utility model may be applied to Toy for young children etc. It is standby, and child there is a situation where it is illiterate.Therefore the operation result of instruction possibly can not be understood by display 15.Therefore, Voice broadcast equipment 16 is set in the present embodiment, is grasped by voice broadcast come the convenient user that can not check display 15 to understand Make the executive condition instructed.Voice broadcast equipment 16 can be arranged jointly with display 15, and user can choose whether to close aobvious Show device 15 or voice broadcast equipment 16, to improve the selectivity and convenience of user.
In a preferred embodiment, the system further include:
The single instrction connecting with controller 11 executes key and multiple instructions executes key.
Controller 11 receives triggering single instrction and executes after the single instrction that generates after key executes instruction, control system according to The work of single instrction execution pattern;Controller 11 receives triggering multiple instructions and executes after the multiple instructions that generates after key executes instruction, Control system works according to all instructions execution pattern.
It is understood that executing key and multiple instructions by setting single instrction executes key, so that staff can be with Selection operation instruction is continuously generated and is executed, and still only generates and execute current operation instruction.Make in this way in certain needs It observes under the scene of single instrction implementing result, can choose triggering single instrction and execute key, so that every execute an operation Stop after instruction, staff is facilitated to observe implementing result;And for only needing to observe overall execution result in the case where, can Key is executed with selection triggering multiple instructions, is respectively to arrange the corresponding operational order of resistor in electric resistance array 13 to be all finished Afterwards, then implementing result is observed.As it can be seen that staff can be made to select to close according to self-demand by setting both the above key Suitable executive mode, convenience are higher.In addition, when being set with single instrction execution key and multiple instructions executes key, it is entire to compile Single instrction execution pattern or multiple instructions execution pattern can be defaulted as when decoding system initial start, in addition coding/decoding system with In single instrction execution pattern or multiple instructions execution pattern operational process, if it is desired to if switching to another mode, triggering can be passed through Another mode corresponding key is realized.For example, if referring to currently for single instrction execution pattern in subsequent user triggering more It enables after executing key, then can switch to multiple instructions execution pattern.
In a preferred embodiment, the system further include:
The beginning key and pause button being connect with controller 11.
After controller 11 receives the sign on generated after triggering beginning key, control system is started to work;Controller After 11 receive the pause instruction generated after triggering pause button, control system break-off starts to refer to until receiving again Until order.
It is understood that starting key is used for startup program from the beginning (the corresponding operation of row's resistor that number is 1 Instruction) it executes, or after pause, startup program is continued to execute from time-out position.Pause button can be executed with time out program.In journey Pause button is pressed in program process, will stop executing after having executed current operation order.By beginning key, program after pause Next operational order will be continued to execute.Start key and pause button by setting, the volume solution of raw operational order can be made Code process is more controllable, staff can control process at any time termination and starting, convenient for staff midway to electric resistance array The resistance value of 13 internal resistors is modified, and convenience and flexibility are higher.
Wherein, the various keys in the utility model can be set on independent keyboard 18;It or may be setting In the triggering key that display 15 is shown, triggered after by mouse click or touch screen.The utility model does not limit key Set-up mode.Shown in Figure 2, Fig. 2 is that another structure for instructing encoding and decoding and executing system provided by the utility model is shown It is intended to.
Specifically, multiplexer circuit 12 includes Multipexer selection switch and analog-digital converter.
The gating command and preset order that Multipexer selection switch is sent according to controller 11, it is selective it is each with It is connected between row's resistor in electric resistance array 13;The input terminal of Multipexer selection switch connects electric resistance array 13, simulation The output end of multidiameter option switch connects analog-digital converter;The control terminal of analog-digital converter connects controller 11 with output end.
It is understood that controller 11 in the process of running usually can not Direct Recognition analog signal, and pass through multichannel The resistance value for selecting the resistor obtained is analog signal, therefore, identifies general in the present embodiment in order to facilitate the information of controller 11 The resistance value of obtained resistor is converted to digital signal, that is, has carried out analog-to-digital conversion operation, to facilitate the place of controller 11 Reason.
Preferably, controller 11 is single-chip microcontroller.It is understood that cost is relatively low for single-chip microcontroller, since this is practical It only needs to carry out simple comparing in novel and instruction generates, therefore lower-cost monolithic can be used completely Machine is controlled, naturally it is also possible to using other kinds of processor as controller 11.The utility model does not make this It limits.
Wherein, also include and each electric power management circuit being connect with electrical component in the system.
Shown in Figure 3, Fig. 3 is a kind of structural schematic diagram of electric resistance array provided by the utility model.Certainly, it specifically adopts With the set-up mode of which kind of resistor, the utility model is not construed as limiting.
According to foregoing description, ginseng is shown in Table 1, and table 1 is the structure of operational order.
The structure of 1 operational order of table
Operation code Numeric data code 1 Numeric data code 2 Numeric data code N
OpType Data1 Data2 DataN
Specifically, due to being by different resistance values in the utility model in respective operations code and numeric data code, operation The coding mode of instruction is specifically as shown in table 2.It only indicates in table 2 using the corresponding operation code of resistance value and numeric data code this coding staff Formula, rather than operation code and numeric data code are limited equal to resistance value.
The coding mode of 2 operational order of table
Due to the physical significance of operation code and numeric data code, needs to make definitions one by one first, save to resistance value and operational order In corresponding table, and inquired by lookup table mode.Therefore, the programmable products of function are typically different, resistance value need to be set first Table is corresponded to operational order, as shown in table 3.
3 resistance value of table and operational order correspond to table
For convenience of understanding, the following are the simplified process of the instruction encoding and decoding in the utility model:
Since program should be the sequence combination of several operational orders, and successively execute, such as: in order to complete task A, The X that needs to be sequentially completed instruction 1,2,3,4 ....Therefore it needs to formulate resistance value first and operational order corresponds to table, as shown in table 4, (its In, Ro and Rd can be freely combined according to the actual physical meaning of product, be combined into the instruction of different function.)
4 resistance value of table and operational order correspond to table
It should be noted that although the digit for the resistor being arranged on every row's electric resistance array 13 in the utility model is identical , but user can select to set the adjustable resistor of corresponding position to 0 or be not inserted into definite value electricity according to actual needs Hinder device.That is the corresponding actually active numeric data code number of each operational order can be different, need to carry out specific aim to every instruction Coding, decoding and execute.Referring specifically to table 5:
The instruction example of 5 different data number of codes of table
Instruction Action type code Numeric data code 1 Numeric data code 2 Numeric data code 3 Command content
Instruction 1 Ro1 Rd11 - - Function 1
Instruction 2 Ro2 Rd12 - Rd32 Function 2
Instruction 3 Ro3 Rd23 Rd33 Function 3
Instruction 4 Ro4 - - Rd34 Function 4
Instruct X RoX Rd1X Rd2X Rd3X Function X
It can be obtained according to table 5:
It include numeric data code 1 in first instruction;
It include numeric data code 1 and numeric data code 3 in Article 2 instruction;
It include numeric data code 2 and numeric data code 3 in Article 3 instruction;
It include numeric data code 3 in Article 4 instruction.Subsequent and so on.
Certainly, the above is only a kind of specific example, the utility model does not limit the number and resistance value and operation of operation code Instruct the particular content of corresponding table.
Above several specific embodiments are only preferred embodiments of the present invention, above several specific embodiments Can in any combination, the embodiment obtained after combination is also within the protection scope of the utility model.It should be pointed out that for this skill For the those of ordinary skill in art field, relevant speciality technical staff is pushed away in the case where not departing from the spirit of the present invention and concept thereof The oher improvements and changes of performance, should be included within the scope of protection of this utility model.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.

Claims (14)

1. a kind of instruction encoding and decoding and execute system characterized by comprising electric resistance array, multiplexer circuit, controller and Executive device;
Include multiple rows of resistor by preset order arrangement on the electric resistance array;
The gating command that the multiplexer circuit is sent according to the controller, control gate the correspondence in the electric resistance array Resistor;The multiplexer circuit is sent to the controller after being used to obtain the resistance value of the resistor of gating;The multichannel The input terminal of selection circuit connects the electric resistance array, and the control terminal and output end of the multiplexer circuit are separately connected described Controller;
The output end of the controller connects the executive device, and the controller is for generating and sending the gating command extremely The multiplexer circuit corresponds to table according to the resistance value and operational order prestored, determines that the resistance value of received resistor is corresponding Operational order simultaneously carries out operational order generation, and the operational order of generation is sent to the executive device and is executed.
2. system according to claim 1, which is characterized in that the multiplexer circuit gates row's resistor every time, The corresponding operational order of the resistance value of every row's resistor.
3. system according to claim 2, which is characterized in that each resistor is fixedly installed in the electric resistance array Corresponding position, the resistor are adjustable resistor.
4. system according to claim 3, which is characterized in that resistor described in every row include operation code resistor with And several numeric data code resistors;
The resistance value and operational order prestored in the controller, which corresponds in table, includes: the resistance value and operation of operation code resistor The corresponding relationship of type, the resistance value of numeric data code resistor and the corresponding relationship of operating parameter.
5. system according to claim 2, which is characterized in that the electric resistance array includes by the multiple rows of of preset order arrangement Resistance slot and multiple fixed resistors, the resistance slot are used to be inserted into for the fixed resistor.
6. system according to claim 5, which is characterized in that include an operation code slot on resistance slot described in every row And several numeric data code slots;
The resistance value and operational order prestored in the controller, which corresponds in table, includes: the fixed value resistance of insertion operation code slot The resistance value of device and the corresponding relationship of action type, and insertion numeric data code slot fixed resistor resistance value and operating parameter Corresponding relationship.
7. system according to claim 5 or 6, which is characterized in that be provided with hard contact, institute on the fixed resistor State the hard contact being provided on resistance slot for contacting conducting with the hard contact on the fixed resistor.
8. system according to claim 1, which is characterized in that further include:
The display being connect with the controller, for being sent in the operational order of the executive device to the controller Hold and its implementing result is shown.
9. system according to claim 1, which is characterized in that further include:
Multiple indicator lights, the indicator light are connect with the controller correspondingly with each operational order, the indicator light Idsplay order for sending according to the controller carries out corresponding display operation.
10. system according to claim 1, which is characterized in that further include:
The voice broadcast equipment connecting with the controller, operational order content and operation for sending to control instruction refer to The implementing result of order carries out voice broadcast.
11. system according to claim 1, which is characterized in that further include:
The single instrction connecting with the controller executes key and multiple instructions executes key;
The controller, which receives, to be triggered the single instrction and executes after the single instrction generated after key executes instruction, and the system is controlled System works according to single instrction execution pattern;The controller receives the multiple instructions for triggering and generating after the multiple instructions execution key After executing instruction, controls the system and work according to all instructions execution pattern.
12. system according to claim 1, which is characterized in that further include:
The beginning key and pause button being connect with the controller;
After the controller receives the sign on for triggering and generating after the beginning key, the system starts are controlled; After the controller receives the pause instruction for triggering and generating after the pause button, the system halt work is controlled, until Until receiving the sign on again.
13. system according to claim 1, which is characterized in that the multiplexer circuit includes that Multipexer selection is opened Pass and analog-digital converter;
The Multipexer selection switchs the gating command sent according to the controller and the preset order, selective It is connected between row's resistor in the electric resistance array every time;Described in the input terminal connection of the Multipexer selection switch The output end of electric resistance array, the Multipexer selection switch connects the analog-digital converter;The control of the analog-digital converter End connects the controller with output end.
14. system according to claim 1, which is characterized in that the controller is single-chip microcontroller.
CN201822259385.XU 2018-12-29 2018-12-29 A kind of instruction encoding and decoding and execute system Active CN209357044U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201822259385.XU CN209357044U (en) 2018-12-29 2018-12-29 A kind of instruction encoding and decoding and execute system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201822259385.XU CN209357044U (en) 2018-12-29 2018-12-29 A kind of instruction encoding and decoding and execute system

Publications (1)

Publication Number Publication Date
CN209357044U true CN209357044U (en) 2019-09-06

Family

ID=67801966

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201822259385.XU Active CN209357044U (en) 2018-12-29 2018-12-29 A kind of instruction encoding and decoding and execute system

Country Status (1)

Country Link
CN (1) CN209357044U (en)

Similar Documents

Publication Publication Date Title
CN102880398B (en) A kind of mobile phone unlock method and mobile phone based on random digit array
CN102647522A (en) Multifunctional universal remote control system based on mobile phone platform
CN101859477A (en) Gravity sensing remote controller and remote control implementing method thereof
CN209357044U (en) A kind of instruction encoding and decoding and execute system
CN100397838C (en) Digital type infrared-bluetooth two-bridge universal remote control device
CN103699511A (en) Interface device for serially writing programs in multiple MCUs (micro control units)
CN205486744U (en) Intelligence remote control unit for house
CN103455456B (en) The method and apparatus that a kind of keyboard macroefficiency is uploaded
CN109739510A (en) A kind of instruction encoding and decoding and execute method and device thereof
CN1725259A (en) Infrared remote controller and signal transmission method thereof
CN106094560A (en) A kind of intelligent home control system and control method thereof
CN205230020U (en) Splicing screen
CN203311230U (en) Household intelligent control system
CN107332568B (en) Key coding circuit and keyboard scanning circuit
CN108388181B (en) Key scan apparatus and system
CN205281403U (en) Intelligent wear device
CN206725995U (en) A kind of multi-purpose intelligent switch
CN203196292U (en) Handle device capable of being used as keyboard mouse through user definition
CN203882501U (en) Intelligent digital electronic experiment box
CN108600066A (en) A kind of monobus communication means
CN206991054U (en) A kind of delay socket
CN108829241B (en) Motion capture device and node configuration method thereof
CN101277105B (en) System for encoding and controlling cadence signal
CN105144038B (en) The method and apparatus that a kind of keyboard coding uploads simultaneously
CN203573260U (en) 2.4G wireless mouse for achieving multiple keys through IO

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant