JPH03293818A - A/d converter - Google Patents

A/d converter

Info

Publication number
JPH03293818A
JPH03293818A JP2270031A JP27003190A JPH03293818A JP H03293818 A JPH03293818 A JP H03293818A JP 2270031 A JP2270031 A JP 2270031A JP 27003190 A JP27003190 A JP 27003190A JP H03293818 A JPH03293818 A JP H03293818A
Authority
JP
Japan
Prior art keywords
gain
data
signal
digital data
pot
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
JP2270031A
Other languages
Japanese (ja)
Inventor
Shuichi Yamazaki
修一 山崎
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Publication of JPH03293818A publication Critical patent/JPH03293818A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To prevent the occurrence of a control defect by providing a gain adjusting means which converts the output signal of an amplifying means to digital data and adjusts the gain of the amplifying means so that the level of digital data is lower than a set level in the case of digital data equal to or higher than the set level. CONSTITUTION:Amplifying means A2 and POT which have the adjustable gain and amplify an analog signal and a gain adjusting means MCU are provided, and this means MCU converts an output means V2 of amplifying means to digital data AN; and when digital data AN is equal to or lower than the set level, the means MCU adjusts the gain of amplifying means A2 and POT so that digital data is lower than the set level. When the output signal V2 of amplifying means A2 and POT is larger than a set value, the gain of amplifying means A2 and POT is so adjusted that it is smaller than the set value. Consequently, digital conversion data is not deviated from a prescribed range. Thus, a control defect is prevented.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、アナログ信号をデジタルデータに変換する装
置に関し、これに限定する意図ではないが特に、原稿の
複写において原稿の地肌濃度を検出する濃度センサのア
ナログ濃度信号をデジタルデータに変換する原稿濃度検
出装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a device for converting an analog signal into digital data, and in particular, although not limited thereto, it is a device for detecting the background density of a document when copying the document. The present invention relates to a document density detection device that converts an analog density signal from a density sensor into digital data.

〔従来の技術〕[Conventional technology]

光学走査により原稿像を読み取る画像処理装置。 An image processing device that reads original images by optical scanning.

例えば複写装置やファクシミリ、画像編集装置等におい
ては、原稿の地肌部の濃度が処理の上で重要なファクタ
となる。つまり、原稿の地肌に色彩や模様が付されてい
る場合には、処理の過程でそれを除去しないと汚れて見
にくいコピーや画像。
For example, in copying machines, facsimile machines, image editing machines, and the like, the density of the background portion of a document is an important factor in processing. In other words, if there are colors or patterns on the background of the original, the copies or images will become dirty and difficult to see unless they are removed during the processing process.

あるいはノイズの多いデータとなってしまう。Otherwise, the data will be noisy.

そこで1画像処理上の1パラメータとして原稿の地肌濃
度を検出し、これに応じてコピー濃度や各種の処理デー
タを設定する画像処理装置が開発された。
Therefore, an image processing apparatus has been developed that detects the background density of a document as one parameter in one image process and sets copy density and various processing data accordingly.

第4図に、は原稿濃度に応してコピー濃度を設定する複
写装置の一例を示す。この複写装置は原稿固定式であり
、コンタクトガラス1上に載置された原稿2を露光ラン
プ3aおよび多数のミラーを備える光学系3により感光
体4の回転に同期して光学走査する。
FIG. 4 shows an example of a copying apparatus that sets the copy density according to the original density. This copying apparatus is of a fixed original type, and an original 2 placed on a contact glass 1 is optically scanned in synchronization with the rotation of a photoreceptor 4 by an optical system 3 including an exposure lamp 3a and a large number of mirrors.

このとき原稿を走査した光(原稿の反射光)は、感光体
4の感光面に照射されるが、感光体4の感光面は、この
光の照射を受ける前に、帯電チヤージャ5により一様に
帯電され、イレーザ6により潜像領域外の電荷が除去さ
れている。したがって。
At this time, the light that scanned the original (light reflected from the original) is irradiated onto the photosensitive surface of the photoreceptor 4, but the photosensitive surface of the photoreceptor 4 is uniformly charged by the charger 5 before being irradiated with this light. The charge outside the latent image area is removed by the eraser 6. therefore.

この潜像領域に原稿の反射光が照射されるとその強弱に
応じて光電導を生じ、静電潜像が形成される。
When this latent image area is irradiated with light reflected from the original, photoconduction occurs depending on the intensity of the light, and an electrostatic latent image is formed.

この静電潜像は、現像器7によりトナーが付着されて現
像され、転写チャージャ8により記録紙に転写される。
This electrostatic latent image is developed by adhering toner by a developing device 7, and is transferred onto recording paper by a transfer charger 8.

この後、感光体4の感光面はクリーナ9により残存トナ
ーが取除かれ、記録紙は定着器10により定着される。
Thereafter, residual toner is removed from the photosensitive surface of the photosensitive member 4 by a cleaner 9, and the recording paper is fixed by a fixing device 10.

これら構成各要素は、第1図に示すマイクロコンピュー
タMCUにより制御される。
Each of these constituent elements is controlled by a microcomputer MCU shown in FIG.

ところで、この種の複写装置においては、露光ランプ3
aの光量、感光体4の感光面の帯電電位、現像器7の現
像バイアス等が記録紙上の画像(コピー)に影響を与え
る要素となる。つまり、これらの要素の調整によっては
、コピーに対する原稿2の地肌汚れや、地肌の色彩、模
様の影響を小さくすることが可能となる。
By the way, in this type of copying machine, the exposure lamp 3
The amount of light a, the charging potential of the photosensitive surface of the photosensitive member 4, the developing bias of the developing device 7, etc. are factors that affect the image (copy) on the recording paper. In other words, by adjusting these elements, it is possible to reduce the influence of background dirt, background color, and pattern of the original 2 on copies.

そこで、第4図に示した複写装置の露光ランプ3aを移
動するキャリッジ上には受光器12が備わっている。こ
の受光器12は、光学系3による光学走査部位より先の
原稿反射光をフォトダイオードPDに導く。フォトダイ
オードPDには、照射光の強度に応じた光電流Isが流
れる。この光電流Isは、増幅器A1において電圧に置
換されて増幅され、増幅器A2で反転増幅されさらに増
幅器A2において反転増幅され、原稿の地肌濃度を示す
電圧信号■2としてマイクロコンピュータMCUのアナ
ログ入力ポートANに入力される。
Therefore, a light receiver 12 is provided on the carriage that moves the exposure lamp 3a of the copying apparatus shown in FIG. This light receiver 12 guides the reflected light of the document beyond the optical scanning part by the optical system 3 to the photodiode PD. A photocurrent Is corresponding to the intensity of the irradiated light flows through the photodiode PD. This photocurrent Is is converted into a voltage and amplified in the amplifier A1, inverted and amplified in the amplifier A2, and further inverted and amplified in the amplifier A2. is input.

マイクロコンピュータMCUは、信号v2の大きさによ
り、コピーに対する原稿2の地肌汚れや。
The microcomputer MCU determines whether the background of the original 2 is dirty or not when copying, depending on the magnitude of the signal v2.

地肌の色彩、模様の影響をできる限り小さくすべく、露
光ランプ3aの光量、感光体4の感光面の帯電電位およ
び/または現像器7の現像バイアス等を調整する。
In order to minimize the influence of background color and pattern, the light intensity of the exposure lamp 3a, the charging potential of the photosensitive surface of the photosensitive member 4, and/or the developing bias of the developing device 7, etc. are adjusted.

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

従来においては、どのような入力値に対しても、増幅器
A1〜A3が1機械の初期調整時に設定されたゲインに
固定されたままであるので、入力値が何らかの原因によ
り増加して、A/D変換器(M CtJ)の破損又はA
/D変換不良が発生する。
Conventionally, no matter what the input value, the amplifiers A1 to A3 remain fixed at the gain set during the initial adjustment of one machine, so if the input value increases for some reason, the A/D Damage to the converter (MCtJ) or A
/D conversion failure occurs.

入力信号レベルが所定の範囲を外れると。When the input signal level is outside the predetermined range.

A/D変換器はそこにおいてはA/D変換の保償はなく
、デジタル変換データが、所定範囲内のものと全く連続
性のないでたらめなものになり、所定の範囲を外れた入
力信号に対応して得るデジタルデータに基づく制御がで
たらめとなる。
There is no guarantee for A/D conversion in the A/D converter, and the digital conversion data will be random with no continuity with the data within the predetermined range, and input signals outside the predetermined range may Control based on correspondingly obtained digital data becomes haphazard.

例えば、第1図に示すように、フォトダイオードPDの
濃度検出信号を増幅器A1〜A3で増幅し、増幅器A2
の出力をマイクロコンピュータMCUでデジタル変換す
るとき、増幅器A1の出力電圧v1が8vのとき、増幅
器A3の出力電圧を4vに設定し、増幅器A3の出力v
2を255段にデジタル変換すると仮定すると、増@@
A2とA3の合成ゲインは、255 x 4/8 = 
128に定められる。vlは、A/D変換の参照電圧V
raf(=5v)以下である必要があるため、vlが最
高のときでもそれがV ref以下となるように、入力
電圧v2が定められる。ゲインを上述のように128に
定めた場合には、vlの最高電圧gt 、 5 x 2
55/12g(約10v)でなければならない、ところ
が何らかの原因、例えばノイズ、フォトセンサPDの不
良又はPDに接続された回路の不良1等によりvlが1
0塾以上になると、先に説明した制御不良が発生する。
For example, as shown in FIG. 1, the concentration detection signal of the photodiode PD is amplified by amplifiers A1 to A3,
When the output voltage of amplifier A1 is digitally converted by the microcomputer MCU, when the output voltage v1 of amplifier A1 is 8V, the output voltage of amplifier A3 is set to 4V, and the output voltage of amplifier A3 is
Assuming that 2 is digitally converted to 255 stages, increase @ @
The combined gain of A2 and A3 is 255 x 4/8 =
128. vl is the reference voltage V for A/D conversion
Since it needs to be below raf (=5v), the input voltage v2 is determined so that even when vl is the highest, it is below V ref. When the gain is set to 128 as described above, the highest voltage gt of vl, 5 x 2
55/12g (approximately 10v), but due to some reason, such as noise, a defect in the photosensor PD, or a defect in the circuit connected to the PD, vl becomes 1.
When the number of cram schools exceeds 0, the control failure described above occurs.

