CN203204601U - Programming auxiliary processing device based on dial switch array - Google Patents

Programming auxiliary processing device based on dial switch array Download PDF

Info

Publication number
CN203204601U
CN203204601U CN 201220598488 CN201220598488U CN203204601U CN 203204601 U CN203204601 U CN 203204601U CN 201220598488 CN201220598488 CN 201220598488 CN 201220598488 U CN201220598488 U CN 201220598488U CN 203204601 U CN203204601 U CN 203204601U
Authority
CN
China
Prior art keywords
programming
statement
toggle switch
array
translater
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.)
Expired - Fee Related
Application number
CN 201220598488
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.)
ZHONGKE YINGHUA HUZHOU ENGINEERING RESEARCH CENTER CO LTD
Original Assignee
ZHONGKE YINGHUA HUZHOU ENGINEERING RESEARCH CENTER 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 ZHONGKE YINGHUA HUZHOU ENGINEERING RESEARCH CENTER CO LTD filed Critical ZHONGKE YINGHUA HUZHOU ENGINEERING RESEARCH CENTER CO LTD
Priority to CN 201220598488 priority Critical patent/CN203204601U/en
Application granted granted Critical
Publication of CN203204601U publication Critical patent/CN203204601U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

The utility model discloses a programming auxiliary processing device based on a dial switch array. A corresponding programming statement is inputted by a programming input platform according to a preset grammar, and the programming statement is transmitted to a translator; the programming statement is retrieved in a preset translation database by the translator, a retrieval result is outputted to a visual platform, and when a program statement that can be recognized by a programmable chip is obtained, the program statement is transmitted to an array device; the program statement is converted to an executable statement of the programmable chip via a dial switch by the array device, the executable statement is simulatively executed, and an execution result is outputted to the visual platform; and the retrieved result is displayed by the visual platform in the translation and retrieval processes of the translator, and the execution result is displayed in the conversion and programming execution processes of the dial switch. The programming auxiliary processing device based on the dial switch array is advantaged by good visuality and high efficiency.

Description

