CN116954122A - Programming device and method based on serial identification code instruction - Google Patents
Programming device and method based on serial identification code instruction Download PDFInfo
- Publication number
- CN116954122A CN116954122A CN202310931687.XA CN202310931687A CN116954122A CN 116954122 A CN116954122 A CN 116954122A CN 202310931687 A CN202310931687 A CN 202310931687A CN 116954122 A CN116954122 A CN 116954122A
- Authority
- CN
- China
- Prior art keywords
- serial
- program instruction
- module
- instruction sequence
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004377 microelectronic Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0426—Programming the control sequence
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/23—Pc programming
- G05B2219/23146—Programmable, reconfigurable via microprocessor or coding switches
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a programming device and a programming method based on serial identification code instructions, which belong to the technical field of programming devices and comprise a programmer; the programmer comprises a serial code generating circuit, a program instruction sequence generating module, a serial instruction reading module, an instruction executing module and a singlechip; the serial code generating circuit generates different serial identification codes, the program instruction sequence generating module correspondingly generates different program instruction sequences, the program instruction sequence combining module generates a program instruction sequence group for actually completing tasks, the serial instruction reading module reads program instruction information, and the singlechip controls the instruction executing module to execute corresponding operations; the method is simple and easy to learn, can get rid of the complexity of programming of an upper computer, is beneficial to avoiding the problem of excessive use of an electronic screen caused by long-time programming, and can help to effectively program and learn; is especially suitable for the learning and programming process of the young children.
Description
Technical Field
The invention relates to the technical field of programming devices, in particular to a programming device and method based on serial identification code instructions.
Background
The traditional programming approach has a high threshold and generally requires knowledge of certain programming bases, microelectronic circuit bases, motion control bases, machine manufacturing bases, and automation controls. And because the upper computer programming is more complicated, the problem that the electronic screen is excessively used due to long-time programming exists, and the programming study of the low-age children is not facilitated.
Based on the above, the present invention designs a programming device and method based on serial identification code instruction to solve the above-mentioned problems.
Disclosure of Invention
In view of the above drawbacks of the prior art, the present invention provides a serial identification code instruction-based programming device and method.
In order to achieve the above purpose, the invention is realized by the following technical scheme:
a programming device based on serial identification code instruction comprises a programmer;
the programmer comprises a serial code generating circuit, a program instruction sequence generating module, a serial instruction reading module, an instruction executing module and a singlechip;
the serial code generating circuit is provided with a plurality of groups for generating different serial identification codes respectively;
the program instruction sequence generating module is used for correspondingly generating different program instruction sequences according to the serial identification codes generated by the serial code generating circuit and transmitting the different program instruction sequences to the singlechip;
the program instruction sequence combination module is used for a programmer to select one or more program instruction sequences in the program instruction sequence generation module to be combined to generate a program instruction sequence group for actually completing tasks;
the serial instruction reading module is used for reading the program instruction sequence group of the program instruction sequence combination module and transmitting the program instruction sequence group to the singlechip;
the singlechip is used for receiving the program instruction information read by the serial instruction reading module and executing corresponding operation according to the read control instruction information;
and the execution module is used for executing corresponding work according to the control of the singlechip.
Further, the serial code generation circuit adopts a model 74HC 165.
Furthermore, the OUT pin of the former serial code generating circuit is connected with the IN pin of the latter serial code generating circuit, and the last serial code generating circuit is connected with the singlechip.
Further, the serial code generating circuit is connected with the program instruction sequence generating module; the program instruction sequence generating module, the program instruction sequence combining module and the serial instruction reading module are connected with the singlechip.
Further, the execution module is a sensor or an actuator.
Further, the sensor is a light sensor or/and a sound sensor.
Further, the actuator is a direct current motor, a steering engine, an LED or/and a buzzer.
A programming method of a programming device based on serial identification code instructions, comprising the steps of:
1. generating different serial identification codes by a serial code generating circuit;
2. generating different program instruction sequences correspondingly according to serial identification codes generated by a serial code generating circuit through a program instruction sequence generating module, and transmitting the different program instruction sequences to a singlechip;
3. selecting one or more program instruction sequences in the program instruction sequence generating module through the program instruction sequence combining module to combine, and generating a program instruction sequence group for actually completing tasks;
4. reading the program instruction sequence group through a serial instruction reading module and transmitting the program instruction sequence group to the singlechip;
5. receiving the program instruction information read by the serial instruction reading module through the singlechip, and executing corresponding operation by the execution module according to the read control instruction information;
6. and executing corresponding work by the execution module according to the control of the singlechip.
Advantageous effects
The invention can generate different serial identification codes through the serial code generating circuit, the program instruction sequence generating module correspondingly generates different program instruction sequences, the program instruction sequence combining module generates a program instruction sequence group for actually completing tasks, the serial instruction reading module reads program instruction information, and the singlechip controls the instruction executing module to execute corresponding operations;
the method is simple and easy to learn, can get rid of the complexity of programming of an upper computer, is beneficial to avoiding the problem of excessive use of an electronic screen caused by long-time programming, and can help to effectively program and learn; is especially suitable for the learning and programming process of the young children.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is evident that the drawings in the following description are only some embodiments of the present invention and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
FIG. 1 is a schematic diagram of a programming device based on serial identification code instructions according to the present invention;
FIG. 2 is a circuit diagram of a serial code generation circuit in a serial identification code instruction based programming device according to the present invention;
description of the embodiments
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more clear, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention is further described below with reference to examples.
Examples
Referring to fig. 1-2 of the drawings, a programming device based on serial identification code instruction includes a programmer;
the programmer comprises a serial code generating circuit, a program instruction sequence generating module, a serial instruction reading module, an instruction executing module and a singlechip;
the serial code generating circuit is provided with a plurality of groups for generating different serial identification codes respectively;
the program instruction sequence generating module is used for correspondingly generating different program instruction sequences according to the serial identification codes generated by the serial code generating circuit and transmitting the different program instruction sequences to the singlechip;
the program instruction sequence combination module is used for a programmer to select one or more program instruction sequences in the program instruction sequence generation module to be combined to generate a program instruction sequence group for actually completing tasks;
the serial instruction reading module is used for reading the program instruction sequence group of the program instruction sequence combination module and transmitting the program instruction sequence group to the singlechip;
the singlechip is used for receiving the program instruction information read by the serial instruction reading module and executing corresponding operation according to the read control instruction information;
the execution module is used for executing corresponding work according to the control of the singlechip;
preferably, the serial code generating circuit adopts a model 74HC165 (eight-bit parallel in serial out shift register);
preferably, the OUT pin of the former serial code generating circuit is connected with the IN pin of the latter serial code generating circuit, and the last serial code generating circuit is connected with the singlechip;
preferably, the serial code generating circuit is connected with the program instruction sequence generating module; the program instruction sequence generating module, the program instruction sequence combining module and the serial instruction reading module are connected with the singlechip;
preferably, the execution module is a sensor or an actuator;
the sensor is a light sensor, a sound sensor and the like;
the actuator is a direct current motor, a steering engine, an LED, a buzzer and the like;
the singlechip can control and read the data of sensors such as a light sensor and a sound sensor, and control the opening of actuators such as a direct current motor, a steering engine, an LED and a buzzer;
the invention can generate different serial identification codes through the serial code generating circuit, the program instruction sequence generating module correspondingly generates different program instruction sequences, the program instruction sequence combining module generates a program instruction sequence group for actually completing tasks, the serial instruction reading module reads program instruction information, and the singlechip controls the instruction executing module to execute corresponding operations;
the method is simple and easy to learn, can get rid of the complexity of programming of an upper computer, is beneficial to avoiding the problem of excessive use of an electronic screen caused by long-time programming, and can help to effectively program and learn; is especially suitable for the learning and programming process of the young children.
In some embodiments, a programming method of a programming device based on serial identification code instructions includes the steps of:
1. generating different serial identification codes by a serial code generating circuit; preferably, the serial code generating circuit adopts a model 74HC165 (eight-bit parallel in serial out shift register); preferably, the OUT pin of the former serial code generating circuit is connected with the IN pin of the latter serial code generating circuit, and the last serial code generating circuit is connected with the singlechip;
2. generating different program instruction sequences correspondingly according to serial identification codes generated by a serial code generating circuit through a program instruction sequence generating module, and transmitting the different program instruction sequences to a singlechip;
3. selecting one or more program instruction sequences in the program instruction sequence generating module through the program instruction sequence combining module to combine, and generating a program instruction sequence group for actually completing tasks;
4. reading the program instruction sequence group through a serial instruction reading module and transmitting the program instruction sequence group to the singlechip;
5. receiving the program instruction information read by the serial instruction reading module through the singlechip, and executing corresponding operation by the execution module according to the read control instruction information;
6. executing corresponding work by an execution module according to the control of the singlechip; such as reading data and/or performing an on-duty;
preferably, the execution module is a sensor or an actuator; the sensor is a light sensor, a sound sensor and the like; the actuator is a direct current motor, a steering engine, an LED, a buzzer and the like; the singlechip can control and read the data of sensors such as a light sensor and a sound sensor, and control the opening of actuators such as a direct current motor, a steering engine, an LED and a buzzer;
the invention can generate different serial identification codes through the serial code generating circuit, the program instruction sequence generating module correspondingly generates different program instruction sequences, the program instruction sequence combining module generates a program instruction sequence group for actually completing tasks, the serial instruction reading module reads program instruction information, and the singlechip controls the instruction executing module to execute corresponding operations;
the method is simple and easy to learn, can get rid of the complexity of programming of an upper computer, is beneficial to avoiding the problem of excessive use of an electronic screen caused by long-time programming, and can help to effectively program and learn; is especially suitable for the learning and programming process of the young children.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (8)
1. The programming device based on serial identification code instruction comprises a programmer, and is characterized in that:
the programmer comprises a serial code generating circuit, a program instruction sequence generating module, a serial instruction reading module, an instruction executing module and a singlechip;
the serial code generating circuit is provided with a plurality of groups for generating different serial identification codes respectively;
the program instruction sequence generating module is used for correspondingly generating different program instruction sequences according to the serial identification codes generated by the serial code generating circuit and transmitting the different program instruction sequences to the singlechip;
the program instruction sequence combination module is used for a programmer to select one or more program instruction sequences in the program instruction sequence generation module to be combined to generate a program instruction sequence group for actually completing tasks;
the serial instruction reading module is used for reading the program instruction sequence group of the program instruction sequence combination module and transmitting the program instruction sequence group to the singlechip;
the singlechip is used for receiving the program instruction information read by the serial instruction reading module and executing corresponding operation according to the read control instruction information;
and the execution module is used for executing corresponding work according to the control of the singlechip.
2. The serial identification code instruction based programming device of claim 1, wherein the serial code generation circuit is a model 74HC 165.
3. The serial identification code instruction based programming device of claim 1, wherein the OUT pin of the previous serial code generation circuit is connected to the IN pin of the next serial code generation circuit, and the last serial code generation circuit is connected to the single chip microcomputer.
4. The serial identification code instruction based programming device of claim 1, wherein the serial code generation circuit is coupled to the program instruction sequence generation module; the program instruction sequence generating module, the program instruction sequence combining module and the serial instruction reading module are connected with the singlechip.
5. The serial identification code instruction based programming device of claim 1, wherein the execution module is a sensor or an actuator.
6. The serial-id-instruction-based programming device of claim 5, wherein the sensor is a light sensor or/and a sound sensor.
7. The programming device based on serial identification code instruction according to claim 5, wherein the actuator is a direct current motor, a steering engine, an LED or/and a buzzer.
8. A programming method of a serial identification code instruction-based programming device according to any one of claims 1 to 7, comprising the steps of:
1. generating different serial identification codes by a serial code generating circuit;
2. generating different program instruction sequences correspondingly according to serial identification codes generated by a serial code generating circuit through a program instruction sequence generating module, and transmitting the different program instruction sequences to a singlechip;
3. selecting one or more program instruction sequences in the program instruction sequence generating module through the program instruction sequence combining module to combine, and generating a program instruction sequence group for actually completing tasks;
4. reading the program instruction sequence group through a serial instruction reading module and transmitting the program instruction sequence group to the singlechip;
5. receiving the program instruction information read by the serial instruction reading module through the singlechip, and executing corresponding operation by the execution module according to the read control instruction information;
6. and executing corresponding work by the execution module according to the control of the singlechip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310931687.XA CN116954122A (en) | 2023-07-27 | 2023-07-27 | Programming device and method based on serial identification code instruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310931687.XA CN116954122A (en) | 2023-07-27 | 2023-07-27 | Programming device and method based on serial identification code instruction |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116954122A true CN116954122A (en) | 2023-10-27 |
Family
ID=88450937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310931687.XA Pending CN116954122A (en) | 2023-07-27 | 2023-07-27 | Programming device and method based on serial identification code instruction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116954122A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319457A (en) * | 2018-03-27 | 2018-07-24 | 淏祺教育科技(北京)有限公司 | Building block system hardware programming external member |
CN110796939A (en) * | 2019-12-17 | 2020-02-14 | 上海立爱教育科技有限公司 | Programming learning development board with unified extended interface |
CN111346390A (en) * | 2018-12-21 | 2020-06-30 | 上海葡萄纬度科技有限公司 | Programming building block |
CN211044600U (en) * | 2019-12-16 | 2020-07-17 | 广州思谋信息科技有限公司 | Programming education system for pupils |
CN112785903A (en) * | 2020-06-14 | 2021-05-11 | 杭州优必学科技有限公司 | Programming device and method for controlling based on color recognition |
CN112775977A (en) * | 2020-06-12 | 2021-05-11 | 杭州优必学科技有限公司 | Programming device and method for controlling based on resistance |
CN112801250A (en) * | 2020-06-12 | 2021-05-14 | 杭州优必学科技有限公司 | Programming device and method for controlling by adopting radio frequency |
CN113721899A (en) * | 2021-09-02 | 2021-11-30 | 中国人民解放军国防科技大学 | GPDSP-oriented lightweight efficient assembly code programming method and system |
-
2023
- 2023-07-27 CN CN202310931687.XA patent/CN116954122A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108319457A (en) * | 2018-03-27 | 2018-07-24 | 淏祺教育科技(北京)有限公司 | Building block system hardware programming external member |
CN111346390A (en) * | 2018-12-21 | 2020-06-30 | 上海葡萄纬度科技有限公司 | Programming building block |
CN211044600U (en) * | 2019-12-16 | 2020-07-17 | 广州思谋信息科技有限公司 | Programming education system for pupils |
CN110796939A (en) * | 2019-12-17 | 2020-02-14 | 上海立爱教育科技有限公司 | Programming learning development board with unified extended interface |
CN112775977A (en) * | 2020-06-12 | 2021-05-11 | 杭州优必学科技有限公司 | Programming device and method for controlling based on resistance |
CN112801250A (en) * | 2020-06-12 | 2021-05-14 | 杭州优必学科技有限公司 | Programming device and method for controlling by adopting radio frequency |
CN112785903A (en) * | 2020-06-14 | 2021-05-11 | 杭州优必学科技有限公司 | Programming device and method for controlling based on color recognition |
CN113721899A (en) * | 2021-09-02 | 2021-11-30 | 中国人民解放军国防科技大学 | GPDSP-oriented lightweight efficient assembly code programming method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5555179A (en) | Control method and control apparatus of factory automation system | |
KR100426035B1 (en) | Training system for microrobot control program | |
CN106708535B (en) | User-defined editing system and method applied to physical programming module | |
CN112775977B (en) | Programming device and method for controlling based on resistance | |
CN111240242A (en) | Materialized programming system and method | |
CN103456203A (en) | Portable physical programming method and system | |
CN106737769A (en) | The framework of industrial robot motion controller | |
CN116954122A (en) | Programming device and method based on serial identification code instruction | |
CN105446166B (en) | Machine tool of numerical control system environmental simulation instrument | |
CN112801250A (en) | Programming device and method for controlling by adopting radio frequency | |
CN112785903B (en) | Programming device and method for controlling based on color recognition | |
CN106541413A (en) | Based on Arduino platforms and the underwater robot control system of machine vision module | |
CN101089763B (en) | Miniature servo control system based on field base and method | |
CN1143206C (en) | Programmable sound synthesizer apparatus | |
CN116909531A (en) | Programming device and method based on frequency instruction | |
CN104238438A (en) | PLC universal platform and design method thereof | |
CN102645899A (en) | Window type action stream editing system of optical-electromechanical integrated equipment | |
US9927787B2 (en) | Method and system for managing distributed computing in automation systems | |
CN105117227A (en) | Method and device for automatically generating code | |
CN110026983B (en) | Robot programming system | |
JP5157129B2 (en) | Information processing apparatus and circuit design method therefor | |
CN209103305U (en) | A kind of sensor-type identification device of RFID based on programming module in kind | |
CN116964593A (en) | Imitation learning in a manufacturing environment | |
CN107450893B (en) | Cross-platform digital controller programming method | |
TWI801836B (en) | Method for transforming and optimizing codes between different programing languages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |