Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0718894B2 - Data comparison device - Google Patents
[go: Go Back, main page]

JPH0718894B2 - Data comparison device - Google Patents

Data comparison device

Info

Publication number
JPH0718894B2
JPH0718894B2 JP4658988A JP4658988A JPH0718894B2 JP H0718894 B2 JPH0718894 B2 JP H0718894B2 JP 4658988 A JP4658988 A JP 4658988A JP 4658988 A JP4658988 A JP 4658988A JP H0718894 B2 JPH0718894 B2 JP H0718894B2
Authority
JP
Japan
Prior art keywords
comparator
comparison
circuits
input
reference value
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 - Fee Related
Application number
JP4658988A
Other languages
Japanese (ja)
Other versions
JPH01219673A (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.)
Hioki EE Corp
Original Assignee
Hioki EE 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 Hioki EE Corp filed Critical Hioki EE Corp
Priority to JP4658988A priority Critical patent/JPH0718894B2/en
Publication of JPH01219673A publication Critical patent/JPH01219673A/en
Publication of JPH0718894B2 publication Critical patent/JPH0718894B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、被測定データを予め設定されている上限値
および下限値と比較して、例えばメモリレコーダの記憶
手段等にトリガ信号を与えるデータ比較装置に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention compares data to be measured with preset upper and lower limit values and, for example, data for providing a trigger signal to a storage means of a memory recorder or the like. The present invention relates to a comparison device.

〔従来の技術〕[Conventional technology]

被測定データを基準値と比較する際、その基準値が1つ
であれば用いる比較器も1つでよいが、2つの基準値例
えば上限値および下限値と比較する場合、従来では第2
図に示されているように、2つの比較器1,2が用いられ
る。すなわち、一方の比較器1には上限値設定器3によ
り上限値(MAX)が設定され、他方の比較器2には下限
値設定器4によりその下限値(MIN)が設定される。被
測定信号はA/D変換器5にてデジタルデータに変換さ
れ、そのデータDは比較器1,2の双方に入力される。比
較器1においてはD>MAXのとき、他方比較器2におい
てはD>MINのときトリガ信号が出力され、そのトリガ
信号はオア回路6を介して図示しない例えばメモリレコ
ーダに与えられる。
When comparing the measured data with the reference value, one comparator may be used as long as the reference value is one, but when comparing two reference values, for example, the upper limit value and the lower limit value, the second value is conventionally used.
As shown in the figure, two comparators 1 and 2 are used. That is, the upper limit value setter 3 sets the upper limit value (MAX) in one comparator 1, and the lower limit value setter 4 sets the lower limit value (MIN) in the other comparator 2. The signal under measurement is converted into digital data by the A / D converter 5, and the data D is input to both the comparators 1 and 2. When D> MAX in the comparator 1 and D> MIN in the comparator 2, on the other hand, a trigger signal is output, and the trigger signal is given to a memory recorder (not shown) via the OR circuit 6.

〔発明が解決しようとする課題〕[Problems to be Solved by the Invention]

上記従来例によれば、上限値、下限値を別々に自由に設
定できるという点では便利であるが、比較器を2つ用い
るという点でコスト的に難がある。
According to the above-mentioned conventional example, it is convenient in that the upper limit value and the lower limit value can be freely set separately, but there is a cost difficulty in using two comparators.

したがって、この発明の目的は、被測定データが2つの
基準値の内か外かを1つの比較器にて判定し得るように
したデータ比較装置を提供することにある。
Therefore, an object of the present invention is to provide a data comparison device capable of determining whether the measured data is inside or outside two reference values with one comparator.

〔課題を解決するための手段〕[Means for Solving the Problems]

上記した目的を達成するため、この発明においては、第
1図に示されているように、nビットのデジタル比較器
10と、該比較器10の一方の入力端子A1〜An側に接続され
るデータ入力用A/D変換器11と、該比較器10の他方の入
力端子B1〜Bn側に接続される比較基準値設定器12とを含
み、上記比較器10の一方の各入力端子A1〜Anと上記A/D
変換器11の各出力端子との間にそれぞれアンド回路C1〜
Cnが接続されるとともに、上記比較器10の他方の各入力
端子B1〜Bnと上記の比較基準値設定器12の各出力端子と
の間にそれぞれアンド回路D1〜Dnが接続され、かつ、同
一のビット順位にある上記A/D変換器11側および上記比
較基準値設定器12側の両アンド回路に同一の制御論理信
号を与える比較範囲設定器13が設けられていることを特
徴としている。
In order to achieve the above-mentioned object, in the present invention, as shown in FIG. 1, an n-bit digital comparator is provided.
10, a data input A / D converter 11 connected to one input terminal A1 to An side of the comparator 10, and a comparison reference connected to the other input terminal B1 to Bn side of the comparator 10. Including the value setter 12, one of the input terminals A1 to An of the comparator 10 and the A / D
AND circuit C1 to each output terminal of converter 11
Cn is connected, and AND circuits D1 to Dn are connected between the other input terminals B1 to Bn of the comparator 10 and the output terminals of the comparison reference value setting device 12, respectively, and the same. The comparison range setting device 13 for applying the same control logic signal is provided to both the AND circuits on the A / D converter 11 side and the comparison reference value setting device 12 side in the bit order.

〔作用〕[Action]

上記構成によれば、比較基準値設定器12により比較範囲
の下限値が設定され、比較範囲設定器13にて比較範囲の
幅が設定される。例えば、使用する比較器10が8ビット
であるとして、比較基準設定器12より上位2ビットを1,
0、その下位ビット0,1いずれでもよいという(10×××
×××)なるビット信号を比較基準値設定器12側のアン
ド回路D8〜D1に与えるとともに、比較範囲設定器13より
上位2ビットのアンド回路C8,C7,D8,D7には制御論理信
号「1」を、その下位にあるアンド回路C6〜C1,D6〜D1
には制御論理信号「0」を与える(11000000)なるビッ
ト信号を出力すると、比較器10の他方の入力端子B8〜B1
側は(10000000)に固定される。
According to the above configuration, the comparison reference value setting unit 12 sets the lower limit value of the comparison range, and the comparison range setting unit 13 sets the width of the comparison range. For example, assuming that the comparator 10 to be used has 8 bits, the upper 2 bits from the comparison reference setting unit 12 are 1,
0, lower bits 0 or 1 (10 ×××
XX) is given to the AND circuits D8 to D1 on the comparison reference value setting unit 12 side, and the control logic signal “2” is given to the AND circuits C8, C7, D8 and D7 of the upper 2 bits from the comparison range setting unit 13. 1 "is an AND circuit C6 to C1 and D6 to D1 which is the lower level.
When a bit signal of (11000000) is given to the control logic signal “0”, the other input terminals B8 to B1 of the comparator 10 are output.
The side is fixed at (10000000).

一方、A/D変換器11からは測定データが供給されるが、
下位6ビットのアンド回路C6〜C1の一方には、比較範囲
設定器13により制御論理信号「0」が与えられているた
め、比較器10の一方の入力端子A8〜A1側の下位6ビット
は常に「0」でその上位2ビットが(00),(01),
(10),(11)となり得る。
On the other hand, the measurement data is supplied from the A / D converter 11,
Since the control logic signal “0” is applied to one of the AND circuits C6 to C1 of the lower 6 bits by the comparison range setting unit 13, the lower 6 bits of one of the input terminals A8 to A1 of the comparator 10 are Always "0" and the upper 2 bits are (00), (01),
Can be (10) and (11).

したがって、比較器10は双方の入力信号がともに(1000
0000)なる時、一致信号を出力し、それ以外は不一致と
する。ところで、この場合測定データの下位6ビットは
強制的に「0」とされているのであるから、一致とされ
た測定データは(10000000)〜(10111111)の範囲にあ
ることになる。ここで、8ビットのフルスケールは256
であるから、上記の範囲はフルスケールの50%〜75%と
いうことになる。
Therefore, the comparator 10 receives both input signals (1000
0000), a coincidence signal is output, and otherwise it is disagreement. By the way, in this case, since the lower 6 bits of the measurement data are forcibly set to "0", the coincident measurement data is in the range of (10000000) to (10111111). Where 8-bit full scale is 256
Therefore, the above range is 50% to 75% of full scale.

ちなみに、比較範囲設定器13より上記のように上位2ビ
ットのみを(11)と指定した条件下において、比較基準
設定器12にて上位2ビットを(00)とした場合には0%
〜25%、(01)の場合25%〜50%、(11)の場合75%〜
100%(いずれもフルスケールに対して)ということに
なる。もう一つの例として、比較範囲を50%〜62.5%と
するには、比較範囲設定器13の制御論理信号を(111000
00)とし、比較基準値設定器12の出力を(100××××
×)とすればよい。
By the way, if only the upper 2 bits are designated as (11) by the comparison range setting unit 13 and the upper 2 bits are set as (00) by the comparison reference setting unit 12, it is 0%.
~ 25%, (01) 25% ~ 50%, (11) 75% ~
It will be 100% (both to full scale). As another example, to set the comparison range to 50% to 62.5%, the control logic signal of the comparison range setter 13 (111000
00) and set the output of the comparison reference value setter 12 to (100 ××××
X).

