JPS60225930A - Printer interface in composite function cpu - Google Patents

Printer interface in composite function cpu

Info

Publication number
JPS60225930A
JPS60225930A JP59083272A JP8327284A JPS60225930A JP S60225930 A JPS60225930 A JP S60225930A JP 59083272 A JP59083272 A JP 59083272A JP 8327284 A JP8327284 A JP 8327284A JP S60225930 A JPS60225930 A JP S60225930A
Authority
JP
Japan
Prior art keywords
printer
cpu
data
keyboard
interface
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
JP59083272A
Other languages
Japanese (ja)
Inventor
Takatoshi Ishii
石井 孝寿
Ryozo Yamashita
良蔵 山下
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.)
ASCII Corp
Original Assignee
ASCII 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 ASCII Corp filed Critical ASCII Corp
Priority to JP59083272A priority Critical patent/JPS60225930A/en
Publication of JPS60225930A publication Critical patent/JPS60225930A/en
Pending legal-status Critical Current

Links

Landscapes

  • Microcomputers (AREA)

Abstract

PURPOSE:To increase the function of a composite function CPU even by the limited number of pins, by adding a printer data register to a printer interface in the composite function CPU. CONSTITUTION:A composite function CPU103 outputs a printing data onto data lines DATA0-7, and generates a printer data strobe signal. The printing data is set to a printer data register 104, a control data is set to a control data register 105, and it is outputted as a strobe to a printer. The status for showing whether the printing data can be received or not is read by the composite function CPU103 through a printer busy signal line and the data lines DATA0-7. The number of pins to be used is decreased by using a bi-directional bus line.

Description

