CN103885841A - Real-time control system and method of portable master station - Google Patents
Real-time control system and method of portable master station Download PDFInfo
- Publication number
- CN103885841A CN103885841A CN201410152352.9A CN201410152352A CN103885841A CN 103885841 A CN103885841 A CN 103885841A CN 201410152352 A CN201410152352 A CN 201410152352A CN 103885841 A CN103885841 A CN 103885841A
- Authority
- CN
- China
- Prior art keywords
- task
- register
- time
- cpu
- status
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a real-time control system and method of a portable master station. A communication interface CPU sends task instructions to a task execution CPU through a task data register, task states are transmitted to a task trigger starting register through the task execution CPU, a task state double-port register and a task state reading register, task time is also transmitted to the task trigger starting register through the task execution CPU, a task time double-port register and a task time distribution register, the task trigger starting register triggers the task execution CPU for conducting task execution, the task execution CPU outputs a task execution result to the task data register, and then the task data register sends the result to the communication interface CPU for outputting. Parallel operation is carried out on the task execution state, time and trigger events according to parameters in a double-port cache, the relative stability of task distribution by the portable master station system is achieved, and the system and method have the advantages of being high in efficiency, good in performance and low in cost.
Description
Technical field
The invention belongs to electronic circuit field, relate in particular to a kind of real-time control system and method for portable main website.
Background technology
In the design of portable main station system, employing be that framework is controlled in multitask in real time, this framework mainly relies on that accurate clock time-sharing circuit completes.This just requires the relatively stable of task control in real time.
In actual field environment, because the electromagnetic interference (EMI) and the of high-frequency circuit own that are subject in work condition environment disturb, clock timing tends to produce deviation, causes timing unstable, cause the unstable of event task duty, when serious, can cause the collapse of whole portable main station system.
In this case, must in timing circuit, introduce parallel state processing mechanism, rely on stable twoport buffering, timing allocation task.
Summary of the invention
The object of the present invention is to provide a kind of real-time control system and method for portable main website, realize the relatively stable of portable main station system task distribution, there is efficiency high, the advantage that performance is good, cost is low.
A technical scheme that realizes above-mentioned purpose is: a kind of real-time control system of portable main website is provided, and it comprises:
Communication interface CPU is connected with task data register, sends the assignment instructions that this communication interface CPU receives;
Tasks carrying CPU is connected with task data register, reads described assignment instructions;
Task status twoport register is connected with described tasks carrying CPU, obtains the task status in assignment instructions;
Task time, twoport register was also connected with described tasks carrying CPU, obtained the task time in assignment instructions;
Task status reads register and is connected with described task status twoport register, reads task status;
Distribute task time register with described task time twoport register be connected, read task time;
Task triggering startup register reads register with described task status and is connected to obtain task status, is also connected to obtain task time with distributing register described task time;
Described tasks carrying CPU triggers startup register according to the described task being attached thereto and triggers to execute the task;
Described task data register obtains it task action result from described tasks carrying CPU, is sent to communication interface CPU output.
A technical scheme that realizes above-mentioned purpose is: a kind of real-time control method of portable main website is provided, and it comprises:
The assignment instructions of receiving is sent to task data register by communication interface CPU;
Tasks carrying CPU, from task data register read assignment instructions, is sent to task status twoport register by task status, also will be sent to twoport register task time task time;
Task status reads after the task status of register read task status twoport register, and output task status triggers and starts register to task;
Distribute task time after the task time of register read twoport task time register, output triggers and starts register to task task time;
Task triggers and starts register root according to task status and the task time of receiving, triggering tasks carrying CPU executes the task, task action result is exported to task data register by tasks carrying CPU, and then deliver to communication interface CPU by task data register and export.
Owing to having adopted real-time control system and the method for a kind of portable main website provided by the invention, state, time and the trigger event of tasks carrying is according to the Parameter Parallel operation in twoport buffer memory, realize the relatively stable of portable main station system task distribution, there is efficiency high, the advantage that performance is good, cost is low.
Accompanying drawing explanation
Fig. 1 is structural representation of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
Please refer to Fig. 1, the real-time control system that has provided a kind of portable main website in figure, comprising: task status reads register, task status twoport register, task time and distributes register, task time twoport register, task to trigger and start register, tasks carrying CPU, task data register and communication interface CPU.
Wherein, communication interface CPU, task data register, tasks carrying CPU connect successively; An output terminal via tasks carrying CPU connects twoport register task time successively, task status reads register; Connect successively twoport register task time, task time via another output terminal of tasks carrying CPU and distribute register; Task status reads register and distributes task time register to trigger startup register via task respectively and takes back tasks carrying CPU.
Based on said system, in the real-time control method of portable main website provided by the invention, the assignment instructions of receiving is sent to task data register by communication interface CPU;
Tasks carrying CPU is sent to task status task status twoport register from task data register read assignment instructions, also will be sent to twoport register task time task time;
Task status reads the task status of register read task status twoport register, distributes the task time of register read twoport task time register task time;
Task status reads register output task status and triggers and start register to task, distributes task time register output to trigger and start register to task task time;
Task triggers startup register triggering tasks carrying CPU and executes the task, and task action result is exported to task data register by tasks carrying CPU, and deliver to communication interface CPU by task data register and export.
Principle of work of the present invention is: apply the principle of work of parallel processing timing, a kind of real-time control system and method for portable main website is provided, realized the relatively stable of portable main station system task distribution, have efficiency high, the advantage that performance is good, cost is low.
Below embodiment has been described in detail the present invention by reference to the accompanying drawings, and those skilled in the art can make many variations example to the present invention according to the above description.Thereby some details in embodiment should not form limitation of the invention, the present invention by the scope defining using appended claims as protection scope of the present invention.
Claims (2)
1. a real-time control system for portable main website, is characterized in that, comprising:
Communication interface CPU is connected with task data register, sends the assignment instructions that this communication interface CPU receives;
Tasks carrying CPU is connected with task data register, reads described assignment instructions;
Task status twoport register is connected with described tasks carrying CPU, obtains the task status in assignment instructions;
Task time, twoport register was also connected with described tasks carrying CPU, obtained the task time in assignment instructions;
Task status reads register and is connected with described task status twoport register, reads task status;
Distribute task time register with described task time twoport register be connected, read task time;
Task triggering startup register reads register with described task status and is connected to obtain task status, is also connected to obtain task time with distributing register described task time;
Described tasks carrying CPU triggers startup register according to the described task being attached thereto and triggers to execute the task;
Described task data register obtains it task action result from described tasks carrying CPU, is sent to communication interface CPU output.
2. a real-time control method for portable main website, is characterized in that, comprising:
The assignment instructions of receiving is sent to task data register by communication interface CPU;
Tasks carrying CPU, from task data register read assignment instructions, is sent to task status twoport register by task status, also will be sent to twoport register task time task time;
Task status reads after the task status of register read task status twoport register, and output task status triggers and starts register to task;
Distribute task time after the task time of register read twoport task time register, output triggers and starts register to task task time;
Task triggers and starts register root according to task status and the task time of receiving, triggering tasks carrying CPU executes the task, task action result is exported to task data register by tasks carrying CPU, and then deliver to communication interface CPU by task data register and export.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410152352.9A CN103885841B (en) | 2014-04-16 | 2014-04-16 | A kind of real-time control system and method for portable main website |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410152352.9A CN103885841B (en) | 2014-04-16 | 2014-04-16 | A kind of real-time control system and method for portable main website |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103885841A true CN103885841A (en) | 2014-06-25 |
CN103885841B CN103885841B (en) | 2017-10-10 |
Family
ID=50954749
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410152352.9A Active CN103885841B (en) | 2014-04-16 | 2014-04-16 | A kind of real-time control system and method for portable main website |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103885841B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5519883A (en) * | 1993-02-18 | 1996-05-21 | Unisys Corporation | Interbus interface module |
CN101097559A (en) * | 2006-06-28 | 2008-01-02 | 中国科学院微电子研究所 | System and method for realizing interconnect between main processor and coprocessor interface |
CN101334766A (en) * | 2008-06-30 | 2008-12-31 | 东软飞利浦医疗设备系统有限责任公司 | Paralleling microprocessor and its realization method |
CN102323786A (en) * | 2011-07-01 | 2012-01-18 | 广西工学院 | Timer device comprising advanced reduced instruction set computer machine (ARM) and field programmable gate array (FPGA) and implementation method thereof |
CN103095538A (en) * | 2012-12-28 | 2013-05-08 | 武汉华中数控股份有限公司 | Multi-class industrial Ethernet bus integrated master station |
-
2014
- 2014-04-16 CN CN201410152352.9A patent/CN103885841B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5519883A (en) * | 1993-02-18 | 1996-05-21 | Unisys Corporation | Interbus interface module |
CN101097559A (en) * | 2006-06-28 | 2008-01-02 | 中国科学院微电子研究所 | System and method for realizing interconnect between main processor and coprocessor interface |
CN101334766A (en) * | 2008-06-30 | 2008-12-31 | 东软飞利浦医疗设备系统有限责任公司 | Paralleling microprocessor and its realization method |
CN102323786A (en) * | 2011-07-01 | 2012-01-18 | 广西工学院 | Timer device comprising advanced reduced instruction set computer machine (ARM) and field programmable gate array (FPGA) and implementation method thereof |
CN103095538A (en) * | 2012-12-28 | 2013-05-08 | 武汉华中数控股份有限公司 | Multi-class industrial Ethernet bus integrated master station |
Also Published As
Publication number | Publication date |
---|---|
CN103885841B (en) | 2017-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200050551A1 (en) | Data Access Method and Apparatus | |
CN102184741A (en) | Method for programming serial periphery interface (SPI) FLASH | |
CN103714027A (en) | Data transmission method and device for direct memory access controller | |
EP2778935B1 (en) | Efficient Input/Output (I/O) operations | |
CN101763324B (en) | Method for realizing equipment simulating and device thereof | |
WO2017091963A1 (en) | Information processing method and apparatus | |
CN104850516A (en) | DDR frequency conversion design method and device | |
US10581997B2 (en) | Techniques for storing or accessing a key-value item | |
WO2018063704A1 (en) | Push telemetry data accumulation | |
CN103885841A (en) | Real-time control system and method of portable master station | |
CN203386208U (en) | Master control board circuit based on DSP chip | |
CN107918443B (en) | Signal generation method and device | |
WO2022001317A1 (en) | Chip simulation method, apparatus and system, and device and storage medium | |
US11237990B2 (en) | Fixed ethernet frame descriptor | |
CN110856195B (en) | Configuration system and method of radio frequency assembly | |
CN103488527A (en) | PHP (hypertext preprocessor) API (application programing interface) calling method, related equipment and system | |
JP2013015985A (en) | Soc device capable of execution trace dumping of all processor cores of multi-core processor | |
CN204178365U (en) | Transformational structure between LBE bus and isa bus | |
CN105354103A (en) | Method for managing watchdog in user mode | |
CN203708403U (en) | Watchdog circuit suitable for Android set top box | |
CN112182873A (en) | Method for accelerating aircraft engine model based on hardware system | |
CN112115096A (en) | Data transmission control method based on embedded microprocessor | |
CN103885823A (en) | System and method for distributing tasks of portable master station | |
CN104298642B (en) | Real-time communication interface circuit and its method for real-time communication between different clock domain module | |
CN111045476B (en) | Time sequence waveform control method, system, equipment and medium under multi-core CPU system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |