JPH0410016A - Power supply device - Google Patents

Power supply device

Info

Publication number
JPH0410016A
JPH0410016A JP2113243A JP11324390A JPH0410016A JP H0410016 A JPH0410016 A JP H0410016A JP 2113243 A JP2113243 A JP 2113243A JP 11324390 A JP11324390 A JP 11324390A JP H0410016 A JPH0410016 A JP H0410016A
Authority
JP
Japan
Prior art keywords
cartridge
memory cartridge
storage means
power supply
memory
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
JP2113243A
Other languages
Japanese (ja)
Inventor
Noriyuki Nakayama
則幸 中山
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.)
Olympus Corp
Original Assignee
Olympus Optical 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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP2113243A priority Critical patent/JPH0410016A/en
Publication of JPH0410016A publication Critical patent/JPH0410016A/en
Pending legal-status Critical Current

Links

Landscapes

  • Power Sources (AREA)

Abstract

PURPOSE:To attain the exchange of memory cartridges even though a memory cartridge is loaded and unloaded when a power supply of an equipment main body is turned on by providing a means which supplies the power only when the information data are read out of and written into the memory cartridge. CONSTITUTION:A loadable/unloadable memory cartridge 2 is provided to store various types of control information together with a power supply means 12 which supplies the power to the cartridge 2, a reception means 10 which receives an access request given to the cartridge 2, and a control means 4 which makes the means 12 supply the power to the cartridge 2 only when the means 10 receives an access request. Thus it is possible to supply the power only in an access applied for reading and writing the information data out of the into the loaded cartridge 2. Then the breakage of a semiconductor memory in the cartridge 2 can be prevented when the cartridge 2 is unloaded without turning off a power supply.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は電源供給装置に係り、特にメモリ・カートリッ
ジにアクセスするときだけ電源供給する電源供給装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a power supply device, and more particularly to a power supply device that supplies power only when accessing a memory cartridge.

(従来の技術) 例えば、印字に関する情報を格納するメモリカートリッ
ジをプリンタ・コントローラに装着することによって、
印刷条件が設定されて印字出力できるプリンタ装置かあ
る。
(Prior art) For example, by installing a memory cartridge that stores information regarding printing into a printer controller,
There are printer devices that can print out data with printing conditions set.

このプリンタ装置は、前記メモリ・カートリッジの情報
をプリンタ・コントローラで読出し印刷条件を設定させ
ることによって、格納されている印刷条件で印字出力す
ることかできる。
This printer device can print out information under the stored printing conditions by having the printer controller read the information in the memory cartridge and set the printing conditions.

しかし前記プリンタ装置は、装着されているメモリ・カ
ートリッジには常時、電源供給装置から電源が印加され
ている。このため、他のメモリ・カートリッジに交換等
する際、前記電源供給装置からの電源をオフした後、前
記メモリ・カートリッジの挿抜を行なわなければならな
い。
However, in the printer device, power is always applied to the installed memory cartridge from the power supply device. Therefore, when replacing the memory cartridge with another memory cartridge, the memory cartridge must be inserted and removed after turning off the power from the power supply device.

(発明が解決しようとしている課題) 前述したように、プリンタ本体の電源かオンしている時
、挿入されているメモリ・カートリッジには電源供給装
置から電源が常に供給されている状態である。このため
、交換などする際に電源をオフせすにメモリ・カートリ
ッジを抜去した場合に、メモリ・カートリッジ内の半導
体メモリが破壊される。
(Problems to be Solved by the Invention) As described above, when the printer main body is powered on, power is always supplied to the inserted memory cartridge from the power supply device. Therefore, if the memory cartridge is removed before turning off the power when replacing the memory cartridge, the semiconductor memory inside the memory cartridge will be destroyed.

そこで本発明は、メモリ・カートリッジへのアクセス中
のときたけ、つまり必要なときのみ電源供給する電源供
給装置を提供することを目的とする。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a power supply device that supplies power only when a memory cartridge is being accessed, that is, only when necessary.

(課題を解決するための手段) 本発明は上記目的を達成するために、各種制御情報を格
納する挿抜可能なメモリ・カートリッジと、前記メモリ
・カートリッジに電源を供給する電源供給手段と、前記
メモリ・カートリッジへのアクセス要求を受ける受信手
段と、前記受信手段で前記アクセス要求を受けている間
のみ、前記電源供給手段に前記メモリ・カートリッジへ
の電源供給を行わせる制御手段とを具備する電源供給装
置を提供することができる。
(Means for Solving the Problems) In order to achieve the above object, the present invention provides a removable memory cartridge that stores various control information, a power supply means for supplying power to the memory cartridge, and a memory cartridge that stores various control information. - A power supply comprising: receiving means for receiving a request for access to a cartridge; and control means for causing the power supply means to supply power to the memory cartridge only while the receiving means is receiving the access request. equipment can be provided.

(作用) 以上のような構成によると、本発明の電源供給装置は、
装着されたメモリ・カートリッジから情報データを読み
書きするためのアクセス中のみに電源を供給することが
できる。
(Function) According to the above configuration, the power supply device of the present invention has the following features:
Power can be supplied only during access for reading and writing information data from the installed memory cartridge.

(実施例) 第1図は、本発明の電源供給装置の一実施例としてのプ
リンタコントローラの構成を示すブロック図である。
(Embodiment) FIG. 1 is a block diagram showing the configuration of a printer controller as an embodiment of the power supply device of the present invention.

このプリンタコントローラは、ホストコンピュータ(図
示せず)から転送されるコード化データを受信して、用
紙に画像情報を印字するための制御を行うプリンタコン
トローラ主制御部(以下、主制御部と略す)1と、プリ
ンタ本体に対して挿抜することか可能でフォント等の情
報データが格納されたメモリ・カートリッジ2と、この
メモリ・カートリッジ2の情報データの読み書きを行う
メモリ・カートリッジ・ドライバ(以下、M CDと略
す)3とで構成される。
This printer controller is a printer controller main control unit (hereinafter abbreviated as main control unit) that receives encoded data transferred from a host computer (not shown) and performs control to print image information on paper. 1, a memory cartridge 2 that can be inserted into and removed from the printer body and stores information data such as fonts, and a memory cartridge driver (hereinafter referred to as M) that reads and writes information data in this memory cartridge 2. (abbreviated as CD) 3.

前記主制御部1は、前記のホストコンピュータから受信
したコード化データを読み取って、用紙に画像情報を印
字するための処理に加え、前記MCD3からのサービス
要求信号(前記MCD3が前記メモリ・カートリッジの
挿抜を検出した時に、及び前記MCD3が異常状態にな
った時に後述するアサートにする信号)を検知したとき
、予め設定された命令を前記MCD3に転送する。前記
MCD3は、その命令に従った処理を実行する。
The main control unit 1 reads coded data received from the host computer and prints image information on paper, as well as processing a service request signal from the MCD 3 (the MCD 3 reads the coded data of the memory cartridge). A preset command is transferred to the MCD 3 when insertion/removal is detected, or when a signal to be asserted (described later) is detected when the MCD 3 enters an abnormal state. The MCD 3 executes processing according to the instruction.

次に前記MCD3の構成は、MCD制御部4と前記主制
御部1との間に、Iloを制御したり、データを転送す
るアドレス/データバス5によって、通信制御ボート6
と通信データポート7サービス要求信号出力ポート8と
がそれぞれ接続されている。
Next, the configuration of the MCD 3 is such that a communication control port 6 is connected between the MCD control section 4 and the main control section 1 by an address/data bus 5 that controls Ilo and transfers data.
and communication data port 7 and service request signal output port 8 are connected to each other.

またカートリッジ・コネクタ9と前記MCD制御部4と
の間に前記アドレス/データバス5によって、カートリ
ッジ・データ/アドレスポート10とカートリッジ挿抜
検知ポート11とカートリッジ電源供給ポート12とカ
ートリッジ種類検知ポート13とがそれぞれ接続されて
いる。
Further, a cartridge data/address port 10, a cartridge insertion/removal detection port 11, a cartridge power supply port 12, and a cartridge type detection port 13 are connected between the cartridge connector 9 and the MCD control section 4 by the address/data bus 5. each connected.

前記MCD制御部4は、前記主制御部1との通信制御、
前記主制御部1からの命令解析と命令実行、前記メモリ
・カートリッジ2の挿抜検知およびメモリ・カートリッ
ジ2への電源のオン/オフ制御を行なっている。
The MCD control unit 4 controls communication with the main control unit 1,
It analyzes and executes commands from the main control section 1, detects insertion/removal of the memory cartridge 2, and controls on/off of power to the memory cartridge 2.

