JPS5924454B2 - light pen device - Google Patents
light pen deviceInfo
- Publication number
- JPS5924454B2 JPS5924454B2 JP56027734A JP2773481A JPS5924454B2 JP S5924454 B2 JPS5924454 B2 JP S5924454B2 JP 56027734 A JP56027734 A JP 56027734A JP 2773481 A JP2773481 A JP 2773481A JP S5924454 B2 JPS5924454 B2 JP S5924454B2
- Authority
- JP
- Japan
- Prior art keywords
- light pen
- circuit
- screen
- switch
- photoelectric conversion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/037—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor using the raster scan of a cathode-ray tube [CRT] for detecting the position of the member, e.g. light pens cooperating with CRT monitors
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Description
【発明の詳細な説明】
本発明は陰極裸管ディスプレイ装置などに用いられるラ
イトペン装置の改良に関する。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to improvements in light pen devices used in cathode bare tube display devices and the like.
周知のようにライトペン装置は陰極線管のラスタ光を検
知して、ペンの当てられた画面座標位置と対応する番地
のリフレシュメモリの記憶内容を読み出しあるいは書き
込み操作するために用いられる。As is well known, a light pen device is used to detect raster light from a cathode ray tube and read or write the contents stored in a refresh memory at an address corresponding to the screen coordinate position where the pen is applied.
本発明はこのようなライトペン装置が画面座標上の任意
の位置を連続して移動されることによV)画面上に任意
の線を描画すべく、上記リフレシュメモリの書き込みを
行なう場合の改良に関する。The present invention provides an improvement in the case where the above-mentioned refresh memory is written in order to draw an arbitrary line on the screen by continuously moving such a light pen device to an arbitrary position on the screen coordinates. Regarding.
一般にこのような書き込みを行なう場合、ライトペンは
画面上を水平(以下Xと称する)方向または垂直(以下
Yと称する)方向に連続して移動され、リフレシュメモ
リの書き込み番地はこの操作と対応して刻々と変化する
。したがつて、画面上に縦または横方向に線を描こうと
する場合であつても、手の細いゆれや、ライトペンの特
性によるワ位置検出誤差等によつてリフレシュメモリの
書き込み番地は変化し、直すぐな線を描くことは容易で
なかつた。本発明はかかる点に鑑みてなされたもので、
その目的とするところはライトペンを用いて陰極線管画
面上に手書きの線を画面XまたはY方向に描こうとする
場合、手の細かいゆれなどがあつても常に直線で描くこ
とのできるライトペン装置を提供することにある。Generally, when performing such writing, the light pen is continuously moved on the screen in the horizontal (hereinafter referred to as X) or vertical (hereinafter referred to as Y) direction, and the write address in the refresh memory corresponds to this operation. It changes from moment to moment. Therefore, even when attempting to draw a line vertically or horizontally on the screen, the write address in the refresh memory may change due to slight shaking of the hand or errors in detecting the position of the line due to the characteristics of the light pen. , it was not easy to draw straight lines. The present invention has been made in view of these points,
The purpose of this device is to use a light pen device that can always draw in a straight line even when there is slight shaking of the hand when trying to draw handwritten lines on a cathode ray tube screen in the X or Y direction of the screen using a light pen. Our goal is to provide the following.
以下、このような本発明を実施例図面に従つて説明する
。The present invention will be described below with reference to the drawings.
第1図は本発明実施例装置の要部を示す回路図で、画面
X方向あるいはY方向のいずれの方向に直線を描〈場合
であつても同一回路によサ実現可能なため、ここでは説
明の便宜上、画面X方向に直線を描く回路のみを挙げて
説明する。 第1図において、1は周知のライトペンで
、第1スイッチ、光電変換回路等を内蔵し、図示しない
陰極線管の画面に押し当てることにより第1スイツチを
動作させて光電変換回路等を作動し、これによつて検知
されたラスタ光を電気信号に変換し、第2図ハに示すよ
うなライトペンパルスLTPENを出力する。FIG. 1 is a circuit diagram showing the main parts of the device according to the embodiment of the present invention. For convenience of explanation, only the circuit that draws a straight line in the X direction of the screen will be described. In FIG. 1, reference numeral 1 denotes a well-known light pen, which has a built-in first switch, a photoelectric conversion circuit, etc., and operates the first switch by pressing it against the screen of a cathode ray tube (not shown), thereby activating the photoelectric conversion circuit, etc. , thereby converting the detected raster light into an electrical signal and outputting a light pen pulse LTPEN as shown in FIG. 2C.
2は周知のXアドレスカウンタで、図示しない画面X方
向の位置を示す計数値が水平同期信号HDを計数するこ
とによつて出力される。Reference numeral 2 denotes a well-known X address counter, which outputs a count value indicating the position in the X direction of the screen (not shown) by counting the horizontal synchronizing signal HD.
3はXラツチ回路で、後述のアンドゲート4から与えら
れるラツチパルスによつて、Xアドレスカウンタから出
力される計数値をラツチする。Reference numeral 3 denotes an X latch circuit which latches the count value output from the X address counter by a latch pulse applied from an AND gate 4, which will be described later.
このラツチ回路3でラツチされた計数値は、画面のX位
置座標を示すアドレスデータとして周知のリフレシユメ
モリ等に出力される。5は本発明の要部を示すゲート回
路で、Dタイプの第1,第2,第3フリツプフロツプ5
1,52,53とナンドゲート54とによつて構成され
る。The count value latched by the latch circuit 3 is output to a well-known refresh memory or the like as address data indicating the X position coordinate of the screen. Reference numeral 5 denotes a gate circuit showing the main part of the present invention, which includes first, second, and third flip-flops 5 of D type.
1, 52, 53 and a NAND gate 54.
また、SW2は手動の第2スイツチで、オンモードのと
きはXラツチ回路3から出力されるアドレスデータを固
定し、オフモードのときは画面1垂直走査期間すなわち
1フイールドごとにラツチデータを更新する。上述のゲ
ート回路5は第2図イに示すような垂直同期信号VDと
第2図口に示すようなペンスイツチパルスPENSWが
入力される。ペンスイツチパルスPENSWは、ライト
ペン1に内蔵される第1スイツチが作動し、光電変換回
路が動作してライトペンパルスLTPENを出力してい
る間すなわち、ライトペン1が画面に押し当てられてい
る間、第2図口に示すように・・イレベルを維持するも
ので、ライトペン1に内蔵する周知の回路によつて作成
され、端子55に入力される。なお、56は上述の垂直
同期信号が入力される端子であb1以下図面の記号並び
に各信号を示す記号に付したオーバーラインはローレベ
ルで有意であることを示す。以上のような構成の本発明
実施例装置は、ライトペン1が画面に押し当られること
により、第23図ハに示すようなライトペンパルスLT
PENがアンドゲート4を経てラツチ回路3に与えられ
、ラツチ回路3は画面水平の1走査ごとに計数値が更新
されるXアドレスカウンタ2の計数値を取込み、上述の
ライトペンパルスLTPENが与えられたときの計数値
をラツチして出力する。Further, SW2 is a manual second switch, which fixes the address data output from the X latch circuit 3 when in the on mode, and updates the latch data every vertical scanning period of the screen 1, that is, every field when in the off mode. The above-mentioned gate circuit 5 receives a vertical synchronizing signal VD as shown in FIG. 2A and a pen switch pulse PENSW as shown in FIG. The pen switch pulse PENSW is generated while the first switch built in the light pen 1 is activated and the photoelectric conversion circuit is activated to output the light pen pulse LTPEN, that is, when the light pen 1 is pressed against the screen. During this period, the level is maintained as shown in the opening of FIG. Note that 56 is a terminal to which the above-mentioned vertical synchronizing signal is input, and the symbols in the drawings below b1 and the overlines attached to the symbols indicating each signal indicate that they are significant at low level. The apparatus according to the embodiment of the present invention having the above-mentioned configuration generates a light pen pulse LT as shown in FIG. 23C when the light pen 1 is pressed against the screen.
PEN is applied to the latch circuit 3 via the AND gate 4, and the latch circuit 3 takes in the count value of the X address counter 2, whose count value is updated every horizontal scan of the screen, and the above-mentioned light pen pulse LTPEN is applied. Latch and output the count value when
このラツチ回路3の出力はリフレシユメモリのアドレス
データとしてまた、画面X方向の位置座標を示すデータ
として一般に使用される。これらはこの種装置における
周知のものなので詳細は省略する。次に本発明要部のゲ
ート回路5の動作について説明する。今、第2スイツチ
SW2が第1図のようにオフモードのとき、ナンドゲー
ト54の一方の入力端子は・・イレベルに維持される。
一方、第1フリツプフロツプ51は第2図口に示すよう
なペンスイツチパルスPENSWがデータ入力端子Dに
入力されると、垂直同期信号VDがクロツク入力端子C
Kに入力されているから、その出力Qはペンスイツチパ
ルスPENSWの立上つた後のVDで第2図二のように
反転する。この出力は第2フリツプフロツプ52のデー
タ入力端子Dに入力される。第2フリツプフロツプ52
のクロツク入力端子CKは第1フリツプフロツプ51と
同様にVDが与えられるから、その出力Qは第1フリツ
プフロツプ51がデータを取込むタイミングのVDから
1フイールド後のVDによつて、第2図ホに示すように
反転する。この出力は第3フリツプフロツプ53のクロ
ツク入力端子CKに入力される。第3フリツプフロツプ
53はハイレベルのペンスイツチパルスPENSWがク
リア入力端子CLRに与えられているから、その出力Q
は第2図へに示すようなローレベルの出力となV1これ
をナンドゲート54の他方の入力端子に与える。ナンド
ゲート54は第2スイツチSW2がオフモードであるか
ら、その出力はハイレベルとなシ、これを第1フリツプ
フロツプ51のクリア入力端子CLRに与える。その結
果、第1フリツプフロツプ51の出力Qははクリアされ
ることなく、第2図二の実線で示すように・・イレベル
を維持する。この出力は分岐されてアンドゲート4に与
えられ、アンドゲート4のゲートを開く。したがつて、
ライトペン1から各フイールドごとに出力される第2図
ハに示すライトペンパルスLTPENはアンドゲート4
を経てラツチ回路3に与えられる。このことは、すでに
述べたようにライトペン1が画面に押し当てられている
間、1垂直走査期いいかえれば毎フイールドごとにラツ
チ回路3のラツチ計数値は更新され、周知のこの種ライ
トペン装置と同等の働きとなる。したがつて、ライトペ
ン1を画面から離すと、ペンスイツチパルスPENSW
は第2図口に示すように立下るから、この時点直後のV
Dが第1フリツプフロツプ51のクロツク入力端子CK
に与えられるタイミングで、出力Qは第2図二の実線で
示すようにローレベルに反転する。The output of the latch circuit 3 is generally used as address data for the refresh memory and as data indicating the position coordinate in the X direction of the screen. Since these are well known in this type of device, details will be omitted. Next, the operation of the gate circuit 5, which is the main part of the present invention, will be explained. Now, when the second switch SW2 is in the off mode as shown in FIG. 1, one input terminal of the NAND gate 54 is maintained at the high level.
On the other hand, when the pen switch pulse PENSW shown at the beginning of FIG.
Since it is input to K, its output Q is inverted as shown in FIG. 2 at VD after the pen switch pulse PENSW rises. This output is input to the data input terminal D of the second flip-flop 52. Second flip-flop 52
Since the clock input terminal CK of the flip-flop 51 is supplied with VD in the same way as the first flip-flop 51, its output Q is determined by VD one field after the timing at which the first flip-flop 51 takes in data, as shown in FIG. Flip as shown. This output is input to the clock input terminal CK of the third flip-flop 53. Since the high-level pen switch pulse PENSW is applied to the clear input terminal CLR of the third flip-flop 53, its output Q
V1 is a low level output as shown in FIG. 2 and is applied to the other input terminal of the NAND gate 54. Since the second switch SW2 is in the off mode, the output of the NAND gate 54 is not at a high level and is applied to the clear input terminal CLR of the first flip-flop 51. As a result, the output Q of the first flip-flop 51 is not cleared and remains at the blank level as shown by the solid line in FIG. This output is branched and given to AND gate 4, which opens the gate. Therefore,
The light pen pulse LTPEN shown in FIG.
The signal is applied to the latch circuit 3 through the. This means that, as mentioned above, while the light pen 1 is pressed against the screen, the latch count value of the latch circuit 3 is updated for each vertical scanning period, in other words, for every field. It works the same way. Therefore, when the light pen 1 is removed from the screen, the pen switch pulse PENSW
falls as shown in the opening of Figure 2, so V immediately after this point
D is the clock input terminal CK of the first flip-flop 51
At the timing given to , the output Q is inverted to a low level as shown by the solid line in FIG.
第2フリツプフロツプ52は、この第1フリツプフロツ
プ51の出力Qを反転させたVDの次のVDが与えられ
ることによつて、その出力Qを反転する。一方、第3フ
リツプフロツプ53のクリア入力端子CLKにはペンス
イツチパルスPENSWが与えられているから、PEN
SWがローレベルに反転した時点でクリアされ、その出
力Qは第2図へに示すようにローレベルに反転する。こ
のとき、ナンドゲート54の出力は・・イレベルで出力
されるから、第1フリツプフロツブ51はクリアされず
、上述のようにペンスイツチパルスPENSWが立下つ
た直後に与えられるVDによつて、出力Qを反転するこ
ととなる。その結果、アンドゲート4はゲートを閉じる
。次に第2スイツチSW2がオンモードのときについて
説明する。The second flip-flop 52 inverts its output Q by being supplied with the next VD after the inverted output Q of the first flip-flop 51. On the other hand, since the pen switch pulse PENSW is applied to the clear input terminal CLK of the third flip-flop 53, PEN
It is cleared when SW is inverted to low level, and its output Q is inverted to low level as shown in FIG. At this time, since the output of the NAND gate 54 is output at the high level, the first flip-flop 51 is not cleared, and as mentioned above, the output Q is controlled by VD applied immediately after the pen switch pulse PENSW falls. It will be reversed. As a result, AND gate 4 closes the gate. Next, the case when the second switch SW2 is in the on mode will be explained.
このときのナンドゲート54の一方の入力端子はローレ
ベルに維持される。そして、ライトペンが画面に押し当
てられてペンスイツチパルスPENSWが端子55に与
えられると、各第1,第2,第3フリツプフロツプ51
,52,53はすでに述べてきたように動作するが、こ
のとき第3のフリツプフロツプ53の出力Qがローレベ
ルに反転することによつて、ナンドゲート54の出力は
ローレベルとなつて第1フリツプフロツプ51をクリア
する。したがつて、その出力Qは1フイールドの期間の
みハイレベルを維持し、アンドゲート4のゲートを開く
。その皓果、Xラツチ回路3はライトペン1から出力さ
れるライトペンパルスLTPENのうち、このゲートが
開かれている間に通過した1個のみが与えられ、ライ′
トペン1が画面に押し当てられ続けてもXラツチ回路で
ラツチした計数値は更新されない。At this time, one input terminal of the NAND gate 54 is maintained at a low level. When the light pen is pressed against the screen and a pen switch pulse PENSW is applied to the terminal 55, each of the first, second and third flip-flops 51
, 52, and 53 operate as described above. At this time, as the output Q of the third flip-flop 53 is inverted to low level, the output of the NAND gate 54 becomes low level and Clear. Therefore, the output Q remains at a high level only for one field period, and the AND gate 4 is opened. As a result, the X latch circuit 3 receives only one of the light pen pulses LTPEN output from the light pen 1 that passed while this gate was open, and the
Even if topen 1 continues to be pressed against the screen, the count value latched by the X latch circuit is not updated.
以上のようにして第2スイツチSW2をオンモードにす
ると、Xアドレスカウンタ2から出力される計数値はラ
イトペン1の第1スイツチ(図示せず)が作動したとき
の次のフイールドのライトペンパルスLTPENにより
、1回だけラツチ回路3によつてラツチされ、その後は
そのままの内容が保持されることとなる。When the second switch SW2 is set to the on mode as described above, the count value output from the X address counter 2 is the light pen pulse of the next field when the first switch (not shown) of the light pen 1 is activated. LTPEN causes the latch circuit 3 to latch it once, and after that, the contents are held as they are.
したがつて、このときライトペン1をY方向に移動させ
たならば、X位置座標は最初にライトペンの当てられた
位置に固定され、Y方向の位置座標のみが第1図に示す
回路と同等の図示しないもう一方の回路によつて更新さ
れる。その結果、このようなX並びにY方向のラツチ回
路出力に基ずいて、画面の表示絵素と対応するリフレシ
ユメモリの書き込み処理を行なえば、画面上には縦の直
線を描くことができる。Therefore, if the light pen 1 is moved in the Y direction at this time, the X position coordinate is initially fixed at the position where the light pen is applied, and only the Y direction position coordinate is changed from the circuit shown in FIG. It is updated by another equivalent circuit, not shown. As a result, a vertical straight line can be drawn on the screen by writing into the refresh memory corresponding to the picture element displayed on the screen based on the latch circuit outputs in the X and Y directions.
また、以上と全く同様にしてY方向の計数値を固定すれ
ば、ライトペンをX方向に移動したとき、横の直線を描
くことができる。Furthermore, if the count value in the Y direction is fixed in exactly the same way as above, when the light pen is moved in the X direction, a horizontal straight line can be drawn.
このようにして、本発明によればXまたはY位置座標の
一方を固定することによつて、画面上に固定されない方
向の直線を手ぶれなどを生じることなく描くことができ
るライトペン装置を提供するものである。In this way, the present invention provides a light pen device that can draw a straight line in a direction that is not fixed on the screen without causing camera shake by fixing either the X or Y position coordinates. It is something.
第1図は本発明の一実施例装置の要部を示す回路図、第
2図は第1図回路の要部の波形図である。
2・・・アドレスカウンタ、1・・・ライトペン(光電
変換回路、第1スイツチ)、3・・・ラツチ回路、5・
・・ゲート回路、4,SW2・・・第2スイツチ。FIG. 1 is a circuit diagram showing the main parts of a device according to an embodiment of the present invention, and FIG. 2 is a waveform diagram of the main parts of the circuit shown in FIG. 2... Address counter, 1... Light pen (photoelectric conversion circuit, first switch), 3... Latch circuit, 5...
...Gate circuit, 4, SW2...second switch.
Claims (1)
向の各アドレスデータをそれぞれ水平と垂直同期信号に
同期して書き換える一対のアドレスカウンタと、前記陰
極線管の画面上にライトペンが当てられることによつて
検知したラスタ走査光と対応したパルス信号を作成する
光電変換回路と、このパルス信号によつて前記アドレス
カウンタで遂次書き換えられる前記アドレスデータをラ
ッチするラッチ回路とを備えた陰極線管表示装置におい
て、前記光電変換回路を作動させる第1スイッチと、前
記光電変換回路が作動されている間、前記垂直同期信号
を取り込み、最初に取り込まれた垂直同期信号から次の
垂直同期信号に至る1フィールド期間に前記光電変換回
路の前記パルス信号のみを引き出すゲート回路と、この
ゲート回路で引き出された前記パルス信号と前記光電変
換回路のパルス信号とのいずれか一方を選択的に前記ラ
ッチ回路に与える第2スイッチとを設けてなるライトペ
ン装置。1. A pair of address counters that rewrite horizontal and vertical address data representing coordinate positions on the screen of the cathode ray tube in synchronization with horizontal and vertical synchronization signals, respectively, and a light pen that is applied to the screen of the cathode ray tube. a cathode ray tube display comprising: a photoelectric conversion circuit that creates a pulse signal corresponding to the raster scanning light detected by the camera; and a latch circuit that latches the address data that is successively rewritten by the address counter using the pulse signal. In the apparatus, a first switch that operates the photoelectric conversion circuit; and a first switch that captures the vertical synchronization signal while the photoelectric conversion circuit is operated, and converts the first captured vertical synchronization signal to the next vertical synchronization signal. a gate circuit that extracts only the pulse signal of the photoelectric conversion circuit during a field period; and a gate circuit that selectively supplies either the pulse signal extracted by the gate circuit or the pulse signal of the photoelectric conversion circuit to the latch circuit. A light pen device comprising a second switch.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56027734A JPS5924454B2 (en) | 1981-02-27 | 1981-02-27 | light pen device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP56027734A JPS5924454B2 (en) | 1981-02-27 | 1981-02-27 | light pen device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS57141739A JPS57141739A (en) | 1982-09-02 |
| JPS5924454B2 true JPS5924454B2 (en) | 1984-06-09 |
Family
ID=12229248
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP56027734A Expired JPS5924454B2 (en) | 1981-02-27 | 1981-02-27 | light pen device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS5924454B2 (en) |
-
1981
- 1981-02-27 JP JP56027734A patent/JPS5924454B2/en not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS57141739A (en) | 1982-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS62280799A (en) | Video interface method and device | |
| US4282550A (en) | Digital magnification system | |
| JPS5924454B2 (en) | light pen device | |
| JP2833024B2 (en) | Display screen synthesis device | |
| JPS59232390A (en) | Display | |
| SU1636839A1 (en) | Data input device | |
| SU1698890A1 (en) | Data input device | |
| JPS586153B2 (en) | Ultrasonic detection and display device | |
| JP2740364B2 (en) | Title image insertion device | |
| JPS6354880A (en) | Still image camera | |
| RU1783509C (en) | Device for information input | |
| KR920002518B1 (en) | Still image record and playback device | |
| JPS5911933B2 (en) | Method for detecting light pen pointing position in video display device | |
| SU1339625A1 (en) | Graphic information output device | |
| JP2870902B2 (en) | Drive pattern generator | |
| JP3517946B2 (en) | Memory device | |
| JPS6248433B2 (en) | ||
| JP3075425B2 (en) | Digital oscilloscope | |
| JPS59139776A (en) | Digital picture processor | |
| JPS6367083A (en) | Video compressing and displaying circuit | |
| KR970003177A (en) | Video processing unit | |
| JPH0473683A (en) | display memory circuit | |
| JPS6353755B2 (en) | ||
| JPH01103370A (en) | Field discrimination circuit | |
| JPH01166269A (en) | Image memory |