JPS6321157A - Printer controller - Google Patents

Printer controller

Info

Publication number
JPS6321157A
JPS6321157A JP61166099A JP16609986A JPS6321157A JP S6321157 A JPS6321157 A JP S6321157A JP 61166099 A JP61166099 A JP 61166099A JP 16609986 A JP16609986 A JP 16609986A JP S6321157 A JPS6321157 A JP S6321157A
Authority
JP
Japan
Prior art keywords
mpu
address
memory
mpus
data
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
JP61166099A
Other languages
Japanese (ja)
Inventor
Koji Kuwata
耕司 桑田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP61166099A priority Critical patent/JPS6321157A/en
Publication of JPS6321157A publication Critical patent/JPS6321157A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Multi Processors (AREA)

Abstract

PURPOSE:To enable a set of two MPUs to divide the work among them without considering each other the information and speed in processing of a counterpart, by a method wherein; memory addresses subjected to the access of the set of two MPUs are compared with each other, or alternatively the memory address subjected to the access of at least one of the MPUs is compared with the value stored in a register and according to the result a memory operation of at least one of the MPUs is controlled. CONSTITUTION:As soon as an MPU 11 writes data in a memory 14, an MPU 12 processes the data. If the processing speed of the MPU 12 higher than that of the MPU 11, the MPU 12 is controlled by an address competitive control part 15 so as not to exceed the MPU 11 on the address of a memory 14; therefore, both the hosts may continue normal operations without considering each other. Additionally, the address competitive control part 15 can previously store the address in the memory area for storing the data which is not desired to be processed in the MPU 12 in an address bus register to compare the memory address subjected to the access of the MPU 12 with the address stored in the address bus register; according to the result of the comparison it can inhibit the MPU 12 from processing the data in the memory area.

Description

【発明の詳細な説明】 (技術分野) 本発明はプリンタコントローラに関する。[Detailed description of the invention] (Technical field) The present invention relates to a printer controller.

(従来技術) 従来プリンタコントローラにおいてはデュアル(DυA
L)ボート機能を持たせたものが考えられている。この
デュアルポート機能は2つのポートにそれぞれ接続され
た2つのMPUがメモリを共有する場合第1のMPtl
がデータを操作してそのデータを第1のMPUが処理す
るという分担作業を平行して行うことがむずかしかった
。すなわち、第2のMPUが第1のMPUの操作速度よ
り早い場合第2のMPIJは途中で第1のMPtlの操
作中のメモリエリアを飛び越えて(つまりアドレス的に
第1のMPUより先行して)第1のMPUの未操作デー
タも処理してしまうという手順前後の恐れがあり 2つ
のMPUの組合せや処理操作内容によって時間的な調整
が必要であった。また第1のMPUがあるメモリエリア
のデータを第2のMPUによって処理されたくない場合
第2のMPUはそのメモリエリアを判断することができ
ないので、アドレス計算などの変更をソフトウェアの作
成し直しで対応するしかなかった。
(Prior art) Conventional printer controllers have dual (DυA
L) A device with boat functions is being considered. This dual port function is used when two MPUs connected to two ports share memory.
It was difficult to perform the shared work of manipulating data and having the first MPU process the data in parallel. In other words, if the second MPU is faster than the first MPU, the second MPIJ will jump over the memory area being operated by the first MPtl (in other words, it will be ahead of the first MPU in terms of address). ) There is a risk that the unprocessed data of the first MPU will also be processed before or after the procedure, and it is necessary to make time adjustments depending on the combination of the two MPUs and the content of the processing operation. Also, if you do not want the data in a memory area of the first MPU to be processed by the second MPU, the second MPU cannot determine the memory area, so changes such as address calculation must be made by rewriting the software. I had no choice but to respond.

そのためデュアルポート機能の操作効率が非常に悪く1
面倒な時間調整あるいはソフトウェアの変更などを必要
とした。
As a result, the operation efficiency of the dual port function is very poor1.
This required troublesome time adjustments or software changes.

(目  的) 本発明は上記欠点を改善し、デュアルポートに接続さt
しる2組の′IIPUが相手の処理内容、速度を考慮せ
ずに分tn4ヤ業を行うことができるプリンタコントロ
ーラ’r1M供することを目的とする。
(Objective) The present invention improves the above-mentioned drawbacks and provides dual-port connection.
It is an object of the present invention to provide a printer controller 'r1M in which two sets of 'IIPUs can perform multiple tasks without considering the processing content and speed of the other party.

(も育   成) 本発明は第1図1こ示すようにデュアルポートに接続さ
れる2組のMPU1,2が共有するメモリ3と。
(Also developed) As shown in FIG. 1, the present invention has a memory 3 shared by two sets of MPUs 1 and 2 connected to a dual port.

制御手段4とを有し、制御手段4はMPU 1 、2の
アクセスするメモリアドレスを互に比較しあるいはMP
tJl、2の少くとも一方のアクセスするメモリアドレ
スをレジスタの格納値と比較しその比較結果により上記
MPUの少くとも一方のメモリ操作を制御する。
The control means 4 compares the memory addresses accessed by the MPUs 1 and 2 with each other or
The memory address accessed by at least one of tJl, 2 is compared with the value stored in the register, and the memory operation of at least one of the MPUs is controlled based on the comparison result.

以下図面を参照しながら本発明の実施例について説明す
る。
Embodiments of the present invention will be described below with reference to the drawings.

第2図は本発明の実施例を示す、この実施例はデュアル
ポート機能を有し、2組のMPIJ 11,12はこの
実施例のデュアルポートに接続される。このMPU 1
1.12はメモリ13を共有していてデータを制御部1
3を介してメモ雷月4に格納して処理し、プリンタへ出
力して画像記録を行なわせる。 呵puが例えばITi
縁データをメモリに全て書き込んだ後に変倍等の処理を
行うと、デュアルポート機能があっても片方のMPUが
遊んだ状態となるから、この実施例ではMPUIIがメ
モリ14に害き込んだばかりのデータを即MPU12が
処理する。 MPU12の処理速度がMPUIIの処理
速度より早くてもMPulL2はアドレス競合制御部1
5によりメモリ14のアドレス上ではMPU t t 
を追い越さないように制御され、従って双方のホストは
互に相手のことを考慮しなくともよく通常の操作を続け
ていればよい6例えば第3図に示すようにMPU 11
がメモリのX番地からY番地までにデータをIF?!込
んで肝門2がデータを縮小する場合アドレス競合制御部
15は肝門1,12のアクセスするアドレスを互いに比
較して1旧2側のアドレスNtlがMPUII側のアド
レスIIIAを追い越したならば、つまりNA>NBの
チェックを行なってNA>NBでなくなったならば信号
を与えて時間調整を行う(待たせる)、このように画像
の変倍に限らずMPU12による様々のデータ処理作業
はMPU t iにより単に画像データをメモリ14に
書き込んだ場合とけほとんど変わりない早さで行なわれ
て出力される。
FIG. 2 shows an embodiment of the present invention, this embodiment has a dual port function, and two sets of MPIJs 11, 12 are connected to the dual port of this embodiment. This MPU 1
1.12 shares memory 13 and transfers data to control unit 1
3, the memo is stored in the memo Raigetsu 4, processed, and output to a printer for image recording.呵pu is for example ITi
If processing such as scaling is performed after all edge data has been written to the memory, one MPU will be in an idle state even if there is a dual port function, so in this example, the MPU II has just damaged the memory 14. The MPU 12 immediately processes the data. Even if the processing speed of the MPU 12 is faster than the processing speed of the MPUII, the MPulL2 is the address conflict controller 1.
5, on the address of the memory 14, the MPU t t
Therefore, both hosts do not have to consider each other's needs and can just continue normal operations.6 For example, as shown in FIG. 3, MPU 11
IF? stores data from address X to address Y in memory? ! When the liver gate 2 reduces the data due to the complexity, the address conflict control unit 15 compares the addresses accessed by the liver gates 1 and 12, and if the address Ntl on the old 2 side overtakes the address IIIA on the MPU II side, In other words, if NA>NB is checked and NA>NB is no longer true, a signal is given to adjust the time (make the user wait). In this way, various data processing tasks performed by the MPU 12, not just image scaling, are performed by the MPU 12. i, the image data is output at almost the same speed as when it is simply written into the memory 14.

また、アドレス競合制御部15は肝門2で処理されたく
ないデータの1各納されるメモリエリアのアドレスをア
ドレスバス用レジスタに記憶させておa、MpUt2の
アクセスするメモリアドレスを上記アドレスバス用レジ
スタのアドレスと比較してその結果によりMPL!+2
に上記メモリエリアのデータ処理を禁止することができ
る。このようにすればMPU ] 2はソフトウェアで
アドレス計算などの機能を持たせることをしないで通常
通り走らせておくことができる。
In addition, the address conflict control unit 15 stores the address of the memory area in which data that is not desired to be processed by the main gate 2 is stored in the address bus register a, and sets the memory address accessed by the MpUt 2 to the address bus register. Compare it with the register address and use the result as MPL! +2
Data processing in the above memory area can be prohibited. In this way, the MPU 2 can be run normally without having to provide software with functions such as address calculation.

この′:X施例では以上のようにアドレス競合制御を行
うので、 MPUは処理速度、処理データエリア。
In this ':X example, address conflict control is performed as described above, so the MPU controls processing speed and processing data area.

スタートタイミングその他の面倒な調整や計算を行なわ
なくてもすむことになり、ソフトウェア変更などは非常
に少なくなる。
This eliminates the need for troublesome adjustments and calculations such as start timing, and greatly reduces the need for software changes.