次に通信制御ポート6は、前記主制御部1とのデータ通
信において、データ送受信に伴うハントシェイクを実行
するための一手段であり、前Ha MCD制御部4内の
CPU4a (第3図)により制御される。
Next, the communication control port 6 is a means for executing hunt shake accompanying data transmission and reception in data communication with the main control unit 1, and is controlled by the CPU 4a (FIG. 3) in the front Ha MCD control unit 4. controlled.

そして前記通信データポート7は、前記主制御部1との
データ通信におけるデータ送受信手段である。つまり前
記M CD 3か前記主制御部1から受信するのは、命
令(コマンド)と、その命令に付加するデータ、そして
前記MCD3が前記主制御部1へ送信するのは、前記メ
モリ・カートリッジ2内のデータと、前記MCD3の状
態を示すスティタスである。
The communication data port 7 is a data transmitting/receiving means for data communication with the main control section 1. In other words, what the MCD 3 receives from the main control unit 1 is a command and data added to the command, and what the MCD 3 sends to the main control unit 1 is the memory cartridge 2. The status indicates the data in the MCD 3 and the status of the MCD 3.

前記CPU4aは、前記通信制御ボート6と前記通信デ
ータポート7をアクセスすることにより、前記主制御部
1からの前記コマンド/データの入力、または、前記主
制御部1への前記データ/スティタスの出力を実行する
ことができる。
The CPU 4a inputs the command/data from the main control unit 1 or outputs the data/status to the main control unit 1 by accessing the communication control boat 6 and the communication data port 7. can be executed.

モまたサービス要求信号出力ポート8は、前記主制御部
1へ、前記サービス要求信号を送信する手段である。前
記カートリッジ・データ/アドレスポート10は、挿抜
てきる前記メモリ・カートリッジ2と、前記CPL14
aとのデータ転送のための入出力手段である。そして前
記CPU4aは、前記主制御部1から受信したデータを
前記メモリ・カートリッジ2に書き込んたり、前記メモ
リ・カートリッジ2から読みたしたデータを前記主制御
部1へ送信するときに、それぞれこのサービス要求信号
出力ポート8を選択する。
Furthermore, the service request signal output port 8 is means for transmitting the service request signal to the main control section 1. The cartridge data/address port 10 is connected to the memory cartridge 2, which can be inserted and removed, and the CPL 14.
It is an input/output means for data transfer with a. When the CPU 4a writes data received from the main control unit 1 to the memory cartridge 2 or transmits data read from the memory cartridge 2 to the main control unit 1, the CPU 4a responds to each service request. Select signal output port 8.

そして前記カートリッジ挿抜検知ポート33は、前記メ
モリ・カートリッジ2の挿抜を検知する手段である。前
記カートリッジ電源供給ポート12は、メモリ・カート
リッジ2への電源を供給する手段である。前記カートリ
ッジ種類検知ポート13は、前記メモリ・カートリッジ
2に内蔵されているメモリ媒体の種類(ROM4 b、
RAM4 cなど)を検知するための手段である。
The cartridge insertion/removal detection port 33 is means for detecting insertion/removal of the memory cartridge 2. The cartridge power supply port 12 is a means for supplying power to the memory cartridge 2. The cartridge type detection port 13 detects the type of memory medium (ROM4 b,
RAM4c, etc.).

また前記カートリッジ・コネクタ9は、前記メリ・カー
トリッジ2を挿入するコネクタである。
Further, the cartridge connector 9 is a connector into which the cartridge 2 is inserted.

第2図は前記メモリ・カートリッジ2のデータ記憶構成
を示す。
FIG. 2 shows the data storage structure of the memory cartridge 2. As shown in FIG.

前記メモリ・カートリッジ2はRA M、またはROM
てなるメモリ2aを内蔵しデータとしてフォント他の情
報を格納した前記M CD 3本体l対して、脱着可能
なカートリッジで、メモリの先頭アドレスADから所定
長のID番号(FONT)か格納されている。すなわち
、先頭アドレスADにはコード「46」の“F”か格納
され、次アドレスへ順次にコートr51hj、  r4
ehJr54hJが格納されている。
The memory cartridge 2 is RAM or ROM.
In contrast to the MCD 3 main body l, which has a built-in memory 2a and stores fonts and other information as data, a removable cartridge stores an ID number (FONT) of a predetermined length from the memory's first address AD. . That is, "F" of code "46" is stored in the first address AD, and the codes r51hj, r4 are sequentially sent to the next address.
ehJr54hJ is stored.

第3図に前記MCD制御部4の構成を示し説明する。FIG. 3 shows the configuration of the MCD control section 4 and will be explained.

前記MCD制御部4の構成は、後述するプログラムRO
M4bに格納されたプログラムにより前記MCD3の制
御を行なうCPU4aと、前記CPU4aが前記MCD
3を制御するだめのプログラムを格納するプログラムR
OM4bと、前記プログラムROM4bに格納されたプ
ログラムて使用するエリアを確保するワークRAM4c
とて構成され、それぞれか前記アドレス/データバス5
に接続してそれぞれのポートにデータを転送している。
The configuration of the MCD control section 4 is based on the program RO described later.
A CPU 4a controls the MCD 3 according to a program stored in the M4b;
Program R that stores the program to control 3.
OM4b and a work RAM4c that secures an area for use by the programs stored in the program ROM4b.
each address/data bus 5
and transfer data to each port.

次に第4図は前記ワークRAM4cの構成を示し詳細に
説明する。
Next, FIG. 4 shows the structure of the work RAM 4c and will be described in detail.

前記ワークRAM4cのファイル構成は、起動タイマ(
CDTIMER)4d、電源安定タイマ(VDT IM
ER)4 e、挿抜記憶手段(CA、RDSTTS)4
f、ID確認記憶手段(CARDIDSTTS)4g、
メモリ媒体記憶手段(M EMOSTTS)4h、電源
供給判定記憶手段(■CCREQ)4 i、読み書き判
定記憶手段(VCCRDY)4 j、格納記憶手段(C
NCTFLAG)4k及びID登録記憶手段(IDNU
M)’4mによって構成されている。
The file structure of the work RAM 4c includes a startup timer (
CDTIMER) 4d, power supply stability timer (VDT IM
ER) 4 e, insertion/removal storage means (CA, RDSTTS) 4
f, ID confirmation storage means (CARDIDSTTS) 4g,
Memory medium storage means (MEMOSTTS) 4h, power supply judgment storage means (■CCREQ) 4i, read/write judgment storage means (VCCRDY) 4j, storage storage means (C
NCTFLAG) 4k and ID registration storage means (IDNU
M) '4m.

前記起動タイマ(CDTIMER)4dは、前記CPU
4aが前記カートリッジ挿抜検知ポート11を読むこと
により、前記メモリ・カートリッジ2の挿入開始が検知
されて接続状態が安定するのを待つための計数手段であ
る。前記起動タイマ4dは、前記CPU4aが前記メモ
リ・カートリッジ2の挿入開始を検知してから起動を開
始する。
The startup timer (CDTIMER) 4d is
4a is a counting means for detecting the start of insertion of the memory cartridge 2 by reading the cartridge insertion/removal detection port 11 and waiting for the connection state to become stable. The activation timer 4d starts activation after the CPU 4a detects the start of insertion of the memory cartridge 2.

この計数手段か500 m5ecを計数するまでの間に
接続状態が変化しなかったら安定したと判断して、前記
電源供給判定記憶手段41をアサートして、前記メモリ
・カートリッジ2に電源を供給する。
If the connection state does not change until the counting means counts 500 m5ec, it is determined that the connection is stable, and the power supply determination storage means 41 is asserted to supply power to the memory cartridge 2.

ここで、前記アサートとは有効にすることで、無効にす
ることをネケートとする。
Here, the above-mentioned assert means to enable and negate means to disable.

前記電源安定タイ7 (VDT IMER)4 eは、
前記C,PU4aか、前記メモリ・カートリッジに電源
を供給してから電圧か安定するのを待つだめの計数手段
である。電源安定タイマ4eは、前記CPU4aが前記
電源供給判定記憶手段41のアサートを検知したとき起
動を開始する。この計数手段が100 m5ec後に前
記読み書き判定記憶手段4jをアサートして、前記メモ
リ・カートリッジ2を前記CPU4aが正しく読み書き
出来る状態にする。
The power supply stability tie 7 (VDT IMER) 4 e is
This is a counting means that waits until the voltage becomes stable after supplying power to the C, PU 4a or the memory cartridge. The power supply stability timer 4e starts activation when the CPU 4a detects the assertion of the power supply determination storage means 41. This counting means asserts the read/write determination storage means 4j after 100 m5ec, thereby putting the memory cartridge 2 in a state where the CPU 4a can correctly read and write.

