JPH02101820A - Data conversion effectiveness deciding circuit - Google Patents

Data conversion effectiveness deciding circuit

Info

Publication number
JPH02101820A
JPH02101820A JP25434788A JP25434788A JPH02101820A JP H02101820 A JPH02101820 A JP H02101820A JP 25434788 A JP25434788 A JP 25434788A JP 25434788 A JP25434788 A JP 25434788A JP H02101820 A JPH02101820 A JP H02101820A
Authority
JP
Japan
Prior art keywords
data
signal
conversion
output
register
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
Application number
JP25434788A
Other languages
Japanese (ja)
Inventor
Toshihiko Kondo
俊彦 近藤
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP25434788A priority Critical patent/JPH02101820A/en
Publication of JPH02101820A publication Critical patent/JPH02101820A/en
Pending legal-status Critical Current

Links

Landscapes

  • Analogue/Digital Conversion (AREA)

Abstract

PURPOSE:To output a data effective signal and to attain read of a correct data to a CPU by deciding whether a data is effective or ineffective depending on the detection of two retarded busy signals outputted from a flip-flop. CONSTITUTION:An input signal 1 before conversion is converted by a data converter 2 and goes to a converted digital data 3 and a busy signal 5 is outputted during data conversion. It is after a prescribed time after a busy signal 5 is ineffective that the conversion digital data 3 is stable and ensured. Thus, when a timing flip-flop 6 detects the busy signal 5, a 1st delay busy signal 19 is outputted in the timing of a reference timing 15 and a trigger signal 7 being a 2nd delay busy signal is outputted based thereupon, then the converted digital data 3 is fetched in a conversion data register 4 at a point of time of prescribed time delay after the detection of the busy signal 5.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、各種ディジタルデータを収集するシステム
において、取り込まれたデータが有効か無効かの判別信
号をデータとして付加出力するデータ変換有効判定回路
に関するものである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention provides a data conversion validity determination circuit that additionally outputs a determination signal as data to determine whether captured data is valid or invalid in a system that collects various digital data. It is related to.

〔従来の技術〕[Conventional technology]

従来のこの種の回路のブロック図を第4図に示す、同図
において2は入力信号lをディジタルデータに変換する
A/D (アナログ/ディジタル)変換器、S/D C
シンクロ/ディジタル)変換器等のデータ変換器、3は
データ変換器2から出力される変換ディジタルデータ、
4は変換ディジタルデータ3を取り込む変換データレジ
スタ、5はデータ変換器2がデータ変換中に出力するB
usy(変換中)信号、6はBusy信号5を利用し、
変換データレジスタ4へ適切なタイミングでトリガ信号
7を出力するタイミングフリップフロップ、8はBus
y信号5が出力されたことを検出し、データ有効信号9
を出力する検出フリップフロップ、10はデータ有効信
号9と変換データレジスタ4の出力する確定ディジタル
データ11を取り込む同期レジスタ、12は中央処理装
置(CP U)からのデータ出力命令、13は基準タイ
ミング15により同期を取った同期出力命令、14は同
期出力命令13により同期レジスタ10から出力される
出力ディジタルデータ、16は同期出力命令13により
同期レジスタ10から出力される出力データ有効信号、
17はリセット信号である。
A block diagram of a conventional circuit of this kind is shown in FIG. 4. In the figure, 2 is an A/D (analog/digital) converter that converts the input signal l into digital data, and S/D C.
3 is converted digital data output from the data converter 2;
4 is a conversion data register that takes in the converted digital data 3, and 5 is B that is output by the data converter 2 during data conversion.
usy (converting) signal, 6 uses Busy signal 5,
A timing flip-flop outputs a trigger signal 7 at an appropriate timing to the conversion data register 4, and 8 is a bus.
It detects that the y signal 5 is output and outputs the data valid signal 9.
10 is a synchronization register that takes in the data valid signal 9 and the definite digital data 11 output from the conversion data register 4, 12 is a data output command from the central processing unit (CPU), and 13 is a reference timing 15. 14 is output digital data outputted from the synchronous register 10 by the synchronous output instruction 13, 16 is an output data valid signal outputted from the synchronous register 10 by the synchronous output instruction 13,
17 is a reset signal.

次に動作について説明する。変換前の入力信号1はデー
タ変換器2で変換され変換ディジタルデータ3となる。
Next, the operation will be explained. An input signal 1 before conversion is converted by a data converter 2 to become converted digital data 3.

