JP2003296187A - Memory access switching device, memory access switching method and ic chip - Google Patents

Memory access switching device, memory access switching method and ic chip

Info

Publication number
JP2003296187A
JP2003296187A JP2002104452A JP2002104452A JP2003296187A JP 2003296187 A JP2003296187 A JP 2003296187A JP 2002104452 A JP2002104452 A JP 2002104452A JP 2002104452 A JP2002104452 A JP 2002104452A JP 2003296187 A JP2003296187 A JP 2003296187A
Authority
JP
Japan
Prior art keywords
switching
control means
storage means
control
cpu
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
JP2002104452A
Other languages
Japanese (ja)
Inventor
Mamoru Wada
守 和田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2002104452A priority Critical patent/JP2003296187A/en
Publication of JP2003296187A publication Critical patent/JP2003296187A/en
Pending legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a memory access switching device, a memory access switching method and an IC chip capable of sharing a substrate without using a socket between different designations, and realizing this without using a rewritable memory. <P>SOLUTION: A printer 1 has built therein a CPU 18, a ROM 19, a RAM 20, an EEPROM 21, an ASIC 22, and a drive circuit 23, which are mounted on a substrate 24. A plurality of control programs are stored in the ROM 19. A logic circuit for switching the access designation of the CPU 18 is built in the ASIC 22. When power is inputted to the printer 1, the CPU 18 sets a resister 37 in the ASIC 22 based on a data value written in the EEPROM 21, and the ASIC 22 switches the access designation of the CPU 18 according to this register value. <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、メモリアクセス切
換装置、メモリアクセス切換方法及びICチップに関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory access switching device, a memory access switching method and an IC chip.

【0002】[0002]

【従来の技術】プリンタはCPU、ROM、RAM、A
SIC、駆動回路等からなる制御装置を備え、この制御
装置によって記録ヘッド、キャリッジモータ、紙送りモ
ータ等を駆動して印刷処理やメンテナンス処理等の各種
処理を実行している。ROMには制御プログラムが記憶
され、CPUはプリンタの電源オン時にROMにアクセ
スして制御プログラムを実行することでプリンタを動作
させている。制御プログラムは仕向け先に応じて一義的
に決まるもので、一つのROMに対して一つの制御プロ
グラムが書き込まれている。
2. Description of the Related Art A printer has a CPU, a ROM, a RAM, and an A.
A control device including an SIC, a drive circuit, and the like is provided, and the control device drives a recording head, a carriage motor, a paper feed motor, and the like to execute various processes such as a printing process and a maintenance process. A control program is stored in the ROM, and the CPU operates the printer by accessing the ROM and executing the control program when the power of the printer is turned on. The control program is uniquely determined according to the destination, and one control program is written in one ROM.

【0003】[0003]

【発明が解決しようとする課題】ところで、同一製品で
あっても仕向け先が何種類もある場合には複数のプログ
ラムが必要である。現状では一つのROMに一つのプロ
グラムしか書き込めないことから、仕向け先に応じたR
OMがそれぞれ必要となり、それぞれROMを用意する
必要があった。また、CPU、ROM、RAM、ASI
C等のデバイスは基板に取り付けられるが、複数種類の
ROMの間で基板を共用するためには、基板にソケット
を実装してROMを後付けする方法が用いられる。しか
し、この方法を用いるとソケット代がかかり、その分だ
けコストアップする問題があった。
By the way, a plurality of programs are required when there are many kinds of destinations even for the same product. At present, only one program can be written in one ROM, so R depending on the destination
Each OM was required, and each ROM had to be prepared. Also, CPU, ROM, RAM, ASI
A device such as C is mounted on a substrate, and in order to share the substrate among a plurality of types of ROMs, a method of mounting a socket on the substrate and retrofitting the ROM is used. However, when this method is used, there is a problem that the socket cost is required and the cost is increased accordingly.

【0004】ここで、これら問題を回避する方法とし
て、例えばEEPROMやフラッシュROM等の書換え
可能なメモリを採用し、このメモリにプログラムを書き
込むことが考えられる。書換え可能なメモリを採用すれ
ば、仕向け先に応じてROMを用意せずに済み、さらに
はソケットを用いずに異なる仕向け先の間で基板の共用
化が図れてコストアップを招かない。しかし、この種の
書換え可能なメモリは高価であるため、例えば低価格の
製品等にこの方法は採用し難い現状がある。
Here, as a method of avoiding these problems, it is conceivable to adopt a rewritable memory such as an EEPROM or a flash ROM and write a program in this memory. If a rewritable memory is adopted, it is not necessary to prepare a ROM depending on the destination, and further, the substrate can be shared between different destinations without using a socket, which does not increase the cost. However, since this type of rewritable memory is expensive, it is difficult to apply this method to, for example, low-priced products.

【0005】本発明は前記の問題点に鑑みてなされたも
のであって、その目的は、異なる仕向け先の間でソケッ
トを用いることなく基板を共用することができ、それを
書換え可能なメモリを用いることなく実現できるメモリ
アクセス切換装置、メモリアクセス切換方法及びICチ
ップを提供することにある。
The present invention has been made in view of the above problems, and an object of the present invention is to provide a rewritable memory in which a substrate can be shared between different destinations without using a socket. It is an object to provide a memory access switching device, a memory access switching method, and an IC chip that can be realized without using them.

【0006】[0006]

【課題を解決するための手段】上記問題点を解決するた
めに、請求項1に記載の発明では、複数のプログラムが
記憶された記憶手段と、前記記憶手段にアクセスして前
記プログラムを実行可能な制御手段と、複数の前記プロ
グラムのうち所定のプログラムが選択されるように、選
択情報に基づいて前記制御手段の前記記憶手段へのアク
セス先を切換える切換手段とを備えたことを要旨とす
る。
In order to solve the above problems, in the invention according to claim 1, a storage means storing a plurality of programs, and the storage means can be accessed to execute the programs. And a switching means for switching the access destination of the control means to the storage means based on the selection information so that a predetermined program is selected from among the plurality of programs. .

【0007】この発明によれば、制御手段が記憶手段に
アクセスする際には切換手段により記憶手段へのアクセ
ス先が切換えられ、制御手段は記憶手段に記憶された複
数のプログラムのうち切換手段に切換状態により決まる
プログラムを読み込んで実行する。従って、複数のプロ
グラムを記憶手段に書き込んでおき、そのうちの所望の
ものが切換手段の切換選択により実行可能となるため、
仕向け先が複数あっても1つの記憶手段を用意するだけ
で済む。このため、記憶手段を基板に実装した基板が複
数の仕向け先の間で使用可能となり、ソケットを用いる
ことなく基板の共用化が図れる。また、この基板の共用
化は記憶手段に書換え不可能なメモリを用いても実行可
能となることから、基板の共用化を図っても書換え可能
なメモリを用いずに済む。
According to the present invention, when the control means accesses the storage means, the switching means switches the access destination to the storage means, and the control means is the switching means among the plurality of programs stored in the storage means. Read and execute the program determined by the switching state. Therefore, since a plurality of programs are written in the storage means and a desired one of them can be executed by switching selection of the switching means,
Even if there are multiple destinations, it is only necessary to prepare one storage means. Therefore, the board having the storage means mounted on the board can be used among a plurality of destinations, and the board can be shared without using a socket. Further, since the board can be shared even if a non-rewritable memory is used as the storage means, even if the board is shared, the rewritable memory is not used.

【0008】請求項2に記載の発明では、請求項1に記
載の発明において、複数の前記プログラムは、前記制御
手段が搭載される制御機器の動作に関わる動作プログラ
ムであることを要旨とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the plurality of programs are operation programs related to operations of a control device on which the control means is mounted.

【0009】この発明によれば、請求項1に記載の発明
の作用に加え、記憶手段には複数の動作プログラムが記
憶され、これら動作プログラムのうち所望のものを切換
手段によって切換えることが可能になる。
According to the present invention, in addition to the operation of the invention described in claim 1, a plurality of operation programs are stored in the storage means, and a desired one of these operation programs can be switched by the switching means. Become.

【0010】請求項3に記載の発明では、請求項1又は
2に記載の発明において、前記切換手段は前記制御手段
と前記記憶手段との間に介在し、前記制御手段が前記記
憶手段にアクセスするときに、前記制御手段が指定する
アドレスを前記選択情報に基づくアドレスに変更するこ
とにより、前記制御手段の前記記憶手段へのアクセス先
を切換えることを要旨とする。
According to a third aspect of the invention, in the first or second aspect of the invention, the switching means is interposed between the control means and the storage means, and the control means accesses the storage means. In this case, the gist is to switch the access destination of the control means to the storage means by changing the address designated by the control means to the address based on the selection information.

【0011】この発明によれば、請求項1又は2に記載
の発明の作用に加え、制御手段は記憶手段からプログラ
ムを取り込むとき、記憶手段の先頭アドレスにアクセス
する。このとき、制御手段はアクセスを実行するもの
の、記憶手段にアドレス信号を送るその過程で切換手段
によりアクセス先が切換えられる。従って、制御手段は
意識することなしにアクセス先が変更されることから、
制御手段に切換えのための特別なプログラムを実行させ
る必要がない。
According to this invention, in addition to the operation of the invention described in claim 1 or 2, when the control means fetches the program from the storage means, it accesses the top address of the storage means. At this time, although the control means executes the access, the access destination is switched by the switching means in the process of sending the address signal to the storage means. Therefore, since the control means changes the access destination without being aware,
It is not necessary for the control means to execute a special program for switching.

【0012】請求項4に記載の発明では、請求項1〜3
のうちいずれか一項に記載の発明において、前記選択情
報としてデータ値が記憶された第2の記憶手段を備え、
前記制御手段は前記第2の記憶手段のデータ値を基にレ
ジスタをセットし、前記切換手段は前記レジスタに基づ
き前記制御手段の前記記憶手段へのアクセス先を切換え
ることを要旨とする。
In the invention described in claim 4, claims 1 to 3 are provided.
In the invention described in any one of the above, there is provided a second storage means in which a data value is stored as the selection information,
The control means sets a register based on the data value of the second storage means, and the switching means switches the access destination of the control means to the storage means based on the register.

【0013】この発明によれば、請求項1〜3のうちい
ずれか一項に記載の発明の作用に加え、第2の記憶手段
に記憶されたデータ値により、制御手段がデータ値を基
にレジスタをセットすることで、記憶手段に記憶された
複数のプログラムのうち所望のプログラムが選択可能に
なる。
According to this invention, in addition to the operation of the invention described in any one of claims 1 to 3, the control means is based on the data value stored in the second storage means. By setting the register, a desired program can be selected from the plurality of programs stored in the storage means.

【0014】請求項5に記載の発明では、請求項1〜3
のうちいずれか一項に記載の発明において、前記制御手
段に対し前記選択情報としてスイッチ信号を出力する信
号出力手段を備え、前記制御手段は前記信号出力手段か
らのスイッチ信号を基にレジスタをセットし、前記切換
手段は前記レジスタに基づき前記制御手段の前記記憶手
段へのアクセス先を切換えることを要旨とする。
In the invention described in claim 5, claims 1 to 3 are provided.
In the invention described in any one of the above, there is provided a signal output means for outputting a switch signal as the selection information to the control means, and the control means sets a register based on the switch signal from the signal output means. However, the gist of the switching means is to switch the access destination of the control means to the storage means based on the register.

【0015】この発明によれば、請求項1〜3のうちい
ずれか一項に記載の発明の作用に加え、信号出力手段か
ら出力されるスイッチ信号により、制御手段がスイッチ
信号を基にレジスタをセットすることで、記憶手段に記
憶された複数のプログラムのうち所望のプログラムが選
択可能になる。
According to the present invention, in addition to the function of the invention described in any one of claims 1 to 3, the control means outputs the switch signal from the signal output means, and the control means sets the register based on the switch signal. By setting, a desired program can be selected from the plurality of programs stored in the storage means.

【0016】請求項6に記載の発明では、請求項1〜3
のうちいずれか一項に記載の発明において、前記切換手
段に対し前記選択情報としてスイッチ信号を出力する第
2の信号出力手段を備え、前記切換手段は前記第2の信
号出力手段からのスイッチ信号に基づき前記制御手段の
前記記憶手段へのアクセス先を切換えることを要旨とす
る。
According to the invention described in claim 6, claims 1 to 3 are provided.
In the invention described in any one of the above, there is provided a second signal output means for outputting a switch signal as the selection information to the switching means, and the switching means is a switch signal from the second signal output means. Based on the above, the gist is to switch the access destination of the control means to the storage means.

【0017】この発明によれば、請求項1〜3のうちい
ずれか一項に記載の発明の作用に加え、切換手段は第2
の信号出力手段からのスイッチ信号に基づき直に切換状
態が変えられるので、前記切換手段の切換えを制御手段
を介さずに行える。
According to this invention, in addition to the operation of the invention described in any one of claims 1 to 3, the switching means is the second.
Since the switching state can be directly changed based on the switch signal from the signal output means, the switching of the switching means can be performed without intervention of the control means.

【0018】請求項7に記載の発明では、記憶手段には
複数のプログラムが記憶され、制御手段が前記記憶手段
にアクセスして当該記憶手段に記憶されたプログラムを
取得する際に、複数の前記プログラムのうち所定のプロ
グラムが選択されるように、切換手段は選択情報に基づ
き前記制御手段の前記記憶手段へのアクセス先を切換え
ることを要旨とする。
In a seventh aspect of the invention, a plurality of programs are stored in the storage means, and when the control means accesses the storage means and acquires the programs stored in the storage means, the plurality of the programs are stored. The gist is that the switching means switches the access destination of the control means to the storage means based on the selection information so that a predetermined program is selected from the programs.

【0019】この発明によれば、請求項1と同様の作用
が得られる。請求項8に記載の発明では、複数のプログ
ラムが記憶された記憶手段に接続され、制御手段により
制御されて前記記憶手段にアクセス可能なICチップで
あって、複数の前記プログラムのうち所定のプログラム
が選択されるように、選択情報に基づいて前記制御手段
の前記記憶手段へのアクセス先を切換える切換手段を備
えたことを要旨とする。
According to the present invention, the same effect as that of the first aspect can be obtained. According to an eighth aspect of the present invention, an IC chip connected to a storage unit in which a plurality of programs are stored, controlled by a control unit, and accessible to the storage unit, the predetermined program among the plurality of programs. It is a gist to provide a switching means for switching the access destination of the control means to the storage means based on the selection information so that the selection will be made.

【0020】この発明によれば、請求項1とほぼ同様の
作用が得られる。
According to the present invention, substantially the same operation as the first aspect can be obtained.

【0021】[0021]

【発明の実施の形態】(第1実施形態)以下、本発明の
メモリアクセス切換装置、メモリアクセス切換方法及び
ICチップをプリンタに具体化した第1実施形態を図1
〜図5に従って説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS (First Embodiment) A first embodiment in which a memory access switching device, a memory access switching method, and an IC chip of the present invention are embodied in a printer is shown in FIG.
~ It demonstrates according to FIG.

【0022】図1は、プリンタ1の内部構成を示す斜視
図である。制御機器としてのプリンタ1は内部にプリン
タ本体2を備え、このプリンタ本体2にはキャリッジ3
が搭載されている。キャリッジ3は駆動プーリ4と従動
プーリ5により張設された無端のタイミングベルト6に
取り付けられ、このタイミングベルト6がアクチュエー
タとしてのキャリッジモータ7により駆動されること
で、キャリッジ軸8に案内された状態で主走査方向に往
復移動する。プリンタ1の下部端側には紙送りモータ9
が搭載され、この紙送りモータ9が駆動することによっ
て記録用紙10が副走査方向に紙送りされる。
FIG. 1 is a perspective view showing the internal structure of the printer 1. A printer 1 as a control device includes a printer body 2 inside, and a carriage 3 is provided in the printer body 2.
Is installed. The carriage 3 is attached to an endless timing belt 6 stretched by a drive pulley 4 and a driven pulley 5, and the timing belt 6 is driven by a carriage motor 7 as an actuator to be guided by a carriage shaft 8. Moves back and forth in the main scanning direction. A paper feed motor 9 is provided on the lower end side of the printer 1.
Is mounted, and the recording paper 10 is fed in the sub-scanning direction by driving the paper feed motor 9.

【0023】また、キャリッジ3には記録用紙10と対
向する下面側に記録ヘッド11が配設され、キャリッジ
3の上部には記録ヘッド11にインクを供給するインク
カートリッジ12(本例ではブラック用とカラー用の2
種類)が着脱可能に取り付けられている。記録ヘッド1
1には複数のノズル(図示省略)が形成され、印刷処理
実行時に所定のタイミングでインクがノズルから記録用
紙10に向かって吐出される。
A recording head 11 is disposed on the lower surface of the carriage 3 facing the recording paper 10, and an ink cartridge 12 (in this example, for black ink) that supplies ink to the recording head 11 is provided above the carriage 3. 2 for color
Types) are detachably attached. Recording head 1
A plurality of nozzles (not shown) are formed in the nozzle 1, and ink is ejected from the nozzles toward the recording paper 10 at a predetermined timing when the printing process is executed.

【0024】キャリッジ3のホームポジション(図1で
は右側端部)には、記録ヘッド11のノズルを封止可能
なキャップ14が配設されている。このキャップ14は
キャリッジ3がホームポジション(HP)に位置すると
きに、キャリッジ3自身がキャップ14を押し上げるこ
とで記録ヘッド11を封止するメカ機構を有している。
即ち、キャリッジ3がホームポジションに位置するとき
には記録ヘッド11が自動でキャッピングされる。
At the home position (right end in FIG. 1) of the carriage 3, a cap 14 capable of sealing the nozzles of the recording head 11 is provided. The cap 14 has a mechanical mechanism that seals the recording head 11 by pushing up the cap 14 by the carriage 3 itself when the carriage 3 is located at the home position (HP).
That is, the recording head 11 is automatically capped when the carriage 3 is at the home position.

【0025】キャップ14には、クリーニング動作実行
時にキャップ14の内部空間を負圧にする吸引ポンプ1
5がポンプチューブ16を介して接続されている。吸引
ポンプ15はギヤ機構(図示省略)を介して紙送りモー
タ9に接続され、紙送り機構とポンプ機構とは同一駆動
源となっている。また、記録ヘッド11の印字領域とホ
ームポジションの間にはゴム等の弾性板からなるワイピ
ング部材17が配設され、記録ヘッド11が印字領域に
向かうときにワイピング部材17によって記録ヘッド1
1の表面がワイピング処理される。
The cap 14 has a suction pump 1 for applying a negative pressure to the internal space of the cap 14 during the cleaning operation.
5 are connected via a pump tube 16. The suction pump 15 is connected to the paper feed motor 9 via a gear mechanism (not shown), and the paper feed mechanism and the pump mechanism are the same drive source. A wiping member 17 made of an elastic plate such as rubber is disposed between the print area of the recording head 11 and the home position, and the wiping member 17 is used by the wiping member 17 when the recording head 11 moves toward the print area.
The surface of No. 1 is wiped.

【0026】図2は、プリンタ1の電気的構成図であ
る。プリンタ1は制御手段としてのCPU18、記憶手
段としてのROM19、RAM20、第2の記憶手段と
してのEEPROM21、ICチップとしてのASIC22、
駆動回路23を内蔵し、これらデバイスは基板24に実
装されている。CPU18は信号線(データバス及び制
御バスを含む)25を介してROM19、RAM20及
びASIC22と接続され、信号線26を介してEEPROM
21と接続されている。ここで、信号線25,26は複
数本が存在しているが、図2では各々一本のみ図示して
いる。
FIG. 2 is an electrical block diagram of the printer 1. The printer 1 includes a CPU 18 as a control unit, a ROM 19 and a RAM 20 as a storage unit, an EEPROM 21 as a second storage unit, an ASIC 22 as an IC chip,
A drive circuit 23 is built in, and these devices are mounted on a substrate 24. The CPU 18 is connected to the ROM 19, the RAM 20 and the ASIC 22 via a signal line (including a data bus and a control bus) 25, and the EEPROM via a signal line 26.
21 is connected. Here, although there are a plurality of signal lines 25 and 26, only one of each is shown in FIG.

【0027】CPU18とASIC22とは複数(本例
では10本)のアドレスバス27を介して接続されてい
る。また、ASIC22とROM19とは複数(本例で
は10本)のアドレスバス28を介して接続され、これ
らアドレスバス28は上流側のアドレスバス27と対応
している。ここで、ASIC22は端子Zaがアドレス
バス28aを介してROM19の端子Taと、端子Zb
アドレスバス28bを介してROM19の端子Tbと接
続されている。また、ASIC22には信号線29を介
して駆動回路23が接続されている。
The CPU 18 and the ASIC 22 are connected via a plurality (10 in this example) of address buses 27. Further, the ASIC 22 and the ROM 19 are connected via a plurality (10 in this example) of address buses 28, and these address buses 28 correspond to the address buses 27 on the upstream side. Here, in the ASIC 22, the terminal Z a is connected to the terminal T a of the ROM 19 via the address bus 28 a, and the terminal Z b is connected to the terminal T b of the ROM 19 via the address bus 28 b . The drive circuit 23 is connected to the ASIC 22 via a signal line 29.

【0028】CPU18はアドレスバス27、ASIC
22、アドレスバス28を介してROM19にアドレス
信号を出力し、そのアドレス信号に応じたプログラム
(又はデータ)を信号線25から取得してプリンタ1を
動作させる。また、ホストコンピュータ(図示省略)か
らプリンタ1に印刷データが送られたとき、CPU18
はRAM20を作業領域としてASIC22に印刷処理
を実行させる。このとき、ASIC22はCPU18か
らの制御信号に基づき駆動回路23を駆動して、各種モ
ータ7,9、記録ヘッド11を動作させて印刷処理を実
行する。
The CPU 18 is an address bus 27, an ASIC
22, an address signal is output to the ROM 19 via the address bus 28, a program (or data) corresponding to the address signal is acquired from the signal line 25, and the printer 1 is operated. Further, when print data is sent from the host computer (not shown) to the printer 1, the CPU 18
Causes the ASIC 22 to execute a printing process using the RAM 20 as a work area. At this time, the ASIC 22 drives the drive circuit 23 based on the control signal from the CPU 18 to operate the various motors 7 and 9 and the recording head 11 to execute the printing process.

【0029】図3は、ASIC22の論理回路を示す回
路図である。ASIC22は2つの論理回路30,31
を備えている。このうち論理回路30は1つのOR回路
32と4つのAND回路33〜36とを備え、各AND
回路33〜36は5つの入力端子と1つの出力端子とを
有している。AND回路33〜36の各出力端子はOR
回路32の入力端子に接続され、OR回路32の出力端
子が端子Zaに接続されている。また、ASIC22に
はレジスタ37が内蔵され、このレジスタ37はCPU
18によって4ビットのデータ値がセット可能となって
いる。
FIG. 3 is a circuit diagram showing a logic circuit of the ASIC 22. The ASIC 22 has two logic circuits 30 and 31.
Is equipped with. Of these, the logic circuit 30 includes one OR circuit 32 and four AND circuits 33 to 36.
The circuits 33 to 36 have five input terminals and one output terminal. The output terminals of the AND circuits 33 to 36 are OR
It is connected to the input terminal of the circuit 32 and the output terminal of the OR circuit 32 is connected to the terminal Z a . In addition, the ASIC 22 has a built-in register 37, which is a CPU
18 allows a 4-bit data value to be set.

【0030】AND回路33は5つの入力端子のうちの
1つが接地され、他の入力端子の1つがレジスタ37の
保持部R1に接続されている。AND回路33は保持部
1からの出力値をそのまま入力し、AND回路34〜
36はその出力値をNOT回路38により反転して入力
する。AND回路34は5つの入力端子のうちの1つが
電源に接続され、他の入力端子の1つがレジスタ37の
保持部R2に接続されている。AND回路34は保持部
2からの出力値をそのまま入力し、AND回路33,
35,36はその出力値をNOT回路39により反転し
て入力する。
In the AND circuit 33, one of the five input terminals is grounded, and one of the other input terminals is connected to the holding section R 1 of the register 37. The AND circuit 33 inputs the output value from the holding unit R 1 as it is, and the AND circuit 34-
The output value of 36 is inverted by the NOT circuit 38 and input. In the AND circuit 34, one of the five input terminals is connected to the power supply, and one of the other input terminals is connected to the holding unit R 2 of the register 37. The AND circuit 34 inputs the output value from the holding unit R 2 as it is, and the AND circuit 33,
The output values of 35 and 36 are inverted by the NOT circuit 39 and input.

【0031】AND回路35は5つの入力端子のうち1
つが接地され、他の入力端子の1つがレジスタ37の保
持部R3に接続されている。AND回路35は保持部R3
からの出力値をそのまま入力し、AND回路33,3
4,36はその出力値をNOT回路40により反転して
入力する。AND回路36は5つの入力端子のうちの1
つが電源に接続され、他の入力端子の1つがレジスタ3
7の保持部R4に接続されている。AND回路36は保
持部R4からの出力値をそのまま入力し、AND回路3
3〜35はその出力値をNOT回路41により反転して
入力する。
The AND circuit 35 has one of five input terminals.
One is grounded and one of the other input terminals is connected to the holding portion R 3 of the register 37. The AND circuit 35 has a holding unit R 3
The output value from the AND circuit 33, 3 is input as it is.
The output values 4 and 36 are inverted by the NOT circuit 40 and input. AND circuit 36 is one of the five input terminals
One is connected to the power supply and one of the other input terminals is register 3
7 is connected to the holding portion R 4 . The AND circuit 36 inputs the output value from the holding unit R 4 as it is, and outputs the AND circuit 3
The output values 3 to 35 are inverted by the NOT circuit 41 and input.

【0032】また、一方の論理回路31は1つのOR回
路42と4つのAND回路43〜46とを備え、各AN
D回路43〜46は5つの入力端子と1つの出力端子と
を有している。AND回路43〜46の各出力端子はO
R回路42の入力端子に接続され、OR回路42の出力
端子が端子Zbに接続されている。なお、論理回路3
0,31が切換手段に相当する。
Further, one logic circuit 31 includes one OR circuit 42 and four AND circuits 43 to 46, and each AN
The D circuits 43 to 46 have five input terminals and one output terminal. The output terminals of the AND circuits 43 to 46 are O
It is connected to the input terminal of the R circuit 42 and the output terminal of the OR circuit 42 is connected to the terminal Z b . The logic circuit 3
0 and 31 correspond to the switching means.

【0033】AND回路43は5つの入力端子のうちの
1つが接地され、他の入力端子の1つがレジスタ37の
保持部R1に接続されている。AND回路43は保持部
1からの出力値をそのまま入力し、AND回路44〜
46はその出力値をNOT回路47により反転して入力
する。AND回路44は5つの入力端子のうちの1つが
接地され、他の入力端子の1つがレジスタ37の保持部
2に接続されている。AND回路44は保持部R2から
の出力値をそのまま入力し、AND回路43,45,4
6はその出力値をNOT回路48により反転して入力す
る。
In the AND circuit 43, one of the five input terminals is grounded and one of the other input terminals is connected to the holding portion R 1 of the register 37. The AND circuit 43 inputs the output value from the holding unit R 1 as it is, and the AND circuit 44 to
The output value of 46 is inverted by the NOT circuit 47 and input. In the AND circuit 44, one of the five input terminals is grounded and one of the other input terminals is connected to the holding unit R 2 of the register 37. The AND circuit 44 inputs the output value from the holding unit R 2 as it is, and the AND circuit 43, 45, 4
6, the output value is inverted by the NOT circuit 48 and input.

【0034】AND回路45は5つの入力端子のうち1
つが電源に接続され、他の入力端子の1つがレジスタ3
7の保持部R3に接続されている。AND回路45は保
持部R3からの出力値をそのまま入力し、AND回路4
3,44,46はその出力値をNOT回路49により反
転して入力する。AND回路46は5つの入力端子のう
ちの1つが電源に接続され、他の入力端子の1つがレジ
スタ37の保持部R4に接続されている。AND回路4
6は保持部R4からの出力値をそのまま入力し、AND
回路43〜45はその出力値をNOT回路50により反
転して入力する。
The AND circuit 45 has one of five input terminals.
One is connected to the power supply and one of the other input terminals is register 3
7 is connected to the holding portion R 3 . The AND circuit 45 inputs the output value from the holding unit R 3 as it is, and outputs it to the AND circuit 4
The output values of 3, 44, and 46 are inverted by the NOT circuit 49 and input. In the AND circuit 46, one of the five input terminals is connected to the power supply, and one of the other input terminals is connected to the holding unit R 4 of the register 37. AND circuit 4
6 inputs the output value from the holding unit R 4 as it is, AND
The output values of the circuits 43 to 45 are inverted by the NOT circuit 50 and input.

【0035】図4は、ROM19のメモリマップであ
る。ROM19は読み取り専用のメモリであって、記憶
領域にはアドレス0000〜FFFFの間に制御プログラムPa
〜Pdが記憶されている。ところで、同じプリンタであ
っても販売先ごとに制御プログラムのプログラム内容が
異なる現状があることから、本例ではその仕向け先ごと
に4つの制御プログラムPa〜PdをROM19に書き込
んでいる。このため、例えば制御プログラムPaがA
社、制御プログラムPb〜PdがそれぞれB社、C社、D
社となる。
FIG. 4 is a memory map of the ROM 19. ROM19 denotes a memory of read-only, the control program P a between the storage area address 0000~FFFF
~ P d are stored. Incidentally, since the program content of the control program for each even purchaser a same printer may be different situation, in the present example writes the each destination into four control program P a to P d in ROM 19. Therefore, for example, the control program P a is A
Company, the control program P b to P d, respectively B company, C company, D
Become a company.

【0036】これら制御プログラムPa〜Pdはプリンタ
1の動作に関わる動作プログラムである。ここでいう動
作プログラムとは、プリンタ1のシーケンスを司るプロ
グラムであり、ただ単に例えば日本語と英語との表示を
切換える表示プログラムは含んでいない。また、ROM
19の先頭アドレスには4つの制御プログラムPa〜Pd
の中から1つを選択するための設定プログラムPXが記
憶されている。
[0036] These control programs P a to P d is an operation program related to the operations of the printer 1. The operation program mentioned here is a program that controls the sequence of the printer 1 and does not include a display program that simply switches the display between Japanese and English. Also, ROM
4 is the top address of the 19 single control program P a to P d
A setting program P X for selecting one of the above is stored.

【0037】次に、本実施形態の作用について図5に従
って説明する。まず、プリンタ1の仕向け先が仕向けA
である場合には、図5に示すように前段階としてEEPROM
21に「1000」のデータ値を書き込んでおく。この
状態においてプリンタ1に電源が投入されてROM19
へのアクセスが開始されると、CPU18はROM19
の設定プログラムPXを実行してEEPROM21を読み込
む。そして、CPU18はEEPROM21のデータ値に基づ
き、ASIC22のレジスタ37を「1,0,0,0」
(=「R1,R2,R3,R4」)とセットする。
Next, the operation of this embodiment will be described with reference to FIG. First, the destination of printer 1 is destination A
If it is, the EEPROM is used as the previous step as shown in FIG.
The data value of “1000” is written in 21. In this state, the printer 1 is powered on and the ROM 19
When the access to the
The setting program P X is executed to read the EEPROM 21. Then, the CPU 18 sets the register 37 of the ASIC 22 to "1, 0, 0, 0" based on the data value of the EEPROM 21.
(= “R 1 , R 2 , R 3 , R 4 ”).

【0038】このとき、図3に示すASIC22内の論
理回路30はAND回路33〜36の全てが非アクティ
ブ状態となり、論理回路31のAND回路43〜46も
全て非アクティブ状態となる。そして、図5に示すよう
に端子Za,ZbからはともにLレベル(即ち「0」)の
信号が出力される。このため、CPU18のアクセス先
が制御プログラムPaの先頭位置となり、CPU18は
制御プログラムPaを実行プログラムとして読み込み、
制御プログラムPaを実行してプリンタ1を動作させ
る。
At this time, in the logic circuit 30 in the ASIC 22 shown in FIG. 3, all AND circuits 33 to 36 are inactive, and all the AND circuits 43 to 46 in the logic circuit 31 are also inactive. Then, as shown in FIG. 5, signals of L level (that is, “0”) are output from both terminals Z a and Z b . Therefore, the access destination of the CPU 18 is the head position of the control program P a , and the CPU 18 reads the control program P a as an execution program,
The control program P a is executed to operate the printer 1.

【0039】一方、仕向け先が仕向けBである場合に
は、図5に示すように前段階としてEEPROM21に「01
00」のデータ値を書き込んでおく。この状態において
ROM19へのアクセスが開始されると、CPU18は
ROM19の設定プログラムP Xを実行して、EEPROM2
1のデータ値に基づきASIC22のレジスタ37を
「0,1,0,0」とセットする。
On the other hand, when the destination is destination B
As shown in FIG. 5, "01
The data value of "00" is written. In this state
When the access to the ROM 19 is started, the CPU 18
ROM 19 setting program P XTo execute EEPROM2
Based on the data value of 1, the register 37 of the ASIC 22
Set it to "0,1,0,0".

【0040】このとき、図3に示すASIC22内の論
理回路30はAND回路34のみがアクティブ状態とな
り、論理回路31はAND回路43〜46の全てが非ア
クティブ状態となる。そして、図5に示すように端子Z
aからはHレベルの信号(即ち「1」)が、端子Zbから
はLレベルの信号が出力される。このため、CPU18
のアクセス先が設定プログラムPXの終端位置から制御
プログラムPbの先頭アドレスにジャンプし、CPU1
8は制御プログラムPbを実行プログラムとして読み込
んで実行する。
At this time, in the logic circuit 30 in the ASIC 22 shown in FIG. 3, only the AND circuit 34 is in the active state, and in the logic circuit 31, all the AND circuits 43 to 46 are in the inactive state. Then, as shown in FIG.
H-level signal from a (i.e. "1") is, from the terminal Z b L level signal is output. Therefore, the CPU 18
Access destination jumps from the end position of the setting program P X to the start address of the control program P b , and the CPU 1
8 reads and executes the control program P b as an execution program.

【0041】仕向け先が仕向けCや仕向けDの場合も同
様であり、仕向け先が仕向けCの場合にはEEPROM21に
「0010」を書き込んでおき、ROM19へのアクセ
ス時にはEEPROM21のデータ値によりレジスタ37が
「0,0,1,0」にセットされる。そして、ASIC
22の端子ZaがLレベル、端子ZbがHレベルとなり、
CPU18のアクセス先が制御プログラムPcの先頭ア
ドレスとなって、CPU18はROM19から制御プロ
グラムPcを読み込んで実行する。
The same applies when the destination is destination C or destination D. When the destination is destination C, "0010" is written in the EEPROM 21, and when the ROM 19 is accessed, the register 37 is set by the data value of the EEPROM 21. It is set to "0,0,1,0". And ASIC
22 terminal Z a becomes L level, terminal Z b becomes H level,
The access destination of the CPU 18 becomes the start address of the control program P c , and the CPU 18 reads the control program P c from the ROM 19 and executes it.

【0042】また、仕向け先Dの場合にはEEPROM21に
「0001」を書き込んでおき、ROM19へのアクセ
ス時にはEEPROM21のデータ値に基づきレジスタ37が
「0,0,0,1」にセットされる。そして、ASIC
22の端子Za,ZbはともにHレベルとなり、CPU
18のアクセス先が制御プログラムPdの先頭アドレス
となって、CPU18はROM19から制御プログラム
dを読み込んで実行する。
In the case of the destination D, "0001" is written in the EEPROM 21, and the register 37 is set to "0, 0, 0, 1" based on the data value of the EEPROM 21 when the ROM 19 is accessed. And ASIC
Both terminals Z a and Zb of 22 become H level,
The access destination of 18 is the start address of the control program P d , and the CPU 18 reads the control program P d from the ROM 19 and executes it.

【0043】従って、ROM19に4つの制御プログラ
ムPa〜Pdを記憶しておき、EEPROM21のデータ値に基
づくASIC22の論理回路30,31の接続状態によ
り、制御プログラムPa〜Pdのうちデータ値に応じたも
のが実行される。従って、仕向け先に応じたデータ値を
EEPROM21に設定することで、ROM19内の所望の制
御プログラムを実行プログラムとして処理可能となるの
で、複数の仕向け先があっても基板24上に載せるメモ
リはROM19のみで済み、複数の仕向け先の間で基板
24の共用化が図れる。
Therefore, four control programs P a to P d are stored in the ROM 19 and data of the control programs P a to P d is changed depending on the connection state of the logic circuits 30 and 31 of the ASIC 22 based on the data value of the EEPROM 21. The one according to the value is executed. Therefore, the data value according to the destination
By setting in the EEPROM 21, the desired control program in the ROM 19 can be processed as an execution program. Therefore, even if there are a plurality of destinations, only the ROM 19 is the memory to be mounted on the substrate 24. Thus, the substrate 24 can be shared.

【0044】また、複数のプログラムPa〜Pdを載せた
ROM19が用いられるので、このROM19は基板2
4に実装により取り付けられる。このため、基板24を
共用化する構成をとってもソケットを用いずに済むこと
から、ソケットを用いない分だけ低コストで済む。さら
に、制御プログラムPa〜Pdを記憶するメモリは読み取
り専用のROM19であるので、書換え不可能なメモリ
は書換え可能なメモリに比べて安価であることから、メ
モリにかかる費用も低コストで済む。
[0044] Further, since the ROM19 carrying the plurality of programs P a to P d is used, the ROM19 substrate 2
4 is mounted by mounting. Therefore, even if the board 24 is shared, it is not necessary to use a socket, so that the cost is low because the socket is not used. Further, since the memory for storing the control programs P a to P d is the read-only ROM 19, the non-rewritable memory is cheaper than the rewritable memory, so the cost of the memory can be low. .

【0045】従って、第1実施形態では以下の効果を得
ることができる。 (1)1つのROM19に複数の制御プログラムPa
dを記憶しておくことが可能となるため、このROM
19をソケットなしに実装しても、複数の仕向け先の間
で基板24を共用することができる。また、基板24の
共用化に用いるメモリが読み取り専用のROM19であ
るので、メモリにかかるコストも安価で済む。
Therefore, the following effects can be obtained in the first embodiment. (1) a plurality of control programs into a single ROM 19 P a ~
Since it becomes possible to store P d , this ROM
Even if 19 is mounted without a socket, the board 24 can be shared among a plurality of destinations. Further, since the memory used for sharing the substrate 24 is the read-only ROM 19, the cost of the memory is low.

【0046】(2)ASIC22の論理回路30,31
により選択されるROM19内の選択対象はプリンタ1
の動作を司る動作プログラムであるので、複数の制御プ
ログラムPa〜Pdのうち仕向け先に応じた動作プログラ
ムを選択することができる。
(2) Logic circuits 30 and 31 of the ASIC 22
The selection target in the ROM 19 selected by the printer 1 is
Since the operating program that controls the operation, it is possible to select the operation program corresponding to the destination destination among the plurality of control programs P a to P d.

【0047】(3)CPU18がROM19を読みにい
くとき、CPU18とROM19の間に介在するASI
C22内の論理回路30,31でCPU18のアクセス
先が切換えられる。このため、CPU18は意識するこ
となしにROM19へのアドレス先が変更されるので、
CPU18にアドレス先を変更する特別なプログラムを
実行させずに済む。
(3) When the CPU 18 reads the ROM 19, the ASI interposed between the CPU 18 and the ROM 19
The access destination of the CPU 18 is switched by the logic circuits 30 and 31 in the C22. Therefore, the CPU 18 changes the address destination to the ROM 19 without being aware of it.
The CPU 18 does not have to execute a special program for changing the address destination.

【0048】(4)CPU18のROM19へのアクセ
ス先の切換えは、EEPROM21にデータ値を記憶してお
き、ROM19内の4つの制御プログラムPa〜Pdのう
ちEEPROM21のデータ値に基づく制御プログラムが選択
されることにより実行される。従って、CPU18のR
OM19へのアクセス先の切換えをソフトウェア的に行
うことができる。
[0048] (4) access destination switching to ROM19 the CPU18 may store the data values in the EEPROM 21, the control program based on the data value of the EEPROM 21 of the four control program P a to P d in ROM19 is It is executed by being selected. Therefore, R of the CPU 18
The access destination to the OM 19 can be switched by software.

【0049】(第2実施形態)次に、第2実施形態を図
6及び図7に従って説明する。この実施形態では第1実
施形態と同一構成部分には同一符号を付して詳しい説明
は省略し、異なる部分についてのみ説明する。
(Second Embodiment) Next, a second embodiment will be described with reference to FIGS. In this embodiment, the same components as those in the first embodiment are designated by the same reference numerals, detailed description thereof will be omitted, and only different portions will be described.

【0050】図6は、プリンタ1の電気的構成図であ
る。CPU18には信号出力手段としてのスイッチ
1,S2が並列に接続されている。まず、プリンタ1の
仕向け先が仕向けAである場合には、例えば図5に示す
ようにスイッチS1,S2をともにオフ状態にしておく。
この状態においてプリンタ1に電源が投入されてROM
19へのアクセスが開始されると、CPU18はROM
19の設定プログラムPXを実行してスイッチS1,S2
の接続状態を読み込み、この接続状態に基づきASIC
22のレジスタ37を「1,0,0,0」(=「R1
2,R3,R4」)とセットする。
FIG. 6 is an electrical block diagram of the printer 1. Switches S 1 and S 2 as signal output means are connected in parallel to the CPU 18. First, when the destination of the printer 1 is the destination A, both the switches S 1 and S 2 are turned off as shown in FIG. 5, for example.
In this state, the printer 1 is powered on and the ROM
When the access to the CPU 19 is started, the CPU 18 stores the ROM
The setting program P X of 19 is executed to execute the switches S 1 and S 2.
Read the connection status of the ASIC, and based on this connection status
The register 37 of 22 is set to “ 1 , 0, 0, 0” (= “R 1 ,
R 2 , R 3 , R 4 ").

【0051】このとき、ASIC22の論理回路30,
31の通電状態により、ASIC22の端子Za,Zb
らはともにLレベル(即ち「0」)の信号が出力され
る。このため、CPU18のアクセス先が制御プログラ
ムPaの先頭位置となり、CPU18は制御プログラム
aを実行プログラムとして読み込み、制御プログラム
aを実行してプリンタ1を動作させる。
At this time, the logic circuit 30 of the ASIC 22,
Depending on the energization state of 31, the signals of L level (that is, “0”) are output from both terminals Z a and Z b of the ASIC 22. Therefore, the access destination of the CPU 18 becomes the head position of the control program P a, CPU 18 is a control program reads the P a as an execution program executes the control program P a for operating the printer 1.

【0052】また、仕向け先が仕向けBである場合に
は、図5に示すようにスイッチS1をオフ状態、スイッ
チS2をオン状態にしておく。この状態においてROM
19へのアクセスが開始されると、CPU18はROM
19の設定プログラムPXを実行して、スイッチS1,S
2の接続状態に基づきASIC22のレジスタ37を
「0,1,0,0」とセットする。
When the destination is destination B, the switch S 1 is turned off and the switch S 2 is turned on as shown in FIG. ROM in this state
When the access to the CPU 19 is started, the CPU 18 stores the ROM
Execute the setting program P X of 19 to switch S 1 , S
Based on the connection state of 2 , the register 37 of the ASIC 22 is set to "0, 1, 0, 0".

【0053】このとき、ASIC22の端子Zaからは
Hレベルの信号(即ち「1」)が、端子ZbからはLレ
ベルの信号が出力される。このため、CPU18のアド
レス先が設定プログラムPXの終端位置から制御プログ
ラムPbの先頭アドレスにジャンプし、CPU18は制
御プログラムPbを実行プログラムとして読み込んで実
行する。
At this time, an H level signal (that is, "1") is output from the terminal Z a of the ASIC 22 and an L level signal is output from the terminal Z b . Thus, it jumps to the start address of the control program P b from the address destination end position setting program P X of CPU 18, CPU 18 performs reads the control program P b as an execution program.

【0054】仕向け先が仕向けCの場合には、スイッチ
1をオン状態、スイッチS2をオフ状態とし、この状態
においてROM19へのアクセスが開始されると、スイ
ッチS1,S2の接続状態によりレジスタ37が「0,
0,1,0」にセットされる。このとき、ASIC22
の端子ZaからはLレベルの信号、端子ZbからはHレベ
ルの信号が出力され、CPU18のアドレス先が制御プ
ログラムPcの先頭アドレスとなって、CPU18はR
OM19から制御プログラムPcを読み込んで実行す
る。
When the destination is destination C, the switch S 1 is turned on and the switch S 2 is turned off. When access to the ROM 19 is started in this state, the connection state of the switches S 1 and S 2 is started. Causes the register 37 to show "0,
0,1,0 ". At this time, ASIC22
An L level signal is output from the terminal Z a of the above, and an H level signal is output from the terminal Z b , the address destination of the CPU 18 becomes the head address of the control program P c , and the CPU 18 outputs R
The control program P c is read from the OM 19 and executed.

【0055】仕向け先が仕向けDの場合には、スイッチ
1,S2をともにオン状態とし、この状態においてRO
M19へのアクセスが開始されると、スイッチS1,S2
の接続状態によりレジスタ37が「0,0,0,1」に
セットされる。このとき、ASIC22の端子Za,Zb
からはともにHレベルの信号が出力され、CPU18の
アドレス先が制御プログラムPdの先頭アドレスとなっ
て、CPU18はROM19から制御プログラムPd
読み込んで実行する。
When the destination is destination D, both switches S 1 and S 2 are turned on, and in this state, RO
When the access to M19 is started, the switches S 1 and S 2 are
The register 37 is set to "0, 0, 0, 1" depending on the connection state of. At this time, the terminals Z a and Z b of the ASIC 22 are
Both of them output H-level signals, and the address destination of the CPU 18 becomes the head address of the control program P d , and the CPU 18 reads the control program P d from the ROM 19 and executes it.

【0056】第2実施形態では第1実施形態に記載の
(1)〜(3)と同様な効果が得られる他に、次の効果
が得られる。 (5)CPU18のROM19へのアクセス先の切換え
は、CPU18に接続されたスイッチS1,S2の接続状
態により実行されるので、これらスイッチS1,S2のス
イッチ切換えによりCPU18のアクセス先を切換える
ことができる。
The second embodiment has the following effects in addition to the same effects as (1) to (3) described in the first embodiment. (5) Since the switching of the access destination of the CPU 18 to the ROM 19 is executed by the connection state of the switches S 1 and S 2 connected to the CPU 18, the access destination of the CPU 18 is changed by switching the switches S 1 and S 2. You can switch.

【0057】(第3実施形態)次に、第3実施形態を図
8及び図9に従って説明する。この実施形態では第1及
び第2実施形態と同一構成部分には同一符号を付して詳
しい説明は省略し、異なる部分についてのみ説明する。
(Third Embodiment) Next, a third embodiment will be described with reference to FIGS. In this embodiment, the same components as those in the first and second embodiments are designated by the same reference numerals, detailed description thereof will be omitted, and only different portions will be described.

【0058】図8は、ASIC22の論理回路を示す回
路図である。各AND回路33〜36には各々5つずつ
ある入力端子のうちの1つに、それぞれ第2の信号出力
手段としてのスイッチSa、Sb,Sc,Sdが接続されて
いる。また、AND回路43〜46には各々5つずつあ
る入力端子のうちの1つに、それぞれスイッチSa
b,Sc,Sdが接続されている。これらスイッチSa
dはASIC22とは別部品で形成され、基板24に
実装されている。
FIG. 8 is a circuit diagram showing a logic circuit of the ASIC 22. The switches S a , S b , S c , and S d as the second signal output means are connected to one of the five input terminals of each of the AND circuits 33 to 36, respectively. In addition, one of the five input terminals of each of the AND circuits 43 to 46 has a switch Sa ,
S b , S c and S d are connected. These switches S a ~
S d is formed as a separate component from the ASIC 22, and is mounted on the substrate 24.

【0059】まず、プリンタ1の仕向け先が仕向けAで
ある場合には、例えば図9に示すようにスイッチSaを
オン状態にし、スイッチSb〜Sdをオフ状態にしてお
く。この状態においてプリンタ1に電源が投入されてR
OM19へのアクセスが開始されると、図8に示すAS
IC22内の論理回路30はAND回路33〜36の全
てが非アクティブ状態となり、論理回路31のAND回
路43〜46も全て非アクティブ状態となる。
First, when the destination of the printer 1 is the destination A, the switch Sa is turned on and the switches Sb to Sd are turned off as shown in FIG. 9, for example. In this state, the printer 1 is powered on and R
When access to the OM 19 is started, the AS shown in FIG.
In the logic circuit 30 in the IC 22, all the AND circuits 33 to 36 are inactive, and all the AND circuits 43 to 46 in the logic circuit 31 are also inactive.

【0060】そして、図5に示すように端子Za,Zb
らはともにLレベル(即ち「0」)の信号が出力され
る。このため、CPU18のアクセス先が制御プログラ
ムPaの先頭位置となり、CPU18は制御プログラム
aを実行プログラムとして読み込み、制御プログラム
aを実行してプリンタ1を動作させる。
Then, as shown in FIG. 5, signals of L level (that is, "0") are output from both terminals Z a and Z b . Therefore, the access destination of the CPU 18 becomes the head position of the control program P a, CPU 18 is a control program reads the P a as an execution program executes the control program P a for operating the printer 1.

【0061】仕向け先が仕向けBである場合には、図9
に示すようにスイッチSbをオン状態にし、スイッチ
a,Sc,Sdをオフ状態にしておく。この状態におい
てROM19へのアクセスが開始されると、図8に示す
ASIC22内の論理回路30はAND回路34のみが
アクティブ状態となり、論理回路31はAND回路43
〜46の全てが非アクティブ状態となる。
If the destination is destination B, then FIG.
The switch S b is turned on and the switches S a , S c and S d are turned off as shown in FIG. When access to the ROM 19 is started in this state, only the AND circuit 34 of the logic circuit 30 in the ASIC 22 shown in FIG.
All of to 46 are inactive.

【0062】このため、図9に示すようにASIC22
の端子ZaからはHレベルの信号(即ち「1」)が、端
子ZbからはLレベルの信号が出力される。よって、C
PU18のアクセス先が設定プログラムPXの終端位置
から制御プログラムPbの先頭アドレスにジャンプし、
CPU18は制御プログラムPbを実行プログラムとし
て読み込んで実行する。
Therefore, as shown in FIG.
An H level signal (that is, "1") is output from the terminal Za and an L level signal is output from the terminal Zb. Therefore, C
The access destination of the PU 18 jumps from the end position of the setting program P X to the start address of the control program P b ,
The CPU 18 reads the control program P b as an execution program and executes it.

【0063】仕向け先が仕向けCである場合には、図9
に示すようにスイッチScをオン状態にし、スイッチS
a,Sc,Sdをオフ状態にしておく。この状態におい
てROM19へのアクセスが開始されると、スイッチS
a〜Sdの接続状態によりASIC22の端子Zaから
はLレベルの信号、端子ZbからはHレベルの信号が出
力される。このため、CPU18のアドレス先が制御プ
ログラムPcの先頭アドレスとなって、CPU18はR
OM19から制御プログラムPcを読み込んで実行す
る。
When the destination is destination C, FIG.
As shown in, switch Sc is turned on, and switch S
The a, Sc and Sd are turned off. When the access to the ROM 19 is started in this state, the switch S
L-level signal from the terminal Z a of ASIC22 the connection state of a~Sd, H level signal is output from the terminal Z b. Therefore, the address destination of the CPU 18 becomes the start address of the control program P c , and the CPU 18 reads R
The control program P c is read from the OM 19 and executed.

【0064】仕向け先が仕向けDである場合には、図9
に示すようにスイッチSdをオン状態にし、スイッチSa
〜Sdをオフ状態にしておく。この状態においてROM
19へのアクセスが開始されると、スイッチSa〜Sd
接続状態によりASIC22の端子Za,Zbからはとも
にHレベルの信号が出力される。このため、CPU18
のアドレス先が制御プログラムPdの先頭アドレスとな
って、CPU18はROM19から制御プログラムPd
を読み込んで実行する。
When the destination is destination D, FIG.
The switch S d in the ON state as shown in, the switch S a
Keep S d off. ROM in this state
If access to 19 is started, the switch S a to S d terminal Z a of ASIC22 the connection state, both H-level signal from the Z b is output. Therefore, the CPU 18
Becomes the start address of the control program P d , and the CPU 18 reads the control program P d from the ROM 19.
Read and execute.

【0065】第3実施形態では第1実施形態に記載の
(1)〜(3)と同様な効果が得られる他に、次の効果
が得られる。 (6)CPU18のROM19へのアクセス先の切換え
は、ASIC22に接続されたスイッチSa〜Sdの接続
状態により実行されるので、CPU18を介さずにCP
U18のアクセス先を変更することができる。
In addition to the same effects as (1) to (3) described in the first embodiment, the third embodiment has the following effects. (6) Since the switching of the access destination of the CPU 18 to the ROM 19 is executed by the connection state of the switches S a to S d connected to the ASIC 22, it is possible to control the CP without using the CPU 18.
The access destination of U18 can be changed.

【0066】なお、実施形態は前記に限定されず、以下
の態様に変更してもよい。 (変形例1)前記各実施形態において、論理回路30,
31はASIC22と一体に形成されることに限定され
ない。例えば、図10に示すように論理回路30,31
とレジスタ37を備えた切換回路61をASIC22と
別部品で設けてもよい。この場合、CPU18のROM
19へのアクセス先を切換える切換手段(切換回路6
1)を、ASIC22と別々に取り扱うことができる。
The embodiment is not limited to the above, but may be modified into the following modes. (Modification 1) In each of the above embodiments, the logic circuit 30,
31 is not limited to be integrally formed with the ASIC 22. For example, as shown in FIG.
The switching circuit 61 including the register 37 and the register 37 may be provided as a separate component from the ASIC 22. In this case, the ROM of the CPU 18
Switching means for switching the access destination to 19 (switching circuit 6
1) can be handled separately from the ASIC 22.

【0067】(変形例2)前記各実施形態において、R
OM19に記憶された制御プログラムの数は、制御プロ
グラムPa〜Pdの4つに限らない。即ち、制御プログラ
ムは2つ、3つ、さらに5つ以上でもよく、仕様に応じ
て自由に設定してもよい。
(Modification 2) In each of the above embodiments, R
OM19 number of the control program stored in the is not limited to four of the control program P a to P d. That is, the number of control programs may be two, three, five or more, and may be freely set according to the specifications.

【0068】(変形例3)第2及び第3実施形態におい
て、これらスイッチS1,S2やスイッチSa〜Sdは手動
でオンオフが切換えられる手動式や、基板24に直に半
田付けしてオン状態にする半田付け式のどちらを用いて
もよい。
(Modification 3) In the second and third embodiments, the switches S 1 and S 2 and the switches S a to S d are manually switched on and off or soldered directly to the board 24. Either of the soldering methods for turning on by turning on may be used.

【0069】(変形例4)前記各実施形態において、プ
ログラムはプリンタ1の動作を司る動作プログラムであ
ることに限定されず、例えば表示プログラム等の他のプ
ログラムであってもよい。
(Modification 4) In each of the above-described embodiments, the program is not limited to the operation program that controls the operation of the printer 1, but may be another program such as a display program.

【0070】(変形例5)第1及び第2実施形態におい
て、レジスタ37はASIC22に設けられることに限
定されず、例えばCPU18のレジスタ(図示省略)を
セットする構成でもよい。
(Modification 5) In the first and second embodiments, the register 37 is not limited to being provided in the ASIC 22, and may have a configuration in which a register (not shown) of the CPU 18 is set.

【0071】(変形例6)前記各実施形態において、本
発明の採用対象はプリンタ1に限定されず、プリンタ以
外の他の機器に本発明を採用してもよい。また、採用対
象がプリンタであってもその種類は特に限定されず、イ
ンクジェット式やレーザー式など複数種のプリンタにお
いて本発明を採用してもよい。
(Modification 6) In each of the above-described embodiments, the object of the present invention is not limited to the printer 1, and the present invention may be applied to equipment other than the printer. Further, the type of the printer to be adopted is not particularly limited, and the present invention may be applied to a plurality of types of printers such as an inkjet type and a laser type.

【0072】前記実施形態及び別例から把握できる技術
的思想について、以下にその効果とともに記載する。 (1)請求項1〜6において、前記切換手段は前記記憶
手段と前記制御手段との間に介在し、前記制御手段の前
記記憶手段のアクセス時に前記制御手段から出力される
アドレス信号を、前記選択情報から決まるアドレスにジ
ャンプすることにより変更して、前記制御手段の前記記
憶手段へのアクセス先を切換える。
The technical ideas that can be understood from the above-described embodiment and other examples will be described below along with their effects. (1) In claims 1 to 6, the switching means is interposed between the storage means and the control means, and an address signal output from the control means when the storage means of the control means is accessed is The address is changed by jumping to the address determined from the selection information, and the access destination of the control means to the storage means is switched.

【0073】(2)請求項1〜3において、前記選択情
報としてデータ値が記憶された第2の記憶手段と、前記
第2の記憶手段のデータ値を基に前記制御手段により記
憶値がセットされるレジスタとを備え、前記切換手段は
前記レジスタに基づき前記制御手段の前記記憶手段への
アクセス先を切換える。この場合、例えば切換手段とレ
ジスタとを一体構成にすることができる。
(2) In Claims 1 to 3, a second storage means in which a data value is stored as the selection information, and the storage value is set by the control means based on the data value in the second storage means. The switching means switches the access destination of the control means to the storage means based on the register. In this case, for example, the switching means and the register can be integrated.

【0074】(3)請求項1〜3において、前記制御手
段に対し前記選択情報としてスイッチ信号を出力する信
号出力手段と、前記信号出力手段からのスイッチ信号を
基に前記制御手段により記憶値がセットされるレジスタ
とを備え、前記切換手段は前記レジスタに基づき前記制
御手段の前記記憶手段へのアクセス先を切換える。この
場合、例えば切換手段とレジスタとを一体構成にするこ
とができる。
(3) In claims 1 to 3, a signal output means for outputting a switch signal as the selection information to the control means, and a stored value by the control means based on the switch signal from the signal output means. A register to be set, and the switching means switches the access destination of the control means to the storage means based on the register. In this case, for example, the switching means and the register can be integrated.

【0075】(4)請求項7において、複数の前記プロ
グラムは、前記制御手段が搭載される制御機器の動作に
関わる動作プログラムである。 (5)請求項7、前記技術的思想(4)において、前記
切換手段は前記制御手段と前記記憶手段との間に介在
し、前記制御手段が前記記憶手段にアクセスするとき
に、前記制御手段が指定するアドレスを前記選択情報に
基づくアドレスに変更することにより、前記制御手段の
前記記憶手段へのアクセス先を切換える。
(4) In claim 7, the plurality of programs are operation programs related to the operation of a control device on which the control means is mounted. (5) In claim 7 and the technical idea (4), the switching means is interposed between the control means and the storage means, and when the control means accesses the storage means, the control means. By changing the address specified by the address based on the selection information, the access destination of the control means to the storage means is switched.

【0076】(6)請求項7、前記技術的思想(4),
(5)において、前記制御手段には前記選択情報として
データ値が記憶された第2の記憶手段が接続され、前記
制御手段は前記第2の記憶手段のデータ値を基にレジス
タをセットし、前記切換手段は前記レジスタに基づき前
記制御手段の前記記憶手段へのアクセス先を切換える。
(6) Claim 7, the technical idea (4),
In (5), the control means is connected to a second storage means in which a data value is stored as the selection information, and the control means sets a register based on the data value in the second storage means, The switching means switches the access destination of the control means to the storage means based on the register.

【0077】(7)請求項7、前記技術的思想(4)〜
(6)において、前記制御手段には前記選択情報として
スイッチ信号を出力する信号出力手段が接続され、前記
制御手段は前記信号出力手段からのスイッチ信号を基に
レジスタをセットし、前記切換手段は前記レジスタに基
づき前記制御手段の前記記憶手段へのアクセス先を切換
える。
(7) Claim 7, the technical idea (4) to
In (6), a signal output means for outputting a switch signal as the selection information is connected to the control means, the control means sets a register based on the switch signal from the signal output means, and the switching means is The access destination of the control means to the storage means is switched based on the register.

【0078】(8)請求項7、前記技術的思想(4)〜
(7)において、前記切換手段には前記選択情報として
スイッチ信号を出力する第2の信号出力手段が接続さ
れ、前記切換手段は前記第2の信号出力手段からのスイ
ッチ信号に基づき前記制御手段の前記記憶手段へのアク
セス先を切換える。
(8) Claim 7, the technical idea (4) to
In (7), a second signal output means for outputting a switch signal as the selection information is connected to the switching means, and the switching means is configured to control the control means based on the switch signal from the second signal output means. The access destination to the storage means is switched.

【0079】(9)請求項8において、複数の前記プロ
グラムは、前記制御手段が搭載される制御機器の動作に
関わる動作プログラムである。 (10)請求項8、前記技術的思想(9)において、前
記制御手段には前記選択情報としてデータ値が記憶され
た第2の記憶手段が接続され、前記制御手段は前記第2
の記憶手段のデータ値を基にレジスタをセットし、前記
切換手段は前記レジスタに基づき前記制御手段の前記記
憶手段へのアクセス先を切換える。
(9) In claim 8, the plurality of programs are operation programs relating to the operation of a control device on which the control means is mounted. (10) In the technical idea (9), the control means is connected to a second storage means in which a data value is stored as the selection information, and the control means is the second storage means.
A register is set based on the data value of the storage means, and the switching means switches the access destination of the control means to the storage means based on the register.

【0080】(11)請求項8、前記技術的思想
(9),(10)において、前記制御手段には前記選択
情報としてスイッチ信号を出力する信号出力手段が接続
され、前記制御手段は前記信号出力手段からのスイッチ
信号を基にレジスタをセットし、前記切換手段は前記レ
ジスタに基づき前記制御手段の前記記憶手段へのアクセ
ス先を切換える。
(11) In the eighth aspect and the technical ideas (9) and (10), the control means is connected to a signal output means for outputting a switch signal as the selection information, and the control means controls the signal. A register is set based on the switch signal from the output means, and the switching means switches the access destination of the control means to the storage means based on the register.

【0081】(12)請求項8、前記技術的思想(9)
〜(11)において、前記切換手段には前記選択情報と
してスイッチ信号を出力する第2の信号出力手段が接続
され、前記切換手段は前記第2の信号出力手段からのス
イッチ信号に基づき前記制御手段の前記記憶手段へのア
クセス先を切換える。
(12) Claim 8, the technical idea (9)
In (11), a second signal output means for outputting a switch signal as the selection information is connected to the switching means, and the switching means is based on the switch signal from the second signal output means, and the control means is provided. The access destination of the storage means is switched.

【0082】[0082]

【発明の効果】以上詳述したように本発明によれば、記
憶手段に複数のプログラムを記憶しておき、切換手段に
よってこれらプログラムのうち所望のプログラムが選択
されるので、異なる仕向け先の間でソケットを用いるこ
となく基板を共用することができ、それを書換え可能な
メモリを用いることなく実現できる。
As described in detail above, according to the present invention, a plurality of programs are stored in the storage means and a desired program among these programs is selected by the switching means. The board can be shared without using a socket, and it can be realized without using a rewritable memory.

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

【図1】第1実施形態におけるプリンタの内部構成を示
す斜視図。
FIG. 1 is a perspective view showing an internal configuration of a printer according to a first embodiment.

【図2】プリンタの電気的構成図。FIG. 2 is an electrical configuration diagram of the printer.

【図3】ASICの論理回路を示す回路図。FIG. 3 is a circuit diagram showing a logic circuit of an ASIC.

【図4】ROMのメモリマップ。FIG. 4 is a memory map of a ROM.

【図5】各デバイスの状態と実行プログラムとの関係を
示す説明図。
FIG. 5 is an explanatory diagram showing a relationship between a state of each device and an execution program.

【図6】第2実施形態におけるプリンタの電気的構成
図。
FIG. 6 is an electrical configuration diagram of a printer according to a second embodiment.

【図7】各デバイスの状態と実行プログラムとの関係を
示す説明図。
FIG. 7 is an explanatory diagram showing a relationship between a state of each device and an execution program.

【図8】第3実施形態におけるASICの論理回路を示
す回路図。
FIG. 8 is a circuit diagram showing a logic circuit of an ASIC according to the third embodiment.

【図9】各デバイスの状態と実行プログラムとの関係を
示す説明図。
FIG. 9 is an explanatory diagram showing the relationship between the state of each device and an execution program.

【図10】別例におけるプリンタの電気的構成図。FIG. 10 is an electrical configuration diagram of a printer in another example.

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

1 制御機器としてのプリンタ 18 制御手段としてのCPU 19 記憶手段としてのROM 21 第2の記憶手段としてのEEPROM 22 ICチップとしてのASIC 30 切換手段を構成する論理回路 31 切換手段を構成する論理回路 37 レジスタ S1,S2 信号出力手段としてのスイッチ Sa〜Sd 第2の信号出力手段としてのスイッチ Pa〜Pd プログラム(動作プログラム)としての制御
プログラム
1 Printer 18 as a control device CPU 19 as a control means ROM 21 as a storage means EEPROM 22 as a second storage means ASIC 30 as an IC chip 30 Logic circuit constituting a switching means 31 Logic circuit constituting a switching means 37 register S 1, switch P a as a switch S a to S d second signal output means as S 2 signal output means to P d program (operation program) as a control program for

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 複数のプログラムが記憶された記憶手段
と、 前記記憶手段にアクセスして前記プログラムを実行可能
な制御手段と、 複数の前記プログラムのうち所定のプログラムが選択さ
れるように、選択情報に基づいて前記制御手段の前記記
憶手段へのアクセス先を切換える切換手段とを備えたこ
とを特徴とするメモリアクセス切換装置。
1. A storage unit storing a plurality of programs, a control unit capable of accessing the storage unit to execute the program, and a selection unit for selecting a predetermined program from the plurality of the programs. A memory access switching device comprising: switching means for switching an access destination of the control means to the storage means based on information.
【請求項2】 複数の前記プログラムは、前記制御手段
が搭載される制御機器の動作に関わる動作プログラムで
あることを特徴とする請求項1に記載のメモリアクセス
切換装置。
2. The memory access switching device according to claim 1, wherein the plurality of programs are operation programs related to operations of a control device on which the control means is mounted.
【請求項3】 前記切換手段は前記制御手段と前記記憶
手段との間に介在し、前記制御手段が前記記憶手段にア
クセスするときに、前記制御手段が指定するアドレスを
前記選択情報に基づくアドレスに変更することにより、
前記制御手段の前記記憶手段へのアクセス先を切換える
ことを特徴とする請求項1又は2に記載のメモリアクセ
ス切換装置。
3. The switching means is interposed between the control means and the storage means, and when the control means accesses the storage means, the address designated by the control means is an address based on the selection information. By changing to
3. The memory access switching device according to claim 1, wherein an access destination of the control means to the storage means is switched.
【請求項4】 前記選択情報としてデータ値が記憶され
た第2の記憶手段を備え、 前記制御手段は前記第2の記憶手段のデータ値を基にレ
ジスタをセットし、前記切換手段は前記レジスタに基づ
き前記制御手段の前記記憶手段へのアクセス先を切換え
ることを特徴とする請求項1〜3のうちいずれか一項に
記載のメモリアクセス切換装置。
4. A second storage means in which a data value is stored as the selection information is provided, the control means sets a register based on the data value in the second storage means, and the switching means is the register. 4. The memory access switching device according to claim 1, wherein an access destination of the control means to the storage means is switched based on the above.
【請求項5】 前記制御手段に対し前記選択情報として
スイッチ信号を出力する信号出力手段を備え、 前記制御手段は前記信号出力手段からのスイッチ信号を
基にレジスタをセットし、前記切換手段は前記レジスタ
に基づき前記制御手段の前記記憶手段へのアクセス先を
切換えることを特徴とする請求項1〜3のうちいずれか
一項に記載のメモリアクセス切換装置。
5. A signal output means for outputting a switch signal as said selection information to said control means, said control means sets a register based on the switch signal from said signal output means, and said switching means 4. The memory access switching device according to claim 1, wherein an access destination of the control means to the storage means is switched based on a register.
【請求項6】 前記切換手段に対し前記選択情報として
スイッチ信号を出力する第2の信号出力手段を備え、 前記切換手段は前記第2の信号出力手段からのスイッチ
信号に基づき前記制御手段の前記記憶手段へのアクセス
先を切換えることを特徴とする請求項1〜3のうちいず
れか一項に記載のメモリアクセス切換装置。
6. A second signal output means for outputting a switch signal as the selection information to the switching means, the switching means being based on the switch signal from the second signal output means, the control means of the control means. 4. The memory access switching device according to claim 1, wherein an access destination to the storage means is switched.
【請求項7】 記憶手段には複数のプログラムが記憶さ
れ、制御手段が前記記憶手段にアクセスして当該記憶手
段に記憶されたプログラムを取得する際に、複数の前記
プログラムのうち所定のプログラムが選択されるよう
に、切換手段は選択情報に基づき前記制御手段の前記記
憶手段へのアクセス先を切換えることを特徴とするメモ
リアクセス切換方法。
7. The storage means stores a plurality of programs, and when the control means accesses the storage means and acquires the program stored in the storage means, a predetermined program among the plurality of programs is stored. A memory access switching method, wherein the switching means switches the access destination of the control means to the storage means so as to be selected.
【請求項8】 複数のプログラムが記憶された記憶手段
に接続され、制御手段により制御されて前記記憶手段に
アクセス可能なICチップであって、 複数の前記プログラムのうち所定のプログラムが選択さ
れるように、選択情報に基づいて前記制御手段の前記記
憶手段へのアクセス先を切換える切換手段を備えたこと
を特徴とするICチップ。
8. An IC chip which is connected to a storage means in which a plurality of programs are stored and which is controlled by a control means and can access the storage means, wherein a predetermined program is selected from the plurality of the programs. As described above, the IC chip is provided with the switching means for switching the access destination of the control means to the storage means based on the selection information.
JP2002104452A 2002-04-05 2002-04-05 Memory access switching device, memory access switching method and ic chip Pending JP2003296187A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002104452A JP2003296187A (en) 2002-04-05 2002-04-05 Memory access switching device, memory access switching method and ic chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002104452A JP2003296187A (en) 2002-04-05 2002-04-05 Memory access switching device, memory access switching method and ic chip

Publications (1)

Publication Number Publication Date
JP2003296187A true JP2003296187A (en) 2003-10-17

Family

ID=29389707

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002104452A Pending JP2003296187A (en) 2002-04-05 2002-04-05 Memory access switching device, memory access switching method and ic chip

Country Status (1)

Country Link
JP (1) JP2003296187A (en)

Similar Documents

Publication Publication Date Title
US7575292B2 (en) Printhead having digital circuit and analog circuit, and printing apparatus using the same
EP0631870B1 (en) Print head and printer apparatus using the same
US7690744B2 (en) Printing apparatus for assigning data subjected to discharge by an abnormal nozzle in accordance with predetermined priorities
US8002370B2 (en) Serial data transfer method, electric device, and printing apparatus
EP0916496B1 (en) Printing apparatus and print control method
US6729709B2 (en) Ink-jet printing method and apparatus
KR100444574B1 (en) Inkjet printer and Maintenance control method of the same
EP1627740A2 (en) Printing apparatus and printing system
JP4612867B2 (en) Power supply circuit, motor driver circuit, electronic device, and recording apparatus
JP2003296187A (en) Memory access switching device, memory access switching method and ic chip
US6209984B1 (en) Power saving ink jet printer and controlling method thereof
US7042596B1 (en) Multifunction apparatus and method of identifying device attached thereto
JPH11115223A (en) Printing apparatus
US6467883B1 (en) Printhead, printing apparatus using the same, and printhead control method
JP4973103B2 (en) Inkjet head drive substrate
KR100186623B1 (en) Printing method of double head inkjet printer
JP2011100351A (en) Asic verification apparatus and image forming apparatus
JP2005193593A (en) Recording device
JP2002210926A (en) Head driving waveform generating device in ink jet printer
JP2005149211A (en) Data recording device and method for rewriting data
KR0122604Y1 (en) Power control circuit for an ink-jet printer
JP2005111845A (en) Printing apparatus
JP2002137460A (en) Print system and storage control method
JP2003246118A (en) Printer
EP0841631A2 (en) Controller for a printing unit