前記挿抜記憶手段(CARDSTTS)4 fは、前記
CPU4aか前記メモリ・カートリッジ2の前記カート
リッジ・コネクタ9への挿抜状態を格納するための記憶
手段であり、挿入されているときアサートし、抜かれて
いればネゲートする。
The insertion/removal storage means (CARDSTTS) 4f is a storage means for storing the insertion/removal status of the CPU 4a or the memory cartridge 2 into the cartridge connector 9, and is asserted when the CPU 4a or the memory cartridge 2 is inserted, and asserts when the memory cartridge 2 is removed. Spring gate.

前記ID確認記憶手段(CARD IDSTTS)4g
は、前記CPU4aか、前記カートリッジφコネクタ9
に挿入された前記メモリ・カートリッジ2に格納されて
いるIDか、正しいかどうかを記憶して置くだめの記憶
手段で、正しいIDであればアサートし、正しくないI
Dであればネゲートする。
The ID confirmation storage means (CARD IDSTTS) 4g
is the CPU 4a or the cartridge φ connector 9.
The ID stored in the memory cartridge 2 inserted into the memory cartridge 2 is a storage means for storing whether the ID is correct or not.
If D, negate.

前記メモリ媒体記憶手段(MEMO3TTS)4hは、
前記CPU4aが、前記カートリッジ・コネクタ9に挿
入された前記メモリ・カートリッジ2内のメモリ媒体の
種類(ROM、RAM、等)を記憶しておくための、記
憶手段で、前記カートリッジ種類検知ボート13の値が
記憶される。
The memory medium storage means (MEMO3TTS) 4h is
The CPU 4a is a storage means for storing the type of memory medium (ROM, RAM, etc.) in the memory cartridge 2 inserted into the cartridge connector 9. The value is stored.

前記電源供給判定記憶手段(VCCREQ)41は、前
記CP04aが、前記メモリ・カートリッジ2に電源を
供給するか否か判定するために参照する記憶手段である
。前記起動タイマ4dが、500 a+secをカウン
トしたときアサートし、前記メモリ・カートリッジ2へ
の読み書きが終了したとき、または、前記メモリ・カー
トリッジ2か前記カートリッジ・コネクタ9から抜かれ
たときに、ネゲートする。前記CP04aは、この記憶
手段に格納されている値を、前記カートリッジ電源供給
ボート12にdカし、この記憶手段がアサートされてい
るときは、電源オンにして、ネゲートされているときは
、電源オフにする。
The power supply determination storage means (VCCREQ) 41 is a storage means that the CP04a refers to in order to determine whether or not to supply power to the memory cartridge 2. The activation timer 4d asserts when counting 500 a+sec, and negates when reading and writing to the memory cartridge 2 is completed or when the memory cartridge 2 is removed from the cartridge connector 9. The CP04a transfers the value stored in this storage means to the cartridge power supply board 12, and when this storage means is asserted, the power is turned on, and when this storage means is negated, the power is turned on. Turn off.

前記読み書き判定記憶手段(VCCRDY)4jは、前
記CPUJaか、前記メモリ・カートリッジ2への読み
書きを開始を判定するために参照する記憶手段で、前記
メモリ・カートリッジ2に電源供給が開始されてから起
動する前記電源安定タイマ4eが、100 trsec
をカウントしたときこの記憶手段をアサートする。この
記憶手段がアサートされれば供給されている11R電圧
が安定したとみなして前記メモリ・カートリッジ9をア
クセスすることが出来る。この記憶手段は、前記電源供
給判定記憶手段41のネゲートと共にネゲートする。
The read/write determination storage unit (VCCRDY) 4j is a storage unit that is referred to by the CPU Ja or to determine whether to start reading or writing to the memory cartridge 2, and is activated after power supply to the memory cartridge 2 is started. The power supply stability timer 4e is set to 100 trsec.
This storage means is asserted when the count is counted. When this storage means is asserted, it is assumed that the supplied 11R voltage is stabilized, and the memory cartridge 9 can be accessed. This storage means is negated together with the negation of the power supply determination storage means 41.

第5図(a)乃至(d)に前記格納記憶手段(CNCT
FLAG)4にの構成図を示す。
FIGS. 5(a) to 5(d) show the storage means (CNCT).
The configuration diagram of FLAG) 4 is shown.