マイクロコンピュータMCUのA/D変換入力端ANに
接続されているダイオードD1yD2は、過大な電圧が
ANに加わってMCUが破壊するのを防止するためのも
のである。過大な正電圧はダイオードD1でVcc(+
5v)ラインにノベイノ(スされ。
The diode D1yD2 connected to the A/D conversion input terminal AN of the microcomputer MCU is for preventing MCU from being destroyed by excessive voltage being applied to AN. Excessive positive voltage is detected by diode D1 as Vcc(+
5v) Noveino(s) is placed on the line.

また負電圧はダイオードD2で機器アースラインにバイ
パスされる。これにより、MCU等の破損が防止される
。しかし1例えば過大な正電圧が加わった場合、A/D
変換入力端ANの電圧は、Vcc(+5v)にダイオー
ドD1の電圧降下(順方向電圧降下)を加えたレベルに
なるので、V ref (5V)を越えてしまい、制御
不良となる。この関係を第7図に示す。
Further, the negative voltage is bypassed to the equipment ground line by diode D2. This prevents damage to the MCU, etc. However, if an excessive positive voltage is applied, for example, the A/D
Since the voltage at the conversion input terminal AN is at a level equal to Vcc (+5V) plus the voltage drop (forward voltage drop) of the diode D1, it exceeds V ref (5V), resulting in poor control. This relationship is shown in FIG.

本発明は、入力アナログ信号レベルが規定範囲を越える
ことによる、デジタル変換データの、規定範囲内のデー
タとの隔絶した不連続性を改善し上述の如きの制御不良
の発生を防止することを目的とする。
The purpose of the present invention is to improve the discontinuity of digitally converted data with data within a specified range due to input analog signal levels exceeding a specified range, and to prevent the occurrence of control failures as described above. shall be.

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

本発明のAD変換装置は、ゲインが可調整の、アナログ
信号を増幅する増幅手段(A2.POT) :増幅手段
(A2.POT)の出力信号(v2)をデジタルデータ
(AN)に変換するA/D変換手段(MCU) ;およ
び、デジタルデータ(AN)が設定レベル(Vth)以
上を示すものであるとき、・設定レベル(Vth)未満
となるゲインに増幅手段(A2.POT)のゲインを調
整するゲイン調整手段(MCu) ;を備える。
The AD conversion device of the present invention includes an amplification means (A2.POT) that amplifies an analog signal and whose gain is adjustable: A that converts the output signal (v2) of the amplification means (A2.POT) into digital data (AN). /D conversion means (MCU); and when the digital data (AN) indicates the set level (Vth) or more, - Set the gain of the amplification means (A2.POT) to a gain that is less than the set level (Vth). A gain adjustment means (MCu) for adjustment is provided.

〔作用〕[Effect]

増幅手段(A2.POT)の出力信号(v2)が設定値
(Vth)以上のときには、それが設定値(vth)以
下になるように増幅手段(A2.POT)のゲインが調
整されるので、デジタル変換データが規定範囲を外れる
ことがない、つまり、上述のVref以下に設定値(V
th)を定めておくことにより、増幅手段(A2.PO
T)の出力信号(v2)が、適正にデジタル変換しうる
範囲に、自動的に抑制される。
When the output signal (v2) of the amplification means (A2.POT) is greater than or equal to the set value (Vth), the gain of the amplification means (A2.POT) is adjusted so that it becomes less than or equal to the set value (vth). The digital conversion data does not fall outside the specified range, that is, the set value (V
By determining the amplification means (A2.PO
The output signal (v2) of T) is automatically suppressed to a range that can be properly converted into digital data.

上述のゲイン調整により、源アナログ信号に対するデジ
タルデータの関係が変位し、少々はデジタルデータの精
度が落ちるが、a定範囲内のデジタル変換データとの連
続性が比較的に高く(誤差値が小さく)、規定範囲内の
デジタル変換データと断絶したでたらめなものとなるこ
とがないので。
Due to the gain adjustment described above, the relationship between the digital data and the source analog signal changes, and the accuracy of the digital data decreases slightly, but the continuity with the digital conversion data within a certain range is relatively high (the error value is small). ), this prevents the data from becoming random and disconnected from the digital conversion data within the specified range.

制御不良となることがない。すなわち、デジタルデータ
に基づいた制御の安定性が確保される。
There is no possibility of poor control. That is, the stability of control based on digital data is ensured.

本発明の他の目的および特徴は1図面を参照した以下の
実施例の説明より明らかになろう。
Other objects and features of the invention will become apparent from the following description of an embodiment with reference to one drawing.

〔実施例〕〔Example〕

第1図に1本発明の一実施例を示す。この実施例は、す
でに第4図を参照して説明した複写装置と同じ複写装置
に組込まれており、受光器12が受光した、光学系3に
よる光学走査部位より先の原稿反射光がフォトダイオー
ドPDに導かれる。
FIG. 1 shows an embodiment of the present invention. This embodiment is incorporated in the same copying apparatus as the copying apparatus already described with reference to FIG. Guided by PD.

前述したように、フォトダイオードPDには、照射光の
強度に応じた光電流Isが流れるので、増幅器A1はこ
の光電流Isを電圧に置換して増幅する。
As described above, since a photocurrent Is corresponding to the intensity of the irradiated light flows through the photodiode PD, the amplifier A1 converts this photocurrent Is into a voltage and amplifies it.

増幅ai!AIノ出力は、入力抵抗Ri 、 1all
fltA3.A2および電子ボリュームPOTから構成
される可変利得増幅器に入力される。可変利得増幅器の
入力電圧をV1y出力電圧をV2+ フィードバック抵
抗をRfとすると、これらの関係は次式で示される。
Amplification AI! AI output is input resistance Ri, 1all
fltA3. A2 and an electronic volume POT are input to a variable gain amplifier. Assuming that the input voltage of the variable gain amplifier is V1y, the output voltage is V2+, and the feedback resistor is Rf, these relationships are expressed by the following equation.

V2 =VI X (Rf /Rr )   ・・・(
1)フィードバック抵抗Rfは、電子ボリュームPOT
により抵抗値が変化させられる。
V2 =VIX (Rf/Rr)...(
1) Feedback resistance Rf is electronic volume POT
The resistance value is changed by

第2図に、電子ボリュームPOTの回路構成を示す。FIG. 2 shows the circuit configuration of the electronic volume POT.

この電子ボリュームPOTは、7ビツトカウンタ21,
7ビツトカウンタのカウントデータを記憶する不揮発性
メモリ22.電源入力を検知し制御を開始するプログラ
ミングコントロール/パワーオン検出回路23*r1〜
ragの9941の抵抗器アレイ、SWO〜5W99の
100個のスイッチアレイからなる回路25.およびS
Wo〜SW99のスイッチのオン/オフを選択するデコ
ーダ24から構成されている。なお、不揮発性メモリ2
2は、端子C8にH信号が入力されると設定したパルス
数Nをメモリにストアし、いったんストアしたパルス数
Nは電源を切っても消失しない構造となっており、この
メモリは、テレビのチャンネルの記憶や、DIPスイッ
チのかわりに使用されるEEPROMからなる。
This electronic volume POT has a 7-bit counter 21,
Non-volatile memory 22 for storing count data of a 7-bit counter. Programming control/power-on detection circuit 23*r1~ that detects power input and starts control
Circuit 25 consisting of a 9941 resistor array of rag and a 100 switch array of SWO to 5W99. and S
It is composed of a decoder 24 that selects on/off of the switches Wo to SW99. In addition, non-volatile memory 2
2 stores the set number of pulses N in the memory when an H signal is input to the terminal C8, and once the stored number of pulses N is turned off, it does not disappear even if the power is turned off.This memory is stored in the TV. It consists of an EEPROM that stores channels and is used in place of DIP switches.

通常の可変抵抗器が機械的に抵抗値を可変するのに対し
て、この電子ボリュームPOTは、電子的に抵抗値を可
変するものである。つまり、電子ボリュームPOTの端
子vHとVLの間にはr1〜r99の99個の抵抗器が
接続されており、この抵抗器の値をrとすると、端子V
LとVWを接続した場合のVHとVW間の抵抗値、すな
わちフィードバック抵抗Rfは、スイッチSWO〜SW
99を順次オンすることによって0〜99rまで変化さ
せることができる6 例えば、スイッチ5W99がオンであればフィードバッ
ク抵抗Rf =O,スイッチSW98がオンであれば抵
抗Rf = r 、スイッチ5W97がオンであれば抵
抗Rf=2r、  ・・・、スイッチSWOがオンであ
れば抵抗Rf=99rとなる。
While a normal variable resistor changes the resistance value mechanically, this electronic volume POT changes the resistance value electronically. In other words, 99 resistors r1 to r99 are connected between the terminals vH and VL of the electronic volume POT, and if the value of these resistors is r, then the terminal V
The resistance value between VH and VW when L and VW are connected, that is, the feedback resistance Rf, is the switch SWO to SW
99 can be changed from 0 to 99r by sequentially turning on 6. For example, if the switch 5W99 is on, the feedback resistance Rf = O, if the switch SW98 is on, the resistance Rf = r, and if the switch 5W97 is on, the feedback resistance Rf = r. For example, resistance Rf=2r, . . ., if switch SWO is on, resistance Rf=99r.

また、いずれのスイッチをオンにするかは、端子INC
に入力したパルス数Nで決まり、抵抗Rfを大きくする
か、小さくするかは端子U/D−をH信号とするかL信
号にするかにより決まる。
Also, which switch to turn on is determined by the terminal INC.
It is determined by the number of pulses N input into the resistor Rf, and whether the resistor Rf is increased or decreased is determined by whether the terminal U/D- is set to an H signal or an L signal.

従って、端子U/DがH信号の場合の端子INCに入力
したパルス数NとVHVw間の抵抗値Rfの関係は1次
式で示される。
Therefore, when the terminal U/D is an H signal, the relationship between the number N of pulses input to the terminal INC and the resistance value Rf between VHVw is expressed by a linear equation.

Rf =Rf o +NX r    ・・・(2)R
fOは、メモリにストアされ たパルス数に対応する抵抗値 (1)、(2)式より V2 =V1 x(Rf o+ NX r) /R1”
 ’  (3)となる。
Rf = Rf o + NX r ... (2) R
fO is the resistance value (1) corresponding to the number of pulses stored in the memory, and from equation (2), V2 = V1 x (Rf o + NX r) /R1''
'(3) becomes.

(3)式においてRfo、rおよびRiは一定であるか
らNを適当に選定することにより、■1が変化してもv
lを一定にすることができる。
In equation (3), Rfo, r, and Ri are constant, so by appropriately selecting N, even if 1 changes, v
l can be kept constant.

また、端子U/DがL信号の場合の端子INCに入力し
たパルス数NとVH−VW間の抵抗値Rfの関係は1次
式で示される。
Further, when the terminal U/D is an L signal, the relationship between the number N of pulses input to the terminal INC and the resistance value Rf between VH and VW is expressed by a linear equation.

Rf=RfO−NXr    ・・”  (4)(1)
、(4)式より V2 =VIX(Rfo  NXr)/Ri ・・ (
5)となる。
Rf=RfO−NXr...” (4) (1)
, from formula (4), V2 = VIX(Rfo NXr)/Ri... (
5).

(5)式においても(3)式と同様に、Rfo。In equation (5), as in equation (3), Rfo.

rおよびRiは一定であるからNを適当に選定すること
により、vlが変化してもvlを一定にすることができ
る。
Since r and Ri are constant, by appropriately selecting N, vl can be kept constant even if vl changes.

可変利得増幅器の出力は、原稿の地肌濃度を示す電圧信
号v2としてマイクロコンピュータMCUのアナログ入
力ポートANに入力される。
The output of the variable gain amplifier is input to the analog input port AN of the microcomputer MCU as a voltage signal v2 indicating the background density of the original.

マイクロコンピュータMCUは、前述と同様に、信号v
2の大きさにより、コピーに対する原稿2の地肌汚れや
、地肌の色彩、模様の影響をできる限り小さくすべく、
露光ランプ3aの光量、感光体4の感光面の帯電電位お
よび/または現像器7の現像バイアス等を調整する。
The microcomputer MCU receives the signal v as described above.
2, in order to minimize the influence of background dirt, background color, and pattern on the original 2 on the copy.
The amount of light from the exposure lamp 3a, the charging potential of the photosensitive surface of the photosensitive member 4, and/or the developing bias of the developing device 7, etc. are adjusted.

この、マイクロコンピュータMCUのアナログ入力ポー
トANに入力される電圧信号v2に対応のデジタルデー
タ(AN)の増幅率は、標準原稿の反射光のデジタルデ
ータ(AN)が、予めマイクロコンピュータMCUにセ
ットされた標準原稿濃度に対応する所定のデジタル濃度
データ(Vs)に一致するようにスイッチSmがオンに
なる毎に自動的に制御される。
The amplification factor of the digital data (AN) corresponding to the voltage signal v2 input to the analog input port AN of the microcomputer MCU is determined by the digital data (AN) of the reflected light of the standard document being set in the microcomputer MCU in advance. Each time the switch Sm is turned on, it is automatically controlled to match predetermined digital density data (Vs) corresponding to the standard original density.

スイッチSmは、複写装置の内部に備わるサービスマン
用のスイッチであり、サービスマンは、電圧信号■2の
調整(校正)を必要とするとき、スイッチSmをオンに
し、コンタクトガラス1上に標準原稿をセットして操作
ボードに備わるプリントキーをオンにする。
The switch Sm is a switch provided inside the copying machine for use by a service person. When the service person needs to adjust (calibrate) the voltage signal 2, the service person turns on the switch Sm and places the standard document on the contact glass 1. and turn on the print key provided on the operation board.

このときのマイクロコンピュータMCUの動作について
第3a図に示したフローチャートを参照して説明する。
The operation of the microcomputer MCU at this time will be explained with reference to the flowchart shown in FIG. 3a.

マイクロコンピュータMCUは、スイッチSmがオン、
すなわち入力ポート(P5)にH信号が入力すると(ス
テップ1:以下カッコ内では、ステップという語を省略
してそのNo、のみを記す)、予めマイクロコンピュー
タMCUが記憶している標準原稿の濃度に対応するデジ
タル濃度データ(D x)を読出しくVs)に設定する
(2)。そして、出力ポート(P4)からし信号を出力
しランプドライバをオンとし光学系3によりスキャンを
開始しく3)、出力ポート(P3)からL信号を出力し
電子ボリュームPOTの端子2主をイネーブルとする(
4)。
In the microcomputer MCU, switch Sm is on,
That is, when an H signal is input to the input port (P5) (step 1: hereinafter, the word step is omitted and only the number is written in parentheses), the density of the standard document stored in advance in the microcomputer MCU is changed. The corresponding digital density data (Dx) is read out and set to Vs) (2). Then, output a mustard signal from the output port (P4) to turn on the lamp driver and start scanning with the optical system 3. 3) Output an L signal from the output port (P3) to enable the main terminal 2 of the electronic volume POT. do(
4).