データ変換器2はデータを変換中にBusy (変換中
)信号5を出力する。変換後の変換ディジタルデータ3
が安定し、確定データとなるのは、Busy信号5が無
効となってから一定時間後のため、タイミングフリップ
フロップ6によりBusy信号5を検出し、さらに基準
タイミング15により一定時間遅延させた後、トリガ信
号7を出力し、確定となった変換ディジタルデータ3を
変換データレジスタ4に取り込むようになっている。
The data converter 2 outputs a Busy (converting) signal 5 while converting data. Converted digital data 3 after conversion
becomes stable and becomes definite data after a certain period of time after the Busy signal 5 becomes invalid, so after detecting the Busy signal 5 by the timing flip-flop 6 and further delaying it for a certain period of time by the reference timing 15, A trigger signal 7 is output, and the confirmed converted digital data 3 is taken into the converted data register 4.

パワーオンの時、各レジスタ4.10の内容は不確定で
、ディジタルデータ11.14は無効データである。こ
のためCPUからの出力命令12及び、基準タイミング
15により同期した同期出力命令13により、同期レジ
スタ10が出力した出力ディジタルデータ14が無効で
あることを示すため、パワーオンの時に出力されるリセ
ット命令17により、検出フリップフロップ8はデータ
有効信号9を無効にして同期レジスタ10へ送っている
At power-on, the contents of each register 4.10 are uncertain and the digital data 11.14 is invalid data. Therefore, an output instruction 12 from the CPU and a synchronous output instruction 13 synchronized with reference timing 15 indicate that the output digital data 14 output from the synchronous register 10 is invalid, so a reset instruction is output when the power is turned on. 17, the detection flip-flop 8 invalidates the data valid signal 9 and sends it to the synchronization register 10.

以上のようにこの回路では、パワーオンの時には、デー
タ有効信号9を無効とし、データ変換器2が一回でもl
3us y信号5を出力した後は、これをタイミングフ
リップフロップ6を介して検出フリップフロップ8で検
出し、データ有効信号9を出力するため、CPUは常に
変換後のディジタルデータを読むことができる。
As described above, in this circuit, when the power is turned on, the data valid signal 9 is disabled, and the data converter 2 is turned on even once.
After outputting the 3usy signal 5, it is detected by the detection flip-flop 8 via the timing flip-flop 6 and the data valid signal 9 is output, so that the CPU can always read the converted digital data.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のデータ変換有効判定回路は以上のように構成され
ているので、パワーオンの時に出力されるリセット信号
17が解除された後、入力信号1にまったく変化がな(
、データ変換器2がBusy(変換中)信号5を出力し
なければ、検出フリップフロップ8はBusy信号5を
検出できず、データ有効信号を無効出力したままとなり
、ディジタルデータ3.11.14は確定データである
にもかかわらず、CPUは何度でも出力命令12を出し
続け、次のステップへ進めず時間がかかるなどの問題点
があった。
Since the conventional data conversion validity determination circuit is configured as described above, there is no change in the input signal 1 after the reset signal 17 outputted at power-on is released (
, if the data converter 2 does not output the Busy (converting) signal 5, the detection flip-flop 8 will not be able to detect the Busy signal 5 and will continue to output the data valid signal as an invalid signal, and the digital data 3.11.14 will be Despite the fact that the data is fixed, the CPU continues to issue the output command 12 over and over again, resulting in problems such as being unable to proceed to the next step and taking time.

この発明は上記のような問題点を解消するためになされ
たもので、入力信号にまったく変化がない場合でも、確
定データであればCPUに正しいデータを読み込むこと
ができるともに、少ない回路で構成できるデータ変換有
効判定回路を得ることを目的とする。
This invention was made to solve the above-mentioned problems, and even if there is no change in the input signal, it is possible to read the correct data into the CPU as long as it is fixed data, and it can be configured with a small number of circuits. The purpose is to obtain a data conversion validity determination circuit.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るデータ変換有効判定回路は、検出フリッ
プフロップの出力すべきデータ有効信号の出力を、13
usy信号の検出のみによるのではな(、タイミングフ
リップフロップの2箇所から出力される信号の検出によ
り行うようにしたものである。
The data conversion validity determination circuit according to the present invention determines the output of the data validity signal to be output from the detection flip-flop by 13
This is done not only by detecting the usy signal, but also by detecting signals output from two timing flip-flops.

〔作用〕[Effect]

この発明においては、パワーオン時に出力されるリセッ
ト信号17の解除後には、データ変換器2の出力するB
usy信号5のあるなしにかかわらず、該Busy信号
5の遅延信号に基づき、確定した変換ディジタルデータ
3を変換データレジスタ4に取り込んだ後は、データ有
効信号9として有効信号を出力する。
In this invention, after the reset signal 17 output at power-on is released, the B output from the data converter 2 is
Regardless of the presence or absence of the usy signal 5, after the determined converted digital data 3 is taken into the converted data register 4 based on the delayed signal of the busy signal 5, a valid signal is output as a data valid signal 9.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図はこの発明の一実施例によるデータ変換有効判定
回路のブロック図であり、図において前記従来回路と同
一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram of a data conversion validity determining circuit according to an embodiment of the present invention, and in the figure, the same reference numerals as in the conventional circuit indicate the same or corresponding parts.

同図において18はタイミングフリップフロップ6のQ
C,Q端子出力のANDをとるAND素子である。19
はタイミングフリップフロップ6のQC端子出力の第1
遅延Busy信号である。
In the figure, 18 is the Q of the timing flip-flop 6.
This is an AND element that ANDs the C and Q terminal outputs. 19
is the first QC terminal output of timing flip-flop 6.
This is a delayed Busy signal.

次に第1図の回路の動作について説明する。変換前の入
力信号1はデータ変換器2で変換され、変換ディジタル
データ3となる。データ変換器2はデータ変換中にBu
sy(変換中)信号5を出力する。変換後の変換ディジ
タルデータ3が安定し、確定データとなるのは、Bus
 y信号5が無効となってから一定時間後であるため、
タイミングフリップフロップ6はBusy信号5を検出
したときは、基準タイミング15のタイミングに第1遅
延Busy信号19を出力し、さらにこれに基づき第2
遅延Busy信号であるトリガ信号7を出力することに
よって上記Busy信号5の検出後、一定時間遅延させ
た時点、即ち、トリ力信号7の立ち上がり時点で、確定
となった変換ディジタルデータ3を変換データレジスタ
4に取り込む。
Next, the operation of the circuit shown in FIG. 1 will be explained. An input signal 1 before conversion is converted by a data converter 2 to become converted digital data 3. Data converter 2 uses Bu during data conversion.
sy (converting) signal 5 is output. The converted digital data 3 after conversion becomes stable and final data is the Bus
Since it is a certain period of time after the y signal 5 becomes invalid,
When the timing flip-flop 6 detects the Busy signal 5, it outputs the first delayed Busy signal 19 at the reference timing 15, and further outputs the second delayed Busy signal 19 based on this.
By outputting the trigger signal 7, which is a delayed Busy signal, after the detection of the Busy signal 5, the determined converted digital data 3 is converted into converted data at a certain time delay, that is, at the rising edge of the trigger signal 7. Load into register 4.

次に第2図のタイミングチャートを参照して説明する。Next, a description will be given with reference to the timing chart of FIG.

パワーオン時のリセット信号17で検出フリップフロッ
プ8はデータ有効信号9を同期レジスタ10に無効出力
する。この時にCPUからの出力命令12をタイミング
フリップフロップ6で検出すると、基準タイミング15
でサンプリングした同期出力命令13により同期レジス
タ10は出力ディジタルデータ14及び出力データ有効
信号16を出力するが、データは無効であることが分か
る。
The detection flip-flop 8 invalidates and outputs the data valid signal 9 to the synchronization register 10 in response to the reset signal 17 at power-on. At this time, when the output instruction 12 from the CPU is detected by the timing flip-flop 6, the reference timing 15
Although the synchronous register 10 outputs the output digital data 14 and the output data valid signal 16 according to the synchronous output command 13 sampled at , it is found that the data is invalid.

リセット信号17の解除時にデータ変換器2が入力信号
1を変換中でBusy信号5が有効の場合(第2図(a
l)、第1回目のトリガ信号7で変換データレジスタ4
は変換ディジタルデータ3をラッチするが、この時、デ
ータ有効信号9は無効である。第2回目のトリガ信号7
はBusy信号5が無効となった後一定時間後に出力さ
れるため、変換データレジスタ4は確定データをランチ
し、その後データ有効信号9は有効となる。
When the data converter 2 is converting the input signal 1 and the Busy signal 5 is valid when the reset signal 17 is released (see Fig. 2(a)
l), the conversion data register 4 is activated by the first trigger signal 7.
latches the converted digital data 3, but at this time, the data valid signal 9 is invalid. Second trigger signal 7
is output a certain period of time after the Busy signal 5 becomes invalid, the conversion data register 4 launches the final data, and then the data valid signal 9 becomes valid.

リセット信号17の解除時にはデータ変換器2は確定デ
ータを出力しており、Busy信号5が無効の場合(第
2図(b))、第1回目のトリガ信号7で変換データレ
ジスタ4は確定した変換ディジタルデータ3をラッチし
、その後データ有効信号9は有効となる。第2回目のト
リガ信号7はBusy信号5が無効となった後一定時間
後に出力されるため、変換データレジスタ4は確定した
変換ディジタルデータ3をラッチする。
When the reset signal 17 is released, the data converter 2 is outputting confirmed data, and when the Busy signal 5 is invalid (Fig. 2 (b)), the conversion data register 4 is confirmed by the first trigger signal 7. After the converted digital data 3 is latched, the data valid signal 9 becomes valid. Since the second trigger signal 7 is output a certain period of time after the Busy signal 5 becomes invalid, the conversion data register 4 latches the confirmed conversion digital data 3.

なお、上記実施例では、データ変換器が自ら出力するB
usy (変換中)信号をデータ有効か無効かを判定す
るためのトリガ信号としていたが、データが変換中であ
ることを検出する回路を別に設けた一般のデータライン
に用いてもよく、上記実施例と同様の効果を奏する。
In the above embodiment, the data converter itself outputs B
Although the usy (converting) signal was used as a trigger signal to determine whether data is valid or invalid, it may also be used for a general data line with a separate circuit for detecting that data is being converted. It has the same effect as the example.

このような構成を有する本発明の他の実施例を第3図に
示す。同図において、20は変換ディジタルデータ3か
らデータ変換中であることを検出するデータ変換検出回
路、21はその出力であるデータ変換中信号であり、こ
れはAND素子■8とタイミングフリプフロソプ6とに
入力されている。
Another embodiment of the present invention having such a configuration is shown in FIG. In the figure, 20 is a data conversion detection circuit that detects that data conversion is in progress from converted digital data 3, and 21 is its output, a data conversion in progress signal, which is connected to AND element 8 and timing flip-flop 6. is entered.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、データが有効か無効
かの判定を、データ変換器の出力するBusy信号その
ものの検出によってではなく、フリップフロップで出力
される2つの遅延E3usy信号の検出によって行うよ
うに構成したので、パワーオン時のリセット信号解除時
に、ディジタルデータが確定していれば、レジスタでラ
ッチした後、データ有効信号が出力されるため、CPU
に対して、正しいデータであることを確かに伝えられる
効果がある。
As described above, according to the present invention, whether data is valid or invalid is determined not by detecting the Busy signal itself output from the data converter, but by detecting the two delayed E3usy signals output by the flip-flop. Since the configuration is configured to do this, if the digital data is fixed when the reset signal is released at power-on, the data valid signal is output after being latched in the register, so the CPU
This has the effect of being able to reliably convey that the data is correct.

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

第1図はこの発明の一実施例によるデータ変換有効判定
回路を示すブロック図、第2図はこの発明の動作を示す
タイミングチャート図、第3図はこの発明の他の実施例
によるデータ変換有効判定回路を示すブロック図、第4
図は従来のデータ変換有効判定回路を示すブロック図で
ある。 1・・・入力信号、2・・・データ変換器、3,11゜
14・・・ディジタルデータ、4.10・・・レジスタ
、5−Busy信号(第1遅延Busy信号)、6・・
・タイミングフリップフロップ(タイミング検出手段)
、8・・・検出フリップフロップ(有効信号出力手段)
、7・・・トリガ信号、9,16・・・データ有効信号
、12.13・・・出力命令、15・・・基準タイミン
グ、17・・・リセット信号、18・・・AND素子、
19・・・第1遅延Busy信号、20はデータ変換検
出回路、21はデータ変換中信号である。 なお図中同一符号は同−又は相当部分を示す。
FIG. 1 is a block diagram showing a data conversion validity determination circuit according to an embodiment of the present invention, FIG. 2 is a timing chart diagram showing the operation of the invention, and FIG. 3 is a data conversion validity determination circuit according to another embodiment of the invention. Block diagram showing the determination circuit, No. 4
The figure is a block diagram showing a conventional data conversion validity determination circuit. 1... Input signal, 2... Data converter, 3, 11° 14... Digital data, 4.10... Register, 5-Busy signal (first delayed Busy signal), 6...
・Timing flip-flop (timing detection means)
, 8...detection flip-flop (effective signal output means)
, 7... Trigger signal, 9, 16... Data valid signal, 12.13... Output command, 15... Reference timing, 17... Reset signal, 18... AND element,
19...first delayed Busy signal, 20 a data conversion detection circuit, and 21 a data conversion in progress signal. Note that the same reference numerals in the figures indicate the same or equivalent parts.

Claims (1)

【特許請求の範囲】[Claims] (1)各種ディジタルデータを収集するシステムにおけ
るデータ変換有効判定回路において、入力信号をディジ
タルデータに変換するディジタル変換器と、 該変換器による変換データを取り込む変換データレジス
タと、 上記変換器がデータ変換中であることを示す変換中信号
を検出し、上記変換データレジスタにデータを取り込む
ためのトリガ信号を出力するタイミング検出手段と、 上記タイミング検出手段の出力に基づき上記変換データ
レジスタの内容が有効か無効かの判定を行い、上記変換
中信号が無効となった後一定時間経過後には有効信号を
出力する有効信号出力手段と、 上記変換データレジスタからの確定データと有効信号と
を同期をとって出力する同期レジスタとを備えたことを
特徴とするデータ変換有効判定回路。
(1) A data conversion validity determination circuit in a system that collects various digital data includes a digital converter that converts an input signal to digital data, a conversion data register that takes in the converted data by the converter, and a converter that converts data. timing detection means for detecting a conversion-in-progress signal indicating that the conversion is in progress and outputting a trigger signal for loading data into the conversion data register, and determining whether the contents of the conversion data register are valid based on the output of the timing detection means Valid signal output means that determines whether the conversion signal is invalid and outputs a valid signal after a certain period of time has passed after the conversion signal becomes invalid; and a valid signal output means that synchronizes the confirmed data from the conversion data register with the valid signal. A data conversion validity determination circuit comprising: a synchronization register for outputting data.
JP25434788A 1988-10-07 1988-10-07 Data conversion effectiveness deciding circuit Pending JPH02101820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25434788A JPH02101820A (en) 1988-10-07 1988-10-07 Data conversion effectiveness deciding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25434788A JPH02101820A (en) 1988-10-07 1988-10-07 Data conversion effectiveness deciding circuit

Publications (1)

Publication Number Publication Date
JPH02101820A true JPH02101820A (en) 1990-04-13

Family

ID=17263731

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25434788A Pending JPH02101820A (en) 1988-10-07 1988-10-07 Data conversion effectiveness deciding circuit

Country Status (1)

Country Link
JP (1) JPH02101820A (en)

Similar Documents

Publication Publication Date Title
JPH02101820A (en) Data conversion effectiveness deciding circuit
JP2567119B2 (en) Bus arbitration circuit
JP2613916B2 (en) Data aperiodic readout circuit
JPH0658386B2 (en) Counter device
JP2708061B2 (en) Synchronous circuit device
JPS63174131A (en) Interruption controller
JP2804406B2 (en) Pulse measuring device
JPH08182056A (en) Electronic controller
JPH03104237U (en)
JPS6120172A (en) Multi-microprocessor system
JPH02236736A (en) Digital input circuit
JP2638014B2 (en) Signal detection circuit
JPH1041804A (en) Register read/reset circuit
JP2004242233A (en) Digital to analog converter and microcomputer
JPH0540916U (en) Processor
JPH0474244A (en) Latch circuit
JPH023221B2 (en)
JPS63169826A (en) Counter circuit
JPH06350677A (en) Interrupt request type switching request signal monitoring system
JPH07231488A (en) State change detection system
JPS6267603A (en) Pulse measuring instrument
JPH07182274A (en) Bus for information processor
JPS62280936A (en) Runaway detection method
JPH05181811A (en) Interruption control signal generator for multi-processor system
JPS63271512A (en) Resetting circuit for plural central arithmetic processor