前記格納記憶手段(CNCTFLAG)4には、前記C
PU4aが、常時、前記カートリッジ挿抜検知ボート1
1(図示せず)を5 a+sec毎にリードして、その
値を格納する記憶手段である。その格納する領域は、3
つの領域(CNCTFLAGICNCTFLAG2.C
NCTFLAG3.以下C1,C2,CBとする)があ
り、それら領域を前記値が5111sec毎に移動する
The storage storage means (CNCTFLAG) 4 stores the C
The PU4a is always connected to the cartridge insertion/removal detection boat 1.
1 (not shown) every 5 a+sec and stores the read value. The storage area is 3
area (CNCTFLAGICNCTFLAG2.C
NCTFLAG3. (hereinafter referred to as C1, C2, and CB), and these areas are moved every 5111 seconds.

この移動は、まず領域C2に格納されている値が領域C
3に移動(矢印A)L、次に領域C1に格納された値が
領域C2に移動(矢印B)する。
In this movement, first, the value stored in area C2 is
3 (arrow A) L, then the value stored in area C1 moves to area C2 (arrow B).

さらに前記カートリッジ挿抜検知ボート11から読み込
んだ値を領域C1に格納(矢印C)する。
Further, the value read from the cartridge insertion/removal detection board 11 is stored in the area C1 (arrow C).

そして、3個の領域の内、2個以上の領域がアサートさ
れていれば、挿入されたと検知し、3個の領域の内、2
個以上の領域がネゲートされていれば、抜かれたと検知
する。
If two or more of the three areas are asserted, insertion is detected, and two or more of the three areas are asserted.
If more than 2 areas have been negated, it is detected that the area has been negated.

すなわち、第5図(b)に示すようにn回目に読み込ん
だ値(d a t e)の格納が行われると、領域CI
にdate(n)、領域C2にdate(n−1)、領
域C3にdate(n−2)が格納される。
That is, as shown in FIG. 5(b), when the nth read value (d a t e) is stored, the area CI
date(n) is stored in area C2, date(n-1) is stored in area C3, and date(n-2) is stored in area C3.

この後51nSee経過するとそれぞれ値が領域を移動
して、第5図(C)に示すようにn+1回目の格納が行
われると、領域C1にdate (n+1)領域C2に
date(n)、領域C3にdate(n−1)が格納
される。
After this, after 51nSees have elapsed, the values move from one area to another, and when the n+1th storage is performed as shown in FIG. date (n-1) is stored in .

さらに5 m5ec経過するとそれぞれ値が領域を移動
して、第5図(d)に示すようにn+2回目の格納が行
われ、領域C1にda t e (n+2) 。
After a further 5 m5 ec has elapsed, each value moves through the area, and as shown in FIG. 5(d), the n+2th storage is performed, and data (n+2) is stored in the area C1.

領域C2にda t e (n+1) 、領域C3にd
ate(n)が格納されことになる。
da te (n+1) in area C2, d in area C3
ate(n) will be stored.

第6図は前記ID登録記憶手段(IDNUM)4mの構
成を示す。
FIG. 6 shows the configuration of the ID registration storage means (IDNUM) 4m.

前記ID登録記憶手段4mは、前記CPUJaが、前記
ID確認記憶手段4gを設定するときに、参照する記憶
手段で、ここに格納されている値と前記メモリ・カート
リッジ2の先頭アドレスに格納されているIDを比較し
て、等しいときに前記ID確認記憶手段4gをアサート
する。
The ID registration storage means 4m is a storage means that the CPU Ja refers to when setting the ID confirmation storage means 4g, and the value stored here and the value stored at the start address of the memory cartridge 2 are stored in the ID registration storage means 4m. The ID verification storage means 4g is asserted when the IDs are equal.

また、この記憶手段は、前記主制御部lからの、ID登
録命令により複数個の登録かできる。
Further, this storage means can register a plurality of IDs in response to an ID registration command from the main control unit 1.

すなわち前記ID登録記憶手段4mは、例えば4つの領
域(IDNUMI、IDNUM2.IDNUM3及びI
DNUM4 ;以下11,12.13及び14とする)
を持っている。そして領域■1には“FOMT“、領域
I2には“F ORFvI AT”が前記主制御部1か
らのID登録命令によりそれぞれ格納される。また領域
I3及び領域I4は未定義である。
That is, the ID registration storage means 4m has, for example, four areas (IDNUMI, IDNUM2.IDNUM3, and
DNUM4; hereinafter referred to as 11, 12, 13 and 14)
have. Then, "FOMT" is stored in area (1) and "FORFvI AT" is stored in area I2 according to an ID registration command from the main control unit 1. Furthermore, area I3 and area I4 are undefined.

次に第7図にカートリッジ挿抜検知ポート11の構成例
を示す。
Next, FIG. 7 shows an example of the configuration of the cartridge insertion/removal detection port 11.

電気的に一端を接地するメモリ・カートリッジ2がカー
トリッジ・コネクタ9に装着されている。
A memory cartridge 2 electrically grounded at one end is attached to a cartridge connector 9.

前記カートリッジ・コネクタ9はインバータ11aの入
力端及び、一端に5vの電圧が印加される抵抗11bの
他端に接続している。前記インバータllaの出力端1
1cは、M CD制御部4に接続して、前記メモリ・カ
ートリッジ2かカートリッジ・コネクタ9に装着されて
いるか否か検知信号を出力している。
The cartridge connector 9 is connected to the input end of an inverter 11a and the other end of a resistor 11b to which a voltage of 5V is applied to one end. Output end 1 of the inverter lla
1c is connected to the MCD control unit 4 and outputs a detection signal as to whether the memory cartridge 2 is attached to the cartridge connector 9.

また第8図にはカートリッジ電源供給ポート12の構成
例を示す。
Further, FIG. 8 shows an example of the configuration of the cartridge power supply port 12.

一端が電源VCCに接続されたメモリ・カートリッジ2
かカートリッジ・コネクタ9に装着されている。前記カ
ートリッジ・コネクタ9は、他端子が5Vに印加された
スイッチS1の一端子に接続されている。前記スイッチ
S1は、接点端子かM CD制御部4に接続し、接点を
閉じることによって前記メモリ・カートリッジ2に電源
が供給される。
Memory cartridge 2 with one end connected to power supply VCC
or is attached to the cartridge connector 9. The cartridge connector 9 is connected to one terminal of a switch S1, the other terminal of which is applied with 5V. The switch S1 is connected to the MCD control unit 4 through a contact terminal, and power is supplied to the memory cartridge 2 by closing the contact.

次に以上のように構成された本実施例のプリンタ・コン
トローラの動作について説明する。このプリンタ・コン
トローラの動作は、大きく分けて4つの処理の動作に分
けることができる。その4つの処理は、挿抜検知処理、
電源供給処理、ID登録・チエツク処理及び通信処理に
なる。まず全体の動作(カートリッジ・リートの動作)
を説明した後、各処理の動作について説明する。
Next, the operation of the printer controller of this embodiment configured as above will be explained. The operations of this printer controller can be roughly divided into four processing operations. The four processes are insertion/removal detection processing,
These include power supply processing, ID registration/check processing, and communication processing. First, the overall operation (cartridge/leat operation)
After explaining this, the operation of each process will be explained.

第9図は前記メモリ・カートリッジ2をカートリッジ・
コネクタ9に装着した時のカートリッジ・リードの動作
を示すフローチャートである。
FIG. 9 shows the memory cartridge 2 as a cartridge.
3 is a flowchart showing the operation of the cartridge lead when it is attached to the connector 9.

さらに第10図は前記カートリッジ・リードの動作に対
応するタイミングチャートであり、前記フローチャート
のステップに対応する箇所を81S2・・・とじて示す
Further, FIG. 10 is a timing chart corresponding to the cartridge read operation, and portions corresponding to steps in the flowchart are indicated as 81S2....

前記メモリ・カートリッジ2が装着されたか否か判定す
る(ステップSl)。装着された時(Y)は、挿抜記憶
手段4fに検出信号か検出される。
It is determined whether the memory cartridge 2 is installed (step Sl). When it is attached (Y), a detection signal is detected in the insertion/extraction storage means 4f.

未装着の時(N)は、待機状態を維持する。When not attached (N), the standby state is maintained.

次に前記検出信号が検出されてから、起動タイマ4dが
500 m5ecをカウントして装着が確定したか判定
する(ステップS2)。装着が確定しなかった場合(N
)は、前記起動タイマ4dがリセットされ、再度前記検
出信号か入力されるまで待機する。装着が確定した場合
(Y)は、電源(■CC)が前記メモリ・カートリッジ
2に供給される(ステップS3)。次に電源か供給され
てから電源安定タイマ4eが100 m5ecカウント
して、電源が安定したか判定する(ステップS4)。前
記電源か安定しなかった時(N)は、前記電源安定タイ
マ4eかリセットされ、再度安定か確定されるまで待機
する。電源が安定した時(Y)は、前記メモリ・カート
リッジ2からID読み出す(ステップS5)。そして前
記メモリ・カートリッジ2からID番号を読み出した後
、前記電源からの供給をオフする(ステップS6)。
Next, after the detection signal is detected, the activation timer 4d counts 500 m5ec and determines whether the attachment is confirmed (step S2). If the installation is not confirmed (N
) waits until the activation timer 4d is reset and the detection signal is input again. If the attachment is confirmed (Y), power (CC) is supplied to the memory cartridge 2 (step S3). Next, after power is supplied, the power stabilization timer 4e counts 100 m5ec, and it is determined whether the power has been stabilized (step S4). When the power source is not stable (N), the power source stability timer 4e is reset and the device waits until it is confirmed that the power source is stable again. When the power supply is stable (Y), the ID is read from the memory cartridge 2 (step S5). After reading the ID number from the memory cartridge 2, the power supply is turned off (step S6).

次に読出した前記ID番号か正しいものか判定をする(
ステップS7)。前記ID番号か正しくなかった時(N
)は、ステップS1に戻り、再度圧しい前記ID番号の
メモリ・カートリッジか装着されるまで待機する。正し
い前記ID番号であった時(Y)はID確認記憶手段(
CARD I DSTTS)4gをアサートする(ステ
ップS8)。
Next, determine whether the read ID number is correct (
Step S7). When the above ID number is incorrect (N
) returns to step S1 and waits until the memory cartridge with the predominant ID number is installed again. When the ID number is correct (Y), the ID confirmation storage means (
CARD I DSTTS)4g is asserted (step S8).

次にMCD制御部4からプリンタ・コントローラ主制御
部(以下、主制御部とする)1にサービス要求信号か送
信される(ステップS9)。そして前記主制御部1から
のカートリッジ・センス・コマンドを通信データポート
7に送信して、受信したか否かMCD制御部4が判定す
る(ステップ510)。そのカートリッジ・センス・コ
マンドを受信しなかった時(N)は、受信かされるまで
待機する。またそのカートリッジ・センス・コマンドを
受信した時(Y) 、MCD制御部4は前記主制御部1
にID確認信号を送信する(ステップ511)。
Next, a service request signal is transmitted from the MCD control section 4 to the printer controller main control section (hereinafter referred to as main control section) 1 (step S9). Then, the cartridge sense command from the main control section 1 is transmitted to the communication data port 7, and the MCD control section 4 determines whether or not it has been received (step 510). If the cartridge sense command is not received (N), it waits until it is received. When the cartridge sense command is received (Y), the MCD control section 4
An ID confirmation signal is transmitted to (step 511).

前記主制御部lは正しいID番号か確認した後、リード
・コマンドを通信データポート7に送信して、受信した
か否かMCD制御部4か判定する(ステップ512)。
After confirming whether the ID number is correct, the main control unit 1 transmits a read command to the communication data port 7, and determines whether the MCD control unit 4 has received the read command (step 512).

その受信かされなかった時(N)は、受信か確認される
まで待機している。
If it is not received (N), it waits until reception is confirmed.

その受信がなされた時(Y)は、前記電源(VCC)が
前記メモリ・カートリッジ2に供給される(ステップ8
13)。
When the reception is made (Y), the power supply (VCC) is supplied to the memory cartridge 2 (step 8
13).

次に電源が供給されてから電源安定タイマ4eか100
 m5ecカウントして電源が安定したか判定する(ス
テップ514)。前記電源か安定しなかった時(N)は
、前記電源安定タイマ4eかリセットされ、再度安定が
確定されるまで待機する。
Next time the power is supplied, the power stability timer is set to 4e or 100.
It is determined whether the power supply has stabilized by counting m5ec (step 514). When the power supply is not stable (N), the power supply stability timer 4e is reset and the system waits until stability is confirmed again.

前記電源か安定した時(Y)は、前記メモリ・カートリ
ッジ2からデータを読み出しくステップ515)、前記
主制御部1に送信する(ステップ516)。前記データ
を受信した前記主制御部1は、キャンセル・コマンドを
前記MCD制御部4に送信する(ステップ517)。前
記キャンセル・コマンドを前記通信データポータ7に受
信したか否か判定をする(ステップ518)。前記キャ
ンセル・コマンドか受信されていなかった時(N)は、
ステップS15に戻り、再度前記メモリ・カートリッジ
2からデータを読み出す。その前記キャンセル・コマン
ドか受信されていた時(Y)は、前記メモリ・カートリ
ッジ2への電源の供給を止める(ステップ519)。
When the power supply is stable (Y), data is read from the memory cartridge 2 (step 515) and transmitted to the main controller 1 (step 516). The main controller 1, which has received the data, sends a cancel command to the MCD controller 4 (step 517). It is determined whether the cancel command has been received by the communication data porter 7 (step 518). When the cancel command has not been received (N),
Returning to step S15, data is read from the memory cartridge 2 again. If the cancel command has been received (Y), the power supply to the memory cartridge 2 is stopped (step 519).