次に、入力ポートANに入力する電圧信号v2をデジタ
ル変換して読込み(ADC−A) 、デジタル信号(A
N)とデジタル濃度データ(Vs)が等しいか否かをチ
エツクしく5)、両者が等しいと、出力ポート(P3)
からH信号を出力し電子ボリュームの端子O8をディス
イネーブルとしメモリ22にカウンタ21のカウントデ
ータをストアしく12)、出力ポート(P4)からH信
号を出力してランプドライバをオフとし光学系3のスキ
ャンを終了させる(13)が1両者が異なると、両者を
比較する(6)。
Next, the voltage signal v2 input to the input port AN is digitally converted and read (ADC-A), and the digital signal (ADC-A) is read.
Check whether N) and digital concentration data (Vs) are equal5). If they are equal, the output port (P3)
Outputs an H signal from the output port (P4) to disable terminal O8 of the electronic volume and store the count data of the counter 21 in the memory 22 (12), and outputs an H signal from the output port (P4) to turn off the lamp driver and turn off the optical system 3. The scan is ended (13). If the two are different, the two are compared (6).

ステップ6で、電圧信号v2対応のデジタル信号(AN
)がデジタル濃度データ(Vs)より大きければ出力ポ
ート(P2)から電子ボリュームの端子U/Dにフィー
ドバック抵抗Rfを小さくするためダウンカウントを指
示するL信号を出力しく8)、電圧信号v2対応のデジ
タル信号(AN)がデジタル濃度データ(v8)より小
さければ出力ポート(P2)から電子ボリュームの端子
U/Dにフィードバック抵抗Rfを大きくするためアッ
プカウントを指示するH信号を出力する(7)。
In step 6, a digital signal (AN
) is larger than the digital concentration data (Vs), an L signal is output from the output port (P2) to the terminal U/D of the electronic volume to instruct a down count in order to reduce the feedback resistance Rf. If the digital signal (AN) is smaller than the digital concentration data (v8), an H signal instructing up-counting to increase the feedback resistance Rf is output from the output port (P2) to the terminal U/D of the electronic volume (7).

次に、ステップ9〜11で1パルスをカウンタ21に出
力することによりカウント21をダウンカウント又はア
ップカウントしフィードバック抵抗を1ステップ分変化
させ、ステップ5で、電圧信号v2対応のデジタル信号
(AN)とデジタル濃度データ(Vs)を再度比較する
。そして、両者が等しくなるまで、ステップ5→6→7
(又は8)→9→10→11→5・・なるループを繰返
す、この間に、電圧信号V2対応のデジタル信号(AN
)とデジタル濃度データ(Vs)が等しくなると、出力
ポート(P3)からH信号を出力し電子ボリュームの端
子p互をディスイネーブルとしメモリ22にカウンタ2
1のカウントデータを更新メモリしく12)、出力ポー
ト(P4)からH信号を出力してランプドライバをオフ
とし光学系3のスキャンを終了させ(13)、校正制御
を終了する。
Next, in steps 9 to 11, the count 21 is counted down or up by outputting one pulse to the counter 21 to change the feedback resistance by one step, and in step 5, the digital signal (AN) corresponding to the voltage signal v2 is and the digital density data (Vs) are compared again. Then step 5 → 6 → 7 until both are equal.
(or 8) → 9 → 10 → 11 → 5... repeats the loop, during which the digital signal (AN
) becomes equal to the digital density data (Vs), an H signal is output from the output port (P3), the terminals P of the electronic volume are disabled, and the counter 2 is stored in the memory 22.
The count data of 1 is updated in the memory 12), the H signal is output from the output port (P4), the lamp driver is turned off, the scan of the optical system 3 is completed (13), and the calibration control is completed.

ゲインを変化させている間は、変換データ(八N)が示
す値が、 Vref(Sv)より少し低い設定レベルv
th(第5図参照)以上かをチエツクして(14)、以
上であると操作ボードにエラー表示をしく15)。
While changing the gain, the value indicated by the conversion data (8N) remains at the set level v slightly lower than Vref (Sv).
th (see Fig. 5) or more (14), and if it is more than that, an error is displayed on the operation board (15).

vth未滴になるとエラー表示を消去する(16)、 
したがって、上述のようにセンサの検出レベル校正を行
なっている間に、増幅出力v2が設定レベルvthを越
えたときには、エラー表示が行なれる。
Clears the error display when vth is not dripped (16),
Therefore, when the amplified output v2 exceeds the set level vth while the sensor detection level is being calibrated as described above, an error can be displayed.

エラー表示が無くセンサの検出レベル校正が終了したと
きには、適切なゲインが設定されたことになる。
When the sensor detection level calibration is completed without any error display, an appropriate gain has been set.

なお、第1図に示す電気回路各部に電源が投入されたと
き、電子ボリュームPOTのプログラミングコントロー
ル/パワーオン検出回路23が。
Incidentally, when the power is turned on to each part of the electric circuit shown in FIG. 1, the programming control/power-on detection circuit 23 of the electronic volume POT is activated.

メモリ22のデコーダ24に与えられ、Smが開の間は
このメモリデータが更新されないので、次に校正(Sm
閉)が行われるまでは、メモリ22に書き込まれている
データに対応する増幅率で、原稿濃度検出信号が増幅さ
れて、MCUのポートANに与えられる。
Since this memory data is not updated while Sm is open, the calibration (Sm
Until the closing) is performed, the document density detection signal is amplified with an amplification factor corresponding to the data written in the memory 22 and is applied to the port AN of the MCU.

以上のようにして、アナログ入力ポートANに入力され
る電圧信号v2が原稿濃度に正しく対応するものとなる
In the manner described above, the voltage signal v2 input to the analog input port AN correctly corresponds to the document density.

マイクロコンピュータMCUは、複写サイクルのシーケ
ス制御をしている間の、所定のタイミングで■2をデジ
タル変換して読込み、これに対応して複写画像コントラ
ストを所定の範囲に定めるために、コピー濃度パラメー
タを調整又は変更する。このときのデジタル変換読込み
の内容を第3b図に示す。
The microcomputer MCU digitally converts and reads (2) at a predetermined timing while controlling the sequence of the copy cycle, and correspondingly sets the copy density parameter in order to set the copy image contrast within a predetermined range. Adjust or change. The contents of the digital conversion reading at this time are shown in FIG. 3b.

第3b図を参照すると、まずvlをデジタル変換して読
込む(21)。そして、読込みで得たデータ(AN)が
示すレベルを設定レベルvthと比較しく22)、前者
が後者以上であると、ゲインを1ステツプ下げる(23
〜26)、そしてまたvlをデジタル変換して読込み(
21)、同様にして読込んだレベルがvth以上である
かをチエツクしく22)、 Vth以上であるとまた1
ステツプゲインを下げる。このようにして、vlがvt
h未濃になるまで順次ゲインを下げる。このゲイン調整
により、例えば第5図に示すように、濃度検出信号v1
のレベルが一時的に上昇したときには、vlがvth未
滴になるように自動的に増幅器A2のゲインが下げられ
る。vlが降下すると当然v2が低下するが、ゲインは
低いままとなる。これにより複写画像濃度調整が、正規
値よりややずれることがあり得るが、エラー信号(第5
図に示すvlの山部)によるでたらめな濃度調整は未然
に防止されることになるので、濃度調整の安定性が高い
Referring to FIG. 3b, first, vl is digitally converted and read (21). Then, compare the level indicated by the data (AN) obtained by reading with the set level vth (22), and if the former is higher than the latter, lower the gain by one step (23).
~26), and also digitally convert and read vl (
21) In the same way, check whether the read level is above vth.22) If it is above Vth, it will return 1 again.
Decrease step gain. In this way, vl becomes vt
h Lower the gain one by one until it becomes dark. With this gain adjustment, for example, as shown in FIG.
When the level of V1 rises temporarily, the gain of amplifier A2 is automatically lowered so that vl becomes less than vth. As vl falls, v2 naturally falls, but the gain remains low. This may cause the copy image density adjustment to deviate slightly from the normal value, but the error signal (fifth
Since haphazard density adjustment due to the peaks of vl shown in the figure) is prevented, the stability of density adjustment is high.

複写機の電源が遮断され、そして再投入されると電子ボ
リュームPOTのカウンタ21に、不揮発性メモリ22
のゲイン指定データ(前回のセンサ校正:第3a図で設
定された値)が初期値として設定されるので、上述の、
第3b図のフローによるゲインの調整は、1回の電源オ
フによりキャンセルされ、電源再投入により、センサ校
正(第3a図)で設定されたゲインが再設定されること
になる。このように、アナログ信号(vl)の異常上昇
に対応したゲインの低減は、複写機電源のオフと次のオ
ンにより自動的にキャンセルされる。
When the power of the copying machine is turned off and then turned on again, the non-volatile memory 22 is stored in the counter 21 of the electronic volume POT.
The gain specification data (previous sensor calibration: value set in Figure 3a) is set as the initial value, so the above
The gain adjustment according to the flow shown in FIG. 3b is canceled by turning off the power once, and the gain set in the sensor calibration (FIG. 3a) is reset by turning the power back on. In this way, the reduction in gain corresponding to the abnormal rise in the analog signal (vl) is automatically canceled when the copier power is turned off and then turned on again.

また、スイッチS■を閑にしてセンサの校正(第3a図
)を実行すると、そこで自動的にキャンセルされること
になる。
Moreover, if the sensor calibration (FIG. 3a) is executed with the switch S⊙ set to idle, then the calibration will be automatically canceled.

第6a図に、本発明の第2実施例を示す、外部からの原
稿濃度検知センサー(AEセンサー)からの信号Vin
を乗算型DA変換器AD7528とオペアンプより成る
。プログラマブル・ゲイン・アンプを介してワンチップ
マイコンNEC製μPD7811の内蔵A/D変換器入
力のANへ接続されている0乗算型DA変換器AD75
2gへはマイクロコンピュータμPD7811より(ア
ドレス・データバス)ADバス&コントロール信号線が
接続されており、これらを通してAD7528にO〜2
55までのゲインデータが送信される。
FIG. 6a shows a signal Vin from an external document density detection sensor (AE sensor), showing a second embodiment of the present invention.
It consists of a multiplication type DA converter AD7528 and an operational amplifier. A zero-multiplying DA converter AD75 is connected to the built-in A/D converter input AN of the one-chip microcomputer NEC μPD7811 via a programmable gain amplifier.
AD bus & control signal lines (address/data bus) are connected to AD7528 from microcomputer μPD7811 through these.
Gain data up to 55 is transmitted.

