JPS6035685B2 - Data import method - Google Patents

Data import method

Info

Publication number
JPS6035685B2
JPS6035685B2 JP17378A JP17378A JPS6035685B2 JP S6035685 B2 JPS6035685 B2 JP S6035685B2 JP 17378 A JP17378 A JP 17378A JP 17378 A JP17378 A JP 17378A JP S6035685 B2 JPS6035685 B2 JP S6035685B2
Authority
JP
Japan
Prior art keywords
data
time
computer
signal
import
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
Application number
JP17378A
Other languages
Japanese (ja)
Other versions
JPS5493931A (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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP17378A priority Critical patent/JPS6035685B2/en
Publication of JPS5493931A publication Critical patent/JPS5493931A/en
Publication of JPS6035685B2 publication Critical patent/JPS6035685B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明はデータ取込み方式に関する。[Detailed description of the invention] The present invention relates to data acquisition schemes.

アナログ信号をディジタル計算機に取り込むためには、
アナログ信号をサンプル・ホールドし、次いでAD変換
し、この結果をマルチプレクサを介して一度びバッファ
に記憶させ、計算機に取り込むようにしていた。
In order to import analog signals into a digital computer,
The analog signal was sampled and held, then AD converted, and the result was once stored in a buffer via a multiplexer, and then taken into the computer.

この際、バッファからの計算機への取り込みは、計算機
内での処理状況によって決定される。計算機では取り込
んだデータをもとに所定の処理タスクによってデータ処
理を行う。この処理タスクは、入力するデータの種類や
全体の処理状況によって短時間に終るものもあれば、長
い時間を要するものもある。従って、計算機では、取り
込んだデータをもとに処理タスクによる処理中に、新し
いデータが転送されてきた際には、そのデータの取り込
みは不可となり、データの欠損となる。従来は、こうし
た点をさげずにそのまま採用したり、又はこうした欠点
をさげるために、計算機でのデータの取り込み区間を大
きく設定するとか、長い時間を要する処理タスクに対し
ては、2分割するなどの手段を講じていた。然るに、前
者の方法では、全体としてデータ取り込み区間の増大を
まねき、後者では計算機内でのオーバーヘッド時間の増
大をまねし・てし・た。本発明はかかる従来の欠点を解
消してなるものであって、目的は、データ取込み方式を
提供するものである。本発明の要旨は、サンプリングデ
ータをディジタル信号にし、このディジタル信号にした
同一のデータを、所定の周期をもって2つの記憶装置に
交互に記憶させ、計算機がタスク処理終了後に発生する
取込み指令に基づき、サンプル確立情報のチェックを行
い、その結果に応じてデータを前記各記憶装置から交互
に計算機へ取込むようにしたものである。
At this time, the import from the buffer into the computer is determined by the processing status within the computer. The computer performs data processing using predetermined processing tasks based on the captured data. Some of these processing tasks may be completed in a short time, while others may take a long time, depending on the type of data to be input and the overall processing situation. Therefore, in a computer, when new data is transferred during processing by a processing task based on imported data, the data cannot be imported, resulting in data loss. Conventionally, in order to reduce these drawbacks, the data acquisition interval on the computer may be set larger, or processing tasks that require a long time may be divided into two, etc. measures were taken. However, the former method resulted in an increase in the data acquisition interval as a whole, and the latter method resulted in an increase in overhead time within the computer. The present invention overcomes these conventional drawbacks and aims to provide a data acquisition method. The gist of the present invention is to convert sampling data into digital signals, store the same data converted into digital signals alternately in two storage devices at a predetermined period, and based on an import command generated after a computer finishes processing a task, The sample establishment information is checked, and data is alternately fetched from each of the storage devices to the computer according to the result.

以下、図面により本発明を詳細に説明しよう。第1図に
本発明の実施例図第2図にタイムチャートを示す。
Hereinafter, the present invention will be explained in detail with reference to the drawings. FIG. 1 shows an embodiment of the present invention, and FIG. 2 shows a time chart.

図に於いて、分周回路DVは発振回路OSCの出力を分
周して各種の制御信号を発生させるものである。制御信
号は、サンプル・ホールド回路S/日のサンプル・ホー
ルド指令信号1、A/○変換器のA/○変換指令信号2
、論理回路LI用の制御信号3,4の4種類となってい
る。信号1,2,3,4は各機器での処理時間を考慮し
て信号1→2→3→4の順序で一定時間位相遅れを呈す
るように設定されている。論理回路LIは、制御信号3
,4を入力とし、マルチプレクサMPXの制御信号9、
2個のバッファメモリM1,M2の書込み、議出し指令
信号10a,10b、ゲート回路GIへの入力信号とな
るデータ確立情報11とを出力するようになっている。
In the figure, the frequency divider circuit DV divides the frequency of the output of the oscillation circuit OSC to generate various control signals. The control signals are a sample/hold command signal 1 for the sample/hold circuit S/day, and an A/○ conversion command signal 2 for the A/○ converter.
, control signals 3 and 4 for the logic circuit LI. Signals 1, 2, 3, and 4 are set to exhibit a fixed time phase delay in the order of signals 1→2→3→4 in consideration of the processing time in each device. Logic circuit LI receives control signal 3
, 4 as inputs, and the control signal 9 of the multiplexer MPX,
It outputs writing and output command signals 10a and 10b for the two buffer memories M1 and M2, and data establishment information 11 which becomes an input signal to the gate circuit GI.

マルチプレクサMPXへの制御信号9は、信号3が入力
する黍に反転してなる信号であって、例えば、ハイレベ
ル(以下、“1”)でメモリMIへデータの分配を、ロ
ーレベル(以下、“0”)でメモリM2へデータの分配
を行なうようにマルチプレクサMPXを制御している。
信号10aは、信号9の立上り時のみの信号3を選択し
てなるものであり、信号10bは信号9の立下り時のみ
の信号を選択してなるものである。信号10aはメモリ
MIの内容書き換え制御信号の役割を持ち、信号10b
はメモリM2の内容書き換え制御信号の役割を持つ。
The control signal 9 to the multiplexer MPX is an inverted version of the input signal 3. For example, a high level (hereinafter referred to as "1") controls the distribution of data to the memory MI, and a low level (hereinafter referred to as "1") controls the distribution of data to the memory MI. The multiplexer MPX is controlled so that the data is distributed to the memory M2 with the input signal "0").
Signal 10a is obtained by selecting signal 3 only when signal 9 rises, and signal 10b is obtained by selecting signal 9 only when signal 9 falls. The signal 10a has the role of a content rewriting control signal of the memory MI, and the signal 10b
has the role of a content rewriting control signal of the memory M2.

データ確立情報11は制御信号4が与えられる毎に信号
レベルが反転ぐ0”から“1”、“1”から“0”へ)
するものである。この信号はゲートGIを介して中央処
理装置CPUに与えられ、データ確立情報として寄与す
る。中央処理装置CPUはタスク処理が終了する毎に発
生し、データ取込みがなされる毎に終了するデータ取り
込み指令信号5と、取り込みデータの種別(即ち、サン
プリングデータかあるいはデータ確立情報)を明示する
アドレス信号6とを出力するようになっている。
The signal level of the data establishment information 11 is inverted every time the control signal 4 is applied (from 0 to 1, from 1 to 0)
It is something to do. This signal is given to the central processing unit CPU via gate GI and serves as data establishment information. The central processing unit CPU sends a data capture command signal 5 that is generated every time task processing is completed and terminates every time data is captured, and an address that specifies the type of captured data (i.e., sampling data or data establishment information). It is designed to output signal 6.

この世力5,6は論理回路L2に提供されている。論理
回路L2はマルチプレクサ制御信号9と信号5,6とを
取り込み、ゲートG2の制御信号8a、ゲートG3の制
御信号8b、ゲートGIの制御信号7を出力する。制御
信号8aはマルチプレクサMPXの出力がメモリM2を
選択している場合にメモリMIの内容をゲートG2を介
して中央処理装置CPUに送るべく制御してなるもので
ある。制御信号8bはマルチプレクサMPXの出力がメ
モリMIを選択している場合にメモリM2の内容を、ゲ
ートG3を介して中央処理装置CPUに送るべく制御し
てなるものである。尚、第2図で、n,n+1,n+2
,………は時刻を示し、Toはサンプル周期、Taはデ
ータ確立情報の周期であり、Ta=Toである。
These world powers 5 and 6 are provided to the logic circuit L2. Logic circuit L2 takes in multiplexer control signal 9 and signals 5 and 6, and outputs control signal 8a for gate G2, control signal 8b for gate G3, and control signal 7 for gate GI. The control signal 8a controls the contents of the memory MI to be sent to the central processing unit CPU via the gate G2 when the output of the multiplexer MPX selects the memory M2. The control signal 8b controls the contents of the memory M2 to be sent to the central processing unit CPU via the gate G3 when the output of the multiplexer MPX selects the memory MI. In addition, in Fig. 2, n, n+1, n+2
, . . . indicate time, To is the sampling period, Ta is the period of data establishment information, and Ta=To.