以上のように本実施例のプリンタ・コントローラのメモ
リ・カートリッジ2への電源供給は、メモリ・カートリ
ッジ2にID番号やデータの読み書きする時以外は電源
を供給しない。
As described above, power is not supplied to the memory cartridge 2 of the printer controller of this embodiment except when reading and writing ID numbers and data to the memory cartridge 2.

また、さらにプリンタ・コントローラの全体の動作に関
して説明したか、前述した挿抜検知処理、電源供給処理
、ID登録・チエツク処理及び通信処理の各動作につい
て説明する。
Further, the overall operation of the printer controller has been explained, and the operations of the above-mentioned insertion/removal detection processing, power supply processing, ID registration/check processing, and communication processing will be explained.

ます、メモリ・カートリッジのための挿抜検知処理につ
いて説明する。
First, the insertion/removal detection process for a memory cartridge will be explained.

MCD制御部4内のCPU4aは、5 m5ec毎に、
格納記憶手段CNCTFLAGI (以下、領域C1と
する)の値をCNCTFLAG2 (以下、領域C2と
する)に移動して、CNCTFLAG2の値をCNCT
FLAG3 (以下、領域C3とする)に移動する。さ
らにカートリッジ挿抜検知ポート11の値を領域C1に
格納する。そして、領域C1、領域C2、領域C3を参
照して、その組合せが、 (領域CI、領域C2,領域C3) −(0,1,1)OR(1,01) OR(1,1,0)OR(1,1,1)のとき、前記メ
モリ・カートリッジ2の挿入が開始されたと判定して、
前記メモリ・カートリッジ2の実装状態を示す挿抜記憶
手段(CARDSTTS)4fをアサートする。また (領域C1,領域C2,領域C3) = (0,0,0,)OR(0,0,1)OR(0,1
,0)OR(1,0,0)のとき、前記メモリ・カート
リッジ2か抜かれたと判定して、前記挿抜記憶手段4f
をネケートする。
The CPU 4a in the MCD control unit 4 performs the following every 5 m5ec.
The value of storage storage means CNCTFLAGI (hereinafter referred to as area C1) is moved to CNCTFLAG2 (hereinafter referred to as area C2), and the value of CNCTFLAG2 is transferred to CNCT
Move to FLAG3 (hereinafter referred to as area C3). Further, the value of the cartridge insertion/removal detection port 11 is stored in the area C1. Then, referring to area C1, area C2, and area C3, the combination is (area CI, area C2, area C3) - (0, 1, 1) OR (1, 01) OR (1, 1, 0 ) OR (1, 1, 1), it is determined that the insertion of the memory cartridge 2 has started,
The insertion/removal storage means (CARDSTTS) 4f indicating the mounting state of the memory cartridge 2 is asserted. Also, (area C1, area C2, area C3) = (0,0,0,)OR(0,0,1)OR(0,1
, 0) OR (1, 0, 0), it is determined that the memory cartridge 2 has been removed, and the insertion/removal storage means 4f
to negate.

たたし、5 m5ec毎に3回読み込んだうち1回か他
と異なるとき、その1回は、メモリ・カートリッジ2の
挿抜動作とは関係の無いノイズとみなす。
However, if one of the three readings every 5 m5ec is different from the others, that one reading is considered to be noise unrelated to the insertion/removal operation of the memory cartridge 2.

第11図は挿抜検知処理の一実施例であり、カートリッ
ジ挿抜検知ポート11と、5 m5ec毎の格納記憶手
段(CNCTFLAG)4に、前記挿抜記憶手段4fと
の読み込むタイミングの関係を示す。
FIG. 11 shows an example of the insertion/extraction detection process, and shows the relationship between the cartridge insertion/extraction detection port 11 and the timing of reading into the storage/extraction storage means 4f every 5 m5ec into the storage storage means (CNCTFLAG) 4.

カートリッジ挿抜検知ポート11の変化を示す部分Aは
、前記メモリ・カートリッジ2の挿抜とは関係の無いノ
イズであり、前記挿抜記憶手段4fが、ネゲートされて
いる。
Part A indicating a change in the cartridge insertion/removal detection port 11 is noise unrelated to the insertion/removal of the memory cartridge 2, and the insertion/removal storage means 4f is negated.

同様に部分Bで、前記メモリ・カートリッジ2が挿入さ
れ、前記メモリ・カートリッジ2と、カートリッジ・コ
ネクタ9の接触点か乱れている状態である。従って、ま
た前記挿抜記憶手段4fは、ネゲートされている。
Similarly, in part B, the memory cartridge 2 is inserted and the contact points between the memory cartridge 2 and the cartridge connector 9 are disturbed. Therefore, the insertion/extraction storage means 4f is also negated.

同様に部分Cでは、前記メモリ・カートリッジ2の接触
点が移動中ではあるが接触状態か安定しているので、格
納記憶手段4kが(1,1,0)(0,1,1)となり
、前記挿抜記憶手段4fはアサートする。
Similarly, in part C, the contact point of the memory cartridge 2 is moving but is in a stable contact state, so the storage storage means 4k becomes (1, 1, 0) (0, 1, 1), The insertion/extraction storage means 4f asserts.

部分りでは、まだ前記接触点が移動しているため、再び
接触状態が不安定になる。これによって前記格納記憶手
段4kが(0,0,1)(1,01)となり、前記挿抜
記憶手段4fがネゲートされる。
At the partial contact point, the contact point is still moving, so the contact state becomes unstable again. As a result, the storage storage means 4k becomes (0, 0, 1) (1, 01), and the insertion/removal storage means 4f is negated.

そして部分Eでは、前記接触点の移動が終了して接触状
態が確定したので、前記格納記憶手段4kが(1,1,
0)(1,1,1)となり、前記挿抜記憶手段4には、
アサートする。
In the portion E, the movement of the contact point has been completed and the contact state has been established, so the storage storage means 4k is (1, 1,
0) (1, 1, 1), and the insertion/extraction storage means 4 has the following information:
assert.

部分Fは、前記メモリ・カートリッジ2か、前記カート
リッジ・コネクタ9から抜かれ、前記挿抜記憶手段4f
は、ネゲートする。
The portion F is removed from the memory cartridge 2 or the cartridge connector 9, and is inserted into the insertion/removal storage means 4f.
negates.

このようにカートリッジ挿抜検知ポート1]の値か乱れ
ていても、上記のような規則で前記挿抜記憶手段4fを
確定し、これを前記メモリ・カートリッジ2の実装状態
を示すフラグとして2照することにより、5m5ec前
後の単発的なノイズを除去して、より確実なメモリ・カ
ートリッジ2の挿抜検知をすることかできる。
In this way, even if the value of the cartridge insertion/removal detection port 1 is irregular, the insertion/removal storage means 4f is determined according to the above-mentioned rules, and this is used as a flag indicating the mounting state of the memory cartridge 2. As a result, it is possible to remove the one-off noise around 5 m5ec, and to detect the insertion and removal of the memory cartridge 2 more reliably.

次に電源供給処理について説明する。Next, the power supply process will be explained.

メモリ・カートリッジ2か、カートリッジ・コネクタ9
に挿入が開始されても、上記の挿抜検知処理で示したよ
うに、接触点が移動している間は接続状態か不安定にな
る。そのため、挿入開始されてすぐに電源を供給すると
メモリ・カートリッジ2を破壊したり、誤ったデータを
リード/ライトすることがある。つまり、前記挿抜記憶
手段4fでメモリ・カートリッジ2が挿入状態になって
も、すぐにメモリ・カートリッジ2に電源を供給するこ
とができない。
Memory cartridge 2 or cartridge connector 9
Even if insertion is started, the connection state will be unstable while the contact point is moving, as shown in the insertion/removal detection process above. Therefore, if power is supplied immediately after insertion has started, the memory cartridge 2 may be destroyed or incorrect data may be read/written. That is, even if the memory cartridge 2 is inserted into the insertion/removal storage means 4f, power cannot be immediately supplied to the memory cartridge 2.