Programming Auxiliary Processing Unit based on the toggle switch array
Technical field
The utility model relates to the area of computer aided processing technology field, is specifically related to a kind of programming Auxiliary Processing Unit based on the toggle switch array.
Background technology
Because development of computer, usually, in programming process, use English letter etc. to finish programming as grammer statement and the input of computer programming language usually.And because language performance, making to wait in English to explain as grammer becomes study, finishes language programming, and particularly Chinese carry out the obstacle of computer programming.
Therefore, how to evade the restriction of language, the people that great majority are not known English comprises that the preschool child can be good at understanding the essence of computer program, understands computing machine general knowledge, adapts to the trend of scientific and technical innovation development, and is particularly important.
Simultaneously, at single-chip microcomputer, as MCU(Micro Control Unit, micro-control unit), DSP(Digital Signal Processer, data signal processor) use in, need to understand earlier the employed language of MCU, DSP, then by means of programming platform, utilize this language to programme in the mode of grammer statement, be compiled as machine code with compiler thereafter, with its programming in MCU, DSP.This programming process is too complicated for beginner, programming personnel etc., is unfavorable for understanding, and cost is too high, and efficient is very low.
The utility model content
The purpose of this utility model is to provide a kind of programming Auxiliary Processing Unit based on the toggle switch array, and its intuitive is good, efficient is high.
Be a kind of programming Auxiliary Processing Unit based on the toggle switch array of realizing that the utility model purpose provides, comprise programming input platform, translater, array apparatus, and visualisation platforms;
Described programming input platform is electrically connected to translater; Described translater is electrically connected to array apparatus; Described visualisation platforms is electrically connected to translater and array apparatus;
Wherein, described programming input platform is imported corresponding programmed statements, and programmed statements is transferred to translater by preset grammatical;
Described translater receives described programmed statements, and described programmed statements is retrieved in default translation database, and result for retrieval is outputed to visualisation platforms; And when obtaining the discernible program statement of described programmable chip, and described program statement is transferred to array apparatus;
Described array apparatus receives program statement, and utilizes toggle switch to be converted to the executable statement of programmable chip program statement, and simulates and carry out described executable statement, and the output execution result is to described visualisation platforms;
Described visualisation platforms is connected to translater and toggle switch array, in translater translation retrieving, result for retrieval is shown; And in toggle switch conversion execution programming process, will change execution result and show.
More preferably, but as an embodiment, described translater comprises first receiver module, the database memory module, and retrieval module and first output module, wherein:
Described first receiver module receives from the programmed statements of programming input platform input;
The programmed statements of described database memory module storage preset database and the program statement of corresponding preset programmable chip rearrange database data one by one;
The programmed statements of the input that described retrieval module receives according to first receiver module is retrieved in the database data of database memory module storage; When retrieving the programmed statements of the database consistent with programmed statements, read the programmed statements corresponding programs statement with database, and the programmed statements that will import and corresponding programs statement send to first output module; During less than the programmed statements of the database consistent with programmed statements, then generate error message in retrieval, error message is sent to first output module;
Described first output module sends to visualisation platforms in the lump with the programmed statements of the program statement that retrieves and input and shows, and the program statement that retrieves is sent to array apparatus; The error message that will generate when perhaps will not retrieve programmed statements sends to visualisation platforms and shows.
More preferably, but as an embodiment, described array apparatus comprises second receiver module, modular converter, and the toggle switch array, second output module, wherein:
Described second receiver module receives the program statement that described translater sends over;
Described modular converter is converted to binary numeral with described program statement, and with the executable statement of binary numeral as programmable chip, is input in the toggle switch array and carries out;
Described toggle switch array is simulated execution with the executable statement of described binary numeral, when execution makes mistakes, generate execution error information, send to second transport module, perhaps after simulation is finished, and will carries out net result and be sent to second output module;
Described second output module will be dialled the execution error result of row switch arrays simulation execution or carry out net result and output to the visualisation platforms demonstration.
More preferably, but as an embodiment, described toggle switch array comprises the matrix array that a plurality of toggle switchs are formed, and the single-chip microcomputer that is connected to matrix array;
Wherein, each matrix element of described matrix array is a toggle switch;
Delegation's executable statement of the described binary numeral of one line display of described matrix array, wherein, the element in the delegation of each toggle switch is represented a binary value;
The columns of described matrix array represent to be input in the device all need the line number of perform statement.
More preferably, but as an embodiment,
Described single-chip microcomputer is the 89C51 single-chip microcomputer, and described 89C51 single-chip microcomputer comprises P0, P1, P2, P3 interface, and described toggle switch array also comprises latch 74LS373, logical-arithmetic unit 74LS32, code translator 74LS154;
The value of each toggle switch enters logical-arithmetic unit 74LS32 from P0, P1, P2, P3 interface by latch 74LS373;
Described each latch 74LS373 of logical-arithmetic unit 74LS32 portfolio management;
Be sent to code translator 74LS154 then and decipher computing, obtain execution result.。
More preferably, but as an embodiment, described toggle switch array is made up of 256 * 256 toggle switchs; The toggle switch array that the P0 of described 89C51 single-chip microcomputer, P1, P2, P3 interface are connected to 256 * 256 toggle switchs compositions makes an explanation to the scale-of-two executable statement.
The beneficial effects of the utility model: the programming Auxiliary Processing Unit based on the toggle switch array of the present utility model, realize the grammer statement of programming by toggle switch, with in the computer programming write implementation visual, oversimplify, reduce programming, particularly the complexity of the programming of single-chip microcomputer is very beneficial for grasping and the study computer programming, is conducive to the programming personnel and understands, cost is low, improves programming efficiency simultaneously again.
Description of drawings
Fig. 1 is that the utility model is based on the programming Auxiliary Processing Unit synoptic diagram of toggle switch array;
Fig. 2 is 89C51 single-chip microcomputer synoptic diagram;
Fig. 3 is latch 74LS373 synoptic diagram;
Fig. 4 is logical-arithmetic unit 74LS32 synoptic diagram;
Fig. 5 is code translator 74LS154 synoptic diagram.
Embodiment
For making bright programming Auxiliary Processing Unit purpose, technical scheme and the advantage based on the toggle switch array of the present utility model clearer, below in conjunction with drawings and Examples, the utility model is described in further details, but, should be noted that, below described specific embodiment only be used for explanation the utility model, but be not to limit scope of the present utility model.
The programming Auxiliary Processing Unit based on the toggle switch array in the present embodiment by means of the toggle switch device, the grammer statement of program language is translated, thereby the toggle switch of the program of realization is expressed.
The programming Auxiliary Processing Unit based on the toggle switch array of the utility model embodiment as shown in Figure 1, comprises programming input platform 100, translater 200, array apparatus 300, and visualisation platforms 400;
Described programming input platform is electrically connected to translater; Described translater is electrically connected to array apparatus; Described visualisation platforms is electrically connected to translater and array apparatus
Wherein, described programming input platform 100 is imported corresponding programmed statements, and programmed statements is transferred to translater by preset grammatical;
As a kind of embodiment, described programming input platform can be input keyboard or writing input board, but is not limited thereto, and it can be various electronic input apparatus.
Described translater 200 receives described programmed statements, and described programmed statements is retrieved in default translation database, and result for retrieval is outputed to visualisation platforms; And when obtaining the discernible program statement of described programmable chip, and described program statement is transferred to array apparatus;
As a kind of embodiment, described translater can be the chip that comprises the retrieval carried out of a storer, as MCU chip or dsp chip, or the ARM chip.
Described array apparatus 300 receives program statement, and utilizes toggle switch to be converted to the executable statement of programmable chip program statement, and simulates and carry out described executable statement, and the output execution result is to described visualisation platforms;
Described visualisation platforms 400 is connected to translater and toggle switch array, in translater translation retrieving, result for retrieval is shown; And in toggle switch conversion execution programming process, will change execution result and show.
As a kind of embodiment, described visualisation platforms can be a LCD, but is not limited thereto, and it can be various display device.
The programming Auxiliary Processing Unit based on the toggle switch array of the utility model embodiment, the program that is used for the simulation programmable chip is carried out, it is by translater and array apparatus, and visualisation platforms, with the programmed statements of user by the input of preset language grammer, for example " add 1 " with the input in Chinese programmed statements, statement is sent to translater then will " to add 1 ", in the database of translater, retrieve, when retrieving corresponding programmed statements, be translated into corresponding program statement, programmed statements is translated as " ADD1 " program statement for example will " to add 1 "; Export to the toggle switch array then, simultaneously programmed statements and corresponding program statement are outputed to the visualisation platforms demonstration; When retrieval during less than corresponding programmed statements, the result that makes mistakes points out the user to re-enter to the visualisation platforms demonstration.Be input to the program statement of array apparatus, by array apparatus this program statement be converted to the executable statement of programmable chip, judge whether this executable statement meets the executable statement grammer of programmable chip; And can carry out grammer described executable statement is carried out in time simulation meeting, and the output execution result is to described visualisation platforms; And in judgement and the execution executable statement process, when judging that executable statement does not meet the executable statement grammer of programmable chip, when perhaps the described executable statement of simulation execution was made mistakes, the result that makes mistakes showed to visualisation platforms; After described executable statement is carried out in simulation, execution result is outputed to visualisation platforms show.
Preferably, as a kind of embodiment, described translater 200 comprises first receiver module 210, database memory module 220, and retrieval module 230 and first output module 240, wherein:
Described first receiver module 210 receives from the programmed statements of programming input platform input;
The programmed statements of described database memory module 220 storage preset database and the program statement of corresponding preset programmable chip rearrange database data one by one;
The programmed statements of the input that described retrieval module 230 receives according to first receiver module is retrieved in the database data of database memory module storage; When retrieving the programmed statements of the database consistent with programmed statements, read the programmed statements corresponding programs statement with database, and the programmed statements that will import and corresponding programs statement send to first output module; During less than the programmed statements of the database consistent with programmed statements, then generate error message in retrieval, error message is sent to first output module;
Described first output module 240 sends to visualisation platforms in the lump with the programmed statements of the program statement that retrieves and input and shows, and the program statement that retrieves is sent to array apparatus; The error message that will generate when perhaps will not retrieve programmed statements sends to visualisation platforms and shows.
Preferably, as a kind of embodiment, described array apparatus 300 comprises second receiver module 310, modular converter 320, and toggle switch array 330, the second output modules 340, wherein:
Described second receiver module 310 receives the program statement that described translater sends over;
Described modular converter 320 is converted to binary numeral with described program statement, and with the executable statement of binary numeral as programmable chip, is input in the toggle switch array and carries out;
Described toggle switch array 330 is simulated execution with the executable statement of described binary numeral, when execution makes mistakes, generate execution error information, send to second transport module, perhaps after simulation is finished, and will carries out net result and be sent to second output module.
Described second output module 340 will be dialled the execution error result of row switch arrays simulation execution or carry out net result and output to the visualisation platforms demonstration.
More preferably, described toggle switch array comprises the matrix array that a plurality of toggle switchs are formed, and the single-chip microcomputer that is connected to matrix array;
Wherein, each matrix element of described matrix array is a toggle switch;
Delegation's executable statement of the described binary numeral of one line display of described matrix array, wherein, the element in the delegation of each toggle switch is represented a binary value;
The columns of described matrix array represent to be input in the device all need the line number (being instruction number) of perform statement.
Toggle switch is a address switch that is used for operating control, what adopt is 0/1 binary coding, so toggle switch can be used as the basic device of program statement, is equivalent to a bit binary data storer, can be by changing the state of each toggle switch, writing program again.
The largest benefit of toggle switch can be revised arbitrarily exactly at any time, and modification is finished.
As a kind of embodiment, described single-chip microcomputer is the 89C51 single-chip microcomputer, as shown in Figure 2, described 89C51 single-chip microcomputer comprises P0(P0.0, P0.1 ... P0.7), P1(P1.0, P1.1 ... P1.7), P2(P2.0, P2.1 ... P2.7), P3(P3.0, P3.1 ... P3.7) interface, described toggle switch array also comprises latch 74LS373, logical-arithmetic unit 74LS32, code translator 74LS154 is shown in Fig. 3,4,5.
As a kind of embodiment, the value of each toggle switch is from P0, P1, P2, P3 interface, enter logical-arithmetic unit 74LS32 by latch 74LS373, described each latch 74LS373 of logical-arithmetic unit 74LS32 portfolio management, be sent to code translator 74LS154 then and decipher computing, obtain execution result, realize the transform operation of each toggle switch of overall treatment, shown in table 1, table 2, table 3.
Table 1
Figure BDA00002395255900081
Table 2
Figure BDA00002395255900082
Figure BDA00002395255900091
Table 3
Figure BDA00002395255900092
Figure BDA00002395255900101
As a kind of embodiment, among the utility model embodiment, the toggle switch array that P0, P1, P2, P3 interface are connected to 256 * 256 toggle switchs compositions makes an explanation to the scale-of-two executable statement.As another kind of embodiment, can also expand being connected to toggle switch by the P2 interface, to finish more scale-of-two executable statement is made an explanation.
As a kind of embodiment, the visualisation platforms of the utility model embodiment is by the P2 that connects the 89C51 single-chip microcomputer, the validity of P3 interface checking execution result.
Lifting for one " adding 1 " below (ADD1) further describes this based on the course of work of the programming Auxiliary Processing Unit of toggle switch array.
This instruction is carried out as follows:
1, " ADD1 " is converted to binary data, stores in the 1st row of toggle switch array;
2, the P0 interface reads this corresponding data from the 1st row of toggle switch array;
3, give code translator this corresponding data, add 1 operation, obtain execution result;
4, execution result being outputed to visualisation platforms shows.
The programming Auxiliary Processing Unit based on the toggle switch array of the utility model embodiment, realize the grammer statement of programming by toggle switch, with in the computer programming write implementation visual, oversimplify, reduce programming, particularly the complexity of the programming of single-chip microcomputer is very beneficial for grasping and the study computer programming, is conducive to the programming personnel and understands, cost is low, improves programming efficiency simultaneously again.
Should be noted that at last that obviously those skilled in the art can carry out various changes and modification to the utility model and not break away from spirit and scope of the present utility model.Like this, if of the present utility model these revise and modification belongs within the scope of the utility model claim and equivalent technologies thereof, then the utility model also is intended to comprise these changes and modification.