Tbはデータ確立情報の取込み区間を示し、Tn,Tn
+,,Tn+2は各時刻n,n+1,n+2で取り込ん
だデータをもとにタスク処理するタスク処理時間を示し
ている。丁は、丁=To−Tbの関係にある時間を示す
。以上の構成に於いて、サンプル・ホールドされた入力
データは、A/D変換器を介してディジタル信号に変換
され、マルチプレクサMPXに送られる。
Tb indicates the acquisition period of data establishment information, Tn, Tn
+, , Tn+2 indicate the task processing time for task processing based on the data captured at each time n, n+1, and n+2. D indicates time in the relationship D=To−Tb. In the above configuration, sampled and held input data is converted into a digital signal via the A/D converter and sent to the multiplexer MPX.

このマルチプレクサは、制御信号9によって制御されて
おり、制御信号9のレベルに従って、ディジタル信号に
変換された同一の入力データをメモリM1,M2に分配
する。そして、メモリM1,M2に格納された同一のデ
ータは、ゲートG2,G3を介して信号8a,8bの制
御のもとに、メモリM1,M2のいずれか一方から中央
処理装置CPUに送られる。中央処理装置CPUは、メ
モリM1,M2のデータの取込み時期は、データ確立情
報によって決定される。データ確立情報は同期Taで“
1”、“0”を繰返す。従って、前回のデータ確立情報
を取込んでおき、新しいデータ確立情報を取込んだ際に
、前回に取込んだデータ確立情報との間で排他的論理和
(EOR)をとり、その結果が“1”の時、データ確立
が行われたとして、中央処理装置CPUは、データの取
込みを行う。
This multiplexer is controlled by a control signal 9 and distributes the same input data converted into a digital signal to the memories M1 and M2 according to the level of the control signal 9. The same data stored in the memories M1 and M2 is sent from either one of the memories M1 and M2 to the central processing unit CPU via gates G2 and G3 under the control of signals 8a and 8b. The central processing unit CPU determines when to take in data from the memories M1 and M2 based on data establishment information. Data establishment information is synchronized with Ta.
1" and "0" are repeated. Therefore, the previous data establishment information is imported, and when new data establishment information is imported, exclusive OR ( EOR), and when the result is "1", it is assumed that data has been established, and the central processing unit CPU takes in the data.

この結果、任意の時刻nでのサンプリングデータは、時
刻n十2におけるサンプリングデータが得られる直前迄
はメモリMIあるいはM2のいずれかに確保されておる
ことになる。
As a result, the sampling data at any time n is secured in either memory MI or M2 until immediately before the sampling data at time n12 is obtained.

従って、例えば、任意の時刻nのサンプリングデータを
取込んでから次のサンプリングデータを取込むまでの区
間は、2(To−Tb)となる。即ち、7=To−Th
で定義される1サンプル周期内での最大タスク処理時間
よりも大きなタスク処理時間であっても、(汀o−Ta
)の時間を越えない処理時間であれば、データの欠損が
なくなることになる。なお、通常の状態ではサンプリン
グは一定周期間隔Toで連続的に行われ、かつこれらの
サンプリング間隔での処理が行なわれるタスクの内容は
異なり、いわゆるN回のサンプリング間隔をべ−スとす
る時分割処理が一段的で各タスク間の処理時間の大小関
係は不規則となる。このため、上述のデータ欠損が生じ
ない条件は、これらの事を考えると、下記の関係がより
一般的となる。すなわち連続するn個のタスクの総処理
時間に対し なる条件を満たせば、データ欠損が生じないことになる
Therefore, for example, the interval from capturing sampling data at an arbitrary time n to capturing the next sampling data is 2 (To-Tb). That is, 7=To−Th
Even if the task processing time is larger than the maximum task processing time within one sample period defined by
), there will be no data loss. Note that under normal conditions, sampling is performed continuously at constant periodic intervals To, and the contents of the tasks that are processed at these sampling intervals are different. Processing is done in one step, and the processing time between each task is irregular. Therefore, considering these things, the following relationship becomes more general as the condition under which the above-mentioned data loss does not occur. That is, if the following condition for the total processing time of n consecutive tasks is satisfied, data loss will not occur.

【1)式に示したように、本発明の実施例によれば従釆
は個々のタスクに対する最大処理時間に対し、Ti≦T
o−Tbなる制限がついていたものが、‘1ー式に示し
たように任意の連続するm個のタスクの総処理時間に対
する制約に変るため、各タスクの処理時間に長短がある
場合には、【11式に示した範囲内であればデータ欠損
が生ずる危険性がなくなった。
As shown in equation [1], according to the embodiment of the present invention, the subordinate function has a maximum processing time for each task, Ti≦T
The constraint o-Tb changes to a constraint on the total processing time of any consecutive m tasks as shown in equation '1-, so if the processing time of each task has lengths and shorts, , [If it is within the range shown in Equation 11, there is no risk of data loss.

更に、各タスクに対する最大許容処理時間の制限がかん
わされるため、コンピュータ側におけるソフトウェア構
成上の処理時間制御に対する柔軟性が増し、従釆では僅
かの処理時間のオーバ一がでていたためにタスクの二分
割処理を強いられていたのに対して、本実施例では、オ
ーバーヘッドの増大を招かなくてすみ、コンピュータの
利用効率の上昇をもたらす事などのふずし、的メリット
が得られる。以上の実施例では、それぞれ2つのバッフ
ァメモリを設けた事例を示したが、このメモリは、主メ
モリで兼用させてもよい。
Furthermore, since the maximum allowable processing time for each task is limited, flexibility in controlling the processing time based on the software configuration on the computer side is increased. In contrast to this, the present embodiment eliminates the need for an increase in overhead and has the advantage of increasing computer usage efficiency. In the above embodiments, two buffer memories are provided, but the main memory may also be used.

この際、各論理回路、ゲートは中央処理装置内の手段を
もって実現させることもできる。更に、分周回路自体も
中央処理装置内のものを使用してもよい。デ−タ取込み
時のタイミングをEORで、行ったが、フリツプ・フロ
ップによって実現できる。また、バッファメモリは2つ
以上であってもよく、その際には、更にデータ欠損を少
なくできる。また、アナログ入力は一般的には複数個で
あるが、1個の場合であってもよい。本発明によれば、
データ欠損を効果的になくすることができた。
At this time, each logic circuit and gate can also be realized by means within the central processing unit. Furthermore, the frequency dividing circuit itself may also be within the central processing unit. The data acquisition timing was performed using EOR, but it can be realized using flip-flops. Furthermore, there may be two or more buffer memories, in which case data loss can be further reduced. Further, although there is generally a plurality of analog inputs, there may be one analog input. According to the invention,
We were able to effectively eliminate data loss.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の実施例図、第2図は外部波形図である
。 CPU.・・.・・中央処理装置、M1,M2・・・・
・・バッファメモリ、DV・…・・分周回路。 ※;図 第2図
FIG. 1 is an embodiment diagram of the present invention, and FIG. 2 is an external waveform diagram. CPU.・・・.・Central processing unit, M1, M2...
・・Buffer memory, DV・・・Frequency dividing circuit. *;Figure 2

Claims (1)

【特許請求の範囲】[Claims] 1 サンプリングデータをデイジタル信号に変換し、該
変換して得られたデイジタル信号を計算機に取込むデー
タ取込み方式に於いて、上記サンプリングした同一のデ
ータを所定の周期をもつて2つの記憶装置に交互に且つ
別個に記憶させると共に、上記サンプリングデータに基
づく計算機内でのタスク処理終了後に該計算機自体で発
生するデータ取込み指令に基づき、該指令発生時のサン
プリングデータが確立したことを示す情報の状態検出を
行い、該検出結果に基づき上記各記憶装置に別個に記憶
させたデータの中から対応するデータを、上記データ取
込み指令が発生するごとに、上記各記憶装置から交互に
計算機へ取込むことを特徴とするデータ取込み方式。
1. In a data acquisition method that converts sampling data into a digital signal and imports the digital signal obtained by the conversion into a computer, the same sampled data is alternately stored in two storage devices at a predetermined period. Detection of the state of information indicating that the sampling data at the time of generation of the command has been established, based on a data import command generated in the computer itself after completion of task processing within the computer based on the sampling data. and, based on the detection results, alternately import corresponding data from among the data stored separately in each of the storage devices into the computer from each of the storage devices each time the data import command is generated. Characteristic data import method.
JP17378A 1978-01-06 1978-01-06 Data import method Expired JPS6035685B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17378A JPS6035685B2 (en) 1978-01-06 1978-01-06 Data import method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17378A JPS6035685B2 (en) 1978-01-06 1978-01-06 Data import method

Publications (2)

Publication Number Publication Date
JPS5493931A JPS5493931A (en) 1979-07-25
JPS6035685B2 true JPS6035685B2 (en) 1985-08-16

Family

ID=11466608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17378A Expired JPS6035685B2 (en) 1978-01-06 1978-01-06 Data import method

Country Status (1)

Country Link
JP (1) JPS6035685B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59186037A (en) * 1983-04-06 1984-10-22 Kubota Ltd Controlling system of analog/digital converter of electronic balance
JPS59186036A (en) * 1983-04-06 1984-10-22 Kubota Ltd Controlling system of analog/digital converter of electronic balance

Also Published As

Publication number Publication date
JPS5493931A (en) 1979-07-25

Similar Documents

Publication Publication Date Title
US6016283A (en) Multiple data rate synchronous DRAM for enhancing data transfer speed
JPS5892160A (en) Sampling frequency converter
JPH0548648B2 (en)
JPS6035685B2 (en) Data import method
US4035663A (en) Two phase clock synchronizing method and apparatus
JPH0140525B2 (en)
JPS5817598A (en) Storage system for continuous waveform
JP2891602B2 (en) Digital synthesizer
JPS61245775A (en) Horizontal address generating circuit of digital special effect device
JP2555882B2 (en) Signal processor
JPH0467826U (en)
JPH0568027B2 (en)
JPH03108904A (en) Digital waveform generation circuit
JPH0360526A (en) D/a converting circuit
JPH0242263B2 (en)
JPS61131026A (en) Ad-converted data recording device
JPH0434169B2 (en)
JPS61114326A (en) Random time-out output timer circuit
JPS59122127A (en) Semiconductor integrated circuit
JPS59226516A (en) Integrated circuit for high speed parallel comparison type a/d conversion
JPH0831832B2 (en) Asynchronous frame conversion circuit
JPH01269121A (en) Sampling signal generator
JPH04205220A (en) A/d conversion device
JPS63316501A (en) Frequency synthesizer
JPS63106815A (en) Digital pattern generator