そこで、上記の挿抜検知処理で説明した前記挿抜記憶手
段4fのアサートか一定時間以上継続してから電源を供
給するようにした。
Therefore, the power is supplied after the insertion/extraction storage means 4f continues to be asserted for a certain period of time as described in the insertion/extraction detection process described above.

第12図に前記電源供給処理の一実施例のタイムチャー
トを示し詳細に説明する。
FIG. 12 shows a time chart of one embodiment of the power supply processing and will be described in detail.

前記メモリ・カートリッジ2の挿入か開始されたとき、
つまり挿抜記憶手段(CARDSTTS)4fがアサー
トされた時(T1)に、起動タイマ(CDTIMER)
4dを起動させる。前記起動タイマ4dか、500 m
5ecをカウントするまでの間(T2)に、前記挿抜記
憶手段4fに変化かなかった時、前記メモリ・カートリ
ッジ2の挿入が確定したと判定する。
When the insertion of the memory cartridge 2 is started,
In other words, when the insertion/removal storage means (CARDSTTS) 4f is asserted (T1), the activation timer (CDTIMER)
Start 4d. The activation timer 4d or 500 m
When there is no change in the insertion/removal storage means 4f until 5ec is counted (T2), it is determined that the insertion of the memory cartridge 2 is confirmed.

つまり前記挿抜記憶手段4fのアサートされた時(T1
)に、前記起動タイマ4dが起動する。
That is, when the insertion/removal storage means 4f is asserted (T1
), the activation timer 4d is activated.

しかし前記起動タイマ4dが500 m5ec以上をカ
ウントするまでの間(T2)に、前記挿抜記憶手段4f
がネゲートされる場合がある。つまり前記メモリ・カー
トリッジ2を挿入中は、カートリッジ・コネクタ9との
接触点か移動して接触状態が不安定である。前記接触点
か離れた時に前記起動タイマ4dはリセットするか、再
度前記挿抜記tO手段4fがアサートされたときに、前
記起動タイマ4dは再起動する。
However, until the activation timer 4d counts 500 m5ec or more (T2), the insertion/removal storage means 4f
may be negated. That is, while the memory cartridge 2 is being inserted, the contact point with the cartridge connector 9 moves and the contact state is unstable. The activation timer 4d is reset when the contact point is removed, or the activation timer 4d is restarted when the insertion/removal recording tO means 4f is asserted again.

そして前記起動タイマ4dが500 m5ecをカウン
トした時(T3)は、電源供給判定記憶手段(VCCR
EQ)4 iをアサート(T4)して、カートリッジ電
源供給ポート12に、電源供給信号を出力(T5)して
、前記メモリ・カートリッジ2に電源の供給(T6)を
開始する。
When the start timer 4d counts 500 m5ec (T3), the power supply judgment storage means (VCCR)
EQ)4i is asserted (T4), a power supply signal is outputted to the cartridge power supply port 12 (T5), and power supply to the memory cartridge 2 is started (T6).

また前記メモリ・カートリッジ2に電源供給を開始して
も電圧か安定する(T7)まで、読み書きするのを待た
なければならない。つまり前記電源供給判定記憶手段4
1がアサート(T5)されると、電源安定タイ? (V
DT I MER)4 eが起動して、100 a+s
eeカウント(T7)したら、読み書き判定記憶手段(
VCCRDY)4 jをアサート(T8)して、前記メ
モリ・カートリッジ2を読み書き可能な状態にする。
Further, even if power is started to be supplied to the memory cartridge 2, reading and writing must wait until the voltage becomes stable (T7). In other words, the power supply determination storage means 4
When 1 is asserted (T5), power supply stability tie? (V
DT I MER) 4 e starts and 100 a+s
After counting ee (T7), read/write judgment storage means (
VCCRDY)4j is asserted (T8) to make the memory cartridge 2 readable and readable.

このように、前記メモリ・カートリッジ2の接続状態の
安定と、電源供給後に電圧の安定を待つことにより、前
記メモリ・カートリッジ2の保護と、誤ったデータの読
み書きを防ぐことができる。
In this way, by stabilizing the connection state of the memory cartridge 2 and waiting for the voltage to stabilize after power is supplied, the memory cartridge 2 can be protected and erroneous data reading and writing can be prevented.

次にID登録・チエツク処理について説明する。Next, ID registration/check processing will be explained.

読み書き判定記憶手段(VCCRDY)4 jかアサー
トされると正しい識別(以下、IDとする)番号か登録
されたメモリ・カートリッジ2か否かを調べなければな
らない。
When read/write determination storage means (VCCRDY) 4j is asserted, it is necessary to check whether the memory cartridge 2 has a correct identification (hereinafter referred to as ID) number or is registered.

その方法として、例えばプリンタ・コントローラで使用
する文字データか格納されていなければならないメモリ
・カートリッジ2を使用する場合に、第6図のID登録
記憶手段4mにID番号として、”FONT”  (a
sciiコートで、46h、51h4eh、54h )
を格納しておき、またメモリ・カートリッジ2をフォー
マットメモリとして使用する場合のために、“FORM
AT” (asciiコードて、46h、4fh、52
h、4dh、4Lh、54h )をID番号として、I
D登録記憶手段4mの第2領域工2に格納してお く 
For example, when using a memory cartridge 2 that must store character data used in a printer controller, a "FONT" (a
With scii coat, 46h, 51h4eh, 54h)
In addition, in case you use memory cartridge 2 as a format memory, “FORM
AT” (ascii code, 46h, 4fh, 52
h, 4dh, 4Lh, 54h) as the ID number, I
Store it in the second area 2 of the D registration storage means 4m.
.

これにより、このプリンタ・コントローラでは、上記の
2種類のID番号か登録されたメモリ・カートリッジ2
か使用できる。なお前記ID登録は、プリンタ本体の電
源をオンしたときのプリンタ・コントローラの初期設定
時に、主制御部1からの、ID登録命令によりおこなう
As a result, this printer controller uses the above two types of ID numbers or the registered memory cartridge 2.
or can be used. Note that the ID registration is performed by an ID registration command from the main control section 1 at the time of initial setting of the printer controller when the printer main body is turned on.

第13図にID登録・チエツク処理の処理動作を示すフ
ローチャートを参照して説明する。
An explanation will be given with reference to a flowchart shown in FIG. 13 showing the processing operation of ID registration/check processing.

メモリ・カートリッジ2かカートリッジ争コネクタ9に
装着されている場合、 ますワークRAM4cのID登
録記憶手段4mの第1領域1〕に第1のID番号が登録
されているか判定される(ステップ520)。第1のI
D番号が未登録で定義されていない時(N)は、ID確
認記憶手段(CARDIDSTTS)4gがネゲートさ
れる(ステップ521)。
If the memory cartridge 2 is attached to the cartridge connector 9, it is determined whether the first ID number is registered in the first area 1 of the ID registration storage means 4m of the work RAM 4c (step 520). 1st I
When the D number is unregistered and undefined (N), the ID confirmation storage means (CARDIDSTTS) 4g is negated (step 521).

また第1ID番号が定義されている時(Y)は、前記メ
モリ・カートリッジ2のメモリ7aの先頭アドレスAD
に同じID番号が定義されているが判定する(ステップ
522)。
Further, when the first ID number is defined (Y), the first address AD of the memory 7a of the memory cartridge 2 is
It is determined whether the same ID number is defined in (step 522).

ステップS22で、前記メモリ・カートリッジ2にID
登録記憶手段4mの第1の領域11と同じID番号が定
義されている時(Y)は、前記ID確認記憶手段(CA
RD I DSTTS)4gかアサートされる(ステッ
プ323)。
In step S22, an ID is stored in the memory cartridge 2.
When the same ID number as the first area 11 of the registration storage means 4m is defined (Y), the ID confirmation storage means (CA
RD I DSTTS)4g is asserted (step 323).

しかし同じID番号が定義されていないとき(N)には
、次にID登録記憶手段4mの第2領域I2にID番号
が登録されているか判定される(ステップ524)。第
2領域工2にID番号か未登録で定義されていない時(
N)は、前記ID確認記憶手段4gかネゲートされる(
ステップ823)。
However, if the same ID number is not defined (N), then it is determined whether the ID number is registered in the second area I2 of the ID registration storage means 4m (step 524). When the ID number is not registered or defined in the second area engineering 2 (
N), the ID confirmation storage means 4g is negated (
step 823).

また第2領域■2にID番号が定義されている時(Y)
は、前記メモリ・カートリッジ2に同じ第2領域I2の
ID番号が定義されているか判定する(ステップ525
)。このステップS25で、前記メモリ・カートリッジ
2に同じID番号が定義されていると利手された時(Y
)は、前記ID確認記憶手段(CARD I DSTT
S)4 gがアサートされる(ステップ823)。
Also, when the ID number is defined in the second area ■2 (Y)
determines whether the same ID number of the second area I2 is defined in the memory cartridge 2 (step 525).
). In this step S25, when it is determined that the same ID number is defined in the memory cartridge 2 (Y
) is the ID confirmation storage means (CARD I DSTT).
S)4g is asserted (step 823).

以下同様にして、第3及び第4のID番号も判定される
(ステップS26乃至ステップ529)。
Thereafter, the third and fourth ID numbers are also determined in the same manner (steps S26 to 529).

以上のようなID登録・チエツク処理は、装着したメモ
リ・カートリッジ2のID番号がID登録記憶手段4m
に予め登録された複数のID番号中の1つに等しければ
、正しいID番号とみなし、前記メモリ・カートリッジ
がらり一ドできるものとしてID確認記憶手段4gをア
サートする。
The above ID registration/check processing is performed when the ID number of the installed memory cartridge 2 is the ID registration storage means 4m.
If the ID number is equal to one of a plurality of ID numbers registered in advance, it is regarded as a correct ID number, and the ID confirmation storage means 4g asserts that the memory cartridge can be read.

この時、正しいID番号であると判定されるためには、
前記メモリ・カートリッジ2には、先頭アドレスに、I
D登録記憶手段4mに格納しているID番号と同しID
番号の” FONT”  (asciiコードで、48
h、51h、4eh、54h ) 、又は、 FORM
AT”  (ascii:7−ドで、46h、4fh、
52h、4 dh、41h、54h)を格納していなけ
ればならない。
At this time, in order to determine that the ID number is correct,
The memory cartridge 2 has I at the top address.
D Same ID as the ID number stored in the registration storage means 4m
Number "FONT" (ASCII code, 48
h, 51h, 4eh, 54h) or FORM
AT” (ASCII: 7-code, 46h, 4fh,
52h, 4dh, 41h, 54h) must be stored.

そして、前記メモリ・カートリッジ2の先頭アドレスに
格納されているID番号が、ID登録記憶手段4mに登
録された複数のID番号中の全ての番号と異なるとき、
正しくないID番号とみなされ、そのメモリ・カートリ
ッジ2がらリードすることができないものとして扱い、
ID確認記憶手段4gをネゲートする。
When the ID number stored in the first address of the memory cartridge 2 is different from all the ID numbers among the plurality of ID numbers registered in the ID registration storage means 4m,
It is assumed that the ID number is incorrect, and the memory cartridge 2 is treated as unreadable.
The ID confirmation storage means 4g is negated.

またID登録・チエツク処理は、前記メモリ・カートリ
ッジ2のID番号をリードしている時に該メモリ・カー
トリッジ2がカートリッジ・コネクタ9から抜かれて挿
抜記憶手段4fかネゲートされた場合、並びに、前記I
D確認記憶手段4gか確定した場合に電源供給判定記憶
手段41をネゲートして前記メモリ・カートリッジ2へ
の電源供給を中止する。
Further, the ID registration/check process is performed when the memory cartridge 2 is removed from the cartridge connector 9 and the insertion/removal storage means 4f is negated while the ID number of the memory cartridge 2 is being read, and when the ID number of the memory cartridge 2 is being read.
When the confirmation storage means 4g is confirmed, the power supply judgment storage means 41 is negated to stop the power supply to the memory cartridge 2.

このように挿−人されたメモリ・カートリッジ2のID
番号を確認することによって、このプリンタ・コントロ
ーラに関係の無いメモリ・カートリッジ2の挿入による
誤動作を防ぐことかでき、さらに、複数のID番号を有
効にすることにより、複数の決められたメモリ・カート
リッジ2を使用することもできる。
ID of memory cartridge 2 inserted in this way
By checking the number, it is possible to prevent malfunctions due to the insertion of memory cartridges 2 unrelated to this printer controller.Furthermore, by validating multiple ID numbers, it is possible to prevent malfunctions due to the insertion of memory cartridges 2 unrelated to this printer controller. 2 can also be used.

次にカートリッジ・リード通信処理について、ID確認
記憶手段4gが確定してからの処理を説明する。各部材
に付した参照番号は第1図のものと同様である。この処
理は第9図および第10図を説明したときにすてに概要
を説明しているかもう一度、詳細に説明する。
Next, regarding the cartridge read communication process, the process after the ID confirmation storage means 4g is determined will be explained. The reference numbers assigned to each member are the same as those in FIG. This process was already outlined when explaining FIGS. 9 and 10, but will be explained in detail again.

M CD制御部4は、カートリッジ・コネクタ9に装着
されたメモリ・カートリッジ2か正しいID番号を持つ
ことが確認できたら、主制御部1ヘコマンドを送信する
よう要求するためサービス要求信号出力ポート8をアサ
ートする。
When the MCD control unit 4 confirms that the memory cartridge 2 attached to the cartridge connector 9 has the correct ID number, it sends a service request signal output port 8 to request the main control unit 1 to send a command. Assert.

しかし反対に、前記カートリッジ・コネクタ9に装着さ
れたメモリ・カートリッジ2が正しくないID番号であ
ることか確認されたら、他の正しいID番号のメモリ・
カートリッジ2に交換されるまで、前記サービス要求信
号出力ポート8は、アサートしない。
However, on the contrary, if it is confirmed that the memory cartridge 2 installed in the cartridge connector 9 has an incorrect ID number, other memory cartridges with the correct ID number
The service request signal output port 8 is not asserted until the cartridge 2 is replaced.

そして前記サービス要求信号出力ポート8のアサートを
検知した前記主制御部1は、正しいID番号のメモリ・
カートリッジ2が挿入されたことを確認するためカート
リッジ・センス・コマンドを、MCD3に送信する。そ
のカートリッジ・センス・コマンドを受信した前記MC
D3は、前記主制御部1へID確認記憶手段4gの内容
を返送する。
Then, the main control unit 1 detects the assertion of the service request signal output port 8, and selects a memory with the correct ID number.
A cartridge sense command is sent to the MCD 3 to confirm that cartridge 2 has been inserted. The MC that received the cartridge sense command
D3 returns the contents of the ID confirmation storage means 4g to the main control section 1.

前記ID確認記憶手段4gの内容を受信した前記主制御
部1は、前記MCD 3に挿入されたメモリ・カートリ
ッジ2か正しいID番号であることか確認できたら、前
記M CD 3にカートリッジ・リード・コマンドを送
信する。
Upon receiving the contents of the ID confirmation storage means 4g, the main control unit 1 confirms that the memory cartridge 2 inserted into the MCD 3 has the correct ID number, and then instructs the MCD 3 to read the cartridge. Send a command.

前記カートリッジ・リード・コマンドを受、信した前記
MCD3は、電源供給判定記憶手段41をアサートして
、前記メモリ・カートリッジ2に電源を供給し、100
 m5ec後に読み書き判定記憶手段4jをアサートし
てから、前記メモリ・カートリッジ2のデータを読みだ
して、前記主制御部1へ、送信する。
The MCD 3 that has received the cartridge read command asserts the power supply determination storage means 41 to supply power to the memory cartridge 2, and
After m5ec, the read/write determination storage means 4j is asserted, and the data in the memory cartridge 2 is read out and transmitted to the main control section 1.

そして前記主制御部1は、前記メモリ・カートリッジ2
のデータ受信を終了すると前記MCD3にキャンセル・
コマンドを送信する。前記キャンセル・コマンドを受信
した前記MCD3は、前記メモリ・カートリッジ2から
のデータの読み出しを中止して、電源供給判定記憶手段
41、読み書き判定記憶手段4jか順次ネゲートされ、
メモリ・カートリッジ2への電源供給が中止される。
The main controller 1 controls the memory cartridge 2.
When the data reception is finished, cancel/
Send a command. Upon receiving the cancel command, the MCD 3 stops reading data from the memory cartridge 2, and sequentially negates the power supply determination storage means 41 and the read/write determination storage means 4j,
Power supply to the memory cartridge 2 is stopped.