【発明の詳細な説明】 [技術分野1 本発明は、複合機能CPUk、flllする。[Detailed description of the invention] [Technical field 1 The present invention uses a multifunction CPUk.

[背景技術] マイクロプロセッサを利用した端末装置またはパーソナ
ルコンビュータ等のシステムは、マイクロプロセッサ(
以下、CPUという)と、その周辺回路とで構成されて
いた。ところで、半導体技術の進歩によって、CPUの
周辺回路の一部を、CPUと共に1つのパッケージに組
み込むことができるようになり、これを複合機能CPU
と呼んでいる。
[Background Art] A system such as a terminal device or a personal computer that uses a microprocessor (
It consisted of a CPU (hereinafter referred to as a CPU) and its peripheral circuits. By the way, advances in semiconductor technology have made it possible to incorporate some of the peripheral circuits of a CPU into one package with the CPU, and this is now called a multi-function CPU.
It is called.

この複合機能CPUは、入力/出hデバイスを直接駆動
する小規模システムに有効であるが、大規模システムで
はそれほど有効ではない。つまり、大規模システムにお
いては、ICパッケージのビン数が制限されているため
に、複合機能CPUを使用することができず、五用CP
Uと大規模周辺回路を組み合わせて使用している。
This multi-function CPU is effective in small-scale systems that directly drive input/output devices, but is not so effective in large-scale systems. In other words, in large-scale systems, the number of bins in the IC package is limited, so a multifunction CPU cannot be used, and a five-function CPU cannot be used.
It uses a combination of U and large-scale peripheral circuits.

次に、従来の複合機能CPUの一例について説明する。Next, an example of a conventional multifunction CPU will be described.

第1図は、従来の複合弯能CPUおよびキーボードを示
すものであり、特にそのキーボードインタフェース回路
を示すブロック図である。
FIG. 1 is a block diagram showing a conventional multifunction CPU and a keyboard, and in particular, its keyboard interface circuit.

第1図において、°複合機能cpuiは、cpu(28
0)2とその周辺回路とで構成されており、この複合機
能CPU1は、周辺回路の一部であるパラレルインタフ
ェース(P l08255)3を有する。このパラレル
インタフェース3は、LSIの一種であり、ボートB、
Cをキーボード用に使用し、ボートAは別の機能として
使用している。
In FIG. 1, ° complex function cpui is CPU (28
The multifunction CPU 1 includes a parallel interface (P108255) 3, which is a part of the peripheral circuit. This parallel interface 3 is a type of LSI, and is connected to boat B,
Boat C is used for the keyboard, and Boat A is used for other functions.

つまり、パラレルインタフェース3のボートCは、キー
ボードスキャンデータおよびLED駆動データとして使
用し、そのボートBは、キーボードリターンライン入力
ポートとして使用している。
That is, port C of the parallel interface 3 is used for keyboard scan data and LED drive data, and port B is used as a keyboard return line input port.

また、デコーダ4は、ボートCからのスキャン信号KB
O〜KB4に応じて、キーボードマトリックススキャン
ラインKBYO−KBY9を駆動するものである。ドラ
イバIC6は、ボートCからのキャップス(CAPS)
信号に応じて、LED7を駆動するものである。
Further, the decoder 4 receives the scan signal KB from the boat C.
The keyboard matrix scan lines KBYO-KBY9 are driven according to O to KB4. Driver IC6 is CAPS from boat C
The LED 7 is driven according to the signal.

キーボード5は、図示しないキー接点を介して、キーボ
ード5のスキャンラインとリターンラインとが接触され
ている。つまり、10本のスキャンラインが順次Oにな
るが、あるスキャンラインが0のときに、そのスキャン
ラインに対応した接点が押されていると、そのスキャン
ラインに対応したリターンラインが0になることによっ
て、キー押下を検出する。 ゛ 上記従来例は、キーボードマトリックス5と[EDドラ
イバIC6とを複合機能CPU1に直接接続することが
できるが、この場合、スキャンデータ信号(デコーダ4
の出力)用のピン10本と、リターン信号KBXO〜K
BX7用のピン8本と、キャップス信号用のピン1本の
合計19本のピンが必要となる。
The scan line and return line of the keyboard 5 are in contact with each other via key contacts (not shown). In other words, the 10 scan lines become O in sequence, but if a certain scan line is 0 and the contact corresponding to that scan line is pressed, the return line corresponding to that scan line becomes 0. Detects key presses.゛In the above conventional example, the keyboard matrix 5 and the ED driver IC 6 can be directly connected to the multifunction CPU 1, but in this case, the scan data signal (decoder 4
10 pins for output) and return signals KBXO to K
A total of 19 pins are required, including 8 pins for BX7 and 1 pin for caps signal.

ところが、上記のようにキーボードマトリックス5とL
EDドライバIC6とを複合機能CPU1に接続する場
合に、19本もピンを使用すると、別の機能の追加が必
要な場合、ピン数の制限によって、その追加を行なうこ
とが困難であるという問題がある。
However, as mentioned above, keyboard matrix 5 and L
If 19 pins are used when connecting the ED driver IC 6 to the multi-function CPU 1, there is a problem that if it is necessary to add another function, it is difficult to add it due to the limited number of pins. be.

第6図は、従来のプリンタパラレルインタフェースを示
すブロック図であり、第8図は、上記従来のプリンタパ
ラレルインタフェースを詳細に示すブロック図である。
FIG. 6 is a block diagram showing a conventional printer parallel interface, and FIG. 8 is a block diagram showing details of the conventional printer parallel interface.

第6図において、複合機能CPUl0Iは、データライ
ンDATAO〜DATA7に送るプリンタ用データと、
そのプリンタ用データをプリンタデータレジスタ102
にラッチさせるプリンタデータストローブ信号と、プリ
ンタデータPRDO〜PRD7の出力要求信号であるス
トローブ信号とを出力し、プリンタデータの受け取りの
可/否を示すプリンタビジー信号を入力している。
In FIG. 6, the multifunctional CPUl0I sends printer data to data lines DATAO to DATA7,
The printer data is stored in the printer data register 102.
It outputs a printer data strobe signal to be latched and a strobe signal which is an output request signal for printer data PRDO to PRD7, and inputs a printer busy signal indicating whether printer data can be received.

データラインDATAO−DATA7は、メモリインタ
フェースの信号ラインと共用している。
The data lines DATAO-DATA7 are shared with the signal line of the memory interface.

これは、パッケージのピン数を減らすためであり、プリ
ンタデータストローブ信号によって、データラインDA
TAO−DATA7上の印字データを、プリンタデータ
レジスタ102に一部セットした後に、プリンタデータ
PRDO−PRD7としてプリンタに出力するものであ
る。
This is to reduce the number of pins on the package, and the data line DA
A portion of the print data on TAO-DATA7 is set in the printer data register 102, and then outputted to the printer as printer data PRDO-PRD7.

しかし、ストローブ信号とプリンタビジー信号と以外に
、制御信号またはステータス信号等を追加したい要求が
有ったとしても、その要求には対応することができない
という問題がある。つまり、制限さ゛れたビン数の下で
は、複合機能CPUの機能を更に増加させることには制
限があるという問題がある。
However, even if there is a request to add a control signal, status signal, etc. in addition to the strobe signal and printer busy signal, there is a problem in that the request cannot be met. In other words, there is a problem in that there is a limit to further increasing the functionality of the multifunctional CPU under the limited number of bins.

[発明の目的] 本発明は、上記従来の問題点に着目してなされたもので
、キーボードマトリックスとLEDドライ、バICとを
複合機能CPLJに接続する場合に、極力ピンの本数を
減少させて、別の機能を有するピンを増設することがで
きる複合機能CPUにおけるキルボードインタフェース
を提供するものである。
[Object of the Invention] The present invention has been made by paying attention to the above-mentioned conventional problems, and is aimed at reducing the number of pins as much as possible when connecting a keyboard matrix, LED driver, and bus IC to a multifunction CPLJ. , provides a killboard interface in a multi-function CPU that can add pins with different functions.

本発明は、また、データレジスタを付加することによっ
て、複合機能cpu、にプリンタを接続する場合に、制
限されたビン数の下で、複合機能CPUの機能を更に増
加させることができる複合機能CPUにおけるプリンタ
インタフェースを提供するものである。
The present invention also provides a multi-function CPU that can further increase the functionality of the multi-function CPU under a limited number of bins when a printer is connected to the multi-function CPU by adding a data register. It provides a printer interface for

本発明は、さらに、複合機能CPUの機能を更に拡張す
ることができるCPLJの割込制御装置を提供するもの
である。
The present invention further provides a CPLJ interrupt control device that can further expand the functions of a multifunction CPU.

本発明は、また、複合機能CPUの機能を更に順次拡張
した場合に、システム上管理できるようにして混乱を防
止することができる複合機能OPUを提供するものであ
る。
The present invention also provides a multifunction OPU that can be managed on the system to prevent confusion when the functions of the multifunction CPU are further expanded one after another.

し発明の概要] 本発明は、CPUとこのCPUの周辺回路とを含む複合
機能CPUにおいて、双方向パスラインを使用して、キ
ーボードマトリックスのスキャンデータ信号を出力する
とともに、キーボードマトリックスのリターン信号を読
取るものである。
SUMMARY OF THE INVENTION] The present invention uses a bidirectional pass line in a multifunction CPU including a CPU and peripheral circuits of the CPU to output a keyboard matrix scan data signal and to output a keyboard matrix return signal. It is something to read.

本発明は、また、CPUとこのCPUの周辺回路とを含
む複合機能CPUにおいて、プリンタに関するレベル信
号を使用するレベルモードと、前記レベル信号をストロ
ーブ信号として使用するプリンタストローブモードとの
うち、一方を指定するモード指定手段を有するものであ
る。
The present invention also provides a multi-function CPU including a CPU and a peripheral circuit of the CPU, which operates in a level mode in which a level signal related to a printer is used and a printer strobe mode in which the level signal is used as a strobe signal. It has mode designation means for designation.

本発明は、さらに、モード指定によって、他の機能を有
するピンを多用することにより、余裕のピンを確保し、
そのピンを利用して信号のレベル状態または複合機能C
PUの内部状態を見る割込要求のポートと、前記割込を
禁止またはイネーブルするビットとを備えたレジスタを
有するものである。
Furthermore, the present invention secures sufficient pins by making frequent use of pins having other functions by specifying the mode.
Use that pin to control signal level status or complex function C.
It has a register that includes an interrupt request port for viewing the internal state of the PU and a bit that disables or enables the interrupt.

本発明は、また、CPUとこのCPUの周辺回路とを含
む複合機能CPLIにおいて、LSIの1[発明の実施
例] 第2図は、本発明の一実施例を示す図であり、拡張キー
ボードインタフェースを示すブロック図である。
The present invention also provides an LSI 1 [Embodiment of the Invention] in a multifunctional CPLI including a CPU and peripheral circuits of the CPU. FIG.

複合機能CPLJ11は、CPU (Z80)12と、
パラレルインタフェース(PI08255)13と、キ
ーボードスキャンデータ出力用バッファ14と、キーボ
ードスキャンタイミングコントロール回路15と、シス
テム/割込みコントロール回路16とで槙成されている
The complex function CPLJ11 has a CPU (Z80)12 and
It consists of a parallel interface (PI08255) 13, a keyboard scan data output buffer 14, a keyboard scan timing control circuit 15, and a system/interrupt control circuit 16.

キーボードマトリックス禁止信号25は、リターン信号
を禁止するものであり、インターナルバススイッチ信号
24aは、データラインxO〜×7にポートCの出力信
号P CO−P C7を乗せるものである。また、キー
ボードストローブ信号24は、キーボードスキャン/リ
ターンデータライン(XO−X7)17上のキーボード
スキャンコードを、CAPS/キーボードレジスタ18
にセットする信号である。
The keyboard matrix prohibition signal 25 is for prohibiting the return signal, and the internal bus switch signal 24a is for putting the output signal P CO-P C7 of the port C on the data lines xO to x7. The keyboard strobe signal 24 also transmits the keyboard scan code on the keyboard scan/return data line (XO-X7) 17 to the CAPS/keyboard register 18.
This is the signal to be set to .

また、ドライバIC19は、LED20を駆動するもの
である。
Further, the driver IC 19 drives the LED 20.

デコーダ21は、キーボードマトリックス23をスキャ
ンするキーボードスキャンライン(KBYO〜KBY9
)22を駆動するものである。システム/割込み用コン
トロール/ステータス信号26は、キーボードインタフ
ェースの拡張によって、新たに使用が可能となった信号
である。
The decoder 21 scans the keyboard matrix 23 with keyboard scan lines (KBYO to KBY9).
) 22. The system/interrupt control/status signal 26 is a signal that can be newly used due to the expansion of the keyboard interface.

第4図は、基本キーボードインタフェース機能(第1図
に示す機能)31、または拡張キーボードインタフェー
ス機能(第2図に示す機能)32を選択するブロック図
である。
FIG. 4 is a block diagram for selecting the basic keyboard interface function (the function shown in FIG. 1) 31 or the extended keyboard interface function (the function shown in FIG. 2) 32.

基本キーボードインタフェース機能31、拡張キーボー
ドインタフェース機能32からの各信号は−セレクタ3
3.34.35によって選択された後に、複合機能CP
U11から出力される。
Each signal from the basic keyboard interface function 31 and the extended keyboard interface function 32 is -selector 3.
After being selected by 3.34.35, the composite function CP
It is output from U11.

第5図は、各キーボードインタフェースモード(つまり
、基本モードまたは拡張モード)における端子の機能を
示す図表である。
FIG. 5 is a diagram showing the functions of the terminals in each keyboard interface mode (ie, basic mode or extended mode).

次に、上記キーボードインタフェースの動作について説
明する。
Next, the operation of the keyboard interface will be explained.

第2図に示すCPU (280)1°2は、まず、パラ
レルインタフェース(PI08255)13のポートC
に、キーボードスキャンコードとLED点灯用制御デー
タとを書き込む。そして、第3図に示すように、ポート
Cにその書き込みが行なわれると、キーボードスキャン
タイミングコントロール回路15がキーボードマトリッ
クス禁止信号25を出力するので、キーボードスキャン
/リターンデータライン(XO〜X7)17上のリター
ン信号(KBXO〜KBX7)が禁止され、インターナ
ルバススイッチ信号24aによってポートCの出力PC
O−PC7が出力される。
The CPU (280) 1°2 shown in FIG. 2 first connects the port C of the parallel interface (PI08255) 13
Write the keyboard scan code and LED lighting control data in . Then, as shown in FIG. 3, when the write is performed to port C, the keyboard scan timing control circuit 15 outputs the keyboard matrix prohibition signal 25, so that the keyboard scan/return data line (XO to X7) 17 is output. The return signals (KBXO to KBX7) of port C are inhibited, and the output PC of port C is
O-PC7 is output.

それから所定時間後に、キーボードスキャンタイミング
コントロール回路15がストローノ信号24を出力する
(HIGHになる)ので、ポートCの出力PCO−PC
7が、バッファ14を介してキーボードスキャン/リタ
ーンデータライン(XO〜X7)17上に出力される。
Then, after a predetermined period of time, the keyboard scan timing control circuit 15 outputs the strono signal 24 (becomes HIGH), so the output PCO-PC of port C
7 is output via buffer 14 onto keyboard scan/return data lines (XO-X7) 17.

一方、キーボードストローブ信号24がHIGHになる
と、データライン(XO〜X7)17上に出力されたキ
ーボードスキャンコード(4ビツト)とLED点灯用制
御データ(1ビツト)は、CAPS/キーボードレジス
タ18にセットされる。キーボードモード信号が、再び
LOWになると、デコーダ21がイネーブルになるので
、キーボードレジスタ18からのキーボードスキャンコ
ード(4ビツト)をデコードし、10本のキーボードス
キャンライン(KBYO〜KBY9)22を駆動する。
On the other hand, when the keyboard strobe signal 24 becomes HIGH, the keyboard scan code (4 bits) and LED lighting control data (1 bit) output on the data line (XO to X7) 17 are set in the CAPS/keyboard register 18. be done. When the keyboard mode signal becomes LOW again, the decoder 21 is enabled, so it decodes the keyboard scan code (4 bits) from the keyboard register 18 and drives 10 keyboard scan lines (KBYO to KBY9) 22.

そして、オペレータがキーボードを操作すると、キーボ
ードリターンラインKBxO−KBX7上に、キーボー
ドリターンデータが出力され、キーボードスキャン/リ
ターンデータライン(XO〜X7)17を介してパラレ
ルインタフェース13のポートBに、そのキーボードリ
ターンデータが入力される。
When the operator operates the keyboard, keyboard return data is output on the keyboard return lines KBxO-KBX7, and the keyboard is sent to port B of the parallel interface 13 via the keyboard scan/return data lines (XO to X7) 17. Return data is input.

CPU (280)12は、ポートBがら読み取ったキ
ーボードリターンデータとポートCに書き込んだキーボ
ードスキャンコードとに基づいて、キーボードのうち、
どのキーが押下されたかを検出する。
Based on the keyboard return data read from port B and the keyboard scan code written to port C, the CPU (280) 12 selects the
Detect which key was pressed.

上記のように、基本キーボードインタフェース31の他
に、拡張キーボードインタフェース32を設けることに
よって、システム/割込み用コントロール/ステータス
信号(9本)が、下記のように、新たに使用可能となる
As described above, by providing the extended keyboard interface 32 in addition to the basic keyboard interface 31, system/interrupt control/status signals (9 signals) can be newly used as described below.

(1)Yl:強制割込み要求信号(マスク不可)(2)
 Y2 :ハスIJクエ7.t−信号(CPUZ80を
ホールドし、DMA制御を行なう ときに使用づる。) (3)Y3:バスアクノリッジ信号(CPtJZ80を
ホールドし、DMA制御を行な うときに使用する。) (4)Y4:CPU停止ステータス信号(5)Y5 :
外部割込み要求信号レベル7(6)Y6 :外部割込み
要求信号レベル1(7)Y7:外部島送み要求信号レベ
ル2(8)Y8:外部割込み要求信号レベル3(9)Y
9:外部割込み要求信号レベル4ドライバーIC19は
、CAPSレジスタ18からの出力データによって、C
APSロックステータスを表示するLED20の点灯を
制御駆動する。
(1) Yl: Forced interrupt request signal (cannot be masked) (2)
Y2: Lotus IJ Quest 7. t-signal (used when holding CPUZ80 and performing DMA control) (3) Y3: Bus acknowledge signal (used when holding CPtJZ80 and performing DMA control) (4) Y4: CPU stop Status signal (5) Y5:
External interrupt request signal level 7 (6) Y6: External interrupt request signal level 1 (7) Y7: External island sending request signal level 2 (8) Y8: External interrupt request signal level 3 (9) Y
9: External interrupt request signal level 4 The driver IC 19 uses the output data from the CAPS register 18 to
Controls and drives the lighting of the LED 20 that displays the APS lock status.

第4図に示すように、外部からのキーボードモード信号
36によって、基本キーボードインタフェース信号を出
力するか、拡張キーボードインタフェース信号を出力す
るかを切換える。つまり、。
As shown in FIG. 4, a keyboard mode signal 36 from the outside is used to switch between outputting a basic keyboard interface signal or an extended keyboard interface signal. In other words,.

キーボードモード信号36がLOWの場合は、セレクタ
33.34.35によって基本キーボードインタフェー
ス信号が選択され、キーボードモード信号36がHIG
Hの時はセレクタ33.34゜35によって、拡張キー
ボードインタフェースが選択される。
When the keyboard mode signal 36 is LOW, the basic keyboard interface signal is selected by the selector 33, 34, 35, and the keyboard mode signal 36 is HIGH.
When H, the extended keyboard interface is selected by selectors 33, 34, 35.

したかっ7、小規模システムにおいぞは、周辺回路素子
を使用することなしにキーボー・ドマトリックスを直接
接続できる基本キーボードインタフェースモードを使用
し、大規模システムにおいては、周辺回路素子を多少付
加することによって、システム/割込み用コントロール
/ステータスランフも使用できる拡張キーボードインタ
フェース規模システムの場合と同じである。このために
、同一の複合−能CPUを、小規模システムに使用でき
また大規模システムにも使用可能であるという利点を有
している。
7. For small-scale systems, use the basic keyboard interface mode that allows you to connect the keyboard matrix directly without using peripheral circuitry; for large-scale systems, it is recommended to add some peripheral circuitry. The system/interrupt control/status ramp is also available via an extended keyboard interface as is the case with scale systems. This has the advantage that the same multi-function CPU can be used for both small-scale and large-scale systems.

第7図は、本発明の一実施例を示すブロック図であり、
拡張プリンタパラレルインタフェースを示すブロック図
である。
FIG. 7 is a block diagram showing an embodiment of the present invention,
FIG. 2 is a block diagram illustrating an extended printer parallel interface.

複合機能CPU103は、プリンタデータレジスタ10
4の他に、コントロールデータレジスタ105と、ステ
ータスボート回路106とを付加するものであり、これ
によって、オプションI10インタフェースも接続でき
るものである。
The multifunction CPU 103 has a printer data register 10.
In addition to 4, a control data register 105 and a status boat circuit 106 are added, so that an option I10 interface can also be connected.

第9図は、第7図に示す複合機能CPU 103内に設
けられた拡張プリンタイレタフ・〜ス部を示すブロック
図である。
FIG. 9 is a block diagram showing an extended printer eraser section provided in the multifunction CPU 103 shown in FIG.

第9図において、CPU (280)121と、プリン
タおよびオプションI10用アドレスYコーダ1′22
と、プリンタデータストローブ信号を発生するANDゲ
ート123と、プリンタコントロールストローブ信号を
発生するANDゲート124と、プリンタステータスス
トローブ信号を発生するANDゲート125とを設けで
ある。
In FIG. 9, the CPU (280) 121 and the address Y coder 1'22 for the printer and option I10 are shown.
, an AND gate 123 that generates a printer data strobe signal, an AND gate 124 that generates a printer control strobe signal, and an AND gate 125 that generates a printer status strobe signal.

第10図は、基本プリンタインタフェース(第8図に示
したインタフェース)133と、拡張プリンタインタフ
ェース(第9図に示したインタフェース)134とを切
換えるためのブロック図である。
FIG. 10 is a block diagram for switching between the basic printer interface (the interface shown in FIG. 8) 133 and the extended printer interface (the interface shown in FIG. 9) 134.

各プリンタインタフェース133.134からのそれぞ
れの信号は、セレクタ136,137に。
Respective signals from each printer interface 133, 134 are sent to selectors 136, 137.

よって選択され、複合機能CPU131から出力される
。なお、フリップ70ツブ135は、セレクタ136.
137による選択情報を保持するものである。
Therefore, it is selected and output from the multifunction CPU 131. Note that the flip 70 knob 135 is connected to the selector 136.
137 is held.

次に、上記実施例の動作について説明する。Next, the operation of the above embodiment will be explained.

まず、第7図において、複合機能CPU103は、デー
タラインDATAO〜DATA7上に印字データを出力
し、プリンタデータストローブ信号−を発生する。この
プリンタデータストローブ信号によって、印字データは
プリンタデータレジスタ104にセットされ、プリンタ
データコントロールデータを、データラインD A T
 A O〜DATAI上に出力し、プリンタコントロー
ルストローブ信号を発生ずる。
First, in FIG. 7, the multifunction CPU 103 outputs print data onto data lines DATAO to DATA7 and generates a printer data strobe signal -. By this printer data strobe signal, print data is set in the printer data register 104, and printer data control data is transferred to the data line DAT.
Output on A O~DATAI to generate a printer control strobe signal.

また、プリンタコントロールストローブ信号によって、
コントロールデータは一部コントロールデータレジスタ
105にセットされ、ストローブとして、プリンタに対
して出力される。プリンタは、ストローブ信号に従って
、プリンタデータラインPRDO−PRD7上の印字デ
ータをピックアップする。
Also, depending on the printer control strobe signal,
Part of the control data is set in the control data register 105 and output to the printer as a strobe. The printer picks up print data on printer data lines PRDO-PRD7 according to the strobe signal.

一方、印字データが受け取り可能か否かを示ずステータ
スを、プリンタがプリンタビジル信号ライン上に出力す
る。
On the other hand, the printer outputs a status indicating whether print data can be received or not on the printer visible signal line.

複合機能CPtJ103は、プリンタステータスストロ
ーブ信号を発生し、ステータスポート106とデータラ
インDATAO−JDATA7とを介して、プリンタか
らのビジーステータスを読み取ることができる。
Composite function CPtJ 103 can generate a printer status strobe signal and read the busy status from the printer via status port 106 and data lines DATAO-JDATA7.

なお、コントロールデータレジスタ105は、最大8ビ
ツトを備えることができ、そのうちの1ビツトはストロ
ーブ信号としてプリンタインタフェースに使用されるが
、他の7ビツトはオプションI10インタフェース用コ
ント0−ルに使用できる。
Note that the control data register 105 can have a maximum of 8 bits, of which 1 bit is used as a strobe signal for the printer interface, while the other 7 bits can be used for control for the Option I10 interface.

また、ステータスポート106の1ビツトは、プリンタ
ビジー信号としてプリンタインタフェースに使用される
が、他の7ピツトはオプションI10インタフェースの
データまたはステータス入力ボートとして使用できる。
Also, one bit of status port 106 is used as a printer busy signal for the printer interface, while the other seven bits can be used as data or status input ports for the Option I10 interface.

第9図は、拡張プリンタインタフェース部のブロック図
であり、各ストローブ信号の発生回路を示す図である。
FIG. 9 is a block diagram of the extended printer interface section, and is a diagram showing a generation circuit for each strobe signal.

第9図において、プリンタデータストローブ信号を発生
させる場合には、CPU (280)121は、アドレ
スラインADRO〜ADR7上に、I10アドレス91
H(ト1は、ヘキサコードである)を出力し、ライトス
トローブ信号と、I10リクエスト信号とを出力する。
In FIG. 9, when generating a printer data strobe signal, the CPU (280) 121 generates an I10 address 91 on the address lines ADRO to ADR7.
H (G1 is a hex code), a write strobe signal, and an I10 request signal.

I10アドレスデコーダ122は、アドレスをデコード
し、■10アドレス91Hセレクト信号を発生する。A
NDゲート123は、I10リクエスト信号の論理積を
とり、プリンタデータストローブ信号を発生する。プリ
ンタストローブ信号、プリンタステータスストローブ信
号も同様の手順によって発生させる。
The I10 address decoder 122 decodes the address and generates the 10 address 91H select signal. A
ND gate 123 ANDs the I10 request signal and generates a printer data strobe signal. The printer strobe signal and printer status strobe signal are also generated using the same procedure.

第10図に示すように、プリンタインタフェース選択情
報を保持するノリツブフロップ135によって、基本プ
リンタインタフェース信号を使用するか、または拡張プ
リンタインタフェース信号を使用するかを切換えること
ができる。
As shown in FIG. 10, a Noritsubu flop 135 holding printer interface selection information allows switching between using basic printer interface signals and extended printer interface signals.

すなわち、フリップフロップ135の出力であるプリン
タストローブモード信号がLOWの場合は、セレクタ1
36によって基本プリンタインタフェースのプリンタス
ト0−ブ信号が選択および出力され、またセレクタ13
7kmよって、プリンタビジー信号が選択されて、基本
プリンタインタフェースに送られる。
That is, when the printer strobe mode signal that is the output of the flip-flop 135 is LOW, the selector 1
36 selects and outputs the printer strobe signal of the basic printer interface, and selector 13
7km, the printer busy signal is selected and sent to the basic printer interface.

一方、プリンタストローブモード信号がHIGHの場合
は、セレクタ136によって拡張プリンタインタフェー
ス134のプリンタコントロールストローブ信号が選択
および出力され、またセレクタ137によって、プリン
タステータスストローブ信号が選択および出力される。
On the other hand, when the printer strobe mode signal is HIGH, the selector 136 selects and outputs the printer control strobe signal of the extended printer interface 134, and the selector 137 selects and outputs the printer status strobe signal.

上記フリップフロップ135は、CPU (Z80)1
31によって、セット/リセットが自由にコントロール
できる。
The flip-flop 135 is connected to the CPU (Z80)1
31 allows for free control of set/reset.

したがって、小規模システムにおいては、第12図に示
すプリンタ1−タレジスタ104を付加するだけで、プ
リンタを接続できる基本プリンタインタフェースモード
を使用できる。
Therefore, in a small-scale system, a basic printer interface mode can be used in which a printer can be connected by simply adding the printer data register 104 shown in FIG.

また、オプション■/°0インタフェースが必要な大規
模システムにおいては、第7図に示す]ントロールデー
タレジスタ105と、ステータスポート106とを付加
することによって、拡張プリンタインタフェースモード
を使用できるという利点を有する。
In addition, in a large-scale system that requires the option ■/°0 interface, an extended printer interface mode can be used by adding a control data register 105 and a status port 106 (shown in FIG. 7). .

第11図は、本発明の一実施例を示す図であり、複合機
能CPUの拡張機能を制御するレジスタおよびボートを
示すブロック図である。
FIG. 11 is a diagram showing one embodiment of the present invention, and is a block diagram showing registers and ports that control extended functions of a multifunction CPU.

第12.13図は、各レジスタおよびボートのフォーマ
ットと、各ビットの機能とを示す図である。
Figures 12 and 13 are diagrams showing the format of each register and port and the function of each bit.

次に、第11〜13図に従って、複合機能CPUの拡張
機能を説明するとともに、その複合機能CPUに組み込
まれた周辺回路の制御手順について説明する。
Next, with reference to FIGS. 11 to 13, the expanded functions of the multifunction CPU will be explained, and the control procedure for the peripheral circuits incorporated in the multifunction CPU will be explained.

CPU (280)201は、インターナルモードレジ
スタ207と、インターナルステータスボート208と
、割込みコントロールレジスタ209と、割込みステー
タスボート210とを有し、これらを用いて、拡張機能
および周辺回路をコントロールするものである。
The CPU (280) 201 has an internal mode register 207, an internal status board 208, an interrupt control register 209, and an interrupt status board 210, and uses these to control extended functions and peripheral circuits. It is.

CPU (280)201から出力されたアドレスライ
ンADRO〜ADR7のアドレス信号は、I10アドレ
スデコーダ202によって1コードされ、各レジスタ/
ボート207.208,209.210のセレクト信号
が出力される。
The address signals on address lines ADRO to ADR7 output from the CPU (280) 201 are 1-coded by the I10 address decoder 202 and sent to each register/
Select signals for boats 207.208 and 209.210 are output.

ANDゲート203〜206は、レジスタ/ボートスト
ローブ信号を発生し、各レジスタへデータライン上の出
力データをセットするか、あるいはステータスポートの
データをデータライン上に読み出す。
AND gates 203-206 generate register/boat strobe signals to set output data on the data line to each register or read status port data onto the data line.

第12図は、第11図に示した。インターナルモードレ
ジスタ207における各ビットの機能を示す図である。
FIG. 12 is shown in FIG. 11. 3 is a diagram showing the functions of each bit in an internal mode register 207. FIG.

ビットO: CPLI (280)用のクロックジェネ
レータ(T6497)のO8端子(ビット0用端子)に
入力され、スタートアップ時間を指定するビット。
Bit O: This bit is input to the O8 terminal (terminal for bit 0) of the clock generator (T6497) for CPLI (280) and specifies the startup time.

ビット1 : CPU (280)用のクロックジェネ
レータ(T6497)のMSI端子(ビット1用端子)
に入力され、クロックの出力を停止するビット。
Bit 1: MSI terminal (terminal for bit 1) of the clock generator (T6497) for the CPU (280)
bit that is input to stop the output of the clock.

ビット2 :CPU (280)用のクロックジェネレ
ータ(T6497)のMS2端子(ビット2用の端子)
に入力され、ストップモードを指定するビット。
Bit 2: MS2 terminal of clock generator (T6497) for CPU (280) (terminal for bit 2)
Bit input to specify stop mode.

−ここで、上記クロックジェネレータ(T6497)は
、CPU (280)の周辺回路の一素子として、複合
機能CPU201に組み込まれているものである。
- Here, the clock generator (T6497) is incorporated into the multifunction CPU 201 as one element of the peripheral circuit of the CPU (280).

CPU (280)201は、第11図に示すインター
ナルステータスボート208から、LSIのIDナンバ
ーを読み取ることができる。CPU(280)201を
使用シタ複合機能CPUでも、用途によって組み込む周
辺回路が異なるので、IDナンバーを変えることにより
、ソフトウェアに対して、複合機能CPUの種類を知ら
せることができる。すな紘ち、LSI”の使用を変えた
ときに(バージョナップした゛ときに)、I[>ナンバ
を変え、そのLSIの使用を確実に識別できるようにす
る。
The CPU (280) 201 can read the ID number of the LSI from the internal status board 208 shown in FIG. Even if the CPU (280) 201 is used as a multi-function CPU, the peripheral circuits to be built in will differ depending on the application, so by changing the ID number, the type of multi-function CPU can be notified to the software. In other words, when the use of an LSI is changed (updated), the I[> number is changed so that the use of that LSI can be reliably identified.

ビット3ニブリンタインタフエースを拡張モードに指定
するビット。
Bit 3 Bit that specifies the Niblinter interface to extended mode.

これは、第10図で説明したプリンタインタフェースフ
リツブフロツブ135に対応するものである。
This corresponds to the printer interface flipflop 135 described in FIG.

ビット4:メモリインタフェースのモードをSRAM−
8Kに指定するビット。
Bit 4: Set memory interface mode to SRAM-
Bit to specify 8K.

このビットによって、SRAM−2Kを使用するか、ま
たはSRAM−8Kを使用するかを選択する。
This bit selects whether to use SRAM-2K or SRAM-8K.

第13図は、第11図に示した割込みコントロールレジ
スタ209における各ビットの機能と、開割込みステー
タスポート210における各ビットの機能とを示す図で
ある。
FIG. 13 is a diagram showing the function of each bit in the interrupt control register 209 shown in FIG. 11 and the function of each bit in the open interrupt status port 210.

CPU (280)201は、INT割込み端子を1個
しか備えていないので、周辺回路によって、8レベルま
で割込み要求信号を拡張する。すなわち、第11図に示
す割込みコントロールレジスタ209は、拡張割込み要
求信号のイネーブル/ディスエーブルを制御し、一方、
割込みステータスポート210によって、CPU (2
80)201は、どの拡張割込み要求が発生したかをチ
ェックすることができる。
Since the CPU (280) 201 has only one INT interrupt terminal, the peripheral circuit expands the interrupt request signal to eight levels. That is, the interrupt control register 209 shown in FIG. 11 controls enabling/disabling of the extended interrupt request signal.
The interrupt status port 210 allows the CPU (2
80) 201 can check which extended interrupt request has occurred.

なお、ビット5はプリンタインタフェース用割込みステ
ータス、ビット6はキーボードインタフェ〜 ス用割込
みステータスである。
Note that bit 5 is the interrupt status for the printer interface, and bit 6 is the interrupt status for the keyboard interface.

lNT1〜INT4.INT7は、複合機能CPUの外
部からの割込み要求であり、キーボードインタフェース
が拡張モードで使用される場合に有効となるものである
lNT1-INT4. INT7 is an interrupt request from outside the multifunction CPU, and is valid when the keyboard interface is used in the extended mode.

すなわち、割込みステータスボートは、各ビットが「1
」になったときにのみ、それぞれの割込みが可能になり
、割込みコントロールレジスタは、各ビットが「1」に
なったときにのみ、それぞれの割込みが禁止される。
In other words, the interrupt status board has each bit set to "1".
The respective interrupts are enabled only when each bit becomes "1", and each interrupt is disabled only when each bit of the interrupt control register becomes "1".

つまり、電源を入れた直後は、割込みステータスポート
の各ビットが「0」になり、割込みが不可能である。ま
たそのときに、割込みコントロールレジスタの各ビット
も「0」になり、割込み禁止ができない。その後、割込
みをさせたければ、プログラムに応じてステータスポー
トの各ビットを「1」にし、割込み禁止をさせたければ
、プログラムに応じてコントロールレジスタの各ビット
を「1」にすればよい。
That is, immediately after the power is turned on, each bit of the interrupt status port becomes "0", and interrupts are not possible. At that time, each bit of the interrupt control register also becomes "0", and interrupts cannot be disabled. After that, if you want to cause an interrupt, you can set each bit of the status port to "1" according to the program, and if you want to disable interrupts, you can set each bit of the control register to "1" according to the program.

上記実施例は、信号のピン状態またはCPUの内部状態
を見る割込み要求のボートと、その割込みを禁止または
イネーブルするビットとを備えた設けてもよい。
The above embodiment may also be provided with an interrupt request boat that looks at the pin state of a signal or the internal state of the CPU, and a bit that disables or enables the interrupt.

[発明の効果] 本発明は、キーボードマトリックスとLEDドライバI
Cとを複合機能CPUに接続する場合に、極力ピンの本
数を減少させることができ、これによって、別の機能を
有するピンを増設することができるという効果を有する
[Effect of the invention] The present invention provides a keyboard matrix and an LED driver I.
When connecting C to a multi-function CPU, the number of pins can be reduced as much as possible, and this has the effect that pins having different functions can be added.

本発明は、また、プリンタデータレジスタを付、加する
ことによって、複合機能cPUにプリンタを接続する場
合に、制限されたピン数の下で、複合機能CPUの機能
を更に増加させることができるという効果を有する。
The present invention also provides that by adding a printer data register, when a printer is connected to a multifunction CPU, the functionality of the multifunction CPU can be further increased under a limited number of pins. have an effect.

本発明は、さらに、複合機能CPUの機能を更“に拡張
することができるという効果を有する。
The present invention further has the effect that the functions of the multifunction CPU can be further expanded.

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

第1図は従来の複合機能CPUおよびキーボードを示す
ものであり、特にその基本キーボードインタフェース回
路を示すブロック図、第2図は本発明の一実施例を示す
図であり、拡張キーボードインタフェースを示すブロッ
ク図、第3図は上記実施例のタイムチャート、第4図は
基本キーボードインタフ1エース機能、または拡張キー
ボードインタフェース機能を選択するブロック図、第5
図は基本モードまたは拡張モードにおける端子の機能を
示す図表、第6図は従来のプリンタパラレルインタフェ
ースを示すブロック図、第7図は本発明の一実施例を示
すブロック図であり、拡張プリンタパラレルインタフェ
ースを示すブロック図、第8図は第6図に示すプリンタ
パラレルインタフェースを詳細に示すブロック図、第9
図は第7図に示す複合機能CPU内に設けられた拡張プ
リンタインタフエース部を示すブロック図、第10図は
基本プリンタインタフェース(第8@に示したインタフ
ェース)と、拡張プリンタインタフェース(第9図に示
したインタフェース)とを切換えるためのブロック図、
第11図は本発明の一実施例を示す図であり、複合機能
CPUの拡張機能を制御するレジスタおよびポートを示
すブロック図、第12図はインターナルモードレジスタ
、インタナルステータスポートのフォーマットと各ビッ
トの機能とを示す図、13図は割込みステータスポート
と割込みコントロールレジスタのフォーマットと各ビッ
トの機能とを示す図である。 1.11,101,103,121,131゜201・
・・複合機能CPLJ、13・・・パラレルインタフェ
ース、15・・・キーボードスキャンタイミングコント
ロール回路、23・・・キーボードマトリックス、24
・・・キーボードストローブ信号、24a・・・インタ
ーナルバススイッチ信号、25・・・キーボードマトリ
ックス禁止信号、31・・・基本キーボードインタフェ
ース、32・・・拡張キーボードインタフェース、33
.34.35・・・セレクタ、36・・・キーボードモ
ード信号、104・・・プリンタデータレジスタ、10
5・・・コントロールデータレジスタ、106・・・ス
テータスポート回路、132・・・プリンタナ−タスト
ローブ、133・・・基本プリンタインタフェース、1
34・・・拡張プリンタインタフェース、135・・・
フリップフロップ、136.13−7・・・セレクタ、
207・・・インターナルモードレジスタ、208・・
・インターナルステータスポート、209・・・割込み
コントロールレジスタ、210・・・割込みステータス
ポート。 特許出願人 株式会社アスキー 第1図 第4図 ”’−11 姐2図 jlilP!、16 (臀:東使用〕
FIG. 1 shows a conventional multifunction CPU and keyboard, and in particular, a block diagram showing its basic keyboard interface circuit, and FIG. 2 shows an embodiment of the present invention, a block diagram showing an extended keyboard interface. Fig. 3 is a time chart of the above embodiment, Fig. 4 is a block diagram for selecting the basic keyboard interface 1 ace function or extended keyboard interface function, and Fig. 5 is a time chart of the above embodiment.
6 is a block diagram showing a conventional printer parallel interface, and FIG. 7 is a block diagram showing an embodiment of the present invention, which is an extended printer parallel interface. FIG. 8 is a block diagram showing details of the printer parallel interface shown in FIG.
The figure is a block diagram showing the extended printer interface section provided in the multifunction CPU shown in Fig. 7, and Fig. 10 shows the basic printer interface (the interface shown in Fig. 8@) and the extended printer interface (the interface shown in Fig. 9). A block diagram for switching between
FIG. 11 is a diagram showing one embodiment of the present invention, and is a block diagram showing registers and ports that control extended functions of a multifunction CPU. FIG. 12 is a block diagram showing the formats of internal mode registers and internal status ports, and each FIG. 13 is a diagram showing the formats of the interrupt status port and interrupt control register, and the functions of each bit. 1.11,101,103,121,131゜201・
...Multifunction CPLJ, 13...Parallel interface, 15...Keyboard scan timing control circuit, 23...Keyboard matrix, 24
...Keyboard strobe signal, 24a... Internal bus switch signal, 25... Keyboard matrix prohibition signal, 31... Basic keyboard interface, 32... Extended keyboard interface, 33
.. 34.35...Selector, 36...Keyboard mode signal, 104...Printer data register, 10
5... Control data register, 106... Status port circuit, 132... Printer printer strobe, 133... Basic printer interface, 1
34...Extended printer interface, 135...
Flip-flop, 136.13-7...Selector,
207... Internal mode register, 208...
- Internal status port, 209... Interrupt control register, 210... Interrupt status port. Patent applicant: ASCII Co., Ltd. Figure 1 Figure 4''-11 Figure 2 jlilP!, 16 (Buttocks: East use)

Claims (1)

【特許請求の範囲】 CPUとこのCPUの周辺回路とを含む複合機能CPU
において、 プリンタに関するレベル信号を使用するレベルモードと
、前記レベル信号をスト0−ブ信号として使用するプリ
ンタストローブモードとのうち、一方を指定するモード
指定手段を有することを特徴とする複合機能CPUにお
けるプリンタインタフェース。
[Claims] A multifunctional CPU including a CPU and peripheral circuits of this CPU.
In a multi-function CPU, the CPU is characterized by having a mode specifying means for specifying one of a level mode in which a level signal related to the printer is used and a printer strobe mode in which the level signal is used as a strobe signal. printer interface.
JP59083272A 1984-04-25 1984-04-25 Printer interface in composite function cpu Pending JPS60225930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59083272A JPS60225930A (en) 1984-04-25 1984-04-25 Printer interface in composite function cpu

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59083272A JPS60225930A (en) 1984-04-25 1984-04-25 Printer interface in composite function cpu

Publications (1)

Publication Number Publication Date
JPS60225930A true JPS60225930A (en) 1985-11-11

Family

ID=13797713

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59083272A Pending JPS60225930A (en) 1984-04-25 1984-04-25 Printer interface in composite function cpu

Country Status (1)

Country Link
JP (1) JPS60225930A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6283637U (en) * 1985-11-18 1987-05-28
JPS6453225A (en) * 1987-08-24 1989-03-01 Ricoh Kk Data processor
US5575840A (en) * 1993-10-29 1996-11-19 National Starch And Chemical Investment Holding Corporation Cement mortar systems using blends of polysaccharides and cold-water-soluble, unmodified starches

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5394736A (en) * 1976-12-20 1978-08-19 Ibm Signal transfer unit

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5394736A (en) * 1976-12-20 1978-08-19 Ibm Signal transfer unit

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6283637U (en) * 1985-11-18 1987-05-28
JPH056131Y2 (en) * 1985-11-18 1993-02-17
JPS6453225A (en) * 1987-08-24 1989-03-01 Ricoh Kk Data processor
US5575840A (en) * 1993-10-29 1996-11-19 National Starch And Chemical Investment Holding Corporation Cement mortar systems using blends of polysaccharides and cold-water-soluble, unmodified starches

Similar Documents

Publication Publication Date Title
US5228139A (en) Semiconductor integrated circuit device with test mode for testing CPU using external signal
US4271466A (en) Direct memory access control system with byte/word control of data bus
US7725621B2 (en) Semiconductor device and data transfer method
JPH03154955A (en) Computor system for communicating by external device and parallel format
KR20030031255A (en) Universal serial bus device having logical circuit for conversive and immediate USB Host reset operation
JPS60225930A (en) Printer interface in composite function cpu
JPH10154021A (en) Clock switching device and clock switching method
JPH11272603A (en) Bus bridge device and transaction forwarding method
JP2000276370A (en) Microcomputer, electronic equipment and emulation method
JPS60225959A (en) Multiple-function cpu
JPS60225927A (en) Keyboard interface in composite function cpu
US6584570B2 (en) Codec system with shadow buffers and method of performing a power down/suspend operation on this codec system
JPS60225961A (en) Interruption controller of cpu
US20040240307A1 (en) Semiconductor device, semiconductor circuit, electronic equipment, and method of controlling clock-supply
US7555580B2 (en) Multi-function PC card
JPH05134795A (en) Key scanning circuit
JPS6252625A (en) Keyboard interface circuit
JPH0561708A (en) Semiconductor integrator
JPH0573247A (en) Display controller
JPH07306840A (en) Computer system
JP2000068461A (en) Semiconductor device
JPH01266635A (en) Semiconductor integrated circuit
JPH02245856A (en) Information processor
JPH02144653A (en) Data processor
JP2000187637A (en) Data reading and writing system