JPH0254177A - Peak value detection circuit - Google Patents
Peak value detection circuitInfo
- Publication number
- JPH0254177A JPH0254177A JP63205595A JP20559588A JPH0254177A JP H0254177 A JPH0254177 A JP H0254177A JP 63205595 A JP63205595 A JP 63205595A JP 20559588 A JP20559588 A JP 20559588A JP H0254177 A JPH0254177 A JP H0254177A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- peak value
- reversible counter
- value
- clock
- 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
Links
Landscapes
- Analogue/Digital Conversion (AREA)
- Manipulation Of Pulses (AREA)
- Measurement Of Current Or Voltage (AREA)
Abstract
(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.
Description
【発明の詳細な説明】
〔概 要〕
本発明はピーク値検出回路に関し、
時間的に変動するピーク値に追従するアナログ信号のピ
ーク値検出回路を安価に実現することを目的とし、
アナログ信号をディジタル信号に変換するAD変換器と
、可逆カウンタと、該AD変換器の出力値^と該カウン
タの出力値Bとを比較し、A >8状態のとき第1の比
較出力信号を出力し、^くB状態のとき第2の比較出力
信号を出力する比較回路と、第1の比較出力信号により
該可逆カウンタを増加モードに設定し第1のクロックを
計数せしめる増加モード設定部と、第2の比較出力信号
により該可逆カウンタを減少モードに設定し前記第1の
クロックを分周した第2のクロックにより該可逆カウン
タの計数値を減少せしめる減少モード設定部とを設け、
該可逆カウンタの出力値と該AD変換器の出力値との大
小比較により、周期の異なる第1および第2のクロック
信号によりそれぞれ加減算せしめて該可逆カウンタの計
数値を該ピーク値に追従せしめるように構成する。[Detailed Description of the Invention] [Summary] The present invention relates to a peak value detection circuit, and an object of the present invention is to inexpensively realize a peak value detection circuit for analog signals that follows temporally varying peak values. an AD converter that converts into a digital signal, a reversible counter, and compares the output value of the AD converter with the output value B of the counter, and outputs a first comparison output signal when A > 8 state; a comparison circuit that outputs a second comparison output signal when in the B state; an increase mode setting section that sets the reversible counter to an increase mode by the first comparison output signal and causes it to count the first clock; and a reduction mode setting unit that sets the reversible counter to a reduction mode by a comparison output signal of and reduces the count value of the reversible counter by a second clock obtained by dividing the first clock,
By comparing the output value of the reversible counter and the output value of the AD converter, the count value of the reversible counter is made to follow the peak value by adding and subtracting the first and second clock signals having different periods. Configure.
本発明は時間的に変動するアナログピーク値に追従する
ピーク値検出回路の改良に関する。The present invention relates to an improvement in a peak value detection circuit that follows temporally varying analog peak values.
マーク、文字等のイメージ信号を読取る光学式読取装置
では、イメージセンサから読出したアナログ信号の白レ
ベルピーク値を検出し、照明制御。Optical reading devices that read image signals such as marks and characters detect the white level peak value of the analog signal read from the image sensor and control the lighting.
白レベル補正等を行って読取り精度を向上させている。White level correction, etc. are performed to improve reading accuracy.
このピーク値は、従来媒体の白地部分で検出されている
が、通帳のごとく、センタホールド前後に段差があり、
また地紋印刷のある媒体では、この部分のピーク値が白
地部分と比較して低下するため、それに追従したピーク
値を検出する必要がある。This peak value is detected in the white area of conventional media, but like a bankbook, there is a step before and after the center hold.
Furthermore, in the case of a medium with background pattern printing, the peak value of this portion is lower than that of the white background portion, so it is necessary to detect the peak value that follows this.
このため従来では、アナログピーク値検出回路のホール
ドコンデンサに蓄積された電荷を高抵抗を用いてリーク
させ、リークさせたピーク値より高いピーク値が入力さ
れるとこれを保持するという方法が採用されているが、
温湿度の変化に対して常に一定の割合でリークさせるた
めには、アナログビーク値検出回路自身のリークを小さ
(しなければならず、絶縁性の高い部品の採用、実装上
の配慮等高価となる課題がある。For this reason, a conventional method has been adopted in which the charge accumulated in the hold capacitor of the analog peak value detection circuit is leaked using a high resistance, and when a peak value higher than the leaked peak value is input, it is held. Although,
In order to always leak at a constant rate with respect to changes in temperature and humidity, the leakage of the analog peak value detection circuit itself must be kept small, and expensive and expensive measures such as the use of highly insulating components and careful mounting are required. There is a problem.
このため、追従型の簡易なピーク値検出回路が求められ
ている。Therefore, a simple tracking type peak value detection circuit is required.
第5図は読取装置ブロック図、第6図は通帳読取り方法
説明図、第7図は通帳読取りにおける白レベル変動説明
図、第8は従来のアナログピーク値検出回路例を表す図
である。FIG. 5 is a block diagram of the reading device, FIG. 6 is an explanatory diagram of a passbook reading method, FIG. 7 is an explanatory diagram of white level fluctuations in passbook reading, and FIG. 8 is a diagram showing an example of a conventional analog peak value detection circuit.
第5図は通帳等の光学読取装置のブロック図を示したも
ので、マーク、文字等が印刷された媒体1を送りつつ一
次元のイメージセンサ2上に媒体1のイメージを結像さ
せ、ライン方向のイメージ信号としてクロックに同期し
て走査読出す。Fig. 5 shows a block diagram of an optical reading device for a bankbook, etc., in which an image of the medium 1 is formed on a one-dimensional image sensor 2 while feeding a medium 1 on which marks, characters, etc. are printed. It scans and outputs a directional image signal in synchronization with the clock.
この読出されたイメージ信号(アナログ信号)は、AD
変換器5によりディジタル信号に変換され、所定電圧と
比較されて2値化される。This read image signal (analog signal) is
It is converted into a digital signal by the converter 5, compared with a predetermined voltage, and binarized.
ここで、ピーク値検出回路6は媒体1の先頭部分に設け
られた白地部の白レベルピーク値(以下単にピーク値)
を保持するもので、このピーク値により、白地部読取り
中にランプ制御部7によって照明制御が行われ、また適
性照明の元で保持されたピーク値は、AD変換器5の基
準電圧として白レベル補正に使用される。Here, the peak value detection circuit 6 detects a white level peak value (hereinafter simply referred to as peak value) of a white background area provided at the beginning of the medium 1.
This peak value is used to control the illumination by the lamp control unit 7 during reading of the white background area, and the peak value held under suitable illumination is used as the reference voltage of the AD converter 5 to control the white level. Used for correction.
媒体1が通帳の場合は、第6図に示すように、センタホ
ールド(とじ部分)の前後で段差があり、従ってランプ
3と通帳表面との距離が異なって所要のピーク値が変化
し、また地紋が印刷されている領域も反射光が減少しピ
ーク値が低下する。When the medium 1 is a passbook, as shown in Figure 6, there is a step before and after the center hold (binding part), so the distance between the lamp 3 and the passbook surface is different, and the required peak value changes. In the area where the tint block is printed, reflected light also decreases and the peak value decreases.
この模様を示したものが第7図であって、ピーク値の変
動になだらかに追従させれば正確な白レベル補正ができ
ることが判明する。This pattern is shown in FIG. 7, and it is clear that accurate white level correction can be performed by gently following the fluctuation of the peak value.
この追従方法として、白地部で保持したピーク値を一定
の割合で減少し、その減少したピーク値よりレベルの高
いピーク値があればこれを保持するという方法が採用さ
れている。As a tracking method, a method is adopted in which the peak value held in the white area is decreased at a constant rate, and if there is a peak value higher in level than the decreased peak value, this value is retained.
第8図はダイオードDの順方向電圧を補正するアナログ
ピーク値検出回路例を示したもので、ホールドコンデン
サCに充電されたビーク電圧を高抵抗Rでリークするよ
うに構成している。FIG. 8 shows an example of an analog peak value detection circuit for correcting the forward voltage of the diode D, and is configured so that the peak voltage charged in the hold capacitor C is leaked through a high resistance R.
以上説明したように、読取り領域に対応したピーク値を
検出する従来の方法は、アナログビーク値検出回路のホ
ールドコンデンサを高抵抗を用いてリークさせるもので
、温湿度の変化に対して安定的にリークさせるためには
、アナログピーク値検出回路自身のリークを小さくしな
ければならず、絶縁性の高い部品の採用、実装上の配慮
等高価となる課題があり、またイメージセンサ特有の黒
のダミービットでもリークするため、不正確となる課題
があった。As explained above, the conventional method of detecting the peak value corresponding to the reading area is to leak the hold capacitor of the analog peak value detection circuit using a high resistance, so that it is stable against changes in temperature and humidity. In order to prevent leakage, it is necessary to reduce the leakage of the analog peak value detection circuit itself, and there are expensive issues such as the use of highly insulating components and mounting considerations. Since even bits leaked, there was an issue of inaccuracy.
本発明は上記課題に鑑み、安定に動作し且つ安価な追従
型のピーク値検出回路を提供することを目的とする。In view of the above problems, it is an object of the present invention to provide a tracking type peak value detection circuit that operates stably and is inexpensive.
図に示すように、
検出対象のアナログ信号(50)をディジタル信号に変
換するAD変換器(10)と、
可逆カウンタ(11)と、
該AD変換器の出力値Aと該カウンタの出力値Bとを比
較し、A >B状態のとき第1の比較出力信号(65)
を出力し、^〈B状態のとき第2の比較出力信号(66
)を出力する比較回路(12)と、第1の比較出力信号
(65)により該可逆カウンタ(11)を増加モードに
設定し第1のクロック(60)を計数せしめる増加モー
ド設定部(20)と、第2の比較出力信号(66)によ
り該可逆カウンタ(11)を減少モードに設定し前記第
1のクロック(60)を分周した第2のクロック (6
1)により該可逆カウンタ(11)の計数値を減少せし
める減少モード設定部(21)とを設ける。As shown in the figure, an AD converter (10) that converts an analog signal (50) to be detected into a digital signal, a reversible counter (11), an output value A of the AD converter, and an output value B of the counter. and when A > B state, the first comparison output signal (65)
is output, and the second comparison output signal (66
), and an increase mode setting unit (20) that sets the reversible counter (11) to an increase mode by a first comparison output signal (65) and causes it to count a first clock (60). Then, the reversible counter (11) is set to a decreasing mode by a second comparison output signal (66), and a second clock (6) is generated by dividing the first clock (60).
1), a reduction mode setting section (21) is provided to reduce the count value of the reversible counter (11).
第1の比較出力信号(A >8 ) 55が比較回路1
2より出力されると、増加モード設定部20はこの第1
の比較出力信号65を用いて可逆カウンタ11を増加モ
ードに設定し第1のクロック信号60を計数(アップカ
ウント)せしめ、第2の比較出力信号(A<B)66が
出力されると、減少モード設定部21は可逆カウンタ1
1を減少モードに設定し第2のクロック信号61で減少
(ダウンカウント)せしめる。First comparison output signal (A > 8) 55 is comparison circuit 1
2, the increase mode setting unit 20 selects this first
The reversible counter 11 is set to the increase mode using the comparison output signal 65 of , and the first clock signal 60 is counted (up-counted), and when the second comparison output signal (A<B) 66 is output, the reversible counter 11 is set to the increase mode. The mode setting section 21 is a reversible counter 1
1 is set in a decreasing mode, and the second clock signal 61 is used to decrease (down count).
第1のクロフクロ0として、例えばイメージセンサの読
取りクロツタを使用すると、可逆カウンタ11の出力は
速やかに入力中のアナログ信号の電圧値に達し、また第
1のクロック60を複数分の1に分周して第2のクロッ
ク61とすると、なだらかに可逆カウンタ11の値を減
少させることができる。If, for example, a reading clock of an image sensor is used as the first clock 0, the output of the reversible counter 11 will quickly reach the voltage value of the analog signal being input, and the first clock 60 will be divided into multiple parts. If this is used as the second clock 61, the value of the reversible counter 11 can be gradually decreased.
なお、AD変換器10の出力値へと可逆カウンタ11の
出力値Bとが同一のとき、即ちA =Bのときは可逆カ
ウンタ11はカウント動作せず、計数値をそのまま保持
する。Note that when the output value of the AD converter 10 and the output value B of the reversible counter 11 are the same, that is, when A = B, the reversible counter 11 does not perform a counting operation and holds the counted value as it is.
さらに、−次元イメージセンサの黒のダミービットによ
る減少を除去する方法として、第2の比較出力信号66
が所定時間(ダミービット分以上)la読した以降の第
2の比較出力信号66を使用して減少モードに設定する
。Furthermore, as a method of removing the reduction due to the black dummy bit of the -dimensional image sensor, the second comparison output signal 66
The second comparison output signal 66 after reading la for a predetermined time (more than dummy bits) is used to set the reduction mode.
またイメージセンサの白キズによってピーク値が増加し
ないようにするため、第1の比較出力信号65が所定時
間(白キズの許容個数分)継続した以降の第1の比較出
力信号65を使用して増加モードに設定する。In addition, in order to prevent the peak value from increasing due to white scratches on the image sensor, the first comparison output signal 65 after the first comparison output signal 65 has continued for a predetermined period of time (for the allowable number of white scratches) is used. Set to increase mode.
以上のごとく、変動するピーク値になだらかに追従させ
て可逆カウンタ11に検出、保持させることができる。As described above, the reversible counter 11 can detect and hold the peak value while smoothly following it.
〔実施例]
実施例のDn回路ブロック図、第3図は増加モード動作
タイムチャート図、第4図は減少モード動作タイムチャ
ート図である。[Embodiment] A block diagram of the Dn circuit of the embodiment, FIG. 3 is an increase mode operation time chart, and FIG. 4 is a decrease mode operation time chart.
本実施例は、ロクロツタ分くクロックはイメージセンサ
の読取りクロック、以下単にクロンクロ0とし、第1の
クコツクに対応する)継続した以降の第1の比較出力信
号(以下A >B信号とする)65により増加モードに
設定し、mクロック分継続した以降の第2の比較出力信
号(以下A <B信号)6Gで減少モードに設定する例
を示す。In this embodiment, the first comparison output signal (hereinafter referred to as A>B signal) 65 continues after the Rokurotsuta division clock is the read clock of the image sensor (hereinafter simply referred to as Kuronkuro 0 and corresponds to the first Kukotoku). An example will be shown in which the increase mode is set by 6G and the decrease mode is set by the second comparison output signal (hereinafter referred to as A<B signal) 6G that continues for m clocks.
第1図において、
10は8ビツト(255レベル)のAD変換器で、次元
イメージセンサより読出されたアナログ信号50をディ
ジタル変換するもの、
11は8ビツト以上の可逆カウンタで、その計数値(出
力値B)がピーク信号52として出力されるもの、
12は比較回路で、AD変換器出力信号51(出力値A
)と可逆カウンタ11から出力されるピーク値信号52
(出力値B)とを比較し、A >8信号65またはA<
B信号66を出力するもの、
13は0m回路で、A <B信号66の立ち上がりから
クロック60をm個計数し、それ以降のA <B信号6
6を出力するもの、
14はDn回路で、A >[1信号65の立ち上がりか
らクロック60をn個計数し、それ以降のA >8信号
65を出力するもの、
15はDV回路で、クロック60を17Kに分周し、第
2のクロック(以下分周されたクロックCLO(JD)
61を出力するもの、
16はランチ回路で、DI+1回路13より出力された
^くB信号66をCLOCKD61でラッチするもの、
17はアンド回路で、ラッチ回路16の出力とCLOC
KD61とを論理積して、DOWN信号63を出力し、
可逆カウンタ11を減少モードに設定するもの、18は
比較回路で、保持されたピーク信号52の出力値Bが上
限設定値S1と下限設定値S2との間に存在するか否か
を判定し、上限値設定値S1より大きいとき0VER出
力を、上限設定値S1と下限設定値S2との間に存在す
るときはNORMAL出力を、下■設定値より小さいと
きは、UNDER信号を出力するものである。In Fig. 1, numeral 10 is an 8-bit (255-level) AD converter that converts the analog signal 50 read out from the dimensional image sensor into digital, and numeral 11 is an 8-bit or more reversible counter that converts its count value (output). The value B) is output as the peak signal 52, and 12 is a comparison circuit that outputs the AD converter output signal 51 (output value A).
) and the peak value signal 52 output from the reversible counter 11
(output value B), A>8 signal 65 or A<
The one that outputs the B signal 66, 13 is a 0m circuit that counts m clocks 60 from the rising edge of the A < B signal 66, and after that, the A < B signal 6
14 is a Dn circuit that counts n clocks 60 from the rising edge of the A > [1 signal 65 and outputs the subsequent A > 8 signal 65; 15 is a DV circuit that outputs the clock 60 is divided into 17K, and the second clock (hereinafter the divided clock CLO (JD)
16 is a launch circuit that latches the B signal 66 output from the DI+1 circuit 13 with CLOCKD61.
17 is an AND circuit, which connects the output of the latch circuit 16 and CLOC.
AND KD61 and output the DOWN signal 63,
18 is a comparison circuit that sets the reversible counter 11 to a decreasing mode, and determines whether the output value B of the held peak signal 52 is between the upper limit setting value S1 and the lower limit setting value S2; When it is larger than the upper limit set value S1, it outputs 0VER, when it is between the upper limit set value S1 and lower limit set value S2, it outputs NORMAL, and when it is smaller than the lower limit set value, it outputs UNDER signal. .
第2図は4個のDTYPE FF (フリップ・フ
ロップ)22を縦続接続し、各DTYPE FF 2
2の出力をアンド回路23で論理積するDn回路例を示
したもので、4個のクロック分A >B信号65が継続
しているときIIP信号62を出力し、A <B信号6
5の出力が終了すると同時にup倍信号出力を停止する
。In Figure 2, four DTYPE FFs (flip-flops) 22 are connected in cascade, and each DTYPE FF 2
This shows an example of a Dn circuit in which the outputs of 2 are ANDed by the AND circuit 23, and when the A > B signal 65 continues for 4 clocks, the IIP signal 62 is output, and the A < B signal 6
At the same time as the output of 5 is completed, the up multiplier signal output is stopped.
なお、Dm回路13も同様で、m段のDTYPE FF
22で構成される。Note that the Dm circuit 13 is also similar, and has m stages of DTYPE FF.
Consists of 22.
ここで、m、n、にの値は以下のように決定される。Here, the values of m and n are determined as follows.
いま、イメージセンサのセル数を2にとし、読出しの先
頭に16セルの黒のダミービットが付加されている場合
、この黒レベルの連続でピーク値が低下しないようにm
の値を32とし、またイメージセンサに特有の白キズを
無視するために、n=4に設定する。また、1ラインで
最大4レベルの低下をさせるために、k=528とする
。Now, if the number of cells in the image sensor is 2, and 16 cells of black dummy bits are added at the beginning of the readout, the m
The value of n is set to 32, and n is set to 4 in order to ignore white scratches specific to image sensors. Furthermore, in order to reduce the level by a maximum of 4 in one line, k=528.
以上の値に設定した場合の動作例を第3図および第4図
に示す。Examples of operation when the above values are set are shown in FIGS. 3 and 4.
以下動作例を説明する。An example of operation will be explained below.
〔増加モード〕 (第3図参照)
AD変換器10の出力値Aと可逆カウンタ11の出力値
Bとの比較結果、A >Bで比較回路12よりA〉B信
号65が出力されると、Dn回路14で4クロック分の
継続が検出された後、それ以降のA >R信号65がU
P信号62として出力され、可逆カウンタ11が増加モ
ードに設定される。[Increase mode] (See Figure 3) As a result of comparing the output value A of the AD converter 10 and the output value B of the reversible counter 11, when A>B, the comparison circuit 12 outputs the A>B signal 65. After the continuation of 4 clocks is detected by the Dn circuit 14, the subsequent A>R signal 65 is
It is output as a P signal 62, and the reversible counter 11 is set to increment mode.
二の増加モード中、可逆カウンタ11はクロック60を
計数し加算する。During the second increment mode, reversible counter 11 counts and adds clocks 60.
これにより、可逆カウンタ11は、その計数値がAD変
換器の現出力値Aと一致するまで計数し、以後減少モー
ドになるまでその値をホールトする。As a result, the reversible counter 11 counts until its count value matches the current output value A of the AD converter, and thereafter holds that value until it enters the decreasing mode.
〔減少モード〕 (第4図参照)
比較回路12から^〈B信号66が出力されたとき、m
個分継続した後のA <B信号66がDIl+回路13
より出力され、この信号とCLOCKD61とを論理積
したDOWN信号63で減少モードに設定する。[Decrease mode] (See Figure 4) When the comparator circuit 12 outputs the B signal 66, m
After continuing for 1 minute, A < B signal 66 is DIl + circuit 13
A DOWN signal 63, which is an AND of this signal and CLOCKD 61, is used to set the reduction mode.
このDOWN信号63は、CLO(JD61からA <
B信号66を切り出したもので、クロック60と同期し
ているため、A <B信号66で減少モードに設定しC
LOCKD61でダウンカウントする場合と等価になる
。This DOWN signal 63 is output from CLO(JD61 to A<
It is a cutout of the B signal 66 and is synchronized with the clock 60, so if A < B signal 66, set the decrease mode and C
This is equivalent to counting down with LOCKD61.
なお、以上の動作で^=Bのときは、可逆カウンタ11
の計数動作は行われない。In addition, when ^=B in the above operation, the reversible counter 11
No counting operation is performed.
以上により、AD変換器10の出力が大きいときはクロ
ック60により速やかにピーク値を検出し、八り変換器
10の出力が小さいときは、CLOCKD61により緩
やかに減少し、以後減少した可逆カウンタ11の出力値
Bより大きいAD変換器出力があると、それに追従して
ピーク値が検出保持されて、ピーク信号52として、白
レベル補正回路等に出力される。As described above, when the output of the AD converter 10 is large, the peak value is quickly detected by the clock 60, and when the output of the 8-digit converter 10 is small, it is gradually decreased by the CLOCKD 61, and the reversible counter 11 that has decreased thereafter. When there is an output from the AD converter that is larger than the output value B, a peak value is detected and held in accordance with the output, and is output as a peak signal 52 to a white level correction circuit or the like.
以上のどと(可逆カウンタ11に検出され保持されたピ
ーク信号52(出力値B)は、比較回路18によって上
限設定値S1および下限設定値s2と比較され、ピーク
値レベルによってそれぞれ0VER出力、NORMAL
出力、 IJNDBR出力が出力され、照明制御される
。The peak signal 52 (output value B) detected and held by the reversible counter 11 is compared with the upper limit setting value S1 and the lower limit setting value s2 by the comparator circuit 18, and depending on the peak value level, 0VER output and NORMAL output, respectively.
Output, IJNDBR output is output and lighting is controlled.
実際の読取装置では、読取装置の光源は、媒体の白地部
分がセンサの読取り範囲内に入るような一定レベルで点
灯されており、白地部の読取りにより適性レベルに上昇
する。以後、この点灯レベル下で白地部の白レベルピー
ク値が可逆カウンタ11に保持された後、媒体の読取り
領域に対応して低下する白レベルピーク値になだらかに
追従する。In an actual reading device, the light source of the reading device is turned on at a constant level such that the white portion of the medium falls within the reading range of the sensor, and increases to an appropriate level as the white portion is read. Thereafter, the white level peak value of the white background portion is held in the reversible counter 11 under this lighting level, and then the white level peak value gradually decreases in accordance with the reading area of the medium.
本発明は、保持したピーク値を一定割合で減少させ、読
取領域に対応する白レベルに追従するピーク値検出回路
をディジタル回路で実現したもので、アナログピーク値
検出回路と比較して、■イメージセンサの特性、欠陥素
子により誤動作しないように構成できる■温湿度の影響
を受けないため動作が安定■高絶縁対策が不要なため装
置が安価になるという効果がある。The present invention uses a digital circuit to realize a peak value detection circuit that reduces the held peak value at a fixed rate and follows the white level corresponding to the reading area. The characteristics of the sensor can be configured to prevent malfunctions due to defective elements. ■ Operation is stable because it is not affected by temperature and humidity. ■ The device is less expensive because high insulation measures are not required.
第2図は実施例のDn回路ブロック図、第3図は増加モ
ード動作タイムチャート図、第4図は減少モード動作タ
イムチャート図、第5図は読取装置ブロック図、
第6図は通帳読取り方法説明図、
第7図は通帳読取りにおける白レベル変動説明図、第8
図は従来のアナログピーク値検出回路ブロック図である
。図中、
1は媒体1通帳、2は一次元イメージセンサ、3は光源
、ランプ、10はAD変換器、11は可逆カウンタ、1
2は比較回路、13は0m回路、14はOn回路、15
は分周回路DV、16はランチ回路、17はアンド回路
、20は増加モード設定部、21は減少モード設定部、
18は比較回路、22はD TYPE FF、23は
アンド回路、50はアナログ信号、51はAD変換器出
力信号、52はピーク信号、60はクロック、第1のク
ロック、61は分周されたクロックCLOCKD、第2
のクロック、62はup倍信号63はDOWN信号、6
5はA >8信号、第1の比較出力信号、66はA<B
信号、第2の比較出力信号である。Fig. 2 is a block diagram of the Dn circuit of the embodiment, Fig. 3 is an increase mode operation time chart, Fig. 4 is a decrease mode operation time chart, Fig. 5 is a block diagram of the reading device, and Fig. 6 is a passbook reading method. Explanatory diagram, Figure 7 is an explanatory diagram of white level fluctuation in bankbook reading, Figure 8
The figure is a block diagram of a conventional analog peak value detection circuit. In the figure, 1 is a medium 1 passbook, 2 is a one-dimensional image sensor, 3 is a light source, a lamp, 10 is an AD converter, 11 is a reversible counter, 1
2 is a comparison circuit, 13 is a 0m circuit, 14 is an on circuit, 15
is a frequency divider circuit DV, 16 is a launch circuit, 17 is an AND circuit, 20 is an increase mode setting section, 21 is a decrease mode setting section,
18 is a comparison circuit, 22 is a D TYPE FF, 23 is an AND circuit, 50 is an analog signal, 51 is an AD converter output signal, 52 is a peak signal, 60 is a clock, a first clock, 61 is a frequency-divided clock CLOCKD, 2nd
clock, 62 is an up times signal 63 is a down signal, 6
5 is A>8 signal, first comparison output signal, 66 is A<B
signal, the second comparison output signal.
炙方ヒゲJのヒークイ直蹟出回呂4フ゛ロツワロ亭
1 区
弗
?
■
→−
ヲ3.7:lpモごF゛會カイ?、9グムテ7−ト(図
蔓 3 図
茅しグモードtH下タイムケV−Fロ
矛 4 図
さ化1スシヒ1)口・ソフ鎖
W−5″ 鎖
峯
乙
■Roasted beard J
1. Ward? ■ →− ヲ3.7: LP mogo F゛kai? , 9 Gumte 7-to (Picture vine 3 Diagram mode tH lower time ke V-F Lo spear 4 Diagram 1 Sushihi 1) Mouth/Soft chain W-5'' Kusarimine Otsu■
Claims (1)
検出するピーク値検出回路であって、該アナログ信号(
50)をディジタル信号に変換するAD変換器(10)
と、 可逆カウンタ(11)と、 該AD変換器の出力値Aと該カウンタの出力値Bとを比
較し、A>B状態のとき第1の比較出力信号(65)を
出力し、A<B状態のとき第2の比較出力信号(66)
を出力する比較回路(12)と、第1の比較出力信号(
65)により該可逆カウンタ(11)を増加モードに設
定し第1のクロック(60)を計数せしめる増加モード
設定部(20)と、第2の比較出力信号(66)により
該可逆カウンタ(11)を減少モードに設定し前記第1
のクロック(60)を分周した第2のクロック(61)
により該可逆カウンタ(11)の計数値を減少せしめる
減少モード設定部(21)とを設け、 該可逆カウンタ(11)の出力値と該AD変換器の出力
値との大小比較により、周期の異なる第1および第2の
クロック信号によりそれぞれ加減算せしめて該可逆カウ
ンタ(11)の計数値を該ピーク値に追従せしめること
を特徴とするピーク値検出回路。 2、所定時間継続した以降の比較出力信号を出力して該
可逆カウンタのモードを設定する手段を該増加モード設
定部および該減少モード設定部のうち、少なくともいず
れか一方に設けることを特徴とする請求項1記載のピー
ク値検出回路。[Claims] 1. A peak value detection circuit that tracks and detects the peak value of an analog signal that fluctuates over time, the circuit comprising:
AD converter (10) that converts 50) into a digital signal
and a reversible counter (11), which compares the output value A of the AD converter and the output value B of the counter, outputs a first comparison output signal (65) when A>B, and outputs a first comparison output signal (65) when A<B. Second comparison output signal (66) when in B state
a comparison circuit (12) that outputs a first comparison output signal (
an increase mode setting unit (20) that sets the reversible counter (11) to an increase mode using the second comparison output signal (65) and causes the reversible counter (11) to count the first clock (60); is set to decrease mode and the first
A second clock (61) obtained by dividing the clock (60) of
A reduction mode setting unit (21) is provided to reduce the count value of the reversible counter (11) by comparing the output value of the reversible counter (11) and the output value of the AD converter to determine whether the period is different. A peak value detection circuit characterized in that the count value of the reversible counter (11) is made to follow the peak value by adding and subtracting, respectively, using first and second clock signals. 2. At least one of the increase mode setting section and the decrease mode setting section is provided with means for outputting a comparison output signal after a predetermined period of time and setting the mode of the reversible counter. The peak value detection circuit according to claim 1.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63205595A JPH0254177A (en) | 1988-08-18 | 1988-08-18 | Peak value detection circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63205595A JPH0254177A (en) | 1988-08-18 | 1988-08-18 | Peak value detection circuit |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0254177A true JPH0254177A (en) | 1990-02-23 |
Family
ID=16509482
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63205595A Pending JPH0254177A (en) | 1988-08-18 | 1988-08-18 | Peak value detection circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0254177A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2010278839A (en) * | 2009-05-29 | 2010-12-09 | Toshiba Corp | Peak hold type detection circuit |
| US8008948B2 (en) | 2006-07-06 | 2011-08-30 | Denso Corporation | Peak voltage detector circuit and binarizing circuit including the same circuit |
| JP2013126187A (en) * | 2011-12-15 | 2013-06-24 | Samsung Electro-Mechanics Co Ltd | Power detection circuit |
-
1988
- 1988-08-18 JP JP63205595A patent/JPH0254177A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8008948B2 (en) | 2006-07-06 | 2011-08-30 | Denso Corporation | Peak voltage detector circuit and binarizing circuit including the same circuit |
| JP2010278839A (en) * | 2009-05-29 | 2010-12-09 | Toshiba Corp | Peak hold type detection circuit |
| JP2013126187A (en) * | 2011-12-15 | 2013-06-24 | Samsung Electro-Mechanics Co Ltd | Power detection circuit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN100399805C (en) | Image capturing apparatus and noise canceling method | |
| JP3034542B2 (en) | White balance control device | |
| US4821293A (en) | Digital phase locked loop circuit | |
| US4623935A (en) | Picture extracting apparatus | |
| JPH0254177A (en) | Peak value detection circuit | |
| US5587980A (en) | Method deriving a quality signal from a read signal, and reading and recording devices which employ that method | |
| US6118393A (en) | EFM signal frame period detecting circuit, and system for controlling the frequency of the bit synchronizing clock signal used for reproducing the EFM signal | |
| US20030174226A1 (en) | Image sensor capable of controlling reset voltage automatically and control method thereof | |
| KR19990029398A (en) | Image Circuits, Image Capture Circuits, and Color Balancing Methods | |
| JPS5925267B2 (en) | optical character reader | |
| US12256167B2 (en) | Image sensor and image sensing method | |
| US5612938A (en) | Correcting recorded marks and land lengths taken from an optical disk | |
| JPH0560297B2 (en) | ||
| JPH0130341B2 (en) | ||
| US7190753B2 (en) | Method and apparatus for temporally correcting a data signal | |
| US4645955A (en) | Signal conversion circuit for photosensor array | |
| JPS598474A (en) | Binary-coder for analog signal | |
| US5583708A (en) | Circuit for detecting unrecorded portion of recording medium | |
| US7170651B2 (en) | Image reader | |
| JPH0130179B2 (en) | ||
| JPS60208170A (en) | White level detecting circuit of picture signal | |
| JPS6226636B2 (en) | ||
| SU1628224A1 (en) | Tv signal corrector | |
| SU1377905A1 (en) | Device for synchronizing reproduction of digital information | |
| JPS61242170A (en) | signal processing device |