〔実 施 例〕〔Example〕

さらに、この発明の実施例を第1図を参照しながら詳細
に説明する。
Further, an embodiment of the present invention will be described in detail with reference to FIG.

この実施例においては、例えば8ビットのデジタル比較
器10を備えている。比較器10の一方の入力端子A1〜A8側
にはデータ入力用A/D変換器11が接続され、同比較器10
の他方の入力端子B1〜B8側には比較基準値設定器12が接
続されるのであるが、この場合、それらの間にはアンド
回路C1〜C8,D1〜D8が介装される。なお、各入力端子A,B
において添字1がLSBで、8がMSBである。
In this embodiment, an 8-bit digital comparator 10 is provided, for example. A data input A / D converter 11 is connected to one of the input terminals A1 to A8 of the comparator 10.
The comparison reference value setting device 12 is connected to the other input terminals B1 to B8 side of the above, and in this case, AND circuits C1 to C8 and D1 to D8 are interposed between them. In addition, each input terminal A, B
In, the subscript 1 is the LSB and 8 is the MSB.

アンド回路2は2入力形であり、アンド回路C1〜C8の各
第1入力端aはA/D変換器11の各出力端に接続され、ま
たそれらの各出力端は上記一方の入力端子A1〜A8に接続
されている。同様に、アンド回路D1〜D8の第1入力端a
は比較基準値設定器12の各出力端に接続され、またそれ
らの各出力端は上記他方の入力端子B1〜B8に接続されて
いる。アンド回路C1〜C8,D1〜D8の各第2入力端bには
比較範囲設定器13が接続されている。この比較範囲設定
器13からは同一ビット順位にある両方のアンド回路、例
えばC8,D8;C7,D7等に同一の制御論理信号「0」もしく
は「1」が出力される。
The AND circuit 2 is a 2-input type, each first input terminal a of the AND circuits C1 to C8 is connected to each output terminal of the A / D converter 11, and each output terminal thereof is one input terminal A1 described above. ~ Connected to A8. Similarly, the first input terminals a of the AND circuits D1 to D8
Are connected to the respective output terminals of the comparison reference value setting device 12, and their respective output terminals are connected to the other input terminals B1 to B8. A comparison range setter 13 is connected to the second input terminals b of the AND circuits C1 to C8 and D1 to D8. The comparison range setting unit 13 outputs the same control logic signal "0" or "1" to both AND circuits having the same bit order, for example, C8, D8; C7, D7.

ここにおいて、比較基準値設定回路12からアンド回路D8
〜D1の各第1入力端aに(10××××××)なるビット
信号が与えられ、比較範囲設定器13からアンド回路C8〜
C1;D8〜D1の各第2入力端bに(11000000)なる制御論
理信号が印加されると、上記作用の項で説明したよう
に、A/D変換器11の測定データがフルスケールの50%〜7
5%の範囲内にあるかが判定され、範囲内であれば比較
器10の出力10aは例えば「L」とされ、範囲外の場合は
同出力10aが「H」とされ、この信号がトリガ信号とし
て図示しないメモリレコーダ等に加えられる。
Here, the comparison reference value setting circuit 12 to the AND circuit D8
A bit signal of (10 ××××××) is given to each first input terminal a of D1 and the comparison range setter 13 outputs an AND circuit C8
When the control logic signal of (11000000) is applied to each second input terminal b of C1; % ~ 7
It is determined whether or not it is within the range of 5%. If it is within the range, the output 10a of the comparator 10 is set to "L", and if it is out of the range, the output 10a is set to "H", and this signal is triggered. It is added as a signal to a memory recorder or the like (not shown).

なお、この実施例では比較器10の各入力端子A8〜A1;B8
〜B1にアンド回路をそれぞれ設けているが、例えば比較
範囲をフルスケールの1/4の一定幅とすれば、比較器は
2ビットの比較器でよいことになり、より回路構成が簡
単になる。また、同実施例とは異なり、ロジック入力で
もよく、その場合にはパターン設定によるトリガ回路と
なる。
In this embodiment, each input terminal A8 to A1; B8 of the comparator 10 is
An AND circuit is provided in each of B1 to B1. However, if the comparison range is set to a constant width of 1/4 of full scale, the comparator can be a 2-bit comparator, and the circuit configuration becomes simpler. . Further, unlike the embodiment, a logic input may be used, in which case it becomes a trigger circuit by pattern setting.

〔発明の効果〕〔The invention's effect〕

以上説明したように、この発明によれば、1つの比較器
にて測定データを2つの基準値と比較することができ
る。
As described above, according to the present invention, it is possible to compare the measurement data with two reference values with one comparator.

【図面の簡単な説明】 第1図はこの発明による一実施例を示したブロック線
図、第2図は従来例のブロック線図である。 図中、10は比較器、11はA/D変換器、12は比較基準値設
定回路、13は比較範囲設定回路である。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment according to the present invention, and FIG. 2 is a block diagram of a conventional example. In the figure, 10 is a comparator, 11 is an A / D converter, 12 is a comparison reference value setting circuit, and 13 is a comparison range setting circuit.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】nビットのデジタル比較器10と、該比較器
10の一方の入力端子A1〜An側に接続されるデータ入力用
A/D変換器11と、該比較器10の他方の入力端子B1〜Bn側
に接続される比較基準値設定器12とを含み、上記比較器
10の一方の各入力端子A1〜Anと上記A/D変換器11の各出
力端子との間にそれぞれアンド回路C1〜Cnが接続される
とともに、上記比較器10の他方の各入力端子B1〜Bnと上
記の比較基準値設定器12の各出力端子との間にそれぞれ
アンド回路D1〜Dnが接続され、かつ、同一のビット順位
にある上記A/D変換器11側および上記比較基準値設定器1
2側の両アンド回路に同一の制御論理信号を与える比較
範囲設定器13が設けられていることを特徴とするデータ
比較装置。
1. An n-bit digital comparator 10 and the comparator.
For data input connected to one of the 10 input terminals A1 to An
The A / D converter 11 and the comparison reference value setter 12 connected to the other input terminal B1 to Bn side of the comparator 10, the comparator,
AND circuits C1 to Cn are respectively connected between the input terminals A1 to An of one of the 10 and the output terminals of the A / D converter 11, and the other input terminals B1 to of the comparator 10 are connected to each other. AND circuits D1 to Dn are respectively connected between Bn and the respective output terminals of the comparison reference value setting device 12, and the A / D converter 11 side and the comparison reference value setting in the same bit order are set. Bowl 1
A data comparison device characterized in that a comparison range setting device (13) for giving the same control logic signal is provided to both AND circuits on the second side.
JP4658988A 1988-02-29 1988-02-29 Data comparison device Expired - Fee Related JPH0718894B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4658988A JPH0718894B2 (en) 1988-02-29 1988-02-29 Data comparison device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4658988A JPH0718894B2 (en) 1988-02-29 1988-02-29 Data comparison device

Publications (2)

Publication Number Publication Date
JPH01219673A JPH01219673A (en) 1989-09-01
JPH0718894B2 true JPH0718894B2 (en) 1995-03-06

Family

ID=12751478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4658988A Expired - Fee Related JPH0718894B2 (en) 1988-02-29 1988-02-29 Data comparison device

Country Status (1)

Country Link
JP (1) JPH0718894B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2658501B2 (en) * 1990-05-22 1997-09-30 富士通株式会社 Data processing device and data processing method

Also Published As

Publication number Publication date
JPH01219673A (en) 1989-09-01

Similar Documents

Publication Publication Date Title
JP2580338Y2 (en) Test equipment for analog / digital converter
JPH0718894B2 (en) Data comparison device
EP0174693A1 (en) Analogue-to-digital converter circuit
JPS6211816B2 (en)
JPH01316024A (en) Test equipment for d/a converter
JPS63239700A (en) Data comparing and deciding circuit between ram and rom
JP2613674B2 (en) Integrated circuit device
JPH10163871A (en) Analog / digital conversion device, analog / digital conversion method, and analog / digital conversion control program storage medium
US5568148A (en) Analog/digital conversion circuit
JPH06350449A (en) Electronic volume device
JPS54145441A (en) Converter
SU1640712A1 (en) Dispersion detector
JP3220995B2 (en) Input impedance measurement circuit for IC circuit
JPH0124661Y2 (en)
JP2599984B2 (en) Input data peak value detection circuit
JPH0229505Y2 (en)
JPS59100304U (en) digital controller
JPS58118096A (en) Memory checking circuit
JPH0715328A (en) A / D converter
JPH0635992B2 (en) Trigger generation circuit
JPH043621A (en) A/d converter
JPH06258402A (en) Integrated circuit with test circuit
JPH02278918A (en) A/d converter and microcomputer with the a/d converter
JPH04227121A (en) A/d converter
JPS58121824A (en) signal processing device

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees