JPS6259328B2 - - Google Patents

Info

Publication number
JPS6259328B2
JPS6259328B2 JP58121100A JP12110083A JPS6259328B2 JP S6259328 B2 JPS6259328 B2 JP S6259328B2 JP 58121100 A JP58121100 A JP 58121100A JP 12110083 A JP12110083 A JP 12110083A JP S6259328 B2 JPS6259328 B2 JP S6259328B2
Authority
JP
Japan
Prior art keywords
latch circuit
output
prom
address
circuit
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
Application number
JP58121100A
Other languages
Japanese (ja)
Other versions
JPS6014318A (en
Inventor
Harunobu Kinoshita
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP58121100A priority Critical patent/JPS6014318A/en
Publication of JPS6014318A publication Critical patent/JPS6014318A/en
Publication of JPS6259328B2 publication Critical patent/JPS6259328B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】[Detailed description of the invention]

(利用分野) 本発明は、ワードプロセツサ、パソコン等で使
用されるポインテイング デバイスの位置検出回
路に関するものである。 (従来技術) 従来、ポインテイング デバイスの位置指示装
置として、特開昭51−83737号公報に示されてい
る様な、通称マウスと呼ばれるもの、あるいは船
等で利用されているトラツクボール等が、ワード
プロセツサ等に使用されている。 第1図は、従来の位置検出回路のブロツク図、
第2図は、その主要部の信号のタイムチヤートを
示す。 第1図において、1はラツチ回路である。ま
た、2はラツチ回路1の出力信号をデコードし、
アツプ(UP)信号またはダウン(DOWN)信号
をカウンタ3に出力する。カウンタ3はアツプ信
号またはダウン信号が入力してくると、1ずつカ
ウントをアツプまたはダウンする。ラツチ回路1
およびカウンタ3はクロツクに同期して動作し、
カウンタ3の出力は図示されていないCPUへ送
られる。 次に、第1図の従来例の動作を説明する。 ラツチ回路1に、第2図aに示されているよう
な順方向の信号XAおよびXB、または逆方向の信
号XA′およびXB′が入力してくると、ラツチ回路
1はクロツクでこれを取り込む。そして、その取
り込んだ信号をデコーダ2に出力する。この時の
信号の波形は第2図aまたはbのa1およびa3のよ
うになる。また、ラツチ回路1は前記信号a1およ
びa3を次のクロツクでサンプルして、デコーダ2
に出力する。この時の信号の波形は、同図aまた
はbのa2およびa4のようになる。 ここにデコーダ2は、第3図に示されているよ
うな回路で構成されている。したがつて、入力
a1,a2,a3,a4に(1、0、0、0)、(1、1、
1、0)、(0、1、1、1)および(0、0、
0、1)のパターンの信号が入力した時、アツプ
の信号を出力する。一方、入力a1,a2,a3,a4
(0、0、1、0)、(1、0、1、1)、(1、
1、0、1)および(0、1、0、0)のパター
ンの信号が入力すると、ダウンの信号を出力す
る。 再び第1図に戻つて説明する。デコーダ2か
ら、アツプ信号またはダウン信号が出力される
と、それに同期して、カウンタ3はインクリメン
トまたはデクリメントする。その時のタイミング
は第2図aおよびbに示されている通りである。 CPUは、通常、このカウンタ3のカウント値
を読み取り、現在の位置からの相対値でCRT上
に位置表示を行なつている。 なお、上記の説明は、進む距離は信号XA,XB
またはXA′,XB′の立上りと立下りの両方で計数
するようにしたが、XA,XB、またはXA′,
XB′の立上り又は立下りの計数で行なわれる例も
ある。また、上記の説明は、X方向のみについて
行なわれたが、Y方向にも全く同様の位置検出回
路が設けられることは当然である。 上記のことから明らかなように、従来の位置検
出回路は、デコーダ2に多くのゲートが必要であ
り、またカウンタが必要となるので、回路の素子
数が多く、構成が複雑になると共に、製造コスト
が高くなるという欠点があつた。 (目的) 本発明の目的は、上記した従来技術の欠点を改
良し、単純な構成で、かつ安価な位置検出回路を
提供することにある。 (概要) 前記の目的を達成するために、本発明は、位置
検出回路を、PROMとラツチ回路を用いて構成し
た点に特徴がある。 (実施例) 以下に、本発明を実施例によつて説明する。第
4図は本発明の一実施例のブロツク図を示す。図
において、1は第1図と同様のラツチ回路、4は
PROM(プログラマブル リード オンリ メモ
リ)、5はラツチ回路である。 本実施例においては、ラツチ回路1の出力a1
a4をPROM4が検出し、アツプの場合、ラツチ回
路5の内容5aがnの時、PROM4出力をn+1
として出力する。そうすると、次のクロツクでラ
ツチ回路5の内容がnからn+1と変化し、第1
図のカウンタ3と同一の機能となる。なお、ダウ
ンの場合も同様である。 次に、本実施例の動作をより詳細に説明する。
PROM4は、ラツチ回路1からの4ビツト入力
a1,a2,a3,a4と、ラツチ回路5の内容nとでア
ドレスを構成し、該アドレスに対応してデータを
保有するメモリである。そのアドレスとデータ
は、例えば下記のテーブルのようになつている。
(Field of Application) The present invention relates to a position detection circuit for pointing devices used in word processors, personal computers, and the like. (Prior Art) Conventionally, as a position indicating device for a pointing device, a device commonly called a mouse as shown in Japanese Patent Application Laid-Open No. 51-83737, or a trackball used on ships, etc. have been used. Used in word processors, etc. Figure 1 is a block diagram of a conventional position detection circuit.
FIG. 2 shows a time chart of the main part of the signal. In FIG. 1, 1 is a latch circuit. 2 decodes the output signal of latch circuit 1,
Outputs an UP signal or a DOWN signal to the counter 3. The counter 3 increments or decrements the count by one when an up signal or a down signal is input. Latch circuit 1
and counter 3 operate in synchronization with the clock,
The output of counter 3 is sent to a CPU (not shown). Next, the operation of the conventional example shown in FIG. 1 will be explained. When the forward direction signals XA and XB or the reverse direction signals XA' and XB' as shown in Figure 2a are input to the latch circuit 1, the latch circuit 1 receives these signals using the clock. . Then, the captured signal is output to the decoder 2. The waveforms of the signals at this time are as indicated by a 1 and a 3 in FIG. 2 a or b. Also, the latch circuit 1 samples the signals a 1 and a 3 at the next clock and sends them to the decoder 2.
Output to. The waveforms of the signals at this time are as shown in a 2 and a 4 in a or b of the figure. Here, the decoder 2 is constituted by a circuit as shown in FIG. Therefore, input
a 1 , a 2 , a 3 , a 4 (1, 0, 0, 0), (1, 1,
1, 0), (0, 1, 1, 1) and (0, 0,
When a pattern signal of 0, 1) is input, an UP signal is output. On the other hand, the inputs a 1 , a 2 , a 3 , a 4 are (0, 0, 1, 0), (1, 0, 1, 1), (1,
When signals with patterns of 1, 0, 1) and (0, 1, 0, 0) are input, a down signal is output. The explanation will be given by returning to FIG. 1 again. When the decoder 2 outputs an up signal or a down signal, the counter 3 increments or decrements in synchronization with it. The timing at that time is as shown in FIGS. 2a and 2b. The CPU usually reads the count value of this counter 3 and displays the position on the CRT as a relative value from the current position. In addition, in the above explanation, the distance traveled is based on signals XA and XB.
Or, I tried to count both the rising and falling of XA′, XB′, but if XA, XB, or
In some cases, this is done by counting the rise or fall of XB'. Further, although the above explanation was made only in the X direction, it is a matter of course that a completely similar position detection circuit is provided also in the Y direction. As is clear from the above, the conventional position detection circuit requires many gates and counters in the decoder 2, so the number of circuit elements is large, the configuration is complicated, and the manufacturing process is complicated. The disadvantage was that the cost was high. (Objective) An object of the present invention is to improve the above-mentioned drawbacks of the prior art and to provide a position detection circuit that has a simple configuration and is inexpensive. (Summary) In order to achieve the above object, the present invention is characterized in that a position detection circuit is configured using a PROM and a latch circuit. (Example) The present invention will be explained below using examples. FIG. 4 shows a block diagram of one embodiment of the present invention. In the figure, 1 is a latch circuit similar to that in Figure 1, and 4 is a latch circuit similar to that in Figure 1.
PROM (Programmable Read Only Memory), 5 is a latch circuit. In this embodiment, the output a 1 of the latch circuit 1 ~
When PROM4 detects a 4 and is up, when content 5a of latch circuit 5 is n, PROM4 output is set to n+1.
Output as . Then, at the next clock, the contents of the latch circuit 5 change from n to n+1, and the first
It has the same function as counter 3 in the figure. Note that the same applies to the case of down. Next, the operation of this embodiment will be explained in more detail.
PROM4 is a 4-bit input from latch circuit 1.
The address is composed of a 1 , a 2 , a 3 , a 4 and the content n of the latch circuit 5, and the memory stores data corresponding to the address. For example, the address and data are as shown in the table below.

【表】【table】

【表】 例えば、ラツチ回路1の出力信号a1,a2,a3
a4が(0、0、0、0)で、かつラツチ回路5の
内容nが0000であれば、これらによつて構成され
るアドレス(00000000)に、データ0000が格納さ
れている。また、a1,a2,a3,a4が(0、0、
0、0)で、かつラツチ回路5の内容nが0001で
あれば、これらで構成されるアドレス
(00000001)にデータ0001が格納されている。以
下同様に、アドレスの前半の4桁が(0000)であ
れば、後半のアドレスと同じ数がデータとして格
納されている。 次に、アドレスの前半の4桁が(0001)、
(0111)、(1000)または(1110)であれば、後半
の4桁のアドレスに+1を加えた数がデータとし
て格納されている。一方、アドレスの前半の4桁
が(0010)、(0100)、(1011)または(1101)であ
れば、後半の4桁のアドレスから1を減じた数が
データとして格納されている。 なお、アドレスの前半の4桁が上記以外のとき
には、後半の4桁と同じ数がデータとして格納さ
れている。 したがつて、今ラツチ回路5の内容nが0001で
あり、ラツチ回路1に順方向の信号XA,XBが入
力しており、その出力が例えば第2図aに示され
ているようなものであるとすると、PROM4はそ
のアドレスが(10000001)になつた時、0010のデ
ータをラツチ回路5に出力する。ラツチ回路5は
次のクロツクでこのデータをラツチする。次い
で、PROM4は(11100010)のアドレスが指定さ
れるまでは、データ0010を出力し続け、該アドレ
ス(11100010)が指定されると、0011のデータを
ラツチ回路5に出力する。このデータは、次のク
ロツクでラツチ回路5に保持される。以下同様
に、ラツチ回路1に順方向の信号XA,XBが入力
が続けると、PROM4がアドレス(01110011)、
(00010100)、(10000101)、………になつた時、
PROM4はそれぞれ0100、0101、0110、……のデ
ータをラツチ回路5へ出力する。 一方、ラツチ回路1に逆方向の信号XA′,
XB′が、第2図bに示されているような波形で入
力してきたとすると、PROM4のアドレスの前半
の4桁に、(0010)、(1011)、(1101)、(0100)が
現われる毎に、PROM4の出力は1ずつ減じられ
る。 以上のように、本実施例によれば、従来の位置
検出回路と同等の結果が得られる回路を、デコー
ダとカウンタを用いずにPROMとラツチ回路を用
いて構成することができる。 (効果) 以上の説明から明らかなように、本発明によれ
ば、つぎのような効果が達成される。 (1) PROMとラツチ回路を用いて位置検出回路を
構成できるので、製造コストが安価にできる。 (2) 従来の回路が有していた多くのゲートをもつ
デコーダやカウンタが不必要になるので、回路
規模が小さく、かつ単純な回路になる。
[Table] For example, the output signals of latch circuit 1 a 1 , a 2 , a 3 ,
If a4 is (0, 0, 0, 0) and the content n of the latch circuit 5 is 0000, data 0000 is stored at the address (00000000) formed by these. Also, a 1 , a 2 , a 3 , a 4 are (0, 0,
0, 0) and the content n of the latch circuit 5 is 0001, data 0001 is stored at the address (00000001) formed by these. Similarly, if the first four digits of the address are (0000), the same number as the second half of the address is stored as data. Next, the first four digits of the address are (0001),
If it is (0111), (1000) or (1110), the number obtained by adding +1 to the last four-digit address is stored as data. On the other hand, if the first four digits of the address are (0010), (0100), (1011), or (1101), the number obtained by subtracting 1 from the last four digits of the address is stored as data. Note that when the first four digits of the address are other than the above, the same number as the last four digits is stored as data. Therefore, the content n of the latch circuit 5 is now 0001, the forward direction signals XA and XB are input to the latch circuit 1, and the output is as shown in FIG. 2a, for example. If there is, the PROM 4 outputs data 0010 to the latch circuit 5 when the address becomes (10000001). Latch circuit 5 latches this data on the next clock. Next, the PROM 4 continues to output data 0010 until the address (11100010) is designated, and when the address (11100010) is designated, it outputs the data 0011 to the latch circuit 5. This data is held in latch circuit 5 at the next clock. Similarly, when the forward direction signals XA and XB continue to be input to the latch circuit 1, the PROM 4 receives the address (01110011)
When it becomes (00010100), (10000101),...
The PROM 4 outputs data 0100, 0101, 0110, . . . to the latch circuit 5, respectively. On the other hand, the latch circuit 1 receives a signal XA' in the opposite direction,
If XB' is input with the waveform shown in Figure 2b, each time (0010), (1011), (1101), and (0100) appear in the first four digits of the PROM4 address. Then, the output of PROM4 is decremented by 1. As described above, according to this embodiment, a circuit that can obtain the same results as a conventional position detection circuit can be constructed using a PROM and a latch circuit without using a decoder and a counter. (Effects) As is clear from the above description, according to the present invention, the following effects are achieved. (1) Since the position detection circuit can be constructed using PROM and latch circuits, manufacturing costs can be reduced. (2) Since the decoders and counters with many gates that conventional circuits have are no longer necessary, the circuit scale is small and simple.

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

第1図は従来の位置検出回路のブロツク図、第
2図は第1図の主要部の信号のタイムチヤート、
第3図は第1図のデコーダの一具体例を示す回路
図、第4図は本発明の一実施例のブロツク図を示
す。 1,5……ラツチ回路、4……PROM。
Figure 1 is a block diagram of a conventional position detection circuit, Figure 2 is a time chart of the main parts of the signals in Figure 1,
FIG. 3 is a circuit diagram showing a specific example of the decoder shown in FIG. 1, and FIG. 4 is a block diagram of an embodiment of the present invention. 1, 5...Latch circuit, 4...PROM.

Claims (1)

【特許請求の範囲】[Claims] 1 位置表示を示す信号の状態を第1のクロツク
に同期して格納し、該格納した結果を第2の時刻
のクロツクに同期してサンプルし、これを再び格
納する格納手段、前記格納手段の結果が供給され
るPROM(プログラマブル リード オンリ メ
モリ)、前記PROMの出力をラツチすると共に、
その出力を前記PROMに供給するラツチ回路を具
備し、前記PROMは前記格納手段の出力にもとず
き、前記ラツチ回路から供給されるデータに、予
定値を加算又は減算した出力を得るようにしたこ
とを特徴とする位置検出回路。
1. A storage means for storing the state of a signal indicating a position indication in synchronization with a first clock, sampling the stored result in synchronization with a second time clock, and storing it again; A PROM (Programmable Read Only Memory) to which the results are supplied, latching the output of said PROM and
A latch circuit is provided for supplying the output to the PROM, and the PROM is configured to obtain an output by adding or subtracting a predetermined value to the data supplied from the latch circuit based on the output of the storage means. A position detection circuit characterized by:
JP58121100A 1983-07-05 1983-07-05 Position detecting circuit Granted JPS6014318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58121100A JPS6014318A (en) 1983-07-05 1983-07-05 Position detecting circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58121100A JPS6014318A (en) 1983-07-05 1983-07-05 Position detecting circuit

Publications (2)

Publication Number Publication Date
JPS6014318A JPS6014318A (en) 1985-01-24
JPS6259328B2 true JPS6259328B2 (en) 1987-12-10

Family

ID=14802871

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58121100A Granted JPS6014318A (en) 1983-07-05 1983-07-05 Position detecting circuit

Country Status (1)

Country Link
JP (1) JPS6014318A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62157929A (en) * 1985-12-28 1987-07-13 Fujitsu Ltd Mouse controller
JPH0222722A (en) * 1988-07-11 1990-01-25 Fujitsu Ltd Mouse
JP4894497B2 (en) * 2006-12-19 2012-03-14 トヨタ自動車株式会社 Bearing and bearing lubrication structure

Also Published As

Publication number Publication date
JPS6014318A (en) 1985-01-24

Similar Documents

Publication Publication Date Title
US5079693A (en) Bidirectional FIFO buffer having reread and rewrite means
JPS6259328B2 (en)
KR940009099B1 (en) Microprocessor
US4220924A (en) Digital phase decoding technique for quadrature phased signals
JPH043132B2 (en)
JPS5570997A (en) Error bit check system for read only memory
JP2806849B2 (en) Memory address controller
KR950000399Y1 (en) Dual port memory access control circuit of multiprocessor system
KR910009296B1 (en) Sequential access memory
JPS6241438Y2 (en)
KR900004014Y1 (en) Dram refresh circuit
JPS6033468Y2 (en) Digital signal input circuit
JP3212332B2 (en) Multi-axis position detector
JP2000132451A (en) Memory control circuit
JPS63259476A (en) Jitter measuring circuit
KR0174512B1 (en) Refresh Timing Generation Circuit
JPH0474736B2 (en)
JP2709201B2 (en) Microcomputer
JP3206010B2 (en) Time stamp circuit
JPH0419894A (en) Elastic store circuit
JPS60173794A (en) Refresh system of memory
JPH05119066A (en) Trigger circuit
JPS61139832A (en) Random data generating device
KR910001541A (en) Error bit detection and correction circuit
JPS6153736B2 (en)