JPH03216725A - Electronics - Google Patents
ElectronicsInfo
- Publication number
- JPH03216725A JPH03216725A JP2010712A JP1071290A JPH03216725A JP H03216725 A JPH03216725 A JP H03216725A JP 2010712 A JP2010712 A JP 2010712A JP 1071290 A JP1071290 A JP 1071290A JP H03216725 A JPH03216725 A JP H03216725A
- Authority
- JP
- Japan
- Prior art keywords
- printer
- data
- busy signal
- busy
- state
- 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
Links
Abstract
Description
〔産業上の利用分野〕
本発明は、ワードプロセッサ,パーソナルコンピュータ
等の電子機器に関し、特にプリンタと接続してデータを
プリンタへ送出する電子機器に関する.[Industrial Application Field] The present invention relates to electronic devices such as word processors and personal computers, and particularly to electronic devices that are connected to a printer and send data to the printer.
従来、プリンタと電子機器との接続は、BUSY信号が
非アクティブであれば、電子機器から一方的にプリンタ
側にデータが送出され、データ送出中にBUSY信号の
状態は問題とされなかった.Conventionally, in the connection between a printer and an electronic device, if the BUSY signal was inactive, data was unilaterally sent from the electronic device to the printer side, and the state of the BUSY signal did not matter while data was being sent.
上記目的を達成するため、本発明は、BUSY信号出力
を有するプリンタと接続可能な電子機器において、前記
プリンタへデータを送出中もBUSY信号のレベル変化
をトレースする検知手段と、該検知手段のトレース結果
に基いて、前記プリンタがデータを受け取れない状態で
あるか否かを判定する判定手段と、該判定手段の肯定判
定に基いて、警告を発する警告発生手段とを具備したこ
とを特徴とする。
【作 用】
本発明で、はBUSY出力を有するプリンタと接続可能
な電子機器において、プリンタにデータを送出中もBU
SY信号をトレースし、そのトレース結果に基いて、プ
リンタの状態をチェックし、プリンタがデータを受け取
れない状態であれば、警告を発するようにしたので、プ
リンタの未接続やプリンタの電源スイッチの入れ忘れ等
のプリンタがデータを受け取れないような状態のチェッ
クを確実に容易にかつ廉価に行え、また操作者は警告を
受けられるので操作性も格段に向上する。
〔実施例]
以下、図面を参照して本発明の実施例を詳細に説明する
。
似五杢逍滅
第1図は本発明実施例の基本構成を示す。同図において
、
Aはプリンタへデータを送出中もBUSY信号のレベル
変化をトレースする検知手段である。
Bは検知手段Aのトレース結果に基いて、プリンタがデ
ータを受け取れない状態であるか否かを判定する判定手
段である。
Cは判定手段の肯定判定に基いて、警告を発する警告発
生手段である。
殴1上叉1舅
第2図は本発明の一実施例の電子機器とプリンタの接続
状態を示す。同図において、lはワードプロセッサの如
き電子機器(U)であり、同図の一点破線から左側の部
分が電子機器本体を表わす。
2はコネクタやケーブル等を介して電子機器1と接続す
るプリンタ(PRN)である。第3図はプリンタ2への
データ転送のタイミングを示す。
第2図に示すように、電子機器本体lとプリンタ2とは
BUSY (ビジ{ ) 、DATA (データ) 、
CLK(基準クロック)、GND(基準電圧)の各信号
線で接続されていて、その信号の方向はBUSY信号が
プリンタ2から電子機器本体1側へ、DATAとCLK
の信号が電子機器本体lからプリンタ2へ出力される。
GNDは基準電圧である。
また、BUSY信号線は本体内部で抵抗器Rでプルアッ
プされている。このプルアップにより、プリンタ2が接
続されていないか、プリンタ2の電源スイッチが叶Fの
時には、BUSY信号は非アクティブ、すなわち見かけ
上プリンタ2がデータを受け取れる状態になる。したが
って,この時は電子機器本体lはプリンタ2にデータを
送る命令を図示しないキーボート等から受け取ると、無
条件にプリンタ2にデータを送り始める。
但し、この時、プリンタ2のBLISY信号は、データ
送出中常に非アクティブの状態のままである。
次に、プリンタ2が正常に接続されていて、プリンタ2
の電源スイッチがONになった時には、データ送出中に
、第3図のタイミングチャートに示したように、BUS
Y信号が一定時間アクティブ(“Low”レベル)にな
る。
本発明実施例ではこのBUSY信号の性質を利用して、
第4図のフローチャートの処理手順によりプリンタ2の
状態を電子機器1側でチェックする.まず、プリンタ2
に1 byte(8bit)のデータを送る処理が電子
機器l側で選択されると、第4図の処理プログラムが内
部ROMからサブルーチン・コールされる。
最初のステップS1では、プリンタ2からのBUSY信
号を読み込み、このBUSY信号が“High”レベル
(非アクティブ)ならば、ステップS4へ進み、BUS
Y信号が“Low (アクティブ)ならば、ステッ
プS2へ移行する。
ステップS2では、このBUSY信号がプリンタ2の仕
様で決められた所定の規定時間以上“Low”レベルに
なっていないかをチェックし、規定時間以上にプリンタ
2のBUSY信号が“Low“レベル(アクティブ)で
あれば、プリンタ2がデータを受け取れる状態ではない
と判断し、ステップS3へ移行し、図示しないブザー.
表示器等を駆動して警告を発し、データ転送処理を終え
る。
ステップS2でタイムオーバーでなければ、再びステッ
プSLへ戻る。
ステップS4では、プリンタ2に1 byte(8bi
t)のデータ転送を開始し、ステップS5へ移行する。
ステップS5では、このデータ転送中、常時BUSY信
号をトレースし、BUSY信号が“High″レベル(
非アクティブ)から“Low”レベル(アクティブ)に
移る瞬間があるか否かを監視する.
ステップS5でBUSY信号が“High″レベルから
“Low”レベルへ遷移した場合には正常にデータが送
れたと判断してデータ転送処理を終える.一方、ステッ
プS5でBUSY信号が“High”レベルのままで変
化しないときには、プリンタ2が接続されていないか、
あるいはプリンタ2の電源がOFFであると判断して、
ステップS6へ移行し、図示しないブザー,表示器等を
駆動して警告を発し、データ転送を終える.
ll主叉1l
第5図は本発明の他の実施例の処理手順を示すフローチ
ャートである。
第2図〜第4図に示した上述の実施例では、データを転
送中に常時BUSY信号のレベル変化をトレースするよ
うに説明したが、プリンタ2にデータを送った時に、B
USY信号が“Low”レベル(アクティブ)になるタ
イミングが予め分っているときには、そのタイミング時
だけBUSY信号をチェックするようにしても良い。例
えば、CLK(クロック)信号の3つ目の立上りとか、
CLK信号の1つ目の立上りから100μsec後等に
チェックすればよい。
第5図のフローチャートのステップは第4図のフローチ
ャートのステップS5以降のみを変更したものであり、
ステップSl−S4は同様であるので省略する。
まず、プリンタ2にデータを送った場合、ステップS5
−1において、BUSY信号が“Low”レベル(アク
ティブ)になっているべき『所定のタイミング1か否か
を判別し、もし、所定のタイミングであれば、ステップ
S5−2へ移行する。
ステップS5−2では、BUSY信号が“Low”レベ
ル(アクティブ)であるか否かを判別し、アクティブで
あれば、処理を終了し、アクティブでなければステップ
S6へ移行して、警告を発し、処理を終了する。
〔発明の効果〕
以上説明したように,本発明によれば、プリンタにデー
タを転送中もBUSY信号をトレースし、そのトレース
結果によって、プリンタの未接続やプリンタの電源スイ
ッチの入れ忘れ等の状態の判別を行うようにしたので、
その判別が容易かつ廉価に確実に行なえ、また操作者に
警告を発するようにしたので、操作性が格段に向上する
効果がある。In order to achieve the above object, the present invention provides an electronic device connectable to a printer having a BUSY signal output, including a detection means for tracing a change in the level of the BUSY signal even while sending data to the printer, and a tracer for the detection means. The present invention is characterized by comprising a determining means for determining whether or not the printer is in a state where it cannot receive data based on the result, and a warning generating means for issuing a warning based on an affirmative determination by the determining means. . [Function] According to the present invention, in an electronic device that can be connected to a printer having a BUSY output, the BUSY output is output even when data is being sent to the printer.
The SY signal is traced, the status of the printer is checked based on the tracing results, and a warning is issued if the printer is unable to receive data, so if the printer is not connected or the printer is forgotten to turn on, It is possible to easily and inexpensively check whether a printer such as the printer cannot receive data, and the operator can receive a warning, which greatly improves operability. [Example] Hereinafter, an example of the present invention will be described in detail with reference to the drawings. Figure 1 shows the basic configuration of an embodiment of the present invention. In the figure, A is a detection means that traces changes in the level of the BUSY signal even while sending data to the printer. Reference numeral B denotes a determining means for determining whether or not the printer is in a state where it cannot receive data, based on the trace result of the detecting means A. C is a warning generating means that issues a warning based on an affirmative determination by the determining means. Figure 2 shows a connection state between an electronic device and a printer according to an embodiment of the present invention. In the figure, l is an electronic device (U) such as a word processor, and the portion to the left of the dotted line in the figure represents the main body of the electronic device. 2 is a printer (PRN) connected to the electronic device 1 via a connector, cable, or the like. FIG. 3 shows the timing of data transfer to the printer 2. As shown in FIG. 2, the electronic device main body l and the printer 2 have BUSY, DATA,
They are connected by CLK (reference clock) and GND (reference voltage) signal lines, and the direction of the signals is that the BUSY signal goes from the printer 2 to the electronic device main body 1 side, and the DATA and CLK
A signal is output from the electronic device main body l to the printer 2. GND is a reference voltage. Furthermore, the BUSY signal line is pulled up by a resistor R inside the main body. Due to this pull-up, when the printer 2 is not connected or the power switch of the printer 2 is in the F position, the BUSY signal is inactive, that is, the printer 2 appears to be in a state where it can receive data. Therefore, at this time, when the electronic device main unit 1 receives a command to send data to the printer 2 from a keyboard (not shown) or the like, it starts sending data to the printer 2 unconditionally. However, at this time, the BLISY signal of the printer 2 remains inactive during data transmission. Next, make sure that printer 2 is connected normally and
When the power switch is turned on, the BUS
The Y signal becomes active (“Low” level) for a certain period of time. In the embodiment of the present invention, by utilizing the property of this BUSY signal,
The status of the printer 2 is checked on the electronic device 1 side according to the processing procedure shown in the flowchart of FIG. First, printer 2
When the process of sending 1 byte (8 bits) of data to is selected on the electronic equipment side, the process program shown in FIG. 4 is called as a subroutine from the internal ROM. In the first step S1, the BUSY signal from the printer 2 is read, and if this BUSY signal is at "High" level (inactive), the process advances to step S4, and the BUS
If the Y signal is "Low (active)", the process moves to step S2. In step S2, it is checked whether the BUSY signal remains at the "Low" level for more than a predetermined time determined by the specifications of the printer 2. If the BUSY signal of the printer 2 is "Low" level (active) for more than a specified time, it is determined that the printer 2 is not in a state to receive data, and the process moves to step S3, where a buzzer (not shown) is activated.
A warning is issued by driving a display, etc., and the data transfer process is completed. If the time has not exceeded in step S2, the process returns to step SL again. In step S4, 1 byte (8bit) is sent to the printer 2.
t) data transfer is started, and the process moves to step S5. In step S5, the BUSY signal is constantly traced during this data transfer, and the BUSY signal goes to "High" level (
It is monitored whether there is a moment when the level changes from "inactive" to "Low" level (active). If the BUSY signal transitions from the "High" level to the "Low" level in step S5, it is determined that the data has been sent normally and the data transfer process ends. On the other hand, if the BUSY signal remains at the "High" level and does not change in step S5, the printer 2 is not connected or
Or, it is determined that the power of printer 2 is OFF,
Proceeding to step S6, a buzzer, display, etc. (not shown) is activated to issue a warning, and the data transfer is completed. FIG. 5 is a flowchart showing the processing procedure of another embodiment of the present invention. In the above-described embodiment shown in FIGS. 2 to 4, it was explained that the level change of the BUSY signal is always traced during data transfer, but when data is sent to the printer 2,
When the timing at which the USY signal becomes "Low" level (active) is known in advance, the BUSY signal may be checked only at that timing. For example, the third rising edge of the CLK (clock) signal,
This may be checked 100 μsec after the first rise of the CLK signal. The steps in the flowchart in FIG. 5 are only changes from step S5 onward in the flowchart in FIG.
Steps Sl-S4 are the same and will therefore be omitted. First, if data is sent to printer 2, step S5
-1, the BUSY signal should be at a "Low" level (active). It is determined whether it is a predetermined timing 1, and if it is the predetermined timing, the process moves to step S5-2. In step S5-2, it is determined whether or not the BUSY signal is at "Low" level (active), and if it is active, the process is terminated, and if it is not active, the process proceeds to step S6 and a warning is issued. Finish the process. [Effects of the Invention] As explained above, according to the present invention, the BUSY signal is traced even while data is being transferred to the printer, and based on the trace results, it is possible to detect conditions such as disconnection of the printer or forgetting to turn on the power switch of the printer. Since I decided to make a determination,
Since this can be easily and reliably determined at low cost and a warning is issued to the operator, the operability is significantly improved.
第1図は本発明実施例の基本構成を示すブロック図、
第2図は本発明の一実施例の電子機器本体とプリンタと
の接続状態゜を示す結線図、
第3図は第2図のプリンタへデータを送る時のタイミン
グの一例を示すタイミングチャート、第4図は第2図の
本発明実施例の処理手順を示すフロ≦チャート、
第5図は本発明の他の実施例の処理手順の要部を示すフ
ローチャートである。
1・・・電子機器本体、
2・・・プリンタ、
BUSY・・・プリンタからのビジイ信号、(アクティ
ブ: “Low”レベル)
DATA・・・プリンタへのデータ信号、CLK・・・
プリンタがデータを読み込む基準クロック、
GND・・・基準電圧。
第2図
第3図
第4図Fig. 1 is a block diagram showing the basic configuration of an embodiment of the present invention, Fig. 2 is a wiring diagram showing the connection state between an electronic device main body and a printer according to an embodiment of the invention, and Fig. 3 is the same as Fig. 2. A timing chart showing an example of the timing when data is sent to a printer, FIG. 4 is a flow chart showing the processing procedure of the embodiment of the present invention shown in FIG. 2, and FIG. 5 is a processing procedure of another embodiment of the present invention. FIG. 1...Electronic device body, 2...Printer, BUSY...Busy signal from the printer (active: "Low" level) DATA...Data signal to the printer, CLK...
Reference clock from which the printer reads data, GND: Reference voltage. Figure 2 Figure 3 Figure 4
Claims (1)
な電子機器において、 前記プリンタへデータを送出中も@BUSY@信号のレ
ベル変化をトレースする検知手段と、 該検知手段のトレース結果に基いて、前記プリンタがデ
ータを受け取れない状態であるか否かを判定する判定手
段と、 該判定手段の肯定判定に基いて、警告を発する警告発生
手段と を具備したことを特徴とする電子機器。[Scope of Claims] 1) In an electronic device connectable to a printer having a @BUSY@ signal output, a detection means for tracing a level change of the @BUSY@ signal even while data is being sent to the printer; The apparatus is characterized by comprising a determination means for determining whether or not the printer is in a state where it cannot receive data based on a trace result, and a warning generating means for issuing a warning based on an affirmative determination by the determination means. electronic equipment.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010712A JPH03216725A (en) | 1990-01-22 | 1990-01-22 | Electronics |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2010712A JPH03216725A (en) | 1990-01-22 | 1990-01-22 | Electronics |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH03216725A true JPH03216725A (en) | 1991-09-24 |
Family
ID=11757917
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2010712A Pending JPH03216725A (en) | 1990-01-22 | 1990-01-22 | Electronics |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH03216725A (en) |
-
1990
- 1990-01-22 JP JP2010712A patent/JPH03216725A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6279048B1 (en) | System wake-up based on joystick movement | |
| CA2160500A1 (en) | PCI/ISA Bridge Having an Arrangement for Responding to PCI Bridge Address Parity Errors for Internal PCI Slaves in the PCI/ISA Bridge | |
| US6778930B2 (en) | System for reducing distortion of signals transmitted over a bus | |
| US5590363A (en) | Circuit for detection of co-processor unit presence and for correction of its absence | |
| JPH03216725A (en) | Electronics | |
| US6425025B1 (en) | System and method for connecting electronic circuitry in a computer system | |
| CN223259862U (en) | Connection detection device and connection detection system | |
| JPS61248772A (en) | Electronic equipment with printer | |
| JPH05289790A (en) | Information processor | |
| JP2000163358A (en) | Usb connection determining method | |
| JPH02304662A (en) | Electronic apparatus | |
| JP3256256B2 (en) | Transmission monitoring device | |
| JPH05303540A (en) | Information processor | |
| JP3117600B2 (en) | Bus connection system | |
| JPH01219918A (en) | Electronic apparatus | |
| JP2606615B2 (en) | Computer reset control circuit and computer reset control method | |
| JPH0667755A (en) | Circuit board mounting/dismounting detecting system | |
| JPS62128642A (en) | Data transmission method | |
| KR100227617B1 (en) | Circuit for stabilizing data in printer | |
| JP2752273B2 (en) | Data processing device | |
| JPH10250195A (en) | Peripheral equipment | |
| JPS62128641A (en) | Data transmission method | |
| JP2533949B2 (en) | Spindle synchronization pulse control method for magnetic disk unit | |
| JPH04101167U (en) | Memory card insertion/removal detection circuit | |
| JPS6278616A (en) | Stand-by control system in cut-off mode of power supply |