またメモリ・カートリッジ2をアクセス中に、前記メモ
リ・カートリッジ2を抜いた場合には、つまり挿抜記憶
手段4fかネゲートされた時は、電源供給判定記憶手段
4i、読み書き判定記憶手段4jか順次ネゲートされメ
モリ・カートリッジ2への電源供給が即中止される。
Furthermore, when the memory cartridge 2 is removed while the memory cartridge 2 is being accessed, that is, when the insertion/removal storage means 4f is negated, the power supply determination storage means 4i and the read/write determination storage means 4j are negated in sequence. Power supply to the memory cartridge 2 is immediately stopped.

このように、メモリ・カートリッジ2に対して読み書き
するときたけ、メモリ・カートリッジ2に電源を供給す
るようにしている。
In this way, power is supplied to the memory cartridge 2 whenever the memory cartridge 2 is read or written.

以上のような構成によると、本発明の電源供給装置は、
コントローラ内部に、メモリ・カートリッジの挿抜を検
知する手段とその検知に基づいて前記メモリ・カートリ
ッジへの電源供給を制御する手段とによって、前記メモ
リ・カートリッジの挿抜の完了を検知し、そのメモリ・
カートリッジから情報データを読み書きするときのみに
電源を供給することができる。
According to the above configuration, the power supply device of the present invention includes:
The controller includes means for detecting insertion and removal of a memory cartridge and means for controlling power supply to the memory cartridge based on the detection.
Power can be supplied only when reading and writing information data from the cartridge.

また本発明は、前述したプリンタ装置の−実施例に限定
されるものではなく、他にも発明の要旨を逸脱しない範
囲で種々の変形や応用か可能であることは勿論である。
Further, the present invention is not limited to the embodiment of the printer device described above, and it goes without saying that various modifications and applications can be made without departing from the gist of the invention.

[発明の効果〕 以上詳述したように本発明によれば、メモリ・カートリ
ッジから情報データを読み書きするときのみに電源を供
給する手段を具備することによって、機器本体の電源が
オン状態の時に挿抜したとしても、メモリ・カートリッ
ジを交換することができる。
[Effects of the Invention] As described in detail above, according to the present invention, by providing means for supplying power only when reading and writing information data from a memory cartridge, insertion and removal can be performed while the power of the main body of the device is on. Even if you do, you can replace the memory cartridge.

従って本発明の電源供給装置は、機器本体の電源がオン
している状態でも、メモリ・カートリッジを挿抜するこ
とができる。
Therefore, the power supply device of the present invention allows the memory cartridge to be inserted and removed even when the power of the main body of the device is on.

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

第1図は本発明の電源供給装置の一実施例としてのプリ
ンタ・コントローラの構成を示すブロック図、第2図は
メモリ・カートリッジの構成を示すブロック図、第3図
はMCD制御部の構成を示すブロック図、第4図はワー
クRAMの構成を示すブロック図、第5図(a)乃至(
d)は格納記憶手段(CNCTFLAG)の構成を示す
ブロック図、第6図はID登録記憶手段(IDNUM)
の構成を示すブロック図、第7図はカートリッジ挿抜検
知ポートの構成例を示すブロック図、第8図はカートリ
ッジ電源供給ポートの構成例を示すブロック図、第9図
はメモリ・カートリッジのリードの動作を示すフローチ
ャート、第10図は第9図のリード動作に対応するタイ
ミングチャート、第11図は挿抜検知処理の動作のタイ
ミングチャート、第12図は電源供給処理の動作のタイ
ムチャート、第13図はID登録・チエツク処理の動作
を示すフローチャート。 1・・・プリンタコントローラ主制御部、2・・・メモ
リ・カートリッジ、3・・メモリ・カートリッジ・ドラ
イバ、4・・・M CD制御部、5・・・アドレス/デ
ータバス、9・・・カートリッジ・コネクタ、11・・
・カートリッジ挿抜検知ポート、12・・・カートリッ
ジ電源供給ポート。 出願人代理人 弁理士 坪井 淳 第 図 第 図(a) 第 5図(b) 第 図(c) 第 図(d) 第 図 第4 図 第 図 手続ン山正書(方式) 平成2年89M7日
FIG. 1 is a block diagram showing the configuration of a printer controller as an embodiment of the power supply device of the present invention, FIG. 2 is a block diagram showing the configuration of a memory cartridge, and FIG. 3 is a block diagram showing the configuration of an MCD control section. 4 is a block diagram showing the configuration of the work RAM, and FIG. 5(a) to (
d) is a block diagram showing the configuration of the storage storage means (CNCTFLAG), and FIG. 6 is the ID registration storage means (IDNUM).
7 is a block diagram showing an example of the configuration of the cartridge insertion/removal detection port. FIG. 8 is a block diagram showing an example of the configuration of the cartridge power supply port. FIG. 9 is a block diagram showing an example of the configuration of the cartridge insertion/removal detection port. FIG. 10 is a timing chart corresponding to the read operation in FIG. 9, FIG. 11 is a timing chart for insertion/removal detection processing, FIG. 12 is a timing chart for power supply processing, and FIG. 13 is a timing chart for the operation of power supply processing. 5 is a flowchart showing the operation of ID registration/check processing. DESCRIPTION OF SYMBOLS 1...Printer controller main control unit, 2...Memory cartridge, 3...Memory cartridge driver, 4...M CD control unit, 5...Address/data bus, 9...Cartridge・Connector, 11...
- Cartridge insertion/removal detection port, 12...Cartridge power supply port. Applicant's agent Patent attorney Jun Tsuboi Diagram (a) Figure 5 (b) Figure (c) Figure (d) Figure 4 Figure Procedure Nyama Seisho (Method) 1990 89M7 Day

Claims (1)

【特許請求の範囲】 各種制御情報を格納する挿抜可能なメモリ・カートリッ
ジと、 前記メモリ・カートリッジに電源を供給する電源供給手
段と、 前記メモリ・カートリッジへのアクセス要求を受ける受
信手段と、 前記受信手段で前記アクセス要求を受けている間のみ、
前記電源供給手段に前記メモリ・カートリッジへの電源
供給を行わせる制御手段とを具備することを特徴とする
電源供給装置。
[Scope of Claims] A removable memory cartridge that stores various control information, a power supply means for supplying power to the memory cartridge, a receiving means for receiving an access request to the memory cartridge, and the receiving means. only while the said access request is received by the means;
A power supply device comprising: a control means for causing the power supply means to supply power to the memory cartridge.
JP2113243A 1990-04-27 1990-04-27 Power supply device Pending JPH0410016A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2113243A JPH0410016A (en) 1990-04-27 1990-04-27 Power supply device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2113243A JPH0410016A (en) 1990-04-27 1990-04-27 Power supply device

Publications (1)

Publication Number Publication Date
JPH0410016A true JPH0410016A (en) 1992-01-14

Family

ID=14607198

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2113243A Pending JPH0410016A (en) 1990-04-27 1990-04-27 Power supply device

Country Status (1)

Country Link
JP (1) JPH0410016A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010015431A (en) * 2008-07-04 2010-01-21 Seiko Epson Corp Host controller, information processing apparatus, and electronic device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010015431A (en) * 2008-07-04 2010-01-21 Seiko Epson Corp Host controller, information processing apparatus, and electronic device

Similar Documents

Publication Publication Date Title
KR910007035B1 (en) Data processing method between the first electronic device and the second electronic device and a portable medium as a second electronic device for the data processing method
EP1496436B1 (en) Method and apparatus for autoreset of a usb smart card device in a mute mode
TR201802770T4 (en) Print media cartridge.
JP3590338B2 (en) Portable electronic devices
WO2001091046A1 (en) Ic card
JP4066980B2 (en) Printing recording material container
JP2745669B2 (en) Printer
JP2006209643A (en) Interface circuit and system apparatus using the interface circuit
US6597285B2 (en) Non-contact communication apparatus and control method for non-contact communication apparatus
JPH0410016A (en) Power supply device
JPH0410091A (en) Device for detecting load/unload of memory cartridge
JPH09330381A (en) IC card reader / writer
JPS6227841A (en) Method and apparatus for preventing errors caused by insertion or removal of cartridge
US6957289B2 (en) Bus system having improved control process
CN107081964B (en) Storage device, liquid container, and host device
JP4681096B2 (en) Storage device
JPS6217299B2 (en)
JP2738435B2 (en) Print data processing device
JP2577376B2 (en) Portable electronic devices
JPH07122084A (en) Electronics
JPH09305537A (en) Data processor capable of inserting i/o recovery time
JP2577369B2 (en) IC card
JP2618953B2 (en) Transmission processing method, data storage medium and IC chip
JP2000123126A (en) IC card, Handy terminal with light device
JP2785604B2 (en) Information processing device