本例ではオペアンプ部のゲインは1であり、プログラマ
ブル・ゲイン・アンプのトータルゲインは。
In this example, the gain of the operational amplifier section is 1, and the total gain of the programmable gain amplifier is:

ゲインデータ÷255となる。よって。The gain data is divided by 255. Therefore.

V a n = V i n・ゲインデータ/255と
なる。
V a n =V i n·gain data/255.

複写機ではAEセンサーの感度補正等の為、機械の初期
調整時等に標準原稿の濃度を基にある一定の値にVan
が成る様にゲインデータを求めこの基準ゲインデータに
よって通常の複写動作時の原稿濃度検知を行なっている
。例えば標準原稿のAEセンサー出力が8■でV a 
nの値を4vに設定するとすると。
In order to correct the sensitivity of the AE sensor in copying machines, Van
The gain data is obtained so that the following is achieved, and the density of the document during normal copying operations is detected using this reference gain data. For example, if the AE sensor output of a standard original is 8■, V a
Suppose we set the value of n to 4v.

ゲインデータ(基準ゲインデータ) = 255 X 
4/8=128 となる。
Gain data (reference gain data) = 255
4/8=128.

通常の複写動作時は128をゲインデータとして設定し
ておき、原稿濃度を検知するAD変換器はV a n、
 :& V r e fの必要があるため通常原稿のバ
ラツキ等を考慮してVinが最大のときであってVre
f(本例では5V)以下となる様に設定される。すなわ
ち、最大でもVin=5X255/128(=約10V
)以下となる。
During normal copying operation, 128 is set as gain data, and the AD converter that detects the original density is Van,
: & Vre
It is set to be less than f (5V in this example). In other words, at most Vin=5X255/128 (=about 10V
) is as follows.

ところが何らかの原因、ノイズ、又はAEセンサー不良
等によりVtnがIOV以上となる場合がある。すると
V a n ) V r e fとなり先に記した制御
不良が発生する。AN入力部に接続されている2つのダ
イオードDI、D2は入力保護用(破壊防止の為でAD
変換データは保証されない)のダイオードであるが、こ
のダイオードを用いてもダイオードの電圧降下分Vdだ
けVanがVref・以上となってしまう。
However, Vtn may exceed IOV due to some reason, noise, or defective AE sensor. Then, V a n ) V r e f and the control failure described above occurs. The two diodes DI and D2 connected to the AN input section are for input protection (to prevent damage).
(Conversion data is not guaranteed), but even if this diode is used, Van will exceed Vref. by the voltage drop Vd of the diode.

第6b図は、第2実施例の入力保護処理のプログラムフ
ローチャートである。(ANDATA)はAD変換器の
AN入力のデジタル値である。
FIG. 6b is a program flowchart of input protection processing in the second embodiment. (ANDATA) is the digital value of the AN input of the AD converter.

(設定ゲイン)は保護処理を実施した後AD7528に
ロードするゲインデータである。Vthはスレッショル
ド値5V>Vthを満足する値である。
(Setting gain) is gain data to be loaded into the AD7528 after performing protection processing. Vth is a value that satisfies the threshold value 5V>Vth.

基準ゲインは初期調整時に定めたゲインである。The reference gain is the gain determined at the time of initial adjustment.

第6bのフローチャートは、複写機のプログラムのルー
プルーチンの中に組込んでおく、このフローチャートで
、まずAN入力をAD変換しくANDATA)ヘスドア
する(31)、次にこの値とvthを比較しく32)、
(設定ゲイン)をAD7528ヘロードして(34)終
了する。ステップ33でNOのときは(設定ゲイン)を
+1して。
Flowchart 6b is incorporated into the loop routine of the copying machine program. In this flowchart, the AN input is first converted to AD (ANDATA) (31), and then this value is compared with vth (32). ),
(Setting gain) is loaded to the AD7528 (34) and the process ends. If NO in step 33, add 1 to (set gain).

ステップ35.34を実行し終了する。ステップ32で
NOのときは(設定ゲイン)を−1して(36)、 (
設定ゲイン)をAD7528ヘロードして(37)再び
ステップ31へもどる。
Perform steps 35.34 and exit. If NO in step 32, (set gain) is -1 (36), (
Load the set gain) to the AD7528 (37) and return to step 31 again.

この第2実施例でも、Vinが何らかの原因により増加
してV a nが4.5V (本例ではVthを4.5
としている)に達すると設定ゲインを基準ゲインより減
らしていく為、Vanは4.5v以上にはならないゆ又
、V i nがピークから減小してくると設定ゲインは
増加され、基準ゲインまで達すると、ゲイン補正は終了
する。
In this second embodiment as well, Vin increases for some reason and V a n becomes 4.5V (in this example, Vth is 4.5V).
When V in decreases from its peak, the set gain is increased until it reaches the reference gain. Once reached, the gain correction ends.

常にAD変換器入力値V a nを監視しておりある一
定のスレッショルド値Vthになったらプログラマブル
・ゲインを減小させるのでV a nがvthを得える
ことはなく、何らかの原因でVinが異常に増加しても
AD変換器の破壊あるいはAD[検値の不保証による制
御不良が防止される。
Since the AD converter input value V a n is constantly monitored and the programmable gain is reduced when it reaches a certain threshold value Vth, V a n will never obtain vth, and if Vin becomes abnormal for some reason. Even if the value increases, destruction of the AD converter or control failure due to unguaranteed AD readings can be prevented.

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

以上説明したとおり、本発明によれば、 A/D変換デ
ータ(AN)が、規定範囲内のデジタル変換データと断
絶したでたらめなものとなることがないので、デジタル
変換データを用いる制御が大きく乱れることがなくなる
。すなわち、デジタルデータに基づいた制御の安定性が
確保される。
As explained above, according to the present invention, the A/D conversion data (AN) does not become random and disconnected from the digital conversion data within the specified range, so the control using the digital conversion data is greatly disturbed. Things will go away. That is, the stability of control based on digital data is ensured.

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

第1図は、本発明の第1実施例を示すブロック図である
。 第2図は、第1図に示した電子ボリュームPOTの構成
概要を示すブロック図である。 第3a図および第3b図は、第1図に示したマイクロコ
ンピュータMCUの動作の一部を示すフローチャートで
ある6 第4図は、実施例装置が組込まれる複写装置の構成を示
すブロック図である。 第5図は、第1図に示す第1実施例の、各部の電気信号
の時系列変化をを示すタイムチャートである。 第6a図は1本発明の第2実施例を示すブロック図であ
る。 第6b図は、第2実施例の動作を示すフローチャートで
ある。 第7図は、従来のAD変換装置においてA/D変換器に
与えられるアナログ信号v2の時系列変化を示すタイム
チャートである。 】:コンタクトガラス       2:原稿3:光学
系            3a=露光ランプ4:感沙
d本               5:帯電チャージ
ャ6:イレーザ          7:現像器8:転
写チャージャ        9:クリーナ10:定着
器            12:受光器PD:フォト
ダイオード ム1.A2 :増幅11           POT
:電子ボリューム(A2.[:増幅手m       
   21ニアビットカウンタ22:不揮発性メモリ 23=プログラミングコントロ一ル/パワーオン検出回
路24:デコーダ       11〜79g :抵抗
器アレイSす0〜5W99 :スイッチアレイ MCU:マイクロコンピュータ(A/D変換手段、ゲイ
ン調整手助R1:抵抗器              
   −:スイッチvR:可変抵抗器
FIG. 1 is a block diagram showing a first embodiment of the present invention. FIG. 2 is a block diagram showing an outline of the configuration of the electronic volume POT shown in FIG. 1. 3a and 3b are flowcharts showing part of the operation of the microcomputer MCU shown in FIG. 1.6 FIG. 4 is a block diagram showing the configuration of a copying machine in which the embodiment device is incorporated. . FIG. 5 is a time chart showing time-series changes in electrical signals of various parts in the first embodiment shown in FIG. FIG. 6a is a block diagram showing a second embodiment of the present invention. FIG. 6b is a flowchart showing the operation of the second embodiment. FIG. 7 is a time chart showing time-series changes in the analog signal v2 given to the A/D converter in a conventional AD converter. ]: Contact glass 2: Original 3: Optical system 3a = Exposure lamp 4: Photo sensor 5: Charger 6: Eraser 7: Developing device 8: Transfer charger 9: Cleaner 10: Fixing device 12: Photo receiver PD: Photo Diode 1. A2: Amplification 11 POT
:Electronic volume (A2. [:Amplification hand m
21 Near bit counter 22: Non-volatile memory 23 = Programming control/power-on detection circuit 24: Decoder 11-79g: Resistor array S0-5W99: Switch array MCU: Microcomputer (A/D conversion means, gain Adjustment aid R1: Resistor
-: Switch vR: Variable resistor

Claims (1)

【特許請求の範囲】 ゲインが可調整の、アナログ信号を増幅する増幅手段; 前記増幅手段の出力信号をデジタルデータに変換するA
/D変換手段;および、 前記デジタルデータが設定レベル以上を示すものである
とき、設定レベル未満となるゲインに前記増幅手段のゲ
インを調整するゲイン調整手段;を備えるAD変換装置
[Claims] Amplifying means for amplifying an analog signal, the gain of which is adjustable; A converting the output signal of the amplifying means into digital data;
/D conversion means; and gain adjustment means for adjusting the gain of the amplification means to a gain that is less than the set level when the digital data indicates a set level or higher.
JP2270031A 1990-03-02 1990-10-08 A/d converter Pending JPH03293818A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP5094990 1990-03-02
JP2-50949 1990-03-02

Publications (1)

Publication Number Publication Date
JPH03293818A true JPH03293818A (en) 1991-12-25

Family

ID=12873076

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2270031A Pending JPH03293818A (en) 1990-03-02 1990-10-08 A/d converter

Country Status (1)

Country Link
JP (1) JPH03293818A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0591040U (en) * 1991-09-20 1993-12-10 スタンレー電気株式会社 A / D converter
JP2016057091A (en) * 2014-09-05 2016-04-21 株式会社東芝 Semiconductor inspection device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0591040U (en) * 1991-09-20 1993-12-10 スタンレー電気株式会社 A / D converter
JP2016057091A (en) * 2014-09-05 2016-04-21 株式会社東芝 Semiconductor inspection device
US9778311B2 (en) 2014-09-05 2017-10-03 Kabushiki Kaisha Toshiba Semiconductor inspection apparatus

Similar Documents

Publication Publication Date Title
JPS6117187B2 (en)
US8144228B2 (en) Image sensor having a ramp generator and method for calibrating a ramp slope value of a ramp signal
CN112583993B (en) Signal correction device and method, image reading device, image processing apparatus
US5453773A (en) Electrophotographic image forming apparatus comprising means for automatically adjusting image reproduction density
JPH03293818A (en) A/d converter
JPH09261411A (en) Controllers for light emitting element, photosensor and blank lamp
JPH0313585B2 (en)
JPS5955445A (en) Copying machine
JPH03249778A (en) Original density detecting device
US5423512A (en) Mirror smudge detecting apparatus for an image forming apparatus
JPS5876862A (en) Controlling method for read of original information
JPH05150622A (en) Image forming device
JPH03255340A (en) Detecting apparatus for density
JP3255907B2 (en) Copier
US5349421A (en) Electrophotographing apparatus
KR950003310B1 (en) Document concentration detecting method
JPH0643561A (en) Automatic image density adjusting device
JPH0211903B2 (en)
JP3227822B2 (en) Imaging device
JPH0643562A (en) Automatic image density adjusting device
JPH0643558A (en) Automatic image density adjusting device
JPH05306999A (en) Correcting device for sensor for density detection
JPH0895460A (en) Image forming device
JPH0239067A (en) Original density detector
JPH0643560A (en) Automatic image density adjusting device