Claims (6)

1. programming Auxiliary Processing Unit based on the toggle switch array is characterized in that:
Comprise programming input platform, translater, array apparatus, and visualisation platforms;
Described programming input platform is electrically connected to translater; Described translater is electrically connected to array apparatus; Described visualisation platforms is electrically connected to translater and array apparatus;
Wherein, described programming input platform is imported corresponding programmed statements, and programmed statements is transferred to translater by preset grammatical;
Described visualisation platforms is connected to translater and toggle switch array, in translater translation retrieving, result for retrieval is shown; And in toggle switch conversion execution programming process, will change execution result and show.
2. programming Auxiliary Processing Unit according to claim 1 is characterized in that:
Described translater comprises first receiver module, the database memory module, and retrieval module and first output module, wherein:
Described first receiver module receives from the programmed statements of programming input platform input;
The programmed statements of described database memory module storage preset database and the program statement of corresponding preset programmable chip rearrange database data one by one;
The programmed statements of the input that described retrieval module receives according to first receiver module is retrieved in the database data of database memory module storage; When retrieving the programmed statements of the database consistent with programmed statements, read the programmed statements corresponding programs statement with database, and the programmed statements that will import and corresponding programs statement send to first output module; During less than the programmed statements of the database consistent with programmed statements, then generate error message in retrieval, error message is sent to first output module;
Described first output module sends to visualisation platforms in the lump with the programmed statements of the program statement that retrieves and input and shows, and the program statement that retrieves is sent to array apparatus; The error message that will generate when perhaps will not retrieve programmed statements sends to visualisation platforms and shows.
3. programming Auxiliary Processing Unit according to claim 1 is characterized in that:
Described array apparatus comprises second receiver module, modular converter, and the toggle switch array, second output module, wherein:
Described second receiver module receives the program statement that described translater sends over;
Described modular converter is converted to binary numeral with described program statement, and with the executable statement of binary numeral as programmable chip, is input in the toggle switch array and carries out;
Described toggle switch array is simulated execution with the executable statement of described binary numeral, when execution makes mistakes, generate execution error information, send to second transport module, perhaps after simulation is finished, and will carries out net result and be sent to second output module;
Described second output module will be dialled the execution error result of row switch arrays simulation execution or carry out net result and output to the visualisation platforms demonstration.
4. according to any described programming Auxiliary Processing Unit of claim 1 to 3, it is characterized in that:
Described toggle switch array comprises the matrix array that a plurality of toggle switchs are formed, and the single-chip microcomputer that is connected to matrix array;
Wherein, each matrix element of described matrix array is a toggle switch;
Delegation's executable statement of the described binary numeral of one line display of described matrix array, wherein, the element in the delegation of each toggle switch is represented a binary value;
The columns of described matrix array represent to be input in the device all need the line number of perform statement.
5. programming Auxiliary Processing Unit according to claim 4 is characterized in that:
Described single-chip microcomputer is the 89C51 single-chip microcomputer, and described 89C51 single-chip microcomputer comprises P0, P1, P2, P3 interface, and described toggle switch array also comprises latch 74LS373, logical-arithmetic unit 74LS32, code translator 74LS154;
The value of each toggle switch enters logical-arithmetic unit 74LS32 from P0, P1, P2, P3 interface by latch 74LS373;
Described each latch 74LS373 of logical-arithmetic unit 74LS32 portfolio management;
Be sent to code translator 74LS154 then and decipher computing, obtain execution result.
6. programming Auxiliary Processing Unit according to claim 5 is characterized in that:
Described toggle switch array is made up of 256 * 256 toggle switchs; The toggle switch array that the P0 of described 89C51 single-chip microcomputer, P1, P2, P3 interface are connected to 256 * 256 toggle switchs compositions makes an explanation to the scale-of-two executable statement.
CN 201220598488 2012-11-13 2012-11-13 Programming auxiliary processing device based on dial switch array Expired - Fee Related CN203204601U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201220598488 CN203204601U (en) 2012-11-13 2012-11-13 Programming auxiliary processing device based on dial switch array

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201220598488 CN203204601U (en) 2012-11-13 2012-11-13 Programming auxiliary processing device based on dial switch array

Publications (1)

Publication Number Publication Date
CN203204601U true CN203204601U (en) 2013-09-18

Family

ID=49148693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201220598488 Expired - Fee Related CN203204601U (en) 2012-11-13 2012-11-13 Programming auxiliary processing device based on dial switch array

Country Status (1)

Country Link
CN (1) CN203204601U (en)

Similar Documents

Publication Publication Date Title
CN101551747B (en) Software system configuring tool of ARM series microprocessor
CN203520727U (en) Portable STM32 one-chip microcomputer teaching experiment instrument
CN202339647U (en) Simple train driving simulation training system
CN105513472A (en) Multicore single-chip microcomputer embedded teaching experiment platform
CN101989390A (en) Multi-core embedded type teaching and scientific research platform
CN103473961A (en) Watch for English word spelling practice
CN202650370U (en) Design and teaching platform for embedded system
CN103810013A (en) Programming auxiliary processing device and method based on dial switch array
CN203204601U (en) Programming auxiliary processing device based on dial switch array
CN112053615A (en) Embedded experiment teaching system and teaching method
CN202615639U (en) Touch type click-to-read machine
CN204242422U (en) A kind of Financial Management Teaching simulation sand table
CN202548562U (en) PLC (Programmable Logic Controller) experiment system
CN202600428U (en) Intelligent control cabinet in communication with high-voltage frequency converter
CN201156341Y (en) Multifunctional experiment development and teaching apparatus based on DSP chip
CN202711232U (en) Man-machine interactive system based on touch operation
CN206133556U (en) A computer central processing unit for teaching experiment
CN201751923U (en) Experimental apparatus based on embedded development platform
CN201838200U (en) Infrared touch electric teaching instrument
CN101566831A (en) Method and system for displaying interface input word based on touch control operation
CN104680901B (en) System and method for performing visualization demonstration on 8051 singlechip principle
CN204215164U (en) A kind of automated warehousing simulator based on ARM
CN204946415U (en) A kind of computer hardware Course integration experiment porch
Zhou Soft PLC Research And Development System Based On PC
CN202041807U (en) Multiway developer of singlechip

Legal Events

Date Code Title Description
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: 20130918

Termination date: 20181113

CF01 Termination of patent right due to non-payment of annual fee