JPH02228725A - Data processor and controller for image forming device - Google Patents

Data processor and controller for image forming device

Info

Publication number
JPH02228725A
JPH02228725A JP1048526A JP4852689A JPH02228725A JP H02228725 A JPH02228725 A JP H02228725A JP 1048526 A JP1048526 A JP 1048526A JP 4852689 A JP4852689 A JP 4852689A JP H02228725 A JPH02228725 A JP H02228725A
Authority
JP
Japan
Prior art keywords
data
latch
converter
output
digital
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
JP1048526A
Other languages
Japanese (ja)
Inventor
Tadashi Ishikawa
正 石川
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP1048526A priority Critical patent/JPH02228725A/en
Publication of JPH02228725A publication Critical patent/JPH02228725A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、D/Aコンバータを含むデータ処理装置、及
び該データ処理装置を用いた複写機、プリンタ等の画像
形成装置用制御装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data processing device including a D/A converter, and a control device for an image forming device such as a copying machine or a printer using the data processing device. It is.

(従来の技術) 従来、複写機、プリンタ等の画像形成装置の電気構成要
素は、プリントシーケンス全体を制御するマイクロプロ
セッサを中心としたシーケンスコントローラ回路、DC
電源、露光電源、帯電等の高圧電圧等、種々のものが独
立していたため、小型化、低価格化するには限界があっ
た。
(Prior Art) Conventionally, the electrical components of image forming apparatuses such as copying machines and printers include a sequence controller circuit centered on a microprocessor that controls the entire print sequence, and a DC
Since various components such as a power source, an exposure power source, and high voltages for charging and the like were independent, there was a limit to miniaturization and cost reduction.

そこで、前記、構成要素を一つのボード上に形成すべく
、マイクロプロセッサ、RAM。
Therefore, in order to form the above-mentioned components on one board, a microprocessor and a RAM.

ROM及びデジタル周辺回路さらに、A/Dコンバータ
、D/Aコンバータ、Mti系の制御のためのパルス幅
変調(P W M : Pu1se widthmod
ulation)回路等を1チツプに集積する提案がな
されている。
ROM and digital peripheral circuits, as well as A/D converter, D/A converter, and pulse width modulation (PWM) for controlling the Mti system.
Proposals have been made to integrate circuits, etc., into a single chip.

(発明が解決しようとする課題) ところが、極めて多数の機能を集積しているため、チッ
プの本来有する出力ボート及び人力ボート機能だけでチ
ップを検査する又はテストプログラムに多くの負担をか
けて検査するという手法では5テスト時間が長くかかり
、結果的にコストアップする結果になっていた。
(Problem to be solved by the invention) However, since an extremely large number of functions are integrated, it is difficult to test the chip using only the output port and manual port functions inherent in the chip, or to test the chip by placing a large burden on the test program. This method took a long time to test, which resulted in an increase in costs.

本発明は、このような事情のもとでなされたもので、こ
の種の装置において特に重要な役割を果たすD/Aコン
バータ関係の検査時間を短縮できる、データ処理装置及
び画像形成装置用制御装置を提供することを目的とする
ものである。
The present invention was made under these circumstances, and provides a control device for a data processing device and an image forming device that can shorten the inspection time related to the D/A converter, which plays a particularly important role in this type of device. The purpose is to provide the following.

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

本発明は前記目的を達成するため、データ処理装置をつ
ぎの(1)のように、又画像形成装置用r#AI御装置
全装置の(2)のように構成するものである。
In order to achieve the above object, the present invention configures a data processing device as shown in (1) below, and as shown in (2) of the r#AI control device for an image forming apparatus.

(1)データ処理装置において、つぎのa ”−8の構
成要素を備えるようにする。
(1) The data processing device is provided with the following components a''-8.

a 、 CP U 、 ROM 、 D / A ニア
 ンバータ、テスト端子、?3を数群のデジタルポート
及びアナログポート。
a, CPU, ROM, D/A inverter, test terminal, ? 3. Several groups of digital ports and analog ports.

b、D/A変換すべきデータがセットされ、該データを
萌記り/Aコンバータへ供給するラッチ。
b. A latch in which data to be D/A converted is set and which supplies the data to the ROM/A converter.

c、前記テスト端子が一方の論理レベルにあるとき、前
J己ROMからデータを読み出して前記ラッチにセット
し、該テスト端子が他方の論理レベルにあるとき、前記
デジタルポートの一群の状態に応じたデータを該ラッチ
にセットする手段。
c. When the test terminal is at one logic level, read data from the previous ROM and set it in the latch, and when the test terminal is at the other logic level, according to the state of the group of digital ports; Means for setting data into the latch.

d、前記テスト端子が他方の論理レベルにあるとき、前
記デジタルポートの他の一群へ前記ラッチのデータを併
給する手段。
d. means for co-feeding the data of the latch to another group of the digital ports when the test terminal is at the other logic level;

、e 前記テスト端子が他方の論理レベルにあるとき、
前記D/Aコンバータの出力を前記アナログポートへ供
給する手段。
, e when the test terminal is at the other logic level,
Means for supplying the output of the D/A converter to the analog port.

(2)前記(1)記載のデータ処理装置と、画像形成装
置の制御プログラム等を格納したROM。
(2) A ROM storing the data processing device described in (1) above and a control program for the image forming device.

RAM、タイマ等のデジタル周辺回路と、該画像形成装
置の各種電源等のIIJ周回路とを同一チップに形成し
て画像形成装置用制御装置を構成する。
Digital peripheral circuits such as a RAM and a timer, and IIJ circuits such as various power sources of the image forming apparatus are formed on the same chip to constitute a control device for the image forming apparatus.

〔作用〕[Effect]

前記(1)、(2)の構成によれば、テスト端子を他方
の論理レベルにしたとき、−群のデジタルポートからD
/Aコンバータへ供給するデータをCPUを介して指示
し、該データを他の一群のデジタルポートから取り出し
、又D/Aコンバータの出力をアナログポートから取り
出すことができる。
According to the configurations (1) and (2) above, when the test terminal is set to the other logic level, D is output from the - group digital port.
The data to be supplied to the A/A converter can be directed through the CPU and retrieved from another set of digital ports, and the output of the D/A converter can be retrieved from the analog port.

〔実施例〕〔Example〕

以下本発明を実施例により説明する。 The present invention will be explained below with reference to Examples.

第2図は、本発明の一実施例である「複写機用制御装置
」のブロック図である。
FIG. 2 is a block diagram of a "copying machine control device" which is an embodiment of the present invention.

本制御装置は、図示のように、マイクロコンピュータと
周辺のメモリ、タイマ等のデジタル回路と共に、D/A
コンバータ9 コンパレータ等のアナログ回路、さらに
パルス幅変調回路としてMAIN  PWM回路1系統
、SUB  PWM回路回路3ゲ路一チップ上に集積さ
れていて2rM写機、プリンタのシーケンス制御、電源
制御等のほとんどの制御機能が本チップに集約されてい
る。
As shown in the figure, this control device includes a microcomputer, peripheral memory, timer, and other digital circuits, as well as D/A
Converter 9 Analog circuits such as comparators, one MAIN PWM circuit as a pulse width modulation circuit, and three SUB PWM circuits are integrated on one chip, and are used for most of the sequence control, power supply control, etc. of 2rM photo machines and printers. Control functions are integrated into this chip.

本制御装置には、CP U コア (CPU C0RE
)を中心ニD^’rA lilEMORY、PROGR
AM MEMORYjNTERRUPTCONTROL
等を内蔵するCPU37部1と、リセットa能2、プロ
グラムの暴走を監視するためのウォッチ ドグ タイマ
(lfATcHDOG TIMER) 3、CPUの情
報をもとにデジタル・アナログ変換を行うべきデータを
格納する7bitラツチ21〜24、D/Aコンバータ
4、また、D/Aコンバータ4とコンパレータ回路5と
共に用い、アナログ・デジタル変換器として機能するA
/Dコンバータ6、D/Aコンバータ、A/D変換ブロ
ック等の動作タイミングをつかさどるタイミングコント
ローラ25、さらに、アナログポートの複数アナログ値
をコンパレータ5の一方の入力とするためのアナログマ
ルチプレクサ回路(MPX回路)8等が内蔵される。
This control device includes a CPU core (CPU C0RE).
) in the center niD^'rA lilEMORY, PROGR
AM MEMORYjNTERRUPT CONTROL
1, a reset function 2, a watchdog timer (lfATcHDOG TIMER) for monitoring program runaway, 3, a 7-bit block that stores data to be converted from digital to analog based on CPU information. latches 21 to 24, a D/A converter 4, and an A that is used together with the D/A converter 4 and comparator circuit 5 to function as an analog-to-digital converter.
A timing controller 25 controls the operation timing of the /D converter 6, D/A converter, A/D conversion block, etc.; ) 8 etc. is built-in.

A/D変換ブロックは、複写機の定着サーミスタ、コピ
ー濃度調整用ボリウム等の各種電圧読み取りのために用
いる。D/Aコンバータは、前記A/D変換ブロックで
利用すると共に、複写機の蛍光灯調光制御、高圧制御等
パルス幅変調回路のコンパレータの基準電圧として用い
ている。
The A/D conversion block is used to read various voltages of the fixing thermistor, copy density adjustment volume, etc. of the copying machine. The D/A converter is used in the A/D conversion block, and is also used as a reference voltage for a comparator in a pulse width modulation circuit for fluorescent light dimming control, high voltage control, etc. of a copying machine.

現像ACバイアス用駆動パルス発生器は、CPU内部ク
ロックを分周するために4bit分周器15と5現像A
Cバイアス用駆動パルスをデユーティ50%とするため
に1/2分周器14を用いている。
The development AC bias drive pulse generator includes a 4-bit frequency divider 15 and a 5-bit frequency divider 15 to divide the CPU internal clock.
A 1/2 frequency divider 14 is used to set the duty of the C bias drive pulse to 50%.

パルス幅変調回路10〜13は、蛍光灯調光制御、高圧
電源、低圧電源の制御に用いるが、低圧電源の制御には
デジタル7bit構成のMAINPWM回路10を使用
し、他の制御には前記コンパレータの出力結果が直接パ
ルス幅変調出力となる構成となワているSUB  PW
M回路11〜13を使用する。また、低圧電源制御のP
WM回路lOは、電源異常時のパルス幅変調出力瞬時シ
ャットダウン機能を持っており、ある規定値を超えると
パルス幅変調出力は、ただちにオフし、回路を保護し複
写機の安全性を高めている。
The pulse width modulation circuits 10 to 13 are used for fluorescent lamp dimming control, high voltage power supply, and low voltage power supply control. The MAIN PWM circuit 10 with a digital 7-bit configuration is used for controlling the low voltage power supply, and the above-mentioned comparator is used for other controls. The SUB PW has a configuration in which the output result is directly a pulse width modulation output.
M circuits 11 to 13 are used. In addition, P of low voltage power supply control
The WM circuit IO has an instantaneous shutdown function for pulse width modulation output in the event of a power failure, and when a certain specified value is exceeded, the pulse width modulation output is immediately turned off, protecting the circuit and increasing the safety of the copier. .

本制御装置には、他にボートとして、各種センサ人力や
コピースタート、コピー枚数の設定など操作部キースイ
ッチ情報の人力用の人力ボートや5モータ、ヒータ、ソ
レノイド等をコントロールする出力ボート、表示用LE
Dドライブのための出力ボートなどがある。
This control device is also equipped with a human-powered boat for human-powered operation including various sensors, copy start, copy number setting, etc., an output boat for controlling 5 motors, heaters, solenoids, etc., and a display boat. L.E.
There is an output boat for the D drive, etc.

また工場・市場などで複写機の動作確認チエツクを行う
ためにチエッカを機械本体と接続するが、このためのシ
リアル通信用ボートなども有する。
In addition, a checker is connected to the main body of the machine to check the operation of the copying machine at factories, markets, etc., and a serial communication boat is also included for this purpose.

そして、チップ・テストを行うためのモード切換え端子
としてテスト端子20がある。アナログマルチプレクサ
8の人力は、6η述の様に定着サーミスタ、!1度調整
用ボリウム等のA/D変換すべき信号と、パルス幅変調
制御すべき低圧電源、高圧電源等の出力からのフィード
バック信号とである。またラッチ(LATCH) 21
〜24は、パルス幅変調制御すべき出力の基準電圧に相
当するデジタルデータをCPU37部1から書き込むこ
とで保持している。なおラッチ21〜24の出力段は、
タイミングコントローラ25からの信号で保持内容を出
力する3ステート構成になっている。
A test terminal 20 is provided as a mode switching terminal for performing a chip test. The human power of analog multiplexer 8 is fixed thermistor as described in 6η,! These are a signal to be A/D converted, such as a one-time adjustment volume, and a feedback signal from the output of a low-voltage power supply, a high-voltage power supply, etc., to be controlled by pulse width modulation. Also latch (LATCH) 21
24 are held by writing digital data corresponding to the reference voltage of the output to be controlled by pulse width modulation from the CPU 37 section 1. Note that the output stages of latches 21 to 24 are as follows:
It has a three-state configuration in which the held contents are output by a signal from the timing controller 25.

A/Dコンバータ6は、最終結果を保持するラッチ、変
換途中のデータを保持するラッチ及びコンパレート結果
により変換データを更新するロジック回路から構成され
る。最終結果を保持するラッチは、ラッチ21〜24と
同様の構成で、CPU37部1からセレクトされること
で保持されている内容をCPU側のデータバス上に送出
する。
The A/D converter 6 includes a latch that holds the final result, a latch that holds data that is being converted, and a logic circuit that updates the converted data based on the comparison result. The latch that holds the final result has the same configuration as the latches 21 to 24, and sends the held contents onto the data bus on the CPU side when selected by the CPU 37 section 1.

ここでA/D変換動作とパルス幅変調動作の全体を詳述
する。先ずCPUコア1は、各PWM出力の制御値をラ
ッチ21〜24に古き込み、又MAIN  PWM動作
に必要な各種データをMAIN  PWMIO内のレジ
スタに書き込む。
Here, the entire A/D conversion operation and pulse width modulation operation will be explained in detail. First, the CPU core 1 writes the control values of each PWM output into the latches 21 to 24, and also writes various data necessary for the MAIN PWM operation to the register in the MAIN PWMIO.

さらに、A/D変換すべきアナログ入力チャンネルデー
タをタイミングコントローラ25内のラッチに書き込む
。
Further, analog input channel data to be A/D converted is written to a latch within the timing controller 25.

タイミングコントローラ25は、先ずラッチ21をセレ
クトしてD/Aコンバータ4にデータすなわちMAIN
  PWMの制御値を出力し、D/Aコンバータ4は、
該データに基づいてアナログ電圧を発生すると同時に、
アナログマルチプレクサ8のMAIN  PWM出力の
フィードバック信号入力端子を選択する。D/Aコンバ
ータ4の出力はコンパレータ5の一方の入力端に入力す
る。又アナログマルチプレクサ8の出力はコンパレータ
5のもう一方の入力端子に人力される。
The timing controller 25 first selects the latch 21 and sends data, ie, MAIN, to the D/A converter 4.
The D/A converter 4 outputs the PWM control value, and
While generating an analog voltage based on the data,
Select the feedback signal input terminal of the MAIN PWM output of analog multiplexer 8. The output of the D/A converter 4 is input to one input terminal of the comparator 5. Further, the output of the analog multiplexer 8 is inputted to the other input terminal of the comparator 5.

コンパレータ5は両人力を比較してアナログマルチプレ
クサ8側の入力がD/Aコンバータ4側の入力より高い
場合はhighを低い場合はlowを出力する。コンパ
レータ5の出力は1bitX511成のレジスタ(ラッ
チ)7に人力される。タイミングコントローラ25は、
コンパレータ5の出力が充分に安定する時間の経過後、
MAIN  PWMに相当するラッチ7の1bitを選
択してコンパレート結果をラッチする。
The comparator 5 compares the power of the two and outputs high when the input on the analog multiplexer 8 side is higher than the input on the D/A converter 4 side, and outputs low when it is lower. The output of the comparator 5 is input to a 1-bit x 511 register (latch) 7. The timing controller 25 is
After the time has elapsed for the output of comparator 5 to become sufficiently stable,
One bit of latch 7 corresponding to MAIN PWM is selected and the comparison result is latched.

次にタイミングコントローラ25は、ラッチ22をセレ
クトしてD/Aコンバータ4にデータを出力し、同時に
アナログマルチプレクサ8のSOB  PWMI出力の
フィードバック信号入力端子を選択し、D/Aコンバー
タ4出力とアナログマルチプレクサ8出力をコンパレー
タ5に人力する。タイミングコントローラ25は前述と
同様にコンパレータ5の出力が充分に安定する時間の経
過後、SUB  PWMI出力に相当するラッチのIb
1tを選択し、コンパレート結果をラッチする。
Next, the timing controller 25 selects the latch 22 to output data to the D/A converter 4, and at the same time selects the feedback signal input terminal of the SOB PWMI output of the analog multiplexer 8, and outputs the data to the D/A converter 4 output and the analog multiplexer. 8 outputs are manually input to comparator 5. As described above, the timing controller 25 adjusts the Ib of the latch corresponding to the SUB PWMI output after the time has elapsed for the output of the comparator 5 to become sufficiently stable.
Select 1t and latch the comparison result.

次にMAIN  PWMに対し、前述と同様の動作を行
い、その次に5LJB  PWM2出力に対し同様の動
作を行い、以下MAIN、SUBPWM3と同様の動作
が繰り返される。これはMA I NPWM出力に対す
るコンパレート動作が他のSUB  PWM出力に対し
て高速を要求されるからである。その次にMAINの動
作を行い、次にA/Dに対する動作を行い、以上の一巡
の動作を繰り返し行われる。すなわち、MAIN→5U
BO→MAIN+5UB1→MAIN→5UB2→MA
 I N−+A/Dを1サイクルとしてこれを順次縁り
返す。
Next, the same operation as described above is performed for MAIN PWM, then the same operation is performed for the 5LJB PWM2 output, and the same operation as for MAIN and SUBPWM3 is repeated. This is because the comparator operation for the MA I NPWM output requires high speed compared to other SUB PWM outputs. Next, the MAIN operation is performed, then the A/D operation is performed, and the above cycle of operations is repeated. In other words, MAIN→5U
BO→MAIN+5UB1→MAIN→5UB2→MA
One cycle is I N-+A/D, and this cycle is sequentially repeated.

ここでA/Dコンバータの動作を述べる。A/Dコンバ
ータ6には前述のように変換途中のデータを保持するラ
ッチがあるが、ロジック回路により初期値として100
OOOOBがラッチされている。タイミングコントロー
ラ25からの選択信号で該ラッチ内容がD/Aコンバー
タ4へ出力される。
Here, the operation of the A/D converter will be described. As mentioned above, the A/D converter 6 has a latch that holds data during conversion, but the initial value is set to 100 by the logic circuit.
OOOOB is latched. The latch contents are output to the D/A converter 4 in response to a selection signal from the timing controller 25.

D/Aコンバータ4の出力はコンパレータ5の一方の端
子に入力され、コンパレータ5のもう一方の端子には、
A/D変換すべきアナログ人力が選択されるようアナロ
グマルチブレク+8を駆動して入力される。
The output of the D/A converter 4 is input to one terminal of the comparator 5, and the other terminal of the comparator 5 is inputted to the
The analog multi-break +8 is driven and input so that the analog input to be A/D converted is selected.

このコンパレート結果により10000008よりアナ
ログ人力が大ならばl100OOOB、小ならば010
0000BというデータをA/Dコンバータ6は生成し
て、A/Dコンバータ6内の変換結果途中を保持するラ
ッチに格納する。さらに次のサイクルで同様にアナログ
入力がxJO(1000B (xはO又は1)より大な
らばxllooooB、小ならばxolooooBとい
うデータをA/Dコンバータ6は生成し、変換途中デー
タとしてラッチに格納する。このように順次各ビットを
確定していき、最後のサイクルでxxxxxxlBとア
ナログ人力を比較し、そのコンパレート結果によりxx
xxxxlB又はxxxxxxOBをA/D変換結実用
レジスタに格納すると同時に、1000000Bを変換
途中ラッチに格納する。CPUコア部1は、A/D変換
結実用レジスタをセレクトすることでA/D変換値を読
み出せる。すなわち、A/D変換動作は常時行われてお
り、変換結果レジスタは常に最新の変換結果を保持して
いる。
Based on this comparison result, if the analog human power is larger than 10000008, it is l100OOOB, and if it is smaller, it is 010.
The A/D converter 6 generates data 0000B and stores it in a latch that holds an intermediate conversion result within the A/D converter 6. Furthermore, in the next cycle, the A/D converter 6 similarly generates data xllooooB if the analog input is larger than xJO (1000B (x is O or 1), and xolooooB if it is smaller than xJO (x is O or 1), and stores it in the latch as data during conversion. In this way, each bit is determined one after another, and in the last cycle, xxxxxxxlB and analog human power are compared, and based on the comparison result, xx
At the same time that xxxxlB or xxxxxxxOB is stored in the A/D conversion practical register, 1000000B is stored in the mid-conversion latch. The CPU core unit 1 can read the A/D conversion value by selecting the A/D conversion practical register. That is, the A/D conversion operation is always performed, and the conversion result register always holds the latest conversion result.

ここで、例えばD/Aコンバータ4の性能をテストする
場合を考える。本実施例でD/Aコンバータ4は、7b
it構成になっているが、前述の様に電源制御、A/D
変換の全ての基準信号源となるため、D/Aコンバータ
4の精度は本チックの動作全体の性能を決定する。それ
故、かなり詳細にチエツクしなければならない。また、
ラッチ21〜24に所定の値がラッチされているかの検
査を行う場合も、ラッチ自体の検査とパスラインの検査
を行わなければならず何通りかのデータを設定してみな
ければならない。
Here, consider, for example, a case where the performance of the D/A converter 4 is tested. In this embodiment, the D/A converter 4 is 7b
IT configuration, but as mentioned above, power supply control, A/D
Since it serves as the reference signal source for all conversions, the accuracy of the D/A converter 4 determines the overall performance of the tick's operation. Therefore, it must be checked in considerable detail. Also,
When testing whether predetermined values are latched in the latches 21 to 24, the latches themselves and the pass lines must be tested, and several types of data must be set.

以上の検査は、例えば、ROM領域に幾種類かのデータ
を書き込んでおき、ソフトでその値を読出して上記ラッ
チ21〜24に設定することも可能であるが、必要とす
るROMエリアが相当量必要であり、かつ変更が出来ず
、また多様な検査を行うためには、プログラムが長くな
る。そこで、本実施例では、テスト時には、特定のデジ
タルポートの人力値をラッチデータとしてラッチ21〜
24に書き込む構成にし、チップ外部から任意の値を設
定してチップの検査を行うようにした。また、同時、D
/Aコンバータ4の出力をアナログマルチプレクサ8の
1ボートへ直接出力し、さらにD/Aコンバータ4のデ
ジタル人力データを直接出力ボートへ出力するようにし
た。
For the above inspection, for example, it is possible to write some types of data in the ROM area, read the values using software, and set them in the latches 21 to 24, but this requires a considerable amount of ROM area. In order to carry out various tests that are necessary and cannot be changed, the program becomes long. Therefore, in this embodiment, during testing, the human power value of a specific digital port is used as latch data to latch 21 to 21.
24, and the chip can be inspected by setting arbitrary values from outside the chip. Also, at the same time, D
The output of the /A converter 4 is directly output to one port of the analog multiplexer 8, and the digital manual data of the D/A converter 4 is directly output to the output port.

以下、テスト手法を詳述する。第1図は、このテスト回
路を含む本実施例要部のブロック図である。
The test method will be explained in detail below. FIG. 1 is a block diagram of the main part of this embodiment including this test circuit.

CPUは、リセット時、テスト端子20をチエツクする
。テスト端子20がhighだとCPUIは通常の動作
を行い、lowだとテスト動作を行うべく、ROM領域
の特別の領域にあるテストプログラムを起動する。また
同時にテスト用にボートの機能を切り換える。図中では
テスト端子20を直接26.27のテスト回路A、Hに
人力してボート機能を切り換えている。
The CPU checks the test terminal 20 at the time of reset. When the test terminal 20 is high, the CPU performs normal operation, and when it is low, a test program in a special area of the ROM area is activated to perform a test operation. At the same time, the boat's functions are switched for testing purposes. In the figure, the boat function is switched by manually connecting the test terminal 20 directly to the test circuits A and H at 26 and 27.

テスト回路Aは、D/Aコンバータ4の出力を8チヤン
ネルあるアナログ入力端子のうちの1チヤンネルへ直接
出力するアナログスイッチである。またテスト回路Bは
、D/Aコンバータ4のデジタル人力を直接デジタルポ
ート(実施例ではLEDボート)へ出力するように切り
換える3ステートのバッファであり、同時にデータがぶ
つからないように同様に3ステートのLEDドライバ1
9をハイインピーダンスにする。
Test circuit A is an analog switch that directly outputs the output of D/A converter 4 to one channel of eight channels of analog input terminals. Test circuit B is a 3-state buffer that switches the digital power of the D/A converter 4 to be directly output to the digital port (LED port in the embodiment), and is also a 3-state buffer to prevent data from colliding at the same time. LED driver 1
Set 9 to high impedance.

テストプログラムは、常時、不図示のデジタル人力ボー
トを見に行き、入力ボート値によりラッチ21〜24に
、データをセットする。この場合、セットすべきラッチ
は複数個あるため、入力ボートを、ラッチを特定する2
bitとラッチにセットするデータの7bitに分けて
用いる。すなわち、例えば9bitの人力データのうち
上位2bitをラッチセレクト、下位7bi tをデー
タとしておく。プログラムは、この9bitを読み込み
、上位2bitでラッチ21〜24のうちの1ケをアド
レスし、下位7bitをデータとしてデータバス上に送
出する。今、話をm*にするためラッチが2ケあるとし
て説明すると、ボートに第1のラッチのデータとして″
111月月”を与え、次に第2のラッチのデータとして
“oooooo。
The test program always checks the digital manual boat (not shown) and sets data in the latches 21 to 24 according to the input boat value. In this case, there are multiple latches to set, so the input port is
It is divided into 7 bits: bit and data set in the latch. That is, for example, the upper 2 bits of the 9-bit manual data are selected as a latch, and the lower 7 bits are set as data. The program reads these 9 bits, addresses one of the latches 21 to 24 with the upper 2 bits, and sends the lower 7 bits as data onto the data bus. Now, to make the discussion m*, let's explain that there are two latches, and the data of the first latch will be stored in the boat as "
November, month” and then “ooooooo” as the data for the second latch.

”を与える。そしてLEDボートをチエツクすると“1
111111 ”と“ooooooo ”が交互に出力
されるはずである。これで例えは一方のデータしか出力
さねなければラッチが故障しているか、アドレスデコー
ドが故障しているか、またはアドレスデコードの出力ラ
インすなわちラッチのセレクトラインが断線、ショート
しているか等の可能性を判定できる。
”. Then, when you check the LED boat, “1
111111" and "oooooooo" should be output alternately. For example, if only one of the data is output, the latch is malfunctioning, the address decoding is malfunctioning, or the output line of the address decoding is malfunctioning. In other words, it is possible to determine whether the select line of the latch is disconnected or short-circuited.

次に第1のラッチデータとして” 1010101“第
2のラッチデータとして01(11030”を与えれば
同様にLEDボートに1010+01“と“01010
10”が交互に出力されるが、ここで例えば03(11
01”が出力されれば第1のラッチの6ビツト目の入力
ラインが隣接ビットとショートしている又はV。0にシ
ョートしている等の可能性があると判定できる。
Next, if you give "1010101" as the first latch data and "01 (11030") as the second latch data, the LED boat will similarly have 1010+01" and "01010".
10” are output alternately, but here, for example, 03 (11
If "01" is output, it can be determined that there is a possibility that the input line of the 6th bit of the first latch is shorted to an adjacent bit or shorted to V.0.

又、第1 (D ラッチデータとして“ooooooo
 ”から“101111−まで順次変化させてゆき、ア
ナログ人力Oの電圧を判定してゆくと、D/Aコンバー
タ4の蹟度が設定値に対して正常範囲内かどうかを検査
できる。
Also, as the first (D latch data) “ooooooo
” to “101111-” and determine the voltage of the analog human power O, it is possible to check whether the degree of turbulence of the D/A converter 4 is within the normal range with respect to the set value.

このようにして、CPUコア1.ラッチ21〜24、D
/Aコンバータ4の検査を短時間に行うことができる。
In this way, CPU core 1. Latches 21-24, D
/A converter 4 can be inspected in a short time.

以上の実施例の変形としてっぎのa〜Cのように構成し
ても同様の作用、効果を得ることができる。
Similar functions and effects can be obtained even if the above-described embodiments are modified as shown in A to C below.

a、LEDドライバ19を3ステートにせずに使う。即
ち、LEDボートを通常のオーブンドレイン(オーブン
コレクタ)構成にすれば、ワイヤードORが可能になる
。テストプログラムに入った直後に、LEDデータとし
て、′o“をCPUから出力におく。このようにすると
。
a. Use the LED driver 19 without setting it to 3 states. That is, if the LED boat has a normal oven drain (oven collector) configuration, wired OR is possible. Immediately after entering the test program, 'o' is output from the CPU as LED data. Do this.

LEDドライバ】9の出力はOFF状憇であり。The output of LED driver] 9 is in the OFF state.

テスト回路Bの出力がそのままLEDボートへ出力され
る。
The output of test circuit B is directly output to the LED boat.

b、実施例はテスト端子20でテスト回路A。b. Example is test circuit A with test terminal 20.

Bをアクティブにしているが、テストフラッグとして1
bitラツチを設け、CPUがソフトで該1bitラツ
チをセット、リセットするようにしておく。
B is active, but 1 as a test flag
A bit latch is provided, and the CPU sets and resets the 1-bit latch using software.

(イ)通常の動作中に、外乱によりテスト端子20がl
owになっても、ソフトがテスト端子を読み込みフラグ
をセットしない限り、ハードがテスト動作に切り換わる
ことは無い。
(b) During normal operation, the test terminal 20 is
Even if it becomes OW, the hardware will not switch to test operation unless the software reads the test terminal and sets the flag.

(ロ)テスト回路A、Bは、通常のボート機能を切り換
えるので本来のボート機能を検査できない。そこで例え
ば入力ポートの1bitをテストのモード切り換えビッ
トとし、この1bitのセット、リセットにより、テス
ト回路A、Bをアクティブにするかどうかを換えること
で、本来のボート機能も検査できる。
(b) Since the test circuits A and B switch the normal boat functions, the original boat functions cannot be tested. Therefore, for example, by setting 1 bit of the input port as a test mode switching bit and changing whether or not test circuits A and B are activated by setting and resetting this 1 bit, the original port function can also be tested.

C9入力ポートが不足したときは、本来出力ボートであ
るボートをテスト時のみ、人力ボートとして用いる。
When there is a shortage of C9 input ports, the boat that is originally an output boat is used as a human-powered boat only during testing.

以上は複写機用制御装置の例であるが、上述のテスト動
作は、アナログ量をデジタルデータに変換し、CPUで
データ処理する、D/Aコンバータを含む、−数的なデ
ータ処理装置に適用できることが明らかである。
The above is an example of a control device for a copying machine, but the test operation described above is applicable to numerical data processing devices, including D/A converters, that convert analog amounts into digital data and process the data with a CPU. It is clear that it can be done.

(発明の効果) 以上説明したように、本発明によりば、テスト端子を他
方の論理レベルにしてテスト動作とし、試験的にD/A
変換するデータをデジタルポートの一群から指示し、所
定のデータがラッチにセットされD/Aコンバータに供
給されているかどうかをデジタルポートの他の一群から
読み出し、またD/Aコンバータの変換結果をアナログ
ポートから読み出すことが出来るので、cpu、ラッチ
、D/Aコンバータの検査が短時間で行うことができ、
又、多様なパターンの検査をROM領域を費さすに行う
ことができる。
(Effects of the Invention) As explained above, according to the present invention, the test terminal is set to the other logic level to perform the test operation, and the D/A
Instruct the data to be converted from one group of digital ports, read from the other group of digital ports whether the specified data is set in the latch and supplied to the D/A converter, and convert the conversion result of the D/A converter to analog Since it can be read from the port, inspection of the CPU, latch, and D/A converter can be performed in a short time.
In addition, inspection of various patterns can be performed without using up the ROM area.

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

第1図は本発明の一実施例要部のブロック図、第2図は
同実施例全体のブロック図である。 1・・・・・・CPυコア 4−−−−− D / Aコンバータ 8−−−−−アナログマルチプレクサ 19−−−−LEDドライバ 20−−−−−テスト端子 21〜24−−−−−ラッチ
FIG. 1 is a block diagram of a main part of an embodiment of the present invention, and FIG. 2 is a block diagram of the entire embodiment. 1...CPυ core 4-----D/A converter 8-----Analog multiplexer 19----LED driver 20----Test terminals 21 to 24---- latch

Claims (2)

【特許請求の範囲】[Claims] (1)つぎのa〜eの構成要素を備えていることを特徴
とするデータ処理装置。 a、CPU、ROM、D/Aコンバータ、テスト端子、
複数群のデジタルポート及びアナログポート。 b、D/A変換すべきデータがセットされ、該データを
前記D/Aコンバータへ供給するラッチ。 c、前記テスト端子が一方の論理レベルにあるとき、前
記ROMからデータを読み出して前記ラッチにセットし
、該テスト端子が他方の論理レベルにあるとき、前記デ
ジタルポートの一群の状態に応じたデータを該ラッチに
セットする手段。 d、前記テスト端子が他方の論理レベルにあるとき、前
記デジタルポートの他の一群へ前記ラッチのデータを供
給する手段。 e、前記テスト端子が他方の論理レベルにあるとき、前
記D/Aコンバータの出力を前記アナログポートへ供給
する手段。
(1) A data processing device characterized by comprising the following components a to e. a, CPU, ROM, D/A converter, test terminal,
Multiple groups of digital and analog ports. b. A latch in which data to be D/A converted is set and supplies the data to the D/A converter. c. When the test terminal is at one logic level, read data from the ROM and set it in the latch, and when the test terminal is at the other logic level, data according to the state of the group of digital ports. means for setting the latch to the latch. d. means for supplying the data of the latch to another group of the digital ports when the test terminal is at another logic level; e. means for supplying the output of the D/A converter to the analog port when the test terminal is at the other logic level;
(2)請求項1記載のデータ処理装置と、画像形成装置
の制御プログラム等を格納したROM、RAM、タイマ
等のデジタル周辺回路と、該画像形成装置の各種電源等
の制御回路とを同一チップに形成したことを特徴とする
画像形成装置用制御装置。
(2) The data processing device according to claim 1, digital peripheral circuits such as ROM, RAM, timer, etc. storing control programs for the image forming device, and control circuits such as various power supplies of the image forming device are integrated on the same chip. 1. A control device for an image forming apparatus, characterized in that the control device is formed as follows.
JP1048526A 1989-03-02 1989-03-02 Data processor and controller for image forming device Pending JPH02228725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1048526A JPH02228725A (en) 1989-03-02 1989-03-02 Data processor and controller for image forming device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1048526A JPH02228725A (en) 1989-03-02 1989-03-02 Data processor and controller for image forming device

Publications (1)

Publication Number Publication Date
JPH02228725A true JPH02228725A (en) 1990-09-11

Family

ID=12805805

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1048526A Pending JPH02228725A (en) 1989-03-02 1989-03-02 Data processor and controller for image forming device

Country Status (1)

Country Link
JP (1) JPH02228725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9793895B2 (en) 2015-12-28 2017-10-17 Fujitsu Limited Electronic circuit, latch circuit, and external action detecting circuit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9793895B2 (en) 2015-12-28 2017-10-17 Fujitsu Limited Electronic circuit, latch circuit, and external action detecting circuit

Similar Documents

Publication Publication Date Title
JPH0487559A (en) High-voltage power source controller
CA1288828C (en) Clock pulse generator for microcomputer
CN202111899U (en) LED decorative tube and its integrated driving circuit including 24V numerical control overvoltage protection circuit
TW437169B (en) Reset circuit for flip-flop
JPH02176672A (en) Control device for image forming apparatus
JP2973004B2 (en) Control device
JP2814253B2 (en) Control device
JPH06217554A (en) Equipment and method for controlling inverter by pulse-width modulation
CN116930723A (en) Chip and test circuit thereof
JP2832606B2 (en) Power circuit control device
JPH0299878A (en) Controller for image former
JP2006332456A (en) Semiconductor device and test mode setting method
JP2821888B2 (en) Power circuit control device
JPH0337679A (en) Controller for image forming device
JPH01316755A (en) Integrated circuit for image forming device and its manufacture
CN219574773U (en) Multi-board system, server and electronic equipment
US5590035A (en) Output control circuit
CN216699073U (en) Laser array driving module
JPH02176671A (en) Picture forming device
CN114336271B (en) Preparation method of laser array driving module
JPH01318546A (en) Pulse width modulation stabilized power source and integrated circuit containing the same power source
JP2672496B2 (en) Traffic signal controller
CN109680400B (en) Intelligent needle selector driving circuit
JPH0793039A (en) Power supply
KR910009812B1 (en) Analog signal strength display method using pwm signal