第4図はMPUII がメモ17111のP番地からQ
番地までのデータをMPU I 2の処理にかけたくな
い場合のアドレス競合制御部15の例を示す、レジスタ
16にはPが格納され、レジスタ17にはQが格納され
る。このレジスタ16.17の値P、Qはコンパレータ
(LS85) 18〜274:テMPU12 (7)7
ドL//1.バスからアドレス信号Sが各々比較されて
Pus、S<Qの判定が行なわれ、その出力がノア回路
28に入力されてノア回$328の出力信号がP≦SS
Qの時に割込(3号としてMPulL2に出力される。
Figure 4 shows MPUII from address P to Q of memo 17111.
P is stored in the register 16 and Q is stored in the register 17, which shows an example of the address conflict control unit 15 when the data up to the address is not to be processed by the MPU I 2. The values P and Q of this register 16.17 are comparators (LS85) 18 to 274: TE MPU12 (7) 7
Do L//1. The address signals S from the buses are compared to determine whether Pus or S<Q, and the output thereof is input to the NOR circuit 28, and the output signal of the NOR circuit $328 is set to P≦SS.
At the time of Q, an interrupt (outputted to MPulL2 as No. 3).

 MPUI2はメモリ14のデータを下位アドレスから
順に処理し。
The MPUI 2 processes the data in the memory 14 in order from the lowest address.

PH!¥地にアドレッシングした際にノア回路28から
の割込信号により処理を中断してレジスタ17の値Qを
読み、次にQ+1番地からデータの処理を再開する。な
おアドレス競合制御部15は単にす旧1゜12のアドレ
ス競合を禁止する場合にはレジスタを設ける必要はなく
MPulL、 12のアドレスバスからの信号を比較回
路で比較するだけでよい。
PH! When addressing the \ location, processing is interrupted by an interrupt signal from the NOR circuit 28, the value Q of the register 17 is read, and then data processing is resumed from address Q+1. Note that when the address conflict control section 15 simply prohibits the address conflict between the old 1 and 12, there is no need to provide a register, and it is sufficient to simply compare the signals from the address buses of MPUL and 12 using a comparison circuit.

(効  果) 以上のように本発明によれば2組のMPUが共有するメ
モリをアクセスした時にそのアドレスを互いに比較しあ
るいは少くとも一方のMPUのアクセスしたメモリアド
レスをレジスタの値と比較しその結果により上記少くと
も一方のMPUのアドレス操作を制御するので、2組の
MPUが相互の処理内容、速度を考慮せずに分担作業を
行うことができ、かつデータ入力、データ処理、データ
出力という一連の操作はデュアルポート機能を最大限に
発揮して短時間で行うことができる。
(Effects) As described above, according to the present invention, when two sets of MPUs access memory shared by each other, the addresses are compared with each other, or the memory address accessed by at least one MPU is compared with the value of a register. Since the address operation of at least one of the MPUs is controlled based on the result, the two sets of MPUs can perform shared tasks without considering each other's processing content and speed, and can perform data input, data processing, and data output. A series of operations can be performed in a short time by making full use of the dual port function.

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

第1図は本発明の構成を示すブロック図、第2図は本発
明の一実施例を示すブロック図、第3図は同実施例のフ
ローチャート、第4図はアドレス競合制御部の例を示す
ブロック図である。 3・・・・メモリ、4・・・・制御手段。 第 1図 第2閃 ■ 手続補正書(方式) 昭和61年10月22日
Fig. 1 is a block diagram showing the configuration of the present invention, Fig. 2 is a block diagram showing an embodiment of the invention, Fig. 3 is a flowchart of the embodiment, and Fig. 4 shows an example of an address conflict control section. It is a block diagram. 3...Memory, 4...Control means. Figure 1, 2nd flash ■ Procedural amendment (method) October 22, 1986

Claims (1)

【特許請求の範囲】[Claims] デュアルポートに接続される2組のマイクロプロセシン
グユニット(MPU)が共有するメモリと、このメモリ
に対して上記2組のMPUがアクセスした時に上記2組
のMPUのアクセスするメモリアドレスを互いに比較し
あるいは上記MPUの少くとも一方のアクセスするメモ
リアドレスをレジスタの格納値と比較しその比較結果に
より上記MPUの少くとも一方のメモリ操作を制御する
制御手段とを備えたプリンタコントローラ。
Compare the memory shared by two sets of microprocessing units (MPUs) connected to the dual port and the memory addresses accessed by the two sets of MPUs when the two sets of MPUs access this memory, or A printer controller comprising control means for comparing a memory address accessed by at least one of the MPUs with a value stored in a register and controlling memory operations of at least one of the MPUs based on the comparison result.
JP61166099A 1986-07-15 1986-07-15 Printer controller Pending JPS6321157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61166099A JPS6321157A (en) 1986-07-15 1986-07-15 Printer controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61166099A JPS6321157A (en) 1986-07-15 1986-07-15 Printer controller

Publications (1)

Publication Number Publication Date
JPS6321157A true JPS6321157A (en) 1988-01-28

Family

ID=15824989

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61166099A Pending JPS6321157A (en) 1986-07-15 1986-07-15 Printer controller

Country Status (1)

Country Link
JP (1) JPS6321157A (en)

Similar Documents

Publication Publication Date Title
US5287309A (en) High-speed stack memory
US4627035A (en) Switching circuit for memory devices
JPS6321157A (en) Printer controller
JPS5814260A (en) Data transfer system
JPH0546527A (en) Dual port memory circuit
JPH03214250A (en) Memory control circuit
JPS59116866A (en) Storage device of computer system
JP2606824Y2 (en) Multiport memory device
JPS63217444A (en) Multiple port memory
JPH0254362A (en) Parallel process computer
JPH06274415A (en) Shared memory system
JPH0248749A (en) Buffer storage control device
JPS59119456A (en) Access system of segmented memory
JPH03189755A (en) Inter-memory transfer device
JPH04117697A (en) Multiport memory circuit
JPH0784963A (en) Semiconductor integrated circuit with cpu
JPH06110828A (en) Memory controller
JPH0333951A (en) Microcomputer system
JPH0322073A (en) Data transfer controller
JPH0528095A (en) Bus control system
JPS63142589A (en) Semiconductor memory
JPS63298466A (en) Data transfer device
JPH08339328A (en) Bank memory switching circuit
JPH0556544B2 (en)
JPH02120966A (en) Information processing system