CN103885841B - A kind of real-time control system and method for portable main website - Google Patents

A kind of real-time control system and method for portable main website Download PDF

Info

Publication number
CN103885841B
CN103885841B CN201410152352.9A CN201410152352A CN103885841B CN 103885841 B CN103885841 B CN 103885841B CN 201410152352 A CN201410152352 A CN 201410152352A CN 103885841 B CN103885841 B CN 103885841B
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.)
Active
Application number
CN201410152352.9A
Other languages
Chinese (zh)
Other versions
CN103885841A (en
Inventor
高峰
朱旻捷
陈云峰
唐丹红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Shanghai Electric Power Co Ltd
Original Assignee
State Grid Shanghai Electric Power 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 State Grid Shanghai Electric Power Co Ltd filed Critical State Grid Shanghai Electric Power Co Ltd
Priority to CN201410152352.9A priority Critical patent/CN103885841B/en
Publication of CN103885841A publication Critical patent/CN103885841A/en
Application granted granted Critical
Publication of CN103885841B publication Critical patent/CN103885841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of real-time control system and method for portable main website, communication interface CPU is sent assignment instructions to tasks carrying CPU by task data register;Task status reads register transfer to task triggering by tasks carrying CPU, task status twoport register, task status and starts register, and task time is distributed register and also transmitted to task triggering by tasks carrying CPU, task time twoport register, task time starts register;Register triggering tasks carrying CPU is started by task triggering and performs task, tasks carrying CPU, which exports task action result, gives task data register, and then delivers to communication interface CPU outputs by task data register.Parameter parallel work-flow during the state of tasks carrying, time and trigger event are cached according to twoport in the present invention, realizes stablizing relatively for portable main station system task distribution, with efficiency high, the advantage that performance is good, cost is low.

Description

A kind of real-time control system and method for portable main website
Technical field
The invention belongs to electronic circuit field, more particularly to a kind of real-time control system and method for portable main website.
Background technology
In the design of portable main station system, use multitask and control framework in real time, this framework is relied primarily on Accurate clock time-sharing circuit is completed.This requires task is controlled in real time relatively stable.
In actual field environment, due to itself being disturbed by the electromagnetic interference in work condition environment and high-frequency circuit, when Clock timing often produces deviation, causes timing unstable, causes the unstable of event task work status, can cause when serious The collapse of whole portable main station system.
In such a case it is necessary to introduce parallel state treatment mechanism in timing circuit, buffered by stable twoport, Timing allocation task.
The content of the invention
It is an object of the invention to provide a kind of real-time control system and method for portable main website, to realize portable master What system task of standing was distributed stablizes relatively, with efficiency high, the advantage that performance is good, cost is low.
Realizing a technical scheme of above-mentioned purpose is:A kind of real-time control system of portable main website is provided, it includes:
Communication interface CPU is connected with task data register, to send the assignment instructions that communication interface CPU is received;
Tasks carrying CPU is connected with task data register, to read the assignment instructions;
Task status twoport register is connected with the tasks carrying CPU, to obtain the task status in assignment instructions;
Task time twoport register is also connected with the tasks carrying CPU, to obtain the task time in assignment instructions;
Task status reads register and is connected with the task status twoport register, to read task status;
Task time distribution register is connected with the task time twoport register, to read task time;
Task triggering starts register and the task status reading register and is connected to obtain task status, also with it is described Task time distribution register connects to obtain task time;
The tasks carrying CPU starts register triggering to perform task according to the task triggering being attached thereto;
The task action result that the task data register obtains it from the tasks carrying CPU, sends to communication Interface CPU is exported.
Realizing a technical scheme of above-mentioned purpose is:A kind of real-time control method of portable main website is provided, it includes:
The assignment instructions received are sent to task data register by communication interface CPU;
Tasks carrying CPU is read after assignment instructions from task data register, and it is double that task status is sent into task status Mouth register, will also be sent to task time twoport register task time;
Task status is read after the task status that register reads task status twoport register, and output task status is taken office Business triggering starts register;
Task time distribution register was read after the task time of task time twoport register, and output task time takes office Business triggering starts register;
Task triggering starts register root according to the task status and task time received, is performed to trigger tasks carrying CPU Task, tasks carrying CPU, which exports task action result, gives task data register, and then is delivered to by task data register logical Communication interface CPU is exported.
The real-time control system and method for a kind of portable main website provided as a result of the present invention, the shape of tasks carrying State, time and trigger event cached according to twoport in parameter parallel work-flow, realize the distribution of portable main station system task Stablize relatively, with efficiency high, the advantage that performance is good, cost is low.
Brief description of the drawings
Fig. 1 is the structural representation of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.
The real-time control system that a kind of portable main website is given in Fig. 1, figure is refer to, including:Task status reads and posted Storage, task status twoport register, task time distribution register, task time twoport register, task triggering startup are posted Storage, tasks carrying CPU, task data register and communication interface CPU.
Wherein, communication interface CPU, task data register, tasks carrying CPU are sequentially connected;Via tasks carrying CPU's One output end is sequentially connected task time twoport register, task status and reads register;Via the another of tasks carrying CPU Individual output end is sequentially connected task time twoport register, task time distribution register;Task status reads register and appointed Business time distribution register starts register via task triggering respectively and takes back tasks carrying CPU.
In the real-time control method of the portable main website provided based on said system, the present invention, communication interface CPU will be received Assignment instructions be sent to task data register;
Task status is sent to task status twoport by tasks carrying CPU after task data register reading assignment instructions Register, will also be sent to task time twoport register task time;
Task status reads the task status that register reads task status twoport register, task time distribution register Read the task time of task time twoport register;
Task status reads register and exports task status to task triggering startup register, task time distribution register Task time is exported to task triggering startup register;
Task triggering starts register triggering tasks carrying CPU and performs task, and tasks carrying CPU is defeated by task action result Go out to give task data register, and communication interface CPU outputs are delivered to by task data register.
The present invention operation principle be:Using the operation principle of parallel processing timing, there is provided a kind of reality of portable main website When control system and method, realize stablizing relatively for portable main station system task distribution, with efficiency high, performance is good, into This low advantage.
The present invention is described in detail above in association with accompanying drawing embodiment, those skilled in the art can be according to upper State it is bright the present invention is made many variations example.Thus, some of embodiment details should not constitute limitation of the invention, this Invention regard the scope defined using appended claims as protection scope of the present invention.

Claims (2)

1. a kind of real-time control system of portable main website, it is characterised in that including:
Communication interface CPU is connected with task data register, to send the assignment instructions that communication interface CPU is received;
Tasks carrying CPU is connected with task data register, to read the assignment instructions;
Task status twoport register is connected with the tasks carrying CPU, to obtain the task status in assignment instructions;
Task time twoport register is also connected with the tasks carrying CPU, to obtain the task time in assignment instructions;
Task status reads register and is connected with the task status twoport register, to read task status;
Task time distribution register is connected with the task time twoport register, to read task time;
Task triggering starts register and is connected to obtain task status with task status reading register, also with the task Time distribution register connects to obtain task time;
The tasks carrying CPU starts register triggering to perform task according to the task triggering being attached thereto;
The task action result that the task data register obtains it from the tasks carrying CPU, sends to communication interface CPU is exported.
2. a kind of real-time control method of portable main website, it is characterised in that including:
The assignment instructions received are sent to task data register by communication interface CPU;
Tasks carrying CPU is read after assignment instructions from task data register, and task status is sent into task status twoport and posted Storage, will also be sent to task time twoport register task time;
Task status is read after the task status that register reads task status twoport register, and output task status to task is touched Hair starts register;
Task time distribution register was read after the task time of task time twoport register, and output task time to task touches Hair starts register;
Task triggering starts register root according to the task status and task time received, and task is performed to trigger tasks carrying CPU, Tasks carrying CPU, which exports task action result, gives task data register, and then delivers to communication by task data register and connect Mouth CPU outputs.
CN201410152352.9A 2014-04-16 2014-04-16 A kind of real-time control system and method for portable main website Active CN103885841B (en)

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 CN103885841A (en) 2014-06-25
CN103885841B true 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
CN103885841A (en) 2014-06-25

Similar Documents

Publication Publication Date Title
CN106164867B (en) Incremental parallel processing of data
CN107426322A (en) A kind of PUSH message target matching method, server, terminal and computer-readable recording medium
CN102681959A (en) Method for interacting inner-band information and out-of-band information of server
CN110460653A (en) The method and device of automatic driving vehicle data transmission
CN107798039B (en) Data synchronization method and device
CN109787918A (en) Data accelerated method, device, system and a kind of accelerator card based on network transmission
CN102375918A (en) Interaction virtual role system between facilities
CN104102508A (en) FlexRay bus-based multimachine program online upgrade method
CN102932791A (en) Method for collaboratively processing information through WIFI wireless network between smart phone and computer
CN111178937B (en) User rewarding method and device for application, electronic equipment and readable storage medium
CN104850247A (en) Electronic pen capable of outputting written content to network server in real time through the Internet
CN105607940A (en) Method for transmitting information to UEFI BIOS from BDK in ARM platform
WO2015188607A1 (en) Method and apparatus for implementing mutual conversion between sign language information and text information
US20160379033A1 (en) Interaction method and apparatus
CN103885841B (en) A kind of real-time control system and method for portable main website
CN111651289B (en) Internet of things data docking method, system and related equipment
CN112929183A (en) Intelligent network card, message transmission method, device, equipment and storage medium
CN104102530B (en) A kind of method and system for improving electronic product replication rate
CN111767433A (en) Data processing method, device, storage medium and terminal
CN107423291A (en) A kind of data translating method and client device
CN111061743A (en) Data processing method and device and electronic equipment
CN108415655B (en) Touch data processing method and device, all-in-one machine and storage medium
CN110175139A (en) A kind of the Universal debugging method and USB device of USB device
CN109582338A (en) BIOS option amending method, device, equipment and storage medium
EP2793124A1 (en) Device and method for generating application model based on layered structure

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