JPS6235974A - Controller for image forming device - Google Patents
Controller for image forming deviceInfo
- Publication number
- JPS6235974A JPS6235974A JP60175302A JP17530285A JPS6235974A JP S6235974 A JPS6235974 A JP S6235974A JP 60175302 A JP60175302 A JP 60175302A JP 17530285 A JP17530285 A JP 17530285A JP S6235974 A JPS6235974 A JP S6235974A
- Authority
- JP
- Japan
- Prior art keywords
- time
- processor
- signal
- address
- instruction
- 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.)
- Granted
Links
Landscapes
- Processing Or Creating Images (AREA)
- Feedback Control In General (AREA)
- Control By Computers (AREA)
- Programmable Controllers (AREA)
- Control Or Security For Electrophotography (AREA)
Abstract
Description
【発明の詳細な説明】
く技術分野〉
本発明は画像形成を実行する複数のプロセス手段のシー
ケンスの実行タイミングを制御する画像形成装置の制御
装置に関する。DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to a control device for an image forming apparatus that controls the execution timing of a sequence of a plurality of process means that execute image formation.
く解決すべき問題点〉
マイクロコンピュータの発展に伴なって、リレーシーケ
ンス回路や、ロジックICの組み合わせによる論理回路
によって制御していた画像形成用負荷を、マイクロコン
ピュータのプログラム制御によって実現するようになっ
た。Problems to be solved> With the development of microcomputers, the image forming load, which used to be controlled by relay sequence circuits and logic circuits combining logic ICs, has come to be realized by microcomputer program control. Ta.
そして、マイクロコンピュータ化するようになって、本
来それぞれの画像形成用負荷を平行制御するところを、
プログラム制御による時分割制御を行ない、仮想的に並
行制御を実現してきた。Then, with the introduction of microcomputers, the parallel control of each image forming load was changed.
Virtual parallel control has been realized by time-sharing control using program control.
ところが、高速応答性を要求される制御には、プログラ
ムによる時分割制御は適さない。However, time-sharing control using a program is not suitable for control that requires high-speed response.
その為にこういった部品の制御には、1つの負荷に対し
て1つのマイクロコンピュータを対応させたり、専用の
ハードウェア回路を付加したりして対処していた。For this reason, the control of these parts has been handled by assigning one microcomputer to one load, or by adding dedicated hardware circuits.
たとえば複写機を例にあげて、これらの説明をする。These will be explained using a copying machine as an example.
第2図は本発明を適用し得る複写機の構成図である。蛍
光灯などの原稿照明手段100により原稿がスリット照
明され、原稿像がズームレンズ107によって、感光ド
ラム108」−に結像される。このときの原稿反射光は
、第1ミラーlot、第2ミラー102、第3ミラー1
03、ズームレンズ107、第4ミラー104、第5ミ
ラー105.第6ミラー106を介して感光ドラム10
8に導かれる。FIG. 2 is a block diagram of a copying machine to which the present invention can be applied. The original is slit-illuminated by an original illuminating means 100 such as a fluorescent lamp, and an image of the original is formed on a photosensitive drum 108'' by a zoom lens 107. At this time, the original reflected light is reflected from the first mirror lot, the second mirror 102, and the third mirror 1.
03, zoom lens 107, fourth mirror 104, fifth mirror 105. The photosensitive drum 10 via the sixth mirror 106
Guided by 8.
感光ドラム108の矢印の方向への回転にあわせ、原稿
照明手段100と第1ミラー101が矢印の方向に移動
する。そしてこれの麦の速度で第2ミラー102と第3
ミラー103が矢印の方向に移動する。これは光H+
109の長yを一定にするためである。As the photosensitive drum 108 rotates in the direction of the arrow, the document illuminating means 100 and the first mirror 101 move in the direction of the arrow. And at this speed, the second mirror 102 and the third
Mirror 103 moves in the direction of the arrow. This is light H+
This is to keep the length y of 109 constant.
そして原稿の長さ分、第1ミラー101が移動したのち
、後進に切り替え、元の位置に戻る。尚、原稿先端位置
および第1ミラーのツ(本位置が、画先センサ110と
走査ホームポジションセンサ111によって検出できる
ようになっている。After the first mirror 101 has moved by the length of the document, it is switched to backward movement and returned to its original position. Note that the leading edge position of the document and the main position of the first mirror can be detected by the image leading edge sensor 110 and the scanning home position sensor 111.
感光ドラム108の周辺には、−成帯電器112、ブラ
ンク露光照明器113、現像器114、転写帯電器11
5、分離器116、クリーナ117.除電器118が備
えられている。スリット露光された原稿の結像点の光強
度による電位変化によって形成された静電潜像を現像し
、それを複写紙に転写する。複写紙は搬送手段119に
より定着器120を介し、排紙される。Around the photosensitive drum 108, a negative charger 112, a blank exposure illuminator 113, a developer 114, and a transfer charger 11 are installed.
5, separator 116, cleaner 117. A static eliminator 118 is provided. An electrostatic latent image formed by a potential change depending on the light intensity at the image point of the slit-exposed document is developed, and the image is transferred onto copy paper. The copy paper is ejected by the conveying means 119 via the fixing device 120.
この複写紙は1カセツト121もしくは下カセット12
2に保持されており、給紙ローラ123もしくは給紙ロ
ーラ124により1枚ピックアツプネれ、レジストロー
ラ125の位置で一時停+1ニする。This copy paper is placed in one cassette 121 or the lower cassette 12.
2, one sheet is picked up by the paper feed roller 123 or the paper feed roller 124, and the paper is temporarily stopped at the position of the registration roller 125.
第1ミラーlotが矢印方向に移動し、画先センサ11
0により、原稿先端部分の結像が行なわれる時刻を検知
し、そのときの感光ドラム108の結像位置が、転写帯
電器115の位置まで回転する時間を見計らい、この時
刻の複写紙の先端も転写帯電器115の位置に移動する
ように時間調整して、レジストローラ125を回転させ
、複写紙1−の画像位置合わせを行なう。The first mirror lot moves in the direction of the arrow, and the image tip sensor 11
0, the time at which the leading edge of the document is imaged is detected, and the leading edge of the copy paper at this time is determined by determining the time at which the image forming position of the photosensitive drum 108 rotates to the position of the transfer charger 115. The time is adjusted so as to move to the position of the transfer charger 115, and the registration roller 125 is rotated to align the image on the copy paper 1-.
以上の複写機の動作を制御するのに、従来は機器制御用
マイクロコンピュータを用いて行なっていた。Conventionally, a device control microcomputer has been used to control the operations of the copying machine described above.
たとえば、インテル社製の8049や8051がこれに
当たる。簡単のために、光学系の走査と複写紙の給紙の
制御に関する従来の制御回路を抽出し、第3図に示す。For example, Intel's 8049 and 8051 fall under this category. For the sake of simplicity, a conventional control circuit for controlling the scanning of the optical system and the feeding of copy paper is extracted and shown in FIG.
図中201が、機器制御用マイクロコンピュータであり
、RAM202、ROM203と外部バス203を介し
て接続yれている。マイクロコンピュータ201の内部
では、CPU210、RAM211、入力ポート212
、出カポ−)213、プログラマブル発振器214等が
内部バス215を介して接続されている。In the figure, reference numeral 201 denotes a device control microcomputer, which is connected to a RAM 202 and a ROM 203 via an external bus 203. Inside the microcomputer 201, a CPU 210, a RAM 211, an input port 212
, an output coupler 213 , a programmable oscillator 214 , and the like are connected via an internal bus 215 .
入力ボート212のポー)AOには、走査ホームポジシ
ョンセンサ110から入、IUバッファ220を介し、
信号SHPが入力され、ボートAIには、画先センサ1
11から入力バッファ221を介し、信号STが入力さ
れ、ボートA2にはレジストローラ215直前の紙セン
サ126から、入力バッファ222を介し、信号PRE
Gが入力される。The input port AO of the input boat 212 is input from the scanning home position sensor 110, via the IU buffer 220,
The signal SHP is input, and the boat AI receives the image tip sensor 1.
11 via the input buffer 221, and the boat A2 receives the signal PRE from the paper sensor 126 immediately before the registration roller 215 via the input buffer 222.
G is input.
信号SHPは、原稿照明手段100が、基本位置にある
ときl、そうでないときO1信号STは原稿先端を結像
する位置に原稿照明手段lOOが到達したとき、0から
1に変化し、それ以外の位置では、Oとなる。信号PR
EGは、レジストローラ125直前に複写紙があるとき
l、そうでないときOとなる。The signal SHP changes from 0 to 1 when the document illumination means 100 is at the basic position, and the O1 signal ST changes from 0 to 1 when the document illumination means 100 reaches the position where the leading edge of the document is imaged otherwise. At the position, it becomes O. Signal PR
EG is l when there is copy paper immediately before the registration roller 125, and O otherwise.
原稿照明手段lOOや第1ミラー101.第2ミラー1
02、第3ミラー103はDCモータM2によって、駆
動される。最近のように無段階変倍を実施するためには
、主走査方向の縮小、拡大にはズームレンズ107で対
応し、副走査方向の縮小、拡大は原稿の走査速度をかえ
て実施する。この速度調整のために、走査モータコント
ローラ230を介し、DCモータM2はマイクロコンピ
ュータ201より制御される。ポートCOは、プログラ
マブル発振器214の出力端子であり、この発振周波数
と走査速度目標を対比させ、DCモータM2を制御する
。そしてエンコーダEよりモータの回転速度を検出し、
これをフィードバックさせ、DCモータM2を速lf制
御信号Fsに従った速度に保つように走査モータコント
ローラ230がモータM2の速度制御を行なう。尚、ポ
ートBOの信号FWを1にすることにより、原稿照明手
段100等が前進する向きにモータを回転させ、ポート
Blの信号RVを1にすることにより後退する向きにモ
ータを回転させ、ポートB2の信号BRKを1にするこ
とにより、ブレーキがかかる。Original illumination means lOO and first mirror 101. 2nd mirror 1
02, the third mirror 103 is driven by a DC motor M2. In order to perform stepless magnification as has been done recently, reduction and enlargement in the main scanning direction are handled by the zoom lens 107, and reduction and enlargement in the sub-scanning direction are carried out by changing the scanning speed of the document. For this speed adjustment, the DC motor M2 is controlled by the microcomputer 201 via the scanning motor controller 230. Port CO is an output terminal of programmable oscillator 214, and controls the DC motor M2 by comparing this oscillation frequency with a scanning speed target. Then, the rotation speed of the motor is detected by encoder E,
This is fed back and the scanning motor controller 230 controls the speed of the motor M2 so as to keep the DC motor M2 at a speed according to the speed lf control signal Fs. By setting the signal FW at port BO to 1, the motor is rotated in a direction in which the document illumination means 100 and the like move forward, and by setting the signal RV at port BL to 1, the motor is rotated in a direction in which the document illumination means 100 and the like move backward. The brake is applied by setting the signal BRK of B2 to 1.
ポー)B3からは信号MMが出力され、メインモータド
ライバ231を介しメインモータMlに接続されている
。メインモータは感光ドラム108や給紙ローラ123
,124やレジストローラ125等、走査系を除く駆動
部分を動かすのに用いられる。そして信号MMを1にし
たときメインモータMlは定速度回転を行ない、0にし
たとき停止する。ポーhB4.B5は信号PICI、P
IC2が出力され、ハンマドライバ240.241を介
しクラッチCL1、CL2にそれぞれ接続されている。A signal MM is output from the port B3 and is connected to the main motor Ml via the main motor driver 231. The main motor is the photosensitive drum 108 and paper feed roller 123
, 124, registration roller 125, and other driving parts other than the scanning system. When the signal MM is set to 1, the main motor Ml rotates at a constant speed, and when the signal MM is set to 0, it is stopped. Poe hB4. B5 is the signal PICI, P
IC2 is output and connected to clutches CL1 and CL2 via hammer drivers 240 and 241, respectively.
クラッチCLI 、CL2はそれぞれ給紙ローラ123
゜124の回転、停止にの制御をするもので、信号PI
CI、PIC2をそれぞれ1にしたとき、給紙ローラが
回転し、0にしたとき停止にする。Clutches CLI and CL2 each correspond to paper feed rollers 123
It controls the rotation and stopping of ゜124, and the signal PI
When CI and PIC2 are each set to 1, the paper feed roller rotates, and when set to 0, it stops.
ポー)B6は信号REGが出力され、ハンマドライバ2
42を介してクラッチCL3に接続されている。クラッ
チCL3はレジストローラ125の回転、停止を制御す
るもので、信号REGを1にすることにより、レジスト
ローラ125が回転し、0にすることにより停止l二す
る。signal REG is output to hammer driver 2
It is connected to clutch CL3 via 42. The clutch CL3 controls the rotation and stopping of the registration roller 125. When the signal REG is set to 1, the registration roller 125 rotates, and when the signal REG is set to 0, the registration roller 125 is stopped.
これ以外にも複写機の制御対象は、現像器の回転、停止
1−1現像バイアスの印加、各帯電器の電圧印加、除電
器のオンオフ、ズームレンズの駆動、操作部の表示、キ
ー人力制御など、数多くあるが、これらについては省略
した。In addition to this, the control objects of the copying machine include rotation of the developing device, application of stop 1-1 developing bias, voltage application to each charger, on/off of the static eliminator, driving of the zoom lens, display on the operating section, and manual key control. There are many others, but I have omitted them.
このような構成で、CPU210を動作させ、複写機を
制御するプログラムの一例を第4図に示す。FIG. 4 shows an example of a program for operating the CPU 210 and controlling the copying machine with such a configuration.
ステップ3301では、RAM202と内部RAM21
1の変数の初期値を代入し、複写機の初期設定を行なう
。In step 3301, RAM 202 and internal RAM 21
Assign the initial value of variable 1 and initialize the copying machine.
ステップ5302では、操作パネルの表示やキー人力の
処理を行なう。オペレータの指示の解析を行ない、それ
に対する表示や複写機の状態の表示を行なう。In step 5302, the display on the operation panel and the manual processing of keys are performed. Analyzes the operator's instructions and displays the instructions and the status of the copying machine.
ステップ3303では、帯電器、現像器などの電子写真
プロセスの制御を行なう。In step 3303, the electrophotographic process such as a charger and a developer is controlled.
ステップ3304では、複写紙の給紙制御を行なう。In step 3304, copy paper feeding control is performed.
ステップ5305では、複写紙の給紙と同期して、原稿
照明手段等の走査制御を行なう。In step 5305, scanning control of the document illumination means and the like is performed in synchronization with the feeding of copy paper.
そしてステップ5306でズームレンズ移動などに用い
られる、ステッピングモータの駆動などを行ない、その
後、ステップ5302に戻って、これらの処理を繰り返
す。Then, in step 5306, a stepping motor used for moving the zoom lens, etc. is driven, and then the process returns to step 5302 to repeat these processes.
このように複写機を制御するには、複数個の処理を時分
割して行なっている。In order to control the copying machine in this way, a plurality of processes are performed in a time-divided manner.
このような場合、操作表示処理を行なっているときに、
原稿照明手段が原稿先端位置を通過した場合、走査系処
理の番がまわってくるまで、原稿先端位置検出の時間が
遅れ、これにより、レジストローラ125の回転開始時
間が遅れ、複写紙−トの画面位置が、前方にずれてしま
うことがありうる。そのために、原稿先端位置検出等は
、その入力を割込入力端子に入れ、CPUに割込みをか
けるなどして、強制的にCPU210に原稿先端位置を
知らせ、その時刻からレジストローラ125の回転開始
時刻を算出させる、というような工夫が必要であった。In such a case, when performing operation display processing,
When the document illumination means passes the document leading edge position, the time for detecting the document leading edge position is delayed until it is the turn of the scanning system processing, which delays the rotation start time of the registration roller 125, and the copy paper The screen position may shift forward. For this purpose, for detecting the leading edge position of the original, the input is input to the interrupt input terminal, interrupting the CPU, etc., to forcibly inform the CPU 210 of the leading edge position of the original, and from that time the registration roller 125 starts rotating. It was necessary to devise a way to calculate the .
以上は数msのずれが、機器動作に悪影響を与える例を
示したが、−・般に、ステップ302からステップ30
6の各処理を完結してから次に進む方法では制御ができ
ない。とくにステップ8303〜5305は、本来同時
進行するものなので同時処理が必要になる。従って、リ
アルタイムモニタプログラムなどの基本プログラムの下
で、ステップ8302〜ステツプ5306を動作させる
か、または、ステップ5303からステップ5305を
1つのプログラムにまとめて記述するかのいずれかを選
択しなければならない。前者は、各ステップの処理の切
り替えに要する時間、すなわちオーバーヘッドが大きく
、CPUの利用効率が低下する。後者の方式は、プログ
ラムが複雑になり制i、fl1機器の性能向」−による
プログラム量の増大に伴ない、プログラムミスが増大し
プログラムに多大の時間を要する。The above example shows that a deviation of several milliseconds adversely affects the operation of the device.
Control cannot be achieved by completing each process in step 6 before proceeding to the next step. In particular, since steps 8303 to 5305 originally proceed simultaneously, simultaneous processing is required. Therefore, it is necessary to select either to operate steps 8302 to 5306 under a basic program such as a real-time monitor program, or to write steps 5303 to 5305 together in one program. In the former case, the time required to switch the processing of each step, that is, the overhead is large, and the efficiency of CPU utilization is reduced. In the latter method, the program becomes complicated, and as the amount of the program increases due to the limited performance of the device, the number of program errors increases and the program requires a large amount of time.
そして、前者のリアルタイムモニタを利用して時分割処
理を行なう場合でも、ステッピングモータなどの制御を
プログラムによって行なおうとすると、一定時間ごとに
そのプログラムが起動されないと騒音が発生する場合が
ある。このため、こうしたプログラムは定時間割込処理
などで行なわねばならず、こうした割込処理が増すこと
によっても、プライオリティの高い処理がCPU210
で行なわれている時間、他の処理が待たされるため、高
速並列処理が実現できなくなり、ステッピングモータや
走査用モータ制御を別のマイクロコンピュータにまかせ
たりするようになり、マイクロコンピュータ間の情報交
換や、リアルタイムモニタ下でひんばんにプログラムの
功科を行なうことによるオーバーヘッドの増大によって
1本来の制御動作以外の処理なCPUが行なっている割
合が高くなり、その分ハードウェアも大きくなりコスト
増加の原因になっている。Even when time-sharing processing is performed using the former real-time monitor, if an attempt is made to control a stepping motor or the like by a program, noise may occur if the program is not started at regular intervals. For this reason, such programs must be executed using fixed-time interrupt processing, and even with an increase in the number of such interrupt processing, high-priority processing is
Because other processes have to wait during the time that the process is being performed, high-speed parallel processing cannot be achieved, and stepping motor and scanning motor control is now entrusted to another microcomputer, making it difficult to exchange information between microcomputers. Due to the increase in overhead caused by frequently working on programs under a real-time monitor, the proportion of CPU processing other than the original control operation increases, and the hardware becomes correspondingly large, causing an increase in costs. It has become.
さらに、応答性を高めるために、割込処理を多用したり
、プログラムの構造を特殊な形にすることによって、プ
ログラムがますます複雑になり、プログラムデパックの
時間が増大し、総合的な開発費の増大を課せられている
。Furthermore, in order to improve responsiveness, programs are becoming increasingly complex due to extensive use of interrupt processing or special program structures, which increases the time it takes to depack programs and increases the overall development time. They are being forced to pay increased costs.
く目的〉
本発明は、」−述従来例の欠点を除去し、プログラム制
御によりながらも、同時に複数個の制御対象に関し、高
速応答性が保証でき、さらにプログラム作成も容易にな
る画像形成装置の制御装置を提供することを目的とする
。The present invention eliminates the drawbacks of the conventional example described above, and provides an image forming apparatus that can guarantee high-speed response for a plurality of control objects at the same time even though it is program-controlled, and that also facilitates program creation. The purpose is to provide a control device.
〈実施例〉 第1図は本発明の実施例の複写機の制御回路図である。<Example> FIG. 1 is a control circuit diagram of a copying machine according to an embodiment of the present invention.
図において401が機器制御用マイクロコンピュータで
あり、lチップ上に構成される。従来、内部パス215
にはCPU210の内部RAM211およびI10ポー
ト類が接続ごれていたのに対し、内部バス215にデュ
アルボー)RAM411を介し、並列プロセッサコント
ローラ412が接続される。又入力ポート212、用カ
ポート213及びプログラマブル発振器214が並列プ
ロセッサコントローラ412に接続されている。In the figure, 401 is a device control microcomputer, which is configured on an l chip. Conventionally, internal path 215
Although the internal RAM 211 and I10 ports of the CPU 210 are connected to the internal bus 215, a parallel processor controller 412 is connected to the internal bus 215 via a dual-baud RAM 411. Further, an input port 212 , a port 213 and a programmable oscillator 214 are connected to the parallel processor controller 412 .
ここでデュアルポートRAM411は、CPU210か
ら読み書きでき、並列プロセッサコントローラ412か
らも読み書きできる。そしてデュアルポートRAM41
1には複数個のプロセッサのレジスタ領域が割すイ・1
けられており、並列プロセッサコントローラ412は、
これらのプロセッサのレジスタ領域の値に応じて、複数
個のプロセッサの処理を実行する。Here, the dual port RAM 411 can be read and written by the CPU 210 and can also be read and written by the parallel processor controller 412. And dual port RAM41
1 is divided by the register areas of multiple processors.
The parallel processor controller 412
Processing by a plurality of processors is executed according to the values of the register areas of these processors.
今、CPU210からみてRAM211は008番地か
ら7FH番地(10進では、127番地だがアドレスに
関しては以後16進数で示す)、デュアルポー)RAM
411は80)(番地からFF番地の128バイトにア
ドレス付けされている。Now, from the point of view of the CPU 210, the RAM 211 is from address 008 to address 7FH (in decimal, it is address 127, but the address will be shown in hexadecimal from now on), dual port) RAM
411 is 80) (addressed to 128 bytes from address to FF address.
ここで、808番地から87H番地の8バイトは、プロ
セッサO用のレジスタとして定義し、88)(番地から
8FH番地の8バイトはプロセッサl用のレジスタとし
て定義する。同様にして、B8H番地からBFHF2O
3バイトまで、8バイトづつ、それぞれプロセッサ2か
らプロセッサ7用のレジスタとして定義する。Here, 8 bytes from address 808 to address 87H are defined as a register for processor O, and 8 bytes from address 88)(address 8FH are defined as a register for processor I. Similarly, from address B8H to BFHF2O
Up to 3 bytes and 8 bytes each are defined as registers for processors 2 to 7, respectively.
各プロセッサ用として割つけられた8バイトの領域のう
ち、最後尾の2バイトをプログラムカウンタとして利用
する。たとえばプロセッサlの場合、8EH番地をプロ
グラムカウンタの−L位8ビットとし、8FH番地をプ
ログラムカウンタの下位8ビツトとする。そして、並列
プロセッサコントローラ412は、プロセッサOからプ
ロセッサ7までの各プロセッサに関し、2バイトづつの
計16ビツトデータをインストラクションデータとして
フェッチするようにし、プログラムカウンタは、2づつ
インクレメントする。このようにすることによってプロ
グラムカウンタの最低位ビット、すなわちプロセッサ0
からプロセッサ7のそれぞれにおけるビットHOからビ
ットH7をホールト指示用のビットとして定義し、この
ビットが1のとき対応するプロセッサのインストラクシ
ョンのフェッチと実行を行なわないようにする。Of the 8-byte area allocated for each processor, the last 2 bytes are used as a program counter. For example, in the case of processor 1, address 8EH is the -L 8 bits of the program counter, and address 8FH is the lower 8 bits of the program counter. Then, the parallel processor controller 412 fetches 2 bytes of 16-bit data for each processor from processor O to processor 7 as instruction data, and the program counter increments by 2. By doing this, the lowest bit of the program counter, i.e. processor 0
Bits HO to H7 in each of the processors 7 are defined as halt instruction bits, and when these bits are 1, instructions of the corresponding processors are not fetched and executed.
又、デュアルポートRAM411のCOH番地からFF
H番地まではプロセッサO〜7が共通に使用するメモリ
領域として定義する。Also, from COH address of dual port RAM411 to FF
The area up to address H is defined as a memory area commonly used by processors O to 7.
以上のようなメモリの定義を行ない、並列プロセッサコ
ントローラ412が逐次者プロセッサの処理を時分割で
実行することにより、CPU 2. I Oの下に複数
個の独立した、プロセッサが並列動作するようになる。By defining the memory as described above and having the parallel processor controller 412 execute the processing of the sequential processors in a time-sharing manner, the CPU 2. A plurality of independent processors operate in parallel under the I/O.
以下、CPU210をインテル社製8051をモデルに
し、制御用マイクロコンピュータ401を構成した場合
を例にあげて説明する。Hereinafter, an example will be described in which the CPU 210 is modeled on Intel 8051 and the control microcomputer 401 is configured.
CPU210は8ビツトマシンでアリ、インストラクシ
ョンは1バイトから3バイトの可変長である。そして1
2MH2の基本タロツクの場合、1psecが実行の単
位となっており、スヘてのインストラクションは、17
zsecの整数倍の時間を要す。また、命令のフェッチ
は、1psecを2分して、1μSeC中に2回行なわ
れ、RAM領域の読み書きはlpseeに1回行なわれ
る。このときたとえば1バイト長の命令をフェッチする
場合、1iLseeの前半で命令をフェッチし実行開始
して、Igsecの後半で次の命令をフェッチするが、
後半でフェッチしたインストラクションデータは捨てら
れ、再び次のlμsecの前半で命令をフェッチし実行
する。すなわち、命令長かいくらであっても、また、実
行時間がいくらであっても、1 gsecの整数倍で外
部バスアクセスが実行される。たとえば第5図のような
プログラムは第6図のように実行される。The CPU 210 is an 8-bit machine, and the instructions have a variable length of 1 to 3 bytes. and 1
In the case of the basic tarokku of 2MH2, 1 psec is the unit of execution, and the total instruction time is 17
It takes an integral multiple of zsec. Furthermore, instruction fetching is performed twice in 1 μSec by dividing 1 psec into two, and reading and writing of the RAM area is performed once every lpsee. At this time, for example, when fetching a 1-byte length instruction, the instruction is fetched and executed in the first half of 1iLsee, and the next instruction is fetched in the second half of Igsec.
The instruction data fetched in the second half is discarded, and the instruction is fetched and executed again in the first half of the next lμsec. That is, no matter how long the instruction is or how long the execution time is, the external bus access is executed in an integral multiple of 1 gsec. For example, a program as shown in FIG. 5 is executed as shown in FIG.
ステップ3601はレジスタ2の内容をAレジスタに移
動し、ステップ602でAレジスタの内容に5を加算し
、ステップ5603でデータポインタレジスタの内容を
インクレメントしてステップ5604でデータポインタ
レジスタでアドレスされるRAMにAレジスタの内容を
書き込む。このときの機械語は、1バイトを2桁の16
進数で表わしたときEAH,24H。Step 3601 moves the contents of register 2 to the A register, step 602 adds 5 to the contents of the A register, step 5603 increments the contents of the data pointer register, and step 5604 addresses the contents of the data pointer register. Write the contents of the A register to RAM. The machine language at this time is 1 byte, which consists of 2 digits, 16
EAH, 24H when expressed in base numbers.
Q5H、A3H、FOHの計5バイトになる。Q5H, A3H, and FOH are 5 bytes in total.
そしてステップ5601.5602はIgsec、ステ
ップ5603,5604は2ksecの実行時間となる
。このときのバスアクセスの様子は第6図のようになる
。期間α0の前半でステップ5601のインストラクシ
ョンEAHがフェッチされ、後半でステップ5602の
インストラクション24Hがフェッチされる。この24
Hは無視され、次の期間α1の前半で再びフェッチされ
、後半で05Hがフェッチされ、実行も期間α1で行な
われる。The execution time of steps 5601 and 5602 is Igsec, and the execution time of steps 5603 and 5604 is 2 ksec. The state of bus access at this time is as shown in FIG. In the first half of period α0, instruction EAH in step 5601 is fetched, and in the second half, instruction 24H in step 5602 is fetched. This 24
H is ignored, fetched again in the first half of the next period α1, 05H is fetched in the second half, and execution is also performed in period α1.
期間α2の前半でステップ5603のインストラクショ
ンA3Hがフェッチされるが、実行に2JLSeCを要
するので、期間α2の後半および期間α3の間の計3回
ステップ5604のインストラクションFOHをフェッ
チするが、すべて無視される。期間α4の前半では再び
FOHがフェッチされ後半で次のインストラクションが
フェッチされる。ステップ5604はRAMデータへの
書き込みを行なうため、期間α5ではインストラクショ
ンフェッチは行なわれず、RAMデータ書き込みのため
に外部バスが使われる。Instruction A3H in step 5603 is fetched in the first half of period α2, but since it requires 2JLSeC to execute, instruction FOH in step 5604 is fetched three times in total during the second half of period α2 and period α3, but all are ignored. . In the first half of period α4, FOH is fetched again, and in the second half, the next instruction is fetched. Since step 5604 writes RAM data, no instruction fetch is performed during period α5, and an external bus is used to write RAM data.
尚期間α0〜α5はいずれも12 M Hzのクロック
使用時にIf、1μsecである。Note that the periods α0 to α5 are all If, 1 μsec when a 12 MHz clock is used.
並夕1jプロセッサコントローラ412におけるインス
トラクションセットはすべて2バイト固定長にする。す
るとCPU210の実行単位時間(i p、 s e
c )で1インストラクシヨンのフェッチができるよう
になる。All instruction sets in the Narayu 1j processor controller 412 have a fixed length of 2 bytes. Then, the execution unit time of the CPU 210 (i p, s e
c) allows one instruction to be fetched.
このようにして、CPU210と並列プロセッサコント
ローラ412が外部バスインタフェース413を介して
外部バス204に接続されたROM202を時分割的に
利用するように構成する。In this way, the CPU 210 and the parallel processor controller 412 are configured to use the ROM 202 connected to the external bus 204 via the external bus interface 413 in a time-sharing manner.
CPU210のインストラクションのなかで最長の実行
時間のものは4pLSeCである。Among the instructions of the CPU 210, the instruction with the longest execution time is 4pLSeC.
従って、−、、−担このインストラクションのフェッチ
がCPU210によって行なわれると、4μSeCの間
CPU210に外部バス204が専有される。従って、
並列プロセッサコントローラ412がこの間に、インス
トラクションフェッチを要求しても、4pLsecの回
実行が待たされる。第7図にこの様子を示す。Therefore, when the CPU 210 fetches the instructions carrying -, , -, the external bus 204 is exclusively occupied by the CPU 210 for 4 μSeC. Therefore,
Even if the parallel processor controller 412 requests an instruction fetch during this period, the execution will be delayed for 4 pLsec. Figure 7 shows this situation.
11)Mt811に並列プロセッサコントローラ412
がインストラクションフェッチを行なおうとしたとき、
CPU210が4gs e cかかるインストラクショ
ンの実行を開始したとすると、期間α801.α802
.α803.α804では、外部バスインターフェース
413をCPU210が専有する。そして1t/I間α
812で、並列プロセッサコントローラ412の要求が
受けつけられ、外部バスインターフェース413を専有
し、並列プロセッサのうちの1つのプロセッサのための
インストラクション2バイトをフェッチする。そしてそ
の次の期間α805はCPU210が外部バスインター
フェース413を専有する。並列プロセッサコントロー
ラ412によって、インストラクションを実行するのに
最大3g5ecかかるとすると、最悪の場合、並列プロ
セッサコントローラがインス(・ラクションフエツチ要
求を時刻t811で行なってから、実行の期間α813
゜α814.α815を終了するまで8p、secかか
る。そこで、常に8)bsecごとに並列プロセッサコ
ントローラ412がインストラクションフェッチ要求を
出すように構成することにより、8μSeCに1回だけ
外部バス204が並列プロセッサ用に使われ、残りの7
g5ecをCPU210が使うようになる。11) Parallel processor controller 412 on Mt811
When attempting to fetch instructions,
Assuming that the CPU 210 starts executing an instruction that requires 4 gsec, the period α801. α802
.. α803. In the α804, the CPU 210 exclusively uses the external bus interface 413. And between 1t/I α
At 812, a request for parallel processor controller 412 is accepted to seize external bus interface 413 and fetch two bytes of instructions for one of the parallel processors. During the next period α805, the CPU 210 exclusively uses the external bus interface 413. Assuming that it takes a maximum of 3g5ec to execute an instruction by the parallel processor controller 412, in the worst case, the parallel processor controller issues an instruction fetch request at time t811, and then the execution period α813
゜α814. It takes 8p, sec to finish α815. Therefore, by configuring the parallel processor controller 412 to always issue an instruction fetch request every 8) bsec, the external bus 204 is used for the parallel processor only once every 8 μSec, and the remaining 7
The CPU 210 starts using g5ec.
第8図に並列プロセッサコントローラ412の)i(本
動作のフローチャートを示す。実行開始時、ステップS
801で、並列プロセッサ412のうちプロセッサOか
らプロセッサ7を時分割で並列処理するためにプロセッ
サ番号nをOにする。ステップ5802では命令をフェ
ッチする時間わくを算出するために、バス不使用1t/
1間残数mを4に初期化する。ステップ5803で、外
部バスインターフェース413 ニ対しバス利用のため
の要求を行ない、ステップ5804で1psecウエイ
トする。ステップS805でバス不使用期間残数mを1
つデクレメントする。ステップ3806では、バス利用
期間になったかどうか判断し、CPU210がバス使用
中なら、ステップ5803に戻ってくり返し、並列プロ
セッサコントローラ412にバスが割り当てられたら、
ステップ3807に進む。ステップ5807ではプロセ
ッサnのプログラムカウンタの値の最下位ビットをOに
した値をアドレスとして外部メモリからインストラクシ
ョンの高位バイトをフェッチする。たとえばnがOのと
きは、デュアルポートRAM411の86H,87H番
地の2バイトがプログラムカウンタの値として使われる
。nがlのときは8EH,8FH番地が使われる。すな
わちn番目のプロセッサPROCnに対しては、(80
H+8Xn+6)番地が
プログラムカウンタの高位バイト
(8’OH+8 X n、+ 7)番地がプログラムカ
ウンタの低位バイト
として用いられる。FIG. 8 shows a flowchart of this operation of the parallel processor controller 412. At the start of execution, step S
At step 801, the processor number n is set to O in order to perform time-sharing parallel processing on processors O to 7 of the parallel processors 412. In step 5802, in order to calculate the time frame for fetching instructions, bus unused 1t/
Initialize the number m remaining for one period to 4. In step 5803, a request is made to the external bus interface 413 to use the bus, and in step 5804 there is a 1 psec wait. In step S805, the remaining number of bus non-use periods m is set to 1.
Decrement by one. In step 3806, it is determined whether the bus use period has come, and if the CPU 210 is using the bus, the process returns to step 5803 and repeats.When the bus is allocated to the parallel processor controller 412,
Proceed to step 3807. In step 5807, the high-order byte of the instruction is fetched from the external memory using the value obtained by setting the least significant bit of the value of the program counter of processor n to 0 as an address. For example, when n is O, two bytes at addresses 86H and 87H of the dual port RAM 411 are used as the value of the program counter. When n is l, addresses 8EH and 8FH are used. That is, for the nth processor PROCn, (80
The address H+8Xn+6) is used as the high-order byte of the program counter, and the address (8'OH+8Xn, +7) is used as the low-order byte of the program counter.
そして、インストラクションの先頭バイトをフェッチす
るために最下位ピッI・をOにして1バイトフエツチを
行なう。ステップ5808では、最下位ピッ(・を1に
してインストラクションの2 # I’lのバイトをフ
ェッチする。このように、ステップ5807 、880
8において、Igsecの間、外部バス204を利用し
、プロセッサnのためのインストラクションデータ2バ
イトをフェッチする。ステップ5809では、パス不使
用期間残数mを見て1mがOになるまでステップ581
0,5811を繰り返す。ステップ810は1 g、s
e cウェイトし、ステップ5811ではmを1っデ
クレメントする。こうすることにより、ステップ581
2に来るまで、iE確に5μsecが費され、しかもこ
の5JLSeCの間のうち、CPU210のバス利用の
間隙をねらってIgsecだけパスを専有し、並列プロ
セッサ処理のためのインストラクションフェッチを行な
える。ステップ5812では、フェッチしたインストラ
クションデータに従って、デュアルポートRAM411
のメモリ間や入出力ポート間の演算を行なう。Then, in order to fetch the first byte of the instruction, the lowest bit I is set to O and a 1-byte fetch is performed. Step 5808 fetches the 2 # I'l bytes of the instruction with the least significant bit (.) set to 1. Thus, steps 5807, 880
At step 8, during Igsec, the external bus 204 is used to fetch two bytes of instruction data for processor n. In step 5809, check the remaining number of pass non-use periods m and step 581 until 1m becomes O.
Repeat 0,5811. Step 810 is 1 g, s
Then, in step 5811, m is decremented by 1. By doing this, step 581
It takes exactly 5 μsec for iE to reach 2, and moreover, during this 5JLSeC, the CPU 210 can monopolize the path by Igsec to take advantage of the gap in the bus usage, and can perform instruction fetch for parallel processor processing. In step 5812, according to the fetched instruction data, the dual port RAM 411
Performs calculations between memories and input/output ports.
尚、プロセッサnのプログラムカウンタの最下位ビット
が1の場合は、フェッチしたインストラクションを無視
し、何の実行も行なわないようにし、0の場合は、実行
を行なうのに先だち、プログラムカウンタの値を2つイ
ンクレメントしておき、次のインストラクションフェッ
チに備える。ステップ5813では、ステップ5812
で要する時間に応じた時間分ウエイトシテ、ステップ5
812,5813,5814゜S815 、 S816
で37isec費すように調整する。ステップ5814
では、次の回で、処理対象のプロセッサを1つ進めるた
め、プロセッサ番号nを1つインクレメントする。ステ
ップ5815ではプロセッサ番号nが最大プロセッサ番
号を越えたかどうかを判断し越えたときは、プロセッサ
番号nをOに戻してステップ5802にもどって以上の
処理を繰り返す。Note that if the least significant bit of the program counter of processor n is 1, the fetched instruction is ignored and no execution is performed; if it is 0, the value of the program counter is set before execution. Increment by two to prepare for the next instruction fetch. In step 5813, step 5812
Wait for an amount of time depending on the time required, Step 5
812,5813,5814゜S815, S816
Adjust so that it costs 37 isec. Step 5814
Next time, in order to advance the processing target processor by one, the processor number n is incremented by one. In step 5815, it is determined whether the processor number n has exceeded the maximum processor number. If it has exceeded the maximum processor number, the processor number n is returned to O, and the process returns to step 5802 to repeat the above processing.
以1−のような動作によって並列プロセッサコントロー
ラ412は、プロセッサOがらプロセッサ7の8つのプ
ロセッサと時分割で実行させ、みかけ1.64μSec
にlインストラクション実行するプロセッサを8つ制御
できるようになる。By the operation described in 1-1 above, the parallel processor controller 412 causes the processor O to execute time-sharing with the eight processors of the processor 7, with an apparent speed of 1.64 μSec.
It becomes possible to control eight processors that execute l instructions.
ここでステップ5812にて行なう、各プロセッサ0〜
7のインストラクションについて説明する。インストラ
クションの長さは16ビツトの固定長である。インスト
ラクションは以下の4個に分類することができる。各プ
ロセッサ用に割当てられた8′つのレジスタと7ビツト
のメモリ空間との間の演算を行うバイトオペレーション
、レジスタと7ビツトのデータとの間の演算を行うイミ
デイエ−1−バイトオペレーション、特定ビットと7ビ
ツトメモリ空間の任意のビットとの間の演算を行うビッ
トオペレーション、条件に応じて10ビツトの相対アド
レス分岐を設定するジャンプオペレーションの4つであ
る。Here, in step 5812, each processor 0 to
Instruction 7 will be explained. The length of the instruction is a fixed length of 16 bits. Instructions can be classified into the following four types. Byte operations that perform operations between the 8' registers allocated for each processor and 7-bit memory space; Immediate 1-byte operations that perform operations between registers and 7-bit data; There are four operations: a bit operation that performs an operation with an arbitrary bit in a 7-bit memory space, and a jump operation that sets a 10-bit relative address branch depending on conditions.
次にデュアルポートRAM411、及びI10ボー)2
12,213のアドレス空間について説明する。Next, dual port RAM411 and I10 baud)2
The address space of 12,213 will be explained.
デュアルポートRAM411はCPU210、並列プロ
セッサコントローラ412共にアクセス可能である。こ
こで各プロセッサから見たアドレスをローカルアドレス
、並列プロセッサコントローラ412から見たアドレス
をグローバルアドレスと呼ぶ。The dual port RAM 411 can be accessed by both the CPU 210 and the parallel processor controller 412. Here, the address seen from each processor is called a local address, and the address seen from the parallel processor controller 412 is called a global address.
ローカルアドレスのOOH08番地07H番地は夫々の
プロセッサに割付けられたデュアルポートRAM411
のレジスタ用メモリ空間に対応している。ローカルアド
レスの08H番地から47H番地までがデュアルポート
RAM411の残りのエリア、すなわちグローバルアド
レスのCOH番地からFFH番地までに対応している。The local address OOH08 address 07H is the dual port RAM 411 assigned to each processor.
It corresponds to the memory space for registers. The local addresses 08H to 47H correspond to the remaining area of the dual port RAM 411, that is, the global addresses COH to FFH.
そしてローカルアドレスの48番地から7F番地がI1
0ポートに対応している。And address 7F from address 48 of local address is I1
0 port is supported.
このようにレジスタ空間、メモリ空間、メモリ空間、I
10ポート空間を同一アドレス空間」二にマツプするこ
とができる。In this way, register space, memory space, memory space, I
10 port spaces can be mapped into the same address space.
以」−のようなアーキテクチャのプロセッサを用いて電
気機器制御する場合の例を以下に述べる。An example of controlling electrical equipment using a processor with the following architecture will be described below.
第9図に、第2図に示した複写機の給紙系に関するタイ
ミングチャートを示した。この例では、2枚コピーを行
なう制御タイミングを表わしている。下カセット122
から給紙を行なう場合、時刻tllolでポートB5を
“I IIにして、クラッチCL2をONすることによ
り給紙ローラ124を回転させ、複写機をピックアップ
する。そして、時刻tl102で紙センサ126で紙検
知し、時間α1101後に、ポートB5を“Oパにして
、給紙ローラ124を停止する。この時間αl 101
の間に複写紙はレジストローラ125まで到達し、レジ
ストローラ125の回転開始を待っている。一方、時刻
tl102で紙検知することにより、原稿走査を開始す
る。即ち、光学系が前進する。そして、画先センサ11
0により時刻tl103に、原稿の先端を感光ドラム1
08に結像したことがわかり、tl103からその結像
位置が転写位置に到達する時間から、レジストローラ1
25を回転させてから複写紙が転写位置まで達する時間
を差し引いた時間α1102の時間後、ポートB6を1
′にして、クラッチCL3をONして、レジストローラ
125の回転を開始する。FIG. 9 shows a timing chart regarding the paper feed system of the copying machine shown in FIG. This example shows the control timing for making two copies. Lower cassette 122
When feeding paper from 1 to 2, at time tllol, port B5 is set to "I II" and clutch CL2 is turned on to rotate paper feed roller 124 and pick up the copying machine. Then, at time tl102, paper sensor 126 detects the paper After the detection and time α1101, the port B5 is set to "O" and the paper feed roller 124 is stopped. This time αl 101
During this time, the copy paper reaches the registration roller 125 and waits for the registration roller 125 to start rotating. On the other hand, document scanning is started by detecting paper at time tl102. That is, the optical system moves forward. Then, the image tip sensor 11
0, at time tl103, the leading edge of the document is placed on the photosensitive drum 1.
08, and from the time from tl103 until the image formation position reaches the transfer position, the registration roller 1
After the time α1102, which is calculated by subtracting the time required for the copy paper to reach the transfer position after rotating the port B6, the port B6 is
', the clutch CL3 is turned on, and the registration rollers 125 start rotating.
そしてこの例のように複数枚コピーする場合、原稿走査
光学系を原稿の長さ分前進し、その後後退させホームポ
ジションまでもどってから給紙を始めると、次の複写ま
での時間が長くなってしまう。これを防ぐため、時刻t
l104には、次の紙の給紙を開始する。このタイミン
グは、レジストローラ125がオンした時刻tl105
から時間α1103後となるが、この時間α1103は
、1枚当りのコピー所用時間α1104から、時間α1
102と給紙ローラの駆動開始から紙センサが再びオン
するまでの時間α1106とホームポジションから画先
センサに達するまでの所用時間α1105を引いた値と
なる。時間α1104は、複写紙サイズにより定まる。When copying multiple sheets as in this example, moving the document scanning optical system forward by the length of the document, then retracting it and returning to the home position before starting paper feeding will lengthen the time it takes to make the next copy. Put it away. To prevent this, time t
At 1104, feeding of the next sheet is started. This timing is the time tl105 when the registration roller 125 is turned on.
This time α1103 is equal to the time α1103 from the copying time α1104 per sheet.
102, the time α1106 from the start of driving the paper feed roller until the paper sensor is turned on again, and the time required from the home position to the image tip sensor α1105. The time α1104 is determined by the copy paper size.
この最小値は、原稿走査の往復時間となる。また時間α
1105は変倍率に応じて決定される。This minimum value becomes the round trip time for document scanning. Also time α
1105 is determined according to the magnification ratio.
−・方原稿走査は、ポートCOより走査速度に応じた周
波数の信号FS、ポートBO,Bl。- For document scanning, signals FS, ports BO, and Bl are sent from port CO at a frequency corresponding to the scanning speed.
B2よりそれぞれ前進信号FW、後進信号R■、ブレー
キ信号BRKを、走査モータコントローラ230に送る
ことによって制御する。そして、この制御のためのタイ
ミングチャートを第10図に示す。The scan motor controller 230 is controlled by sending a forward signal FW, a reverse signal R2, and a brake signal BRK from B2 to the scanning motor controller 230, respectively. A timing chart for this control is shown in FIG.
前進を行なうときは、そのときの複写倍率によって前進
速度が定まるので、これに応じた周波数の発振を行なう
ようにプログラマブル発振器214をセットした上で、
後退信号RV、ブレーキ信号BRKをO°°にしておき
前進信号FWをl゛°にして、前進を開始する。これが
時刻t 1201である。そして、原稿の長さ分前進す
る時間α1201後の時刻t 1202に前進信号を“
O″にして、後退時の速度をプログラマブル発振器21
4にセットし、後退信号を1 ”にする。そして、画先
センサ110が画先信号をセンスしたとき、すなわち時
刻t1203で、後退信号を“O′”にして1時間α1
202の間だけ、ブレーキ信号BRKをl°”にする。When advancing, the advancing speed is determined by the copying magnification at that time, so the programmable oscillator 214 is set to oscillate at a frequency corresponding to this, and then
The reverse signal RV and brake signal BRK are set to 0°, the forward signal FW is set to 1°, and forward movement is started. This is time t 1201. Then, at time t 1202 after a time α 1201 for advancing by the length of the original, the advance signal is sent to “
O'' to set the backward speed using the programmable oscillator 21.
4 and set the backward signal to 1''. Then, when the image tip sensor 110 senses the image edge signal, that is, at time t1203, the backward signal is set to ``O''' and the backward signal is set to ``1'' for 1 hour.
The brake signal BRK is set to l°'' only during 202.
そして、その後は、慣性により原稿走査を後退させ、ホ
ームポジションセンサ111により、ホームポジション
位置に戻った時刻t1204にブレーキ信号BRKを1
にする。そして2枚目のコピーを行なうため、ブレーキ
信号BRKをO′”にした」=、前進速度を設定し、前
進信号FWを“I IIにして以」−の制御を繰り返す
。第10図の後半では、後退時画先センサ110の位置
センス後のブレーキ信号BRKのセット後、走査系が停
止して、ホームポジションまで到達しない場合の例を示
しである。すなわちブレーキ信号BRKを“0”′に戻
したのち時間α1203以内にホームポジションに達し
ないときは、遅い速度を設定し、後退信号RVをl°゛
にして、ホームポジションが検出されるまでゆっくり後
退させ、ホームポジションが検出されたら、後退信号R
Vを“0゛にしてブレーキ信号BRKをl”°にする。Thereafter, the original scan is reversed due to inertia, and the home position sensor 111 outputs a brake signal BRK of 1 at time t1204 when the home position is returned.
Make it. Then, in order to make a second copy, the brake signal BRK is set to O', the forward speed is set, and the forward signal FW is set to I and the following control is repeated. The second half of FIG. 10 shows an example in which the scanning system stops and does not reach the home position after setting the brake signal BRK after sensing the position of the backward image tip sensor 110. In other words, if the home position is not reached within time α1203 after returning the brake signal BRK to "0"', set a slow speed, set the reverse signal RV to 1°, and slowly reverse until the home position is detected. When the home position is detected, the reverse signal R is activated.
V to "0" and brake signal BRK to "1".
そして、最大時間α1204の後にブレーキ信号BRK
を0゛′にする。Then, after the maximum time α1204, the brake signal BRK
Set to 0゛'.
以上のように、原稿走査光学系と給紙系の制御を抽出し
ただけでもかなり複雑である。As described above, even just extracting the control of the document scanning optical system and paper feeding system is quite complicated.
以」−のような制御を本発明においては、給紙ローラ、
レジストローラ等の給紙系の制御に並列プロセッサコン
トローラ412内の1つのプロセッサPROCOを割り
当て、前進信号FW等の原稿走査光学系の制御にコント
ローラ412内の別のプロセッサPROC1を割り当て
、CPU210は、これらのプロセッサへのデータを設
定し、プロセッサの動作を監視することによって、複写
機の制御を行なうようにする。In the present invention, the following control is performed using the paper feed roller,
One processor PROCO in the parallel processor controller 412 is assigned to control the paper feed system such as registration rollers, and another processor PROC1 in the controller 412 is assigned to control the document scanning optical system such as the forward signal FW. The copying machine is controlled by setting data to the processor and monitoring the operation of the processor.
第11図にプロセッサPROCOが行う給紙系の制御プ
ログラムの例のフローチャートを示す。実行開始すると
ステップ51301にて、コピー残数Nがあるかどうか
を見て、コピー残数Nが1以上になるまで、ステップ3
1301を繰り返す。FIG. 11 shows a flowchart of an example of a paper feeding system control program executed by processor PROCO. When execution starts, it is checked in step 51301 whether there is a remaining copy number N, and the process continues in step 3 until the remaining copy number N becomes 1 or more.
Repeat 1301.
第12図には、デュアルポートRAM411のメモリ領
域のメモリマツプ例を示している。FIG. 12 shows an example of a memory map of the memory area of the dual port RAM 411.
ここでコピー残数Nは、CPU210によってグローバ
ルアドレスのC18番地に値Nがセットされる。これは
、コピースタートボタン等によって、オペレータがコピ
ー開始を指定したときに、CPU210がその時点で定
義されているコピ一枚数を、C18番地に書き込む。ス
テップ51302でコピー残数を1つデクレメントする
。ステップ51303では、フラグUf、すなわちグロ
ーバルアドレスのCo番地の第θビットを見てこれが1
のときは、上カセット選択、Oのときは下カセツト選択
と判断し、それぞれ対応して、給紙ローラ123もしく
は給紙ローラ124の回転を開始する。たとえばフラグ
Ufが1のときは、ポー)B4を1にすることによって
、上段給紙ローラ123を回転させる。これは第13図
に示すI10ポートの領域の49H番地の第4ビツトを
セットすることによって実現できる。これは、ビットオ
ペレーション用のインストラクションを用いればよい。Here, for the remaining number of copies N, the CPU 210 sets the value N at address C18 of the global address. This means that when the operator specifies the start of copying using the copy start button or the like, the CPU 210 writes the number of copies defined at that time to address C18. In step 51302, the remaining number of copies is decremented by one. In step 51303, the flag Uf, that is, the θth bit of the Co address of the global address, is checked and it is determined that it is 1.
When , it is determined that the upper cassette is selected, and when it is O, it is determined that the lower cassette is selected, and the rotation of the paper feed roller 123 or the paper feed roller 124 is started correspondingly. For example, when the flag Uf is 1, the upper paper feed roller 123 is rotated by setting the flag Uf to 1. This can be accomplished by setting the fourth bit at address 49H in the I10 port area shown in FIG. This can be done using instructions for bit operations.
ステップ51304では紙センサ126がオフになるま
で紙センサチェックを続け、紙センサ126がオフにな
ったらステップ51305で紙センサ126がオンにな
るまでくりかえす。これは、現在、給紙中の紙の前にコ
ピーしている紙の後端が紙センサ126にかかっている
場合を考慮したものである。In step 51304, the paper sensor check is continued until the paper sensor 126 is turned off, and when the paper sensor 126 is turned off, it is repeated in step 51305 until the paper sensor 126 is turned on. This is done in consideration of the case where the trailing edge of the paper being copied before the paper currently being fed is on the paper sensor 126.
ステップ31306では、原稿走査光学系の前進開始を
指示するために走査フラグSfをセットする。フラグS
fは、グローバルアドレスのCOH番地の第1ビツトに
割り当てである。In step 31306, a scanning flag Sf is set to instruct the document scanning optical system to start moving forward. Flag S
f is assigned to the first bit of the COH address of the global address.
31307では一定詩間βlでけウェイトする。これは
、命令の実行時間が前述したように、並列プロセッサと
いえども一定しているので、レジスタをカウントとして
用いて、カウントアツプもしくはカウントダウンして、
ある値になったとき、次に進むようにプログラムして、
そのカウンタとして用いるレジスタの初期値によってウ
ェイト時間を調節できる。この時間βlは、第9図にお
けるα1101に相当する時間にする。そしてステップ
5130Bで給紙ローラをオフする。この場合はフラグ
Ufを見て、対応するボートB4もしくはポートB5を
O°゛にしてもよいし、ボー)B4.B5の双方とも°
゛0°′にしてもよい。In 31307, the wait is performed by a constant interval βl. This is because, as mentioned above, the instruction execution time is constant even in parallel processors, so the register is used as a count and it is counted up or down.
Program it to proceed to the next step when it reaches a certain value,
The wait time can be adjusted by the initial value of the register used as the counter. This time βl corresponds to α1101 in FIG. 9. Then, in step 5130B, the paper feed roller is turned off. In this case, you can check the flag Uf and set the corresponding boat B4 or port B5 to O°, or set the corresponding port B4. Both sides of B5 °
It may be set to ``0°''.
ステップ31309で、画先センサ110がオンになる
まで待って、その後ステップ51310で時間β2分ウ
ェイトし、ステップ51311でレジストローラ125
の回転を開始する。時間β2は、第9図における時間α
1102に相当する。そして、ステップ51312で時
間β3だけウェイトして、続いて次の給紙を行なうかど
うかのチェックに入る。時間β3は、第9図における時
間α1103に相当する。ステップ51313ではコピ
ー残数Nを調ベ、まだコピーする必要のあるときはステ
ップ51314に進み必要の給紙が終了している場合、
すなわちコピー残数が0のときはステップ51318に
進む。ステップ1314では、コピー残数Nを1つデク
レメントして次の給紙にそなえ、ステップ1315でス
テップ1303と同様の処理を行なって給紙を開始する
。ステップ1316では時間β4だけウェイトしステッ
プ1317でレジストローラ125の回転を停止する。In step 31309, wait until the image tip sensor 110 is turned on, then in step 51310, wait for a time β2 minutes, and in step 51311, wait until the image tip sensor 110 turns on.
start rotating. Time β2 is time α in FIG.
Corresponds to 1102. Then, in step 51312, the process waits for a time β3 and then checks whether to perform the next sheet feeding. Time β3 corresponds to time α1103 in FIG. In step 51313, the remaining number of copies N is checked, and if it is still necessary to make copies, the process proceeds to step 51314, and if the necessary paper feeding has been completed,
That is, when the remaining number of copies is 0, the process advances to step 51318. In step 1314, the remaining number of copies N is decremented by one to prepare for the next paper feed, and in step 1315, the same process as step 1303 is performed to start paper feeding. In step 1316, the process waits for a time β4, and in step 1317, the rotation of the registration roller 125 is stopped.
この時間β4は給紙した紙の進行方向のサイズを、感光
ドラム10gの周速で割った時間からβ3を差し引いた
時間に、多少の余裕の時間を加えたものにする。This time β4 is the time obtained by subtracting β3 from the time obtained by dividing the size of the fed paper in the traveling direction by the circumferential speed of the photosensitive drum 10g, plus some extra time.
そして、ステップ51314〜51317と進み、連続
コピー処理する場合はステップ51304に戻って以」
―の処理をくりかえす。そして最終紙の給紙が完了する
とステップ51313からステップ51318に分岐し
、ステップ1319をへて最初に戻りステップ5130
1より以−]−の処理をくりかえす。なおステップS1
318.51319はそれぞれステップ51316.3
1317と同様の処理である。以−1−の処理における
時間βl、β2.β3.β4のうち時間βl、β2に関
しては固定長であり、時間β3.β4.は変倍率、複写
紙サイズによって変化する。そのため時間β3.β4に
関しては、CPU210がコピー残数をグローパルアド
レスC5H番地にセットする前に、グローバルアドレス
CIH番地、C2H番地にそれぞれβ3.β4を設定す
る。Then, proceed to steps 51314 to 51317, and if continuous copy processing is to be performed, return to step 51304.
- Repeat the process. When the feeding of the last paper is completed, the process branches from step 51313 to step 51318, passes through step 1319, and returns to the beginning to step 5130.
Repeat the process from 1 to -]-. Note that step S1
318.51319 are respectively steps 51316.3
This is the same process as 1317. The times βl, β2. β3. Of β4, time βl and β2 have a fixed length, and time β3. β4. varies depending on the magnification ratio and copy paper size. Therefore, the time β3. Regarding β4, before the CPU 210 sets the remaining number of copies to global address C5H, β3. Set β4.
次に原稿走査光学系の処理について説明する。Next, the processing of the document scanning optical system will be explained.
第14図にプロセッサPROC1が行う原稿走査光学系
の制御プログラムの例のフローチャートを示す。FIG. 14 shows a flowchart of an example of a control program for the document scanning optical system executed by the processor PROC1.
実行開始すると、ステップ51501で、走査フラグS
fがオンになるまで待ち、オンになるとステップS 1
502に進む。これは給紙系制御プログラムにより複写
紙がレジストローラ125前の紙センサ126の位置ま
で移動した時点でセットされる。すなわちコピー開始の
用意が完了したところで光学走査系の起動を行なうので
ある。ステップS l 502では、原稿走査要求を受
けつけたことを示すために、走査フラグSfをクリアす
る。そしてステップ51503では、走査系の信号をす
べてクリアする。When execution starts, in step 51501, the scan flag S
Wait until f turns on, and when it turns on, step S1
Proceed to step 502. This is set when the copy paper is moved to the position of the paper sensor 126 in front of the registration roller 125 by the paper feed system control program. That is, the optical scanning system is activated when preparations for starting copying are completed. In step S 1 502, the scanning flag Sf is cleared to indicate that the document scanning request has been accepted. In step 51503, all scanning system signals are cleared.
すなわち、前進信号FW、後退信号RV、ブレーキ信号
BRKをすべてクリアするためにボートBO,Bl、B
2を0°゛にする。That is, in order to clear all of the forward signal FW, reverse signal RV, and brake signal BRK, the boats BO, Bl, and B
Set 2 to 0°.
ステップ51504では変倍率に応じた速度で原稿走査
するために、この速度に対応した周波数の信号がボート
COから出力されるように、プログラマブル発振器21
4の設定を行なう。具体的には、プログラマブル発振器
の周波数設定用ボートCOがI10ボート領域の4AH
番地に割つけられており、これに、CPU21Oによっ
てグローバルアドレスのC18番地に設定された値f1
を書き込むことによって行なわれる。ステップ5150
5ではボートBOを’“1”にすることによって、走査
モータコントローラ230に対し、前進開始の指令を出
す。そしてステップ51506で画先センサ110がオ
ンになるまで待って、その後ステップ51507で原稿
の長さ分走査する時間τlウェイトしステップ3150
8で前進信号をオフする。この時間τlはCPU210
によってあらかじめグローバルアドレスC6H番地に書
き込まれている。ステップ1509では、後進時のスピ
ードに対応した周波数f2になるようにI10ボートの
領域の4AH番地に値を設定し、ステップ51510で
後退信号RVをオンし後退開始する。あとは、ステップ
51511で画先センサ110がオンするのを監視し、
オンしたとき、走査光学系がオーバーランして衝突しな
いようにブレーキ制御を開始する。ステップ51512
で後退信号RVをオフし、ステップ51513でブレー
キ信号BRKをオンしブレーキをかける。そしてステッ
プ51514で時間τ2だけウェイトし、ステップ51
515でブレーキ信号BRKをオフしあとは慣性で走査
系を後退させていく。ここであらかじめ定められた回数
νlをステップ51516にてレジスタνに代入し、ス
テップ5L517.3151B、51519をこの回数
だけくりがえず。このレジスタνは、プロセッサPRO
C1の専用メモリ領域、ローカルアドレスのOIH番地
から05H番地のいずれかを用いてもよい。こうしてス
テップ51518でレジスタνを1つづつデクレメント
しながらステップ51519でレジスタνの値が0にな
るのを判断し、それまでステップ51519からステッ
プ51517に戻る。ステップ51517ではホームポ
ジションセンサ111を監視し、これがオンしたなら、
レジスタνが0になっていなくてもステップS 153
0に進む。そして、ステップS 1530ではブレーキ
をかけ、時間τ3後ステップ1532でブレーキ信号を
オフして、ステップ51501に戻る。そして、レジス
タνが0になってもホームポジションに戻らない場合は
ステップ51520に進む。In step 51504, in order to scan the document at a speed corresponding to the magnification ratio, the programmable oscillator 21 is activated so that a signal with a frequency corresponding to this speed is output from the boat CO.
Perform the settings in step 4. Specifically, the frequency setting boat CO of the programmable oscillator is 4AH in the I10 boat area.
The value f1 is assigned to address C18 of the global address by the CPU 21O.
This is done by writing . Step 5150
5, by setting the boat BO to ``1'', a command to start forward movement is issued to the scanning motor controller 230. Then, in step 51506, wait until the image tip sensor 110 is turned on, and then in step 51507, wait the scanning time τl for the length of the document, and step 3150
Turn off the forward signal at 8. This time τl is the CPU 210
has been written in advance to the global address C6H. In step 1509, a value is set at address 4AH in the I10 port area so that the frequency f2 corresponds to the speed when moving backward, and in step 51510, the reverse signal RV is turned on to start backward. Then, in step 51511, monitor the image tip sensor 110 to turn on,
When turned on, brake control is started to prevent the scanning optical system from overrunning and colliding. Step 51512
At step 51513, the reverse signal RV is turned off, and at step 51513, the brake signal BRK is turned on to apply the brakes. Then, in step 51514, wait for time τ2, and in step 51
At 515, the brake signal BRK is turned off, and the scanning system is then moved backward by inertia. Here, the predetermined number of times νl is assigned to the register ν in step 51516, and steps 5L, 517, 3151B, and 51519 are repeated this number of times. This register ν is
Either the dedicated memory area of C1 or local addresses OIH to 05H may be used. In this way, in step 51518, the register ν is decremented one by one, and in step 51519, it is determined that the value of the register ν becomes 0, and the process returns from step 51519 to step 51517 until then. In step 51517, the home position sensor 111 is monitored, and if it is turned on,
Even if register ν is not 0, step S153
Go to 0. Then, in step S1530, the brake is applied, and after a time τ3, the brake signal is turned off in step 1532, and the process returns to step S51501. If the register ν does not return to the home position even if it becomes 0, the process advances to step 51520.
ステップ31520では低速度で後退させるため、周波
数f3が出力されるようにプログラマブル発振器214
を設定し、ステップ51521で後退信号RVをオンす
る。ステップ51522で走査系がホームポジションに
なるまで待ち、ステップS l 523で後退信号RV
をオフする。そして、ステップ51524でブレーキ信
号BRKをオンし、ステップ51525にてレジスタν
を一定回数ν2で初期化し、ステップ31527,51
527で、レジスタνをデクレメントしてレジスタνが
0になるまでステップ51526をくりかえすようにす
る。ステップ31526は走査フラグSfがオンになっ
たかどうかをチェックするもので、オンになったらこの
ループを脱し、ステップ51529に進む。ステップ5
1529ではブレーキ信号BRKをオフしステップ51
501に戻り以」二の制御をくりかえす。ステップ51
524からステップ51529までの処理は、最大ν2
で定まる時間だけブレーキをかけ、その時間内に再び走
査開始の指令がきたら、ただちに走査開始を行なうめた
のアルゴリズムの例である。In step 31520, the programmable oscillator 214 is set so that the frequency f3 is output in order to retreat at a low speed.
is set, and the reverse signal RV is turned on in step 51521. In step 51522, the scanning system waits until it reaches the home position, and in step S1523, the backward signal RV
Turn off. Then, in step 51524, the brake signal BRK is turned on, and in step 51525, the register ν
is initialized with a fixed number of times ν2, and steps 31527, 51
At 527, register ν is decremented and step 51526 is repeated until register ν becomes 0. Step 31526 checks whether the scan flag Sf is turned on, and if it is turned on, the process exits from this loop and proceeds to step 51529. Step 5
At step 1529, the brake signal BRK is turned off and the process proceeds to step 51.
Return to step 501 and repeat the second control. Step 51
The processing from step 524 to step 51529 has a maximum of ν2
This is an example of an algorithm that applies the brakes for a time determined by , and if a command to start scanning is received again within that time, it immediately starts scanning.
以」二のように、給紙系と原稿走査系のプログラムをそ
れぞれ独立に作成し、CPU210のプログラムは、変
倍率やコピー紙サイズ等の条件により定まる時間β3.
β4.τlおよび周波数設定値f1と給紙光、即ちカセ
ットの1−下段の選択を示すフラグUfを設定し、コピ
一枚数をコピー残数Nに設定するようにする。なお給紙
系および原稿走査光学系のプログラムの先頭番地を並列
プロセッサのうちの1つづつのそれぞれのプログラムカ
ウンタに設定すれば、これらが並列処理される。そのた
めに、画先センサがオンしてから、レジストローラを回
転し始めるタイミング等、応答性が要求される制御も遅
延なく行なうことができ、CPU210の負担は大幅に
減少する。As shown in Figure 2, the paper feeding system and original scanning system programs are created independently, and the CPU 210 program runs the time β3.
β4. τl, the frequency set value f1, and the paper feed light, that is, a flag Uf indicating the selection of the 1-lower stage of the cassette is set, and the number of copies per copy is set to the remaining number of copies N. Note that if the starting addresses of the programs for the paper feeding system and the document scanning optical system are set in the respective program counters of one of the parallel processors, these programs are processed in parallel. Therefore, controls that require responsiveness, such as the timing to start rotating the registration rollers after the image tip sensor is turned on, can be performed without delay, and the burden on the CPU 210 is significantly reduced.
く他の実施例〉
第15図に本発明の他の実施例のフローチャートを示す
。本チャートでは、第8図のチャートステップ5804
,5810のかわりニス7 ’/ブ52001.520
02を用イテいる。ステップ52001,52002(
7)処理mを実施とは、外部バス204を介して、RO
M203やRAM202をアクセスしなくても実行でき
るような定形処理である。するとステップ52001.
5805とステ’/プ52002 。Other Embodiments FIG. 15 shows a flowchart of another embodiment of the present invention. In this chart, chart step 5804 in FIG.
, 5810 instead of varnish 7'/bu 52001.520
I'm using 02. Steps 52001, 52002 (
7) Execution of process m means that the RO
This is a fixed-format process that can be executed without accessing the M203 or RAM 202. Then step 52001.
5805 and Step'/P52002.
5811のそれぞれのペアにより、ステップ5802か
らステップ5815のn番目のプロセッサの処理に対し
て処理4.処理3、処理2、処理1を実行する。すなわ
ち、このようにプロセッサnのインストラクションフェ
ッチヲ行なうときに、外部バスインターフェース413
を利用するタイミングを調整し、実際のインストラクシ
ョンフェッチを待ち合わせている時間に、外部バス20
4を使用しない処理を実行し処理能力を高めることが可
能となる。5811, processing 4. Execute process 3, process 2, and process 1. That is, when fetching instructions for processor n in this way, the external bus interface 413
Adjust the timing of using the external bus 20 and wait for the actual instruction fetch.
It becomes possible to execute processing that does not use 4 and increase processing capacity.
たとえば第16図のように、ローカルアドレスOOH番
地の第2ビツト目を、カウンタ制御フラグCRnを割り
あて、ローカルアドレス03HII#!!をカウンター
として割りあてる。For example, as shown in FIG. 16, the counter control flag CRn is assigned to the second bit of the local address OOH, and the local address 03HII#! ! Assign as a counter.
そして処理mの1つを第17図のようなフローチャート
に従った処理として並列プロセッサコントローラに実行
させる。Then, one of the processes m is executed by the parallel processor controller as a process according to the flowchart shown in FIG.
ステップ52201では、プロセッサnのローカルアド
レス、のOOH番地の第2ビツトを見る。すなわちグロ
ーバルアドレスの(80H十8Xn)番地の第2ビツト
を見て、l ”ならばステップ52202に進み、0゛
′ならばステップ32203をへて終了する。ステップ
52203はこの処理がいかなる場合も同じ時間所要す
ることを保証するための処理で、たとえばスタートから
終了まで1μsec常にかかるようにするためのもので
ある。ステップ32206.52207も同様であり、
いずれの分岐を行なっても全体でたとえば17tsee
常にかかるようにするためのものである。スチップ52
202は、カウンタを1つデクレメントする。このカウ
ンタはプロセッサnの場合、グローバルアドレスの(8
0H+8Xn+3)番地のRAMとしている。そしてス
テップ52204では、デクレメントした結果が0にな
ったとき、ステップ52205に進み、そうでないとき
はステップ52207に推む。そしてステップ5220
5では、上述のCRnをクリアするために、−担Oまで
カウンタがデクレメントされると、デクレメント動作が
終了し、カウントダウンが停止する。In step 52201, the second bit of the OOH address of the local address of processor n is checked. That is, look at the second bit of address (80H x 8 This is a process to ensure that it takes time, for example, so that it always takes 1 μsec from start to finish.The same applies to steps 32206 and 52207.
For example, 17tsee in total no matter which branch is performed.
This is to ensure that it always takes effect. tip 52
202 decrements the counter by one. For processor n, this counter is the global address (8
The RAM is located at address 0H+8Xn+3). In step 52204, when the decremented result becomes 0, the process proceeds to step 52205; otherwise, the process proceeds to step 52207. and step 5220
5, when the counter is decremented to -0 in order to clear the above-mentioned CRn, the decrement operation ends and the countdown stops.
以上のような制御を行なわせると、各プロセッサのプロ
グラムaではローカルアドレスの03H番地にタイマー
初期値を代入し、続いて、ビットCRnを“1°゛にセ
ットすることにより、あとはビットCRnが“0”′に
なるのを監視するだけでタイマー機能が実現できる。When the above control is performed, program a of each processor assigns the timer initial value to the local address 03H, and then sets bit CRn to "1°". A timer function can be realized by simply monitoring the value becoming “0”.
そしてプロセッサが8個で、1インストラクション当り
8psec固定時間の実行が行なわれる場合、64g5
ecごとにタイマー機能レメントが実施yれる。If there are 8 processors and each instruction is executed for a fixed time of 8 psec, then 64g5
A timer function element is implemented for each EC.
たとえば前述した原稿走査系のプログラムを第18図の
ように変更できる。For example, the document scanning program described above can be changed as shown in FIG.
すなわち第14図のステップ51516゜51525に
かえて、それぞれステップ52301.52302とス
テップ52303 。That is, instead of steps 51516 and 51525 in FIG. 14, steps 52301, 52302 and 52303 are executed, respectively.
52304を用いる。ステップ52301では回数v1
をカウンタの初期値として設定し、ステップ52302
でカウンタ走行指令用のビットCRをセラトコせ、64
μsecごとにカウントダウンが開始する。同様にステ
ップ32302では回数v2をカウンタの初期値として
設定し、ステップ52304でビットCRをセットする
。そしてステップ52305゜52306において、ピ
ッ)CRがOかどうかを判断し、Oでないときはビット
CRをセットした次のステップに戻り、ビットCRが0
になるまで作業を繰り返す。52304 is used. In step 52301, the number of times v1
is set as the initial value of the counter, and step 52302
Set bit CR for counter run command at 64.
A countdown starts every μsec. Similarly, in step 32302, the number v2 is set as the initial value of the counter, and in step 52304, bit CR is set. Then, in steps 52305 and 52306, it is determined whether or not CR is O (beep), and if it is not O, the process returns to the next step in which bit CR was set, and bit CR is set to 0.
Repeat the process until.
このようにすることによって、従来プログラムのステッ
プ51518.51528のカウンターデクレメントが
不要になる。その上、ステップ52302とステップ5
2305の間にステップを追加しても回数V1の値を変
更する必要がなくなる。前実施例では1 ステップ51
517,51518,51519の繰り返しの所要時間
に繰り返し回数v1を乗じた時間が最大時間となるので
、この間にステップを追加し、最大時間を同じにするた
めには、回数v1の値の変更が必要であった。これに対
し本実施例では、ステップには無関係にカウンタが一定
時間ごとにデクレメントされるので。By doing so, the counter decrement in steps 51518 and 51528 of the conventional program is no longer necessary. Moreover, step 52302 and step 5
Even if a step is added during 2305, there is no need to change the value of the number of times V1. In the previous example, 1 Step 51
The maximum time is the time required to repeat 517, 51518, and 51519 multiplied by the number of repetitions v1, so in order to add a step during this time and make the maximum time the same, it is necessary to change the value of the number of times v1. Met. In contrast, in this embodiment, the counter is decremented at regular intervals regardless of the step.
こういった考慮が不用となり、プログラム修正が容易に
なる。Such consideration becomes unnecessary, and program modification becomes easy.
さらに他の実施例について説明する。第19図はマイク
ロコンピュータ401の付加内蔵する外部クロック入力
回路2401の例フある。Still other embodiments will be described. FIG. 19 shows an example of an external clock input circuit 2401 which is additionally built into the microcomputer 401.
3つの立ち下がりエツジ検出回路2402はマイクロコ
ンピュータ401に付加する端子CLK 1 、CLK
2 、CLK3よりそれぞれ外部クロックを入力する。Three falling edge detection circuits 2402 connect terminals CLK 1 and CLK to be added to the microcomputer 401.
2. Input external clocks from CLK3.
立ち下がりエツジ検出回路2402は、初期化信号CL
KCLRが1になり、クリアされてから、外部クロック
の立ち下がりを検出するとI IIを出力し、立ち下が
りのない間は“°O゛のままとなっている。The falling edge detection circuit 2402 detects the initialization signal CL.
After KCLR becomes 1 and is cleared, when a falling edge of the external clock is detected, it outputs III, and remains at "°O" while there is no falling edge.
そしてこの出力はフリップフロップ2403の入力に接
続される。フリップフロップ24o3は初期化信号CL
KCLRが1になり、その時点の立ち下がりエツジ検出
回路2402の出力値を入力し、次の初期化信号CLK
CLRが1になるまで保持する。データセレクタ240
4は選択信号cso、csiの値によって、A。This output is then connected to the input of flip-flop 2403. The flip-flop 24o3 receives the initialization signal CL.
When KCLR becomes 1, the output value of the falling edge detection circuit 2402 at that point is input, and the next initialization signal CLK is input.
Hold until CLR becomes 1. Data selector 240
4 is A depending on the values of selection signals cso and csi.
B、C,Dのいずれかの入力を選択し、信号CC0ND
として出力する。たとえば信号cst、csoが00の
ときはAが選択され信号CC0NDはlになり、信号C
5I、C3OがOlのときは、Bが選択され外部クロッ
ク信号CLKIの立ち下がりがあったとき信号CC0N
Dはlとなり、なかったときは0となる。Select one of the inputs B, C, and D, and output the signal CC0ND.
Output as . For example, when the signals cst and cso are 00, A is selected, the signal CC0ND becomes l, and the signal C
When 5I and C3O are Ol, when B is selected and the external clock signal CLKI falls, the signal CC0N
D becomes l, and if there is none, it becomes 0.
この立ち下がりエツジ検出回路2402とフリップフロ
ップ2403はたとえば第20図のような回路で実現で
きる。この方式は同期式の例であり、マイクロコンピュ
ータの基本クロック等を利用しデータをサンプリングし
、サンプルされたデータの時系列的な立ち下がりを検出
するものである。外部クロック信号は4ビット並列出力
シフトレジスタ2501のシリアル入力端子SIに入力
される。シフトレジスタ2501はシステムクロック5
YSCLKによって順次データをシフトする。4人力A
NDゲート2502はシフトレジスタ2501のシフト
された古い方の2ビツトを直接入力し、他の2人力はイ
ンバータ2503を介してシフトされた新しい方の2ビ
ツトが接続される。The falling edge detection circuit 2402 and flip-flop 2403 can be realized by a circuit as shown in FIG. 20, for example. This method is an example of a synchronous method, in which data is sampled using the basic clock of a microcomputer, and falling edges of the sampled data are detected in time series. The external clock signal is input to the serial input terminal SI of the 4-bit parallel output shift register 2501. Shift register 2501 is system clock 5
Data is sequentially shifted by YSCLK. 4-person power A
ND gate 2502 directly inputs the shifted older two bits of shift register 2501, and the other two inputs are connected to the shifted newer two bits via inverter 2503.
したがってシステムクロック5YSCLKの連続する4
つのタイミングで外部クロックが1゜1.0.0となっ
たとき4人力ANDゲート2502はlとなる。このよ
うに同じレベルが2つ連続するという条件によりチャタ
リングが防止された上での立ち下がりエツジの検出が安
定して行なわれる。そしてJKフリップフロップ250
4のJ端子に4人力ANDゲート2502の出力が接続
され、クロックはシステムクロック5YSCLKに接続
されているので、次のタイミングでエツジ検出信号がラ
ッチされ、JKフリップフロップ2504の出力は1と
なる。この信号は、フリッププロップ2403の入力と
なり、ゲートGを一方の入力とするANDゲー)250
5の他方の端子と、インバータ2506に接続される。Therefore, consecutive 4 of the system clock 5YSCLK
When the external clock becomes 1°1.0.0 at a timing of 1, the 4-man power AND gate 2502 becomes 1. In this way, under the condition that two same levels occur in succession, falling edges can be stably detected while chattering is prevented. And JK flip flop 250
Since the output of the 4-man AND gate 2502 is connected to the J terminal of 4, and the clock is connected to the system clock 5YSCLK, the edge detection signal is latched at the next timing, and the output of the JK flip-flop 2504 becomes 1. This signal becomes an input to a flip-flop 2403, which is an AND gate (AND gate) 250 with gate G as one input.
5 and is connected to an inverter 2506.
もう1つのANDゲート2507はインバータ2506
の出力とゲートGとを入力として、出力がJKフリップ
フロップ2508のに端子に接続される。また、AND
ゲート2505の出力はJKフリップ2508のJ端子
に接続される。さらに、JKフリップフロップ2508
のクロック端子はシステムクロック5YSCLKに接続
されている。立ち下がりエツジ検出回路2402のクリ
ア端子CLはJKフリップフロップ2504のに端子に
接続されている。ここでクリア端子CLとゲートGを外
部で接続し、これに初期化信号CLKCLRを印加する
。初期化信号CLKCLRの印加タイミングは1回につ
き、システムクロックの1周期に同期させる。初期化信
号CLKCLRを1にすることにより、4人力AND回
路25o2の出力が0であるとき、JKフリップフロッ
プ2504はクリアされ、1であるときは、その時点直
前のJKフリップフロップ2504の出力が1のときク
リアされ、0のときlにセットする。従って、初期化信
号CLKCLRの印加時期によるエツジ検出のとり落と
しを防止できる。また、ゲートGを入力とするANDゲ
ート2505 、2507 L:よって、JKフリップ
フロップ2508を初期化信号CLKCLRに同期して
、この直前のエツジ検出状態を保持し、次に初期化信号
CLKCLRが1になるまでデータ保持できるようにな
る。Another AND gate 2507 is an inverter 2506
The output of the JK flip-flop 2508 and the gate G are input, and the output is connected to the terminal of the JK flip-flop 2508. Also, AND
The output of gate 2505 is connected to the J terminal of JK flip 2508. Furthermore, JK flip-flop 2508
The clock terminal of is connected to the system clock 5YSCLK. A clear terminal CL of the falling edge detection circuit 2402 is connected to a terminal of the JK flip-flop 2504. Here, the clear terminal CL and the gate G are connected externally, and an initialization signal CLKCLR is applied thereto. The application timing of the initialization signal CLKCLR is synchronized with one cycle of the system clock each time. By setting the initialization signal CLKCLR to 1, when the output of the 4-person AND circuit 25o2 is 0, the JK flip-flop 2504 is cleared, and when it is 1, the output of the JK flip-flop 2504 immediately before that point is 1. It is cleared when , and set to l when it is 0. Therefore, it is possible to prevent edge detection from being omitted due to the application timing of the initialization signal CLKCLR. Also, AND gates 2505 and 2507 L with gate G as input: Therefore, the JK flip-flop 2508 is synchronized with the initialization signal CLKCLR to hold the edge detection state immediately before, and then the initialization signal CLKCLR is set to 1. Data can be retained until
以上のような立ち下がりエツジ検出手段を付加したマイ
クロコンピュータにおいて、この選択信号cso、cs
tの制御および検出信号CC0NDのチェックを並列プ
ロセッサコントローラ412で行なうようにする。この
場合のフローチャートを、第21図に示す。すなわち、
ステップ5816の次にステップ52601を加え、プ
ロセッサ番号nが1まわりするごとに、初期化信号CL
KCLRをシステムクロックに同期して、■にして、エ
ツジ検出のOクリアと、その直前のエツジ検出結果のラ
ッチを行なうのである。こうすることにより、次にステ
ップ52601を実行するまでのプロセッサOからプロ
セッサ7までの各処理の間、この直前のプロセッサOか
らプロセッサ7までの処理を行なっている期間での外部
クロックの立ち下がり検出結果を選択信号cso、cs
tを制御することにより、信号CC0NDを入力して、
検査することができる。In a microcomputer equipped with a falling edge detection means as described above, the selection signals cso, cs
The parallel processor controller 412 controls t and checks the detection signal CC0ND. A flowchart in this case is shown in FIG. That is,
Step 52601 is added after step 5816, and each time the processor number n goes around, the initialization signal CL
The KCLR is synchronized with the system clock and set to ■ to clear the edge detection O and latch the immediately previous edge detection result. By doing this, during each process from processor O to processor 7 until the next step 52601 is executed, the falling edge of the external clock is detected during the period in which the immediately preceding process from processor O to processor 7 is being performed. Select result signal cso, cs
By controlling t, inputting the signal CC0ND,
Can be inspected.
そして、第22図のように、各プロセッサn用のローカ
ルエリアのOOH番地の3,4ビツト目にそれぞれ外部
クロック選択フラグC8On、C51nを割りつけ、カ
ウンタデクレメントの処理を第23図のように変更する
。すなわち、ステップ52201にて、CRが1のとき
ステップ52801に進み、外部クロック選択フラグC
S 1 n 、C3Onの値をそれぞれ選択信号CSI
、CSOとして、データセレクタ2404に送りステッ
プ52802でエツジ検出信号CC0NDを読みこの値
が1ならステップ52202に進みカウントダウン処理
を行ない、そうでないときはステップ32803で時間
調整する。Then, as shown in Fig. 22, external clock selection flags C8On and C51n are assigned to the 3rd and 4th bits of the OOH address in the local area for each processor n, respectively, and the counter decrement process is performed as shown in Fig. 23. change. That is, in step 52201, when CR is 1, the process proceeds to step 52801, and the external clock selection flag C
The values of S 1 n and C3On are respectively selected by the selection signal CSI.
, as CSO, the edge detection signal CC0ND is sent to the data selector 2404 and read in step 52802. If this value is 1, the process proceeds to step 52202 to perform countdown processing; otherwise, time is adjusted in step 32803.
そうすると、各プロセッサのプログラムでは、カウンタ
を単にカウントタイミンタイマーとしてだけでなく、外
部クロックのカウンタとしても利用できるようになる。Then, in each processor program, the counter can be used not only as a count timing timer but also as an external clock counter.
たとえば前述実施例においては原稿走査系と給紙搬送系
をそれぞれモータM2.モータMlで駆動しているが、
プログラム上では原稿走査の長さや、複写紙の移動距離
を、モータM2.モータM1の回転速度は一定に保たれ
ていると仮定して、動作時間に換算して、遅延するなり
の処理を行なっていた。これに対し、本実施例において
は、第24図のように各モータMl、M2により駆動さ
れる軸にクロック円板2901.2902をそれぞれつ
なげ、フォトインタラプタ2903 。For example, in the above-mentioned embodiment, the original scanning system and the paper feeding conveyance system are each operated by the motor M2. Although it is driven by motor Ml,
On the program, the length of document scanning and the moving distance of copy paper are controlled by motor M2. Assuming that the rotational speed of the motor M1 is kept constant, processing is performed that is delayed in terms of operation time. In contrast, in this embodiment, as shown in FIG. 24, clock disks 2901 and 2902 are connected to the shafts driven by the motors Ml and M2, respectively, and a photointerrupter 2903 is connected.
2904を、クロック円板2901.2902のスリッ
トの回転により、この回転速度に応じた矩形波が出力さ
れるように設置し、その出力をそれぞれ本実施例の外部
クロック入力回路2401を内蔵したマイクロプロセッ
サ2900の外部クロック端子CLKI、CLK2に接
続する。このようにした上で、たとえば原稿走査系の制
御プログラムにおいては、走査長に関する時間調整、カ
ウンタのカウントダウンを外部クロックCLK2によっ
て行ない、給紙系の制御プログラムにおいては、複写紙
の移動長に関する時間調整は、外部クロックCLKIに
よって、カウントダウンするカウンタを用いて行なうこ
とができ、モータMl、M2の回転変動に影響されない
プログラム制御が可能となる以上説明したように、本実
施例に依ればCPUとデュアルポー)RAMを介し並列
プロセッサコントローラを結合し、さらに並列プロセッ
サにそれぞれ独立のタイマー機構を備えることにより、
並列プロセッサの個々のプロセッサを、時間的な待ち合
わせを行なう間にも、一般的な処理を実行させることが
容易に実現できるようになった。2904 is installed so that the rotation of the slits in the clock disks 2901 and 2902 outputs a rectangular wave according to the rotation speed, and the output is sent to the microprocessor incorporating the external clock input circuit 2401 of this embodiment. Connect to the external clock terminals CLKI and CLK2 of the 2900. After doing this, for example, in a document scanning system control program, time adjustment regarding the scanning length and counter countdown are performed using the external clock CLK2, and in a paper feeding system control program, time adjustment regarding the moving length of copy paper is performed. can be performed using a counter that counts down in response to the external clock CLKI, and program control that is not affected by rotational fluctuations of the motors M1 and M2 is possible.As explained above, according to this embodiment, the CPU and dual By connecting parallel processor controllers via RAM and providing each parallel processor with an independent timer mechanism,
It is now possible to easily cause individual processors of parallel processors to execute general processing even while waiting for time.
さらに、並列プロセッサの個々のプロセッサに備えられ
たタイマー機構のカウントタイミングの信号選択手段を
設けたことにより、モータの回転数等の機器動作に応じ
た周波数のパルス信号をカウントタイミングの信号選択
手段で切替えて、タイマーを動作させ、このタイミング
に応じたプログラムを並列プロセッサの個々のプロセッ
サのプログラムとして用意、実行させることができ、そ
の結果、機器動作の速度等の変更に対してもプログラム
の修正を不要にすることができるようになる。Furthermore, by providing a signal selection means for the count timing of the timer mechanism provided in each of the parallel processors, a pulse signal of a frequency corresponding to the equipment operation such as the number of rotations of the motor can be selected by the signal selection means for the count timing. By switching and operating the timer, a program corresponding to this timing can be prepared and executed as a program for each individual processor in the parallel processor. As a result, the program can be modified even when the speed of equipment operation changes. It will be possible to make it unnecessary.
こうして、高速応答のための技巧的なプログラミングは
不要となり、プログラムの開発が容易になり、開発コス
トを大幅に小さくできる。This eliminates the need for technical programming for high-speed response, making program development easier and significantly reducing development costs.
尚、本実施例においては、画像形成装置として電子写真
複写機を例に説明したが、勿論ファクシミリ装置、プリ
ンタ等にも適用できる。In this embodiment, an electrophotographic copying machine is used as an example of the image forming apparatus, but the present invention can of course also be applied to facsimile machines, printers, etc.
(効 果)
以」−の如く本発明に依れば、並列に動作する複数の演
算制御部(並列プロセッサコントローラ)にタイマ機能
を設けることにより、タイマ動作中に他の処理を実行で
きると共にタイマの計時時間を一定に保つことができる
。(Effects) According to the present invention, by providing a timer function to a plurality of arithmetic control units (parallel processor controllers) operating in parallel, other processing can be executed while the timer is operating, and the timer The measured time can be kept constant.
第1図は本実施例の複写機の制御回路図、第2図は本発
明を適用しうる複写機の断面図、第3図は従来の複写機
の制御回路図、第4図は従来の複写機の制御ilIプロ
グラムの一例を示す図、第5図は制御プログラムの一例
を示す図、第6図は第5図のプログラムの実行タイミン
グを示す図、第7図はCPU210と並列プロセッサコ
ントローラ412の動作関係を示す図、第8図は並列プ
ロセッサコントローラ412の基本動作のフローチャー
トを示す図、第9図は第2図の複写機の給紙等に関する
タイミングを示す図、第10図は複写機の原稿走査系に
関するタイミングを示す図、第11図は給紙等のフロー
チャートを示す図、第12図はデュアルポートRAM4
11のメモリマツプを示す図、第13図はI10ボート
の領域を示す図、第14図は原稿走査系のフローチャー
トを示す図、第15図は本発明の他の実施例のフローチ
ャートを示す図、第16図はメモリアドレスを示す図、
第17図は第15図の処理mの詳細処理プログラムを示
す図、第18図は他の例の原稿走査系のフローチャート
を示す図、第19図は外部クロック入力回路の回路図、
第20図は立下がりエツジ検出回路図、第21図は本発
明の他の実施例のフローチャートを示す図、第22図は
第21図の実施例のメモリアドレスを示す図、第23図
は第21図の処理mの詳細処理プログラムを示す図、第
24図は複写装置の制御ブロック図である。
第?3図Fig. 1 is a control circuit diagram of a copying machine according to the present embodiment, Fig. 2 is a sectional view of a copying machine to which the present invention can be applied, Fig. 3 is a control circuit diagram of a conventional copying machine, and Fig. 4 is a control circuit diagram of a conventional copying machine. FIG. 5 is a diagram showing an example of a control program for the copying machine. FIG. 6 is a diagram showing the execution timing of the program in FIG. 5. FIG. 7 is a diagram showing an example of the control program for the copying machine. 8 is a flowchart of the basic operation of the parallel processor controller 412, FIG. 9 is a diagram showing the timing related to paper feeding, etc. of the copying machine of FIG. 2, and FIG. Figure 11 is a diagram showing the timing related to the original scanning system, Figure 11 is a diagram showing a flowchart of paper feeding, etc., Figure 12 is a diagram showing the timing of the document scanning system, and Figure 12 is a diagram showing the timing of the document scanning system.
13 is a diagram showing the area of the I10 boat, FIG. 14 is a diagram showing a flowchart of the document scanning system, FIG. 15 is a diagram showing a flowchart of another embodiment of the present invention, and FIG. Figure 16 is a diagram showing memory addresses,
FIG. 17 is a diagram showing a detailed processing program of process m in FIG. 15, FIG. 18 is a diagram showing a flowchart of another example of the document scanning system, and FIG. 19 is a circuit diagram of an external clock input circuit.
FIG. 20 is a falling edge detection circuit diagram, FIG. 21 is a diagram showing a flowchart of another embodiment of the present invention, FIG. 22 is a diagram showing memory addresses of the embodiment of FIG. 21, and FIG. A diagram showing a detailed processing program for process m in FIG. 21, and FIG. 24 is a control block diagram of the copying apparatus. No.? Figure 3
Claims (1)
実行タイミングを制御する制御装置において、 中央演算処理部と、当該中央演算処理部から制御可能で
前記複数のプロセス手段を制御し並列に動作する複数の
演算制御部とを有し、前記演算制御部に制御タイミング
を決定する為の時間を計るタイマ機能を備えたことを特
徴とする画像形成装置の制御装置。[Scope of Claims] A control device for controlling the execution timing of a sequence of a plurality of process means for performing image formation, comprising: a central processing section; and a control device that is controllable from the central processing section and controls the plurality of processing means. 1. A control device for an image forming apparatus, comprising: a plurality of arithmetic and control units that operate in parallel; and a timer function that measures time for determining control timing in the arithmetic and control units.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60175302A JP2575626B2 (en) | 1985-08-08 | 1985-08-08 | Control device for image forming apparatus |
| US06/893,915 US4811052A (en) | 1985-08-08 | 1986-08-06 | Control device for control of multi-function control units in an image processing apparatus |
| DE3689301T DE3689301T2 (en) | 1985-08-08 | 1986-08-08 | Control device in the image processing device. |
| EP86306165A EP0216484B1 (en) | 1985-08-08 | 1986-08-08 | Control device in image processing apparatus |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60175302A JP2575626B2 (en) | 1985-08-08 | 1985-08-08 | Control device for image forming apparatus |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6235974A true JPS6235974A (en) | 1987-02-16 |
| JP2575626B2 JP2575626B2 (en) | 1997-01-29 |
Family
ID=15993720
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60175302A Expired - Fee Related JP2575626B2 (en) | 1985-08-08 | 1985-08-08 | Control device for image forming apparatus |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2575626B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6370274A (en) * | 1986-09-11 | 1988-03-30 | Fuji Xerox Co Ltd | Controller for copying machine |
| JPH031167A (en) * | 1989-05-29 | 1991-01-07 | Mita Ind Co Ltd | Image forming device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5983266A (en) * | 1982-11-05 | 1984-05-14 | Hitachi Ltd | image processing circuit |
| JPS59189465A (en) * | 1983-04-13 | 1984-10-27 | Fujitsu Ltd | Fault detecting system of multiprocessor system |
| JPS6061853A (en) * | 1983-09-16 | 1985-04-09 | Hitachi Ltd | Information processor |
-
1985
- 1985-08-08 JP JP60175302A patent/JP2575626B2/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5983266A (en) * | 1982-11-05 | 1984-05-14 | Hitachi Ltd | image processing circuit |
| JPS59189465A (en) * | 1983-04-13 | 1984-10-27 | Fujitsu Ltd | Fault detecting system of multiprocessor system |
| JPS6061853A (en) * | 1983-09-16 | 1985-04-09 | Hitachi Ltd | Information processor |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6370274A (en) * | 1986-09-11 | 1988-03-30 | Fuji Xerox Co Ltd | Controller for copying machine |
| JPH031167A (en) * | 1989-05-29 | 1991-01-07 | Mita Ind Co Ltd | Image forming device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2575626B2 (en) | 1997-01-29 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CA1111898A (en) | Copy production machine having a duplex copy mode | |
| US4811052A (en) | Control device for control of multi-function control units in an image processing apparatus | |
| US4213694A (en) | Copy production machines | |
| US4170414A (en) | Document feed controls for copy production machines | |
| EP0032559A2 (en) | Virtual storage data processing apparatus including i/o | |
| CA1099024A (en) | Input/output and diagnostic arrangements for programmable machine controllers having multiprogramming capabilities | |
| US4305654A (en) | Apparatus for controlling image formation | |
| JPS6036583B2 (en) | How to control the number of copies in a copier | |
| JPS6235977A (en) | Image forming device control device | |
| JPS6235975A (en) | Image forming device control device | |
| JP2575626B2 (en) | Control device for image forming apparatus | |
| JPS6235976A (en) | Controller for image forming device | |
| JP2525390B2 (en) | Image formation control device | |
| JP3088564B2 (en) | Image processing device | |
| JP2968306B2 (en) | Copier control method | |
| JPH0465259A (en) | Printing machine with perfecting press | |
| JP4177610B2 (en) | Input/output port control device and printer or copier equipped with the same | |
| JP3014117B2 (en) | Sequence controller | |
| JP2968307B2 (en) | Copier control method | |
| EP0103851A2 (en) | Multiprocessor control synchronization and instruction downloading | |
| JP2000067008A (en) | Multiprocessor system | |
| JP3408335B2 (en) | Eraser control device | |
| JPS62118463A (en) | Apparatus control equipment | |
| JPH0344473B2 (en) | ||
| JPH01263670A (en) | Printer |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |