JP3039144B2 - Printer - Google Patents

Printer

Info

Publication number
JP3039144B2
JP3039144B2 JP4182205A JP18220592A JP3039144B2 JP 3039144 B2 JP3039144 B2 JP 3039144B2 JP 4182205 A JP4182205 A JP 4182205A JP 18220592 A JP18220592 A JP 18220592A JP 3039144 B2 JP3039144 B2 JP 3039144B2
Authority
JP
Japan
Prior art keywords
cartridge
data
emulation
rom
timing
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.)
Expired - Fee Related
Application number
JP4182205A
Other languages
Japanese (ja)
Other versions
JPH0628116A (en
Inventor
祐二 服部
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP4182205A priority Critical patent/JP3039144B2/en
Publication of JPH0628116A publication Critical patent/JPH0628116A/en
Application granted granted Critical
Publication of JP3039144B2 publication Critical patent/JP3039144B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、プリンタにオプション
として装着されるROMカートリッジのデータアクセス
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to data access of a ROM cartridge which is optionally mounted on a printer.

【0002】[0002]

【従来の技術】従来、プリンタに内蔵されていないプリ
ンタエミュレーションをオプションとして供給するエミ
ュレーションカートリッジというものがあるが、このエ
ミュレーションカートリッジはプリンタのモデルが変更
になっても継続して使用するようにしており、新しいプ
リンタでCPUのクロックスピードが上がった場合に
は、エミュレーションカートリッジからのデータの読出
し時のリードサイクルにウェイトを入れることを行って
いた。尚、エミュレーションカートリッジはROMカー
トリッジの一種であり、ROMカートリッジ内のROM
にプリンタエミュレーションのプログラムが記憶されて
いる。そして、新しいエミュレーションカートリッジを
作成するときも、この新しいエミュレーションカートリ
ッジは古いエミュレーションカートリッジと同じスロッ
トに装着されるためウェイトの入ったリードサイクルで
データの読出しが行われていた。
2. Description of the Related Art Conventionally, there is an emulation cartridge which supplies a printer emulation which is not built in a printer as an option, but this emulation cartridge is used continuously even if the printer model is changed. When the clock speed of the CPU is increased in a new printer, a wait is added to a read cycle when data is read from the emulation cartridge. The emulation cartridge is a kind of the ROM cartridge, and the ROM in the ROM cartridge is used.
Stores a printer emulation program. When a new emulation cartridge is created, the new emulation cartridge is mounted in the same slot as the old emulation cartridge, so that data is read in a read cycle with a wait.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、新しい
プリンタでは印字スピードを上げるためにCPUのクロ
ックスピードを上げているのであり、そこにエミュレー
ションカートリッジが装着された場合にもウェイトを入
れずにデータの読出しを行うことが望ましい。
However, in a new printer, the clock speed of the CPU is increased in order to increase the printing speed, and even when an emulation cartridge is mounted on the new printer, data is read without adding a wait. It is desirable to carry out.

【0004】もちろん古いエミュレーションカートリッ
ジは、設計が古いためにカートリッジ上にアクセススピ
ードの遅いROMが載っているため、これをウェイトな
しのリードサイクルでアクセスすることはできない。し
かし、新しいエミュレーションカートリッジは、新規に
開発するものであるためアクセススピードの速いROM
を載せればよいのでリードサイクルにウェイトを入れる
必要がない。
[0004] Of course, an old emulation cartridge cannot be accessed in a read cycle without wait since a ROM having a low access speed is mounted on the cartridge because of an old design. However, new emulation cartridges are newly developed, so ROMs with high access speed
Need not be added to the read cycle.

【0005】そこで本発明では、新・旧のエミュレーシ
ョンカートリッジを全く同じスロットを使用して装着
し、尚かつ古いエミュレーションカートリッジに対して
はウェイトを入れてデータの読出しを行い、新しいエミ
ュレーションカートリッジに対してはウェイトを入れず
にデータを読出すプリンタを提供することを目的とす
る。
Therefore, in the present invention, new and old emulation cartridges are mounted using exactly the same slots, and data is read out from the old emulation cartridge with a weight, and the new emulation cartridge is loaded into the new emulation cartridge. It is an object of the present invention to provide a printer that reads data without adding a wait.

【0006】[0006]

【課題を解決するための手段】この目的を達成するため
に本発明のプリンタは、プリンタ本体に接続されるRO
Mカートリッジ31と、そのROMカートリッジからデ
ータを読出す読出し手段32と、そのデータ読出し手段
が前記ROMカートリッジからデータを読出すときに、
データ読出しのタイミングを切換えるタイミング切換え
手段33と、そのタイミング切換え手段を第一のタイミ
ングに設定して前記ROMカートリッジのデータを読出
し、読出したデータが特定のデータであるか否かを判断
する判断手段34とを備え、その判断手段が特定のデー
タであると判断したときに、前記タイミング切換え手段
を前記第一のタイミングより速い第二のタイミングに切
換える構成としたものである。
In order to achieve this object, a printer according to the present invention comprises an RO connected to a printer main body.
M cartridge 31, reading means 32 for reading data from the ROM cartridge, and when the data reading means reads data from the ROM cartridge,
Timing switching means 33 for switching data reading timing; determining means for setting the timing switching means to a first timing to read data from the ROM cartridge and determining whether the read data is specific data or not; 34, wherein the timing switching means switches to a second timing faster than the first timing when the determination means determines that the data is specific data.

【0007】[0007]

【作用】上記の構成を有する本発明のプリンタにおいて
は、プリンタに接続されるROMカートリッジ31から
データ読出し手段32によりROMカートリッジ31の
データを読出すときに、まずデータ読出し時のタイミン
グをタイミング切換え手段33により第一のタイミング
に切換える。そして、判断手段34は第一のタイミング
でROMカートリッジ31のから読出されたデータが特
定のデータであるか否かを判断する。判断手段34が特
定のデータであると判断したときには、データ読出し手
段32はタイミング切換え手段33を第二のタイミング
に切換えてその後のROMカートリッジ31からのデー
タ読出しを行う。判断手段34が特定のデータであると
判断しなかったときには、データ読出し手段32はタイ
ミング切換え手段33を第一のタイミングにままにして
その後のROMカートリッジ31からのデータ読出しを
行う。
In the printer of the present invention having the above configuration, when data is read from the ROM cartridge 31 by the data reading means 32 from the ROM cartridge 31 connected to the printer, first, the timing of data reading is changed by the timing switching means. 33 switches to the first timing. Then, the determination means 34 determines whether the data read from the ROM cartridge 31 at the first timing is specific data. When the judging means 34 judges that the data is the specific data, the data reading means 32 switches the timing switching means 33 to the second timing to read the data from the ROM cartridge 31 thereafter. When the judging means 34 does not judge that the data is the specific data, the data reading means 32 keeps the timing switching means 33 at the first timing and reads data from the ROM cartridge 31 thereafter.

【0008】[0008]

【実施例】以下、本発明のプリンタを具体化した一実施
例を図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment embodying a printer of the present invention will be described below with reference to the drawings.

【0009】図2は、プリンタ1及びプリンタ1に接続
されたROMカートリッジ2を含む構成を示すブロック
図である。プリンタ1は、用紙の搬送及び用紙の印字を
行うエンジン部3と、コンピュータ5より受信したデー
タを画像データに変換してエンジン部3に送出すビデオ
コントローラ4とから構成される。
FIG. 2 is a block diagram showing a configuration including the printer 1 and the ROM cartridge 2 connected to the printer 1. The printer 1 includes an engine unit 3 that conveys paper and prints paper, and a video controller 4 that converts data received from the computer 5 into image data and sends the image data to the engine unit 3.

【0010】ビデオコントーラ4は、ビデオコントロー
ラ4全体を制御するCPU6と、このCPU6を制御す
るプログラムが格納されたROM7と、一時的にデータ
を記憶するRAM8と、ROMカートリッジ2との接続
のためのカートリッジインタフェース9と、コンピュー
タ5との接続のためのプリンタインタフェース10と、
エンジン3との接続のエンジンインタフェース11とか
らなる。これらは内部インタフェースバス12によりC
PU6に接続される。ROMカートリッジ2の一種とし
てプリンタのエミュレーションプログラムが記憶されて
いるエミュレーションカートリッジというものがある
が、これ以降ではこのエミュレーションカートリッジに
ついて説明を続ける。
The video controller 4 includes a CPU 6 for controlling the entire video controller 4, a ROM 7 for storing a program for controlling the CPU 6, a RAM 8 for temporarily storing data, and a connection for connecting the ROM cartridge 2. A cartridge interface 9, a printer interface 10 for connection to the computer 5,
An engine interface 11 is connected to the engine 3. These are connected by the internal interface bus 12 to C
Connected to PU6. As one type of the ROM cartridge 2, there is an emulation cartridge in which an emulation program of a printer is stored. Hereinafter, the emulation cartridge will be described.

【0011】図3は、CPU6がROMカートリッジ2
のROM13からデータを読出すタイミングを示してい
る。図3(a)は、ROM13からのデータ読出し時の
リードサイクルにウェイトを入れないタイミングで、こ
のタイミングはウェイトが入っていないためROMカー
トリッジ2のプログラムを速く実行できる。但し、この
タイミングでデータの読出しを行うと、古いエミュレー
ションカートリッジのROM13からのデータ読出しが
正常にできないことがある。ここで言う古いエミュレー
ションカートリッジとは本実施例のプリンタ以前のモデ
ルで使用されていたものであり、設計が古いのでアクセ
ススピードの遅いROM13が使用されている。ROM
13からのデータ読出しが正常に行われないとプログラ
ムが暴走する危険性をもっているので絶対避けなければ
ならない。
FIG. 3 shows that the CPU 6 is the ROM cartridge 2
The timing for reading data from the ROM 13 is shown. FIG. 3A shows a timing in which no wait is inserted in a read cycle when data is read from the ROM 13. Since no wait is input at this timing, the program of the ROM cartridge 2 can be executed quickly. However, if the data is read at this timing, the data may not be normally read from the ROM 13 of the old emulation cartridge. The old emulation cartridge referred to here is the one used in the model before the printer of the present embodiment, and the ROM 13 having a slow access speed is used because the design is old. ROM
If the data reading from the memory 13 is not performed normally, there is a risk of the program going out of control.

【0012】図3(b)は、ROM13からのデータ読
出し時に2ウェイトをいれるタイミングで、このタイミ
ングでは古いエミュレーションカートリッジも新しいエ
ミュレーションカートリッジも正常に動作する。但しウ
ェイトが入っているのでCPU6の実力を最大限に発揮
することができないため、印字スピードも図3(a)の
タイミングでエミュレーションカートリッジが動作して
いるときより印字が遅くなる。ここで言う新しいエミュ
レーションカートリッジとは、本実施例のプリンタと同
時に設計されたもので最新のROMを使用しているので
ROMのアクセススピードが速く、CPU6からROM
13のリードサイクルにウェイトを入れなくても正常に
動作する。
FIG. 3B shows a timing at which two waits are inserted when data is read from the ROM 13. At this timing, both the old emulation cartridge and the new emulation cartridge operate normally. However, since the CPU 6 cannot exert its full potential because of the weight, the printing speed is slower than when the emulation cartridge is operating at the timing shown in FIG. The new emulation cartridge referred to here is a cartridge designed at the same time as the printer of the present embodiment and uses the latest ROM.
The normal operation is performed without adding a wait to the 13th read cycle.

【0013】次に、ROMカートリッジ2のROM13
に書き込まれているデータの構造を、図4を使って説明
する。図4(a)は古いエミュレーションカートリッ
ジ、図4(b)は新しいエミュレーションカートリッジ
である。
Next, the ROM 13 of the ROM cartridge 2
Will be described with reference to FIG. FIG. 4A shows an old emulation cartridge, and FIG. 4B shows a new emulation cartridge.

【0014】図4(a)及び図4(b)のエミュレーシ
ョンカートリッジは、ヘッダ部21とエミュレーション
プログラム本体22とに分かれる。ヘッダ部21は、R
OMカートリッジがエミュレーションカートリッジであ
ることをビデオコントローラ4が識別するためのエミュ
レーションカートリッジ識別子23と、その他エミュレ
ーションに関する情報、例えばエミュレーションプログ
ラムのサイズ、対応プリンタの種類を示すデータが入っ
たエミュレーション属性部24とからなる。
The emulation cartridge shown in FIGS. 4A and 4B is divided into a header section 21 and an emulation program main body 22. The header part 21 has an R
An emulation cartridge identifier 23 for the video controller 4 to identify that the OM cartridge is an emulation cartridge, and other information related to emulation, for example, an emulation attribute section 24 containing data indicating the size of the emulation program and the type of the corresponding printer. Become.

【0015】エミュレーションカートリッジ識別子23
は、このROMカートリッジ2が他の種類のROMカー
トリッジ、例えばフォントデータが記憶されているフォ
ントカートリッジと区別するためのものである。エミュ
レーションプログラム本体22は、プリンタエミュレー
ションのプログラムが入っている。
Emulation cartridge identifier 23
This is for distinguishing this ROM cartridge 2 from another type of ROM cartridge, for example, a font cartridge storing font data. The emulation program main body 22 contains a printer emulation program.

【0016】実際の動作を図5のフローチャートに従っ
て説明する。
The actual operation will be described with reference to the flowchart of FIG.

【0017】まず、ステップS1で、ビデオコントロー
ラ4が最初にROMカートリッジ2にアクセスするとき
には、カートリッジインタフェース9のROMカートリ
ッジに対するリードサイクルのウェイトを2ウェイトに
設定する。リードサイクルを2ウェイトに設定したとき
のCPU6のリードサイクルは図3(b)である。この
リードサイクルが2ウェイトサイクルでは、古いエミュ
レーションカートリッジ、新しいエミュレーションカー
トリッジのROM13のいずれも正常にデータを読出す
ことができる。
First, in step S1, when the video controller 4 first accesses the ROM cartridge 2, the wait of the read cycle for the ROM cartridge of the cartridge interface 9 is set to two waits. FIG. 3B shows the read cycle of the CPU 6 when the read cycle is set to 2 waits. If the read cycle is a two wait cycle, both the old emulation cartridge and the ROM 13 of the new emulation cartridge can normally read data.

【0018】次に、ステップS2において、エミュレー
ションカートリッジのヘッダ部分21を読出す。ヘッダ
部分21の最初の6バイトには、古いエミュレーション
カートリッジか新しいエミュレーションカートリッジか
を区別する識別子が入っている。古いエミュレーション
カートリッジには、図4(a)に示すように「BRPR
OG」というデータが入っている。新しいエミュレーシ
ョンカートリッジには、図4(b)に示すように「BR
EMU」というデータが入っている。
Next, in step S2, the header portion 21 of the emulation cartridge is read. The first six bytes of the header portion 21 contain an identifier for distinguishing between an old emulation cartridge and a new emulation cartridge. The old emulation cartridge has a "BRPR" as shown in FIG.
OG ”is included. As shown in FIG. 4 (b), the new emulation cartridge has "BR
EMU ".

【0019】ステップS2で読出されたROMカートリ
ッジ2の最初の6バイトのデータが「BREMU」か否
か、ステップS4にて判断される。「BREMU」と判
断されたときは、ステップS4にてカートリッジインタ
フェース10のROMに対するリードサイクルのウェイ
トを0ウェイト(ウェイトなし)に設定する。
It is determined in step S4 whether the first 6 bytes of data of the ROM cartridge 2 read out in step S2 are "BREMU". If the determination is "BREMU", the read cycle wait for the ROM of the cartridge interface 10 is set to 0 wait (no wait) in step S4.

【0020】ステップS3で「BREMU」でないと判
断されたときは、カートリッジのROM13に対するリ
ードサイクルは2ウェイトのままである。従って、ステ
ップS4以降に古いエミュレーションカートリッジでは
2ウェイトのままROM13からのデータ読出しが行わ
れ、新しいエミュレーションカートリッジでは0ウェイ
ト(ウェイトなし)でROM13からのデータ読出しが
行われる。
If it is determined in step S3 that the status is not "BREMU", the read cycle for the ROM 13 of the cartridge remains at two waits. Therefore, after step S4, the data reading from the ROM 13 is performed with the old emulation cartridge with two waits, and the data read from the ROM 13 is performed with the zero emulation (no wait) with the new emulation cartridge.

【0021】以上説明したように本実施例によれば、新
しいプリンタにおいて古いエミュレーションカートリッ
ジが使用でき、尚かつ新しいエミュレーションカートリ
ッジを使用したときには印字速度を落とさず印字するこ
とができる。
As described above, according to the present embodiment, an old emulation cartridge can be used in a new printer, and when a new emulation cartridge is used, printing can be performed without reducing the printing speed.

【0022】本実施例はROMカートリッジ2にプリン
タのエミュレーションプログラムが記憶されているエミ
ュレーションカートリッジについて説明したが、ROM
カートリッジ2にフォントデータが記憶されているフォ
ントカートリッジのついても同様の効果がある。
In this embodiment, the emulation cartridge in which the emulation program of the printer is stored in the ROM cartridge 2 has been described.
The same effect is obtained for a font cartridge in which font data is stored in the cartridge 2.

【0023】[0023]

【発明の効果】以上説明したことから明かなように、本
発明のプリンタによれば、従来からの古いROMカート
リッジが使用でき、尚かつ新しいROMカートリッジで
はプリンタの印字スピードが遅くならないようなデータ
の読出しができる。
As is apparent from the above description, according to the printer of the present invention, a conventional ROM cartridge can be used, and a new ROM cartridge does not slow down the printing speed of the printer. Can be read.

【図面の簡単な説明】[Brief description of the drawings]

【図1】図1は、本発明のプリンタの構成を示すブロッ
ク図である。
FIG. 1 is a block diagram illustrating a configuration of a printer according to the present invention.

【図2】図2は、本発明を具体化したプリンタの構成を
示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a printer embodying the present invention.

【図3】図3(a)は、上記プリンタにおける0ウェイ
ト(ウェイトなし)のときのCPUのROMに対するの
リードサイクルを示す図である。図3(b)は、2ウェ
イトのときのCPUのROMに対するリードサイクルを
示す図である。
FIG. 3A is a diagram illustrating a read cycle of a CPU for reading data from a ROM when a zero wait (no wait) is performed in the printer. FIG. 3B is a diagram showing a read cycle for the ROM of the CPU in the case of two waits.

【図4】図4は、エミュレーションカートリッジのデー
タ構造を示す図である。
FIG. 4 is a diagram illustrating a data structure of an emulation cartridge;

【図5】図5は、上記プリンタの動作を示すフローチャ
ートである。
FIG. 5 is a flowchart showing the operation of the printer.

【符号の説明】[Explanation of symbols]

1 プリンタ 2 ROMカートリッジ 6 CPU 9 カートリッジインタフェース DESCRIPTION OF SYMBOLS 1 Printer 2 ROM cartridge 6 CPU 9 Cartridge interface

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 プリンタ本体に接続されるROMカート
リッジと、 そのROMカートリッジからデータを読出す読出し手段
と、 そのデータ読出し手段が前記ROMカートリッジからデ
ータを読出すときに、データ読出しのタイミングを切換
えるタイミング切換え手段と、 そのタイミング切換え手段を第一のタイミングに設定し
て前記ROMカートリッジのデータを読出し、読出した
データが特定のデータであるか否かを判断する判断手段
とを備え、 その判断手段が特定のデータであると判断したときに、
前記タイミング切換え手段を前記第一のタイミングより
速い第二のタイミングに切換えることを特徴とするプリ
ンタ。
1. A ROM cartridge connected to a printer main body, reading means for reading data from the ROM cartridge, and timing for switching the data reading timing when the data reading means reads data from the ROM cartridge Switching means; and timing determining means for setting the timing switching means to a first timing to read data from the ROM cartridge, and determining whether the read data is specific data. When we determine that the data is specific,
A printer, wherein the timing switching means is switched to a second timing faster than the first timing.
JP4182205A 1992-07-09 1992-07-09 Printer Expired - Fee Related JP3039144B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4182205A JP3039144B2 (en) 1992-07-09 1992-07-09 Printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4182205A JP3039144B2 (en) 1992-07-09 1992-07-09 Printer

Publications (2)

Publication Number Publication Date
JPH0628116A JPH0628116A (en) 1994-02-04
JP3039144B2 true JP3039144B2 (en) 2000-05-08

Family

ID=16114198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4182205A Expired - Fee Related JP3039144B2 (en) 1992-07-09 1992-07-09 Printer

Country Status (1)

Country Link
JP (1) JP3039144B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3397703B2 (en) * 1998-10-29 2003-04-21 ペンタックス株式会社 Eyepiece system

Also Published As

Publication number Publication date
JPH0628116A (en) 1994-02-04

Similar Documents

Publication Publication Date Title
EP0464615A2 (en) Microcomputer equipped with DMA controller
JPH01277928A (en) Printer
JP3039144B2 (en) Printer
EP1146421B1 (en) Removable electronic device to enhance the functionality of a main processor and control method therefor
JPS6214689A (en) Character output controller
JPS62173526A (en) Page buffer control system
US6430647B1 (en) Data processing system for use in conjunction with a font card or the like
US6209049B1 (en) Data processing system and method for inputting data from storage devices where the data buss width for input depends on the number of memory devices
JP3079956B2 (en) Printer
JP2597409B2 (en) Microcomputer
JP2789648B2 (en) Data buffering device
JPH09274546A (en) Printer, data processing method for the same and storage medium storing program readable for computer
JP3268644B2 (en) DMA controller
JP2687478B2 (en) Printing device
JPH11203059A (en) Image input and output device and its memory access method, and storage medium storing computer readable program
JPH06183093A (en) Printing equipment
JP2000112679A (en) Memory controller, band processing method for memory controller, and storage medium stored with computer readable program
JPH07108578B2 (en) Output device
JP2001167046A (en) Image processor
JP2003186666A (en) Microcomputer and dma control circuit
JPH09319598A (en) Low-cost signal mask control system
JPH06110437A (en) Method and device for character processing
JPS6022383B2 (en) input/output control device
JPH0664252A (en) Printing equipment having emulation mode
JPH08263242A (en) Form overlay control system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080303

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090303

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090303

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110303

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120303

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees