JPH0434685B2 - - Google Patents
Info
- Publication number
- JPH0434685B2 JPH0434685B2 JP58203246A JP20324683A JPH0434685B2 JP H0434685 B2 JPH0434685 B2 JP H0434685B2 JP 58203246 A JP58203246 A JP 58203246A JP 20324683 A JP20324683 A JP 20324683A JP H0434685 B2 JPH0434685 B2 JP H0434685B2
- Authority
- JP
- Japan
- Prior art keywords
- pulse
- signal
- flip
- pulse signal
- phase pulse
- 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 - Lifetime
Links
Classifications
-
- H—ELECTRICITY
- H03—ELECTRONIC CIRCUITRY
- H03K—PULSE TECHNIQUE
- H03K3/00—Circuits for generating electric pulses; Monostable, bistable or multistable circuits
- H03K3/78—Generating a single train of pulses having a predetermined pattern, e.g. a predetermined number
Landscapes
- Transmission And Conversion Of Sensor Element Output (AREA)
- Manipulation Of Pulses (AREA)
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、NC工作機等の位置検出等に用いら
れるパルスジエネレータをはじめとする種々の検
出器の出力パルスを処理する回路、詳しくはある
種のパルスパターンを数種のパルスパターンに変
換する回路に関するものである。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a circuit for processing output pulses of various detectors including pulse generators used for position detection of NC machine tools, etc. This invention relates to a circuit that converts a certain type of pulse pattern into several types of pulse patterns.
かかる回路の従来例を第1図に示す。 A conventional example of such a circuit is shown in FIG.
第1図において1はマルチプライヤー(例えば
LS153)、2はDフリツプフロツプ(例えば
LS377)であり、パルス入力X,Yをモードセレ
クト信号S1,S0で指定された形式に従つて変換
し、UP,DOWN信号を出力するよう構成されて
いる。 In Figure 1, 1 is a multiplier (e.g.
LS153), 2 is a D flip-flop (e.g.
LS377), and is configured to convert pulse inputs X and Y according to the format specified by mode select signals S 1 and S 0 and output UP and DOWN signals.
第2図に、その変換されるようすを示す。 Figure 2 shows how it is converted.
例えば、(ア)に示すパルスパターンを入力する場
合、モードセレクト信号S1,S0をそれぞれ(1,
1),(1,0),(0,0)に指定した(イ),(ウ),
(エ)
に示すパルスパターンに変換される。 For example, when inputting the pulse pattern shown in (a), mode select signals S 1 and S 0 are set to (1,
1), (1,0), (0,0) specified (a), (c),
(workman)
It is converted into the pulse pattern shown in .
また、(オ)に示すパルスパターンを入力する場合
は、モードセレクト信号S1,S0を(0,1)に指
定して、(カ)に示すパルスパターンに変換される。 Furthermore, when inputting the pulse pattern shown in (E), the mode select signals S 1 and S 0 are designated as (0, 1), and the pulse pattern is converted to the pulse pattern shown in (F).
ところで、(ア)はインクリメンタル式ロータリー
エンコーダの出力パルスの例であり、2相のパル
スの位相差で、その回転方向を検知するものであ
る。 By the way, (A) is an example of an output pulse of an incremental rotary encoder, and the rotation direction is detected by the phase difference between the two-phase pulses.
(オ)は、磁気式変位検出器の出力パルスの例であ
り、移動方向によつて、どちらかのパルスのみが
所定の移動量ごとに“Low”になるものである。
すなわち、第1図に示した従来回路は(ア)及び(オ)の
パルスパターンをUP,DOWN信号に変換する機
能を有している。 (E) is an example of the output pulse of the magnetic displacement detector, and depending on the direction of movement, only one of the pulses becomes "Low" for each predetermined amount of movement.
That is, the conventional circuit shown in FIG. 1 has the function of converting the pulse patterns (A) and (E) into UP and DOWN signals.
ところが、パルスパターンとしては、ほかに第
3図の(キ)に示すような、回転方向に関係なく所定
の移動量ごとにイネーブル信号が“Low”にな
り、移動方向は、アツプ/ダウン信号(UP/
DOWN)の“High”又は“Low”によつて検知
する形式のものもあり、これに対応できる回路が
望まれるところである。 However, as for the pulse pattern, as shown in Fig. 3 (g), the enable signal becomes "Low" for each predetermined amount of movement regardless of the direction of rotation, and the direction of movement is determined by the up/down signal ( UP/
There is also a type of detection based on "High" or "Low" of DOWN), and a circuit that can handle this is desired.
第1図に示した従来回路では、前記(キ)に示す出
力を得ることは不可能であり、仮にNANDゲー
トその他を付加して実現しようとすれば、部品点
数が大幅に増加してしまい、実用性に欠けるとい
う欠点がある。 With the conventional circuit shown in Fig. 1, it is impossible to obtain the output shown in (g) above, and if you try to achieve it by adding a NAND gate or something else, the number of parts will increase significantly. The drawback is that it lacks practicality.
本発明は、上記欠点を解消することを目的とし
てなされたもので、部品点数を従来回路より減少
させたうえで、従来機能を満足し、かつ前記(キ)等
のパルスパターンを出力できるパルス処理回路を
提供するものである。
The present invention has been made with the aim of eliminating the above-mentioned drawbacks, and is capable of processing pulses that can reduce the number of parts compared to conventional circuits, satisfy the conventional functions, and output pulse patterns such as (g) above. It provides a circuit.
本発明の要旨となるところは、本回路をDフリ
ツプフロツプとROMのみで構成し、本回路に入
力される検出器の出力を前記Dフリツプフロツプ
で前回値を1クロツク保持して、その検出器出力
の前回値と今回値及び、モードセレクト信号とで
アドレス信号を合成し、そのアドレス信号を
ROMに入力することにより、あらかじめROM
に記憶させておいたデータを所定の出力信号とし
て読み出すところにある。
The gist of the present invention is that this circuit is configured only with a D flip-flop and a ROM, and the output of the detector input to the circuit is held at the previous value for one clock by the D flip-flop. An address signal is synthesized from the previous value, current value, and mode select signal, and the address signal is
By inputting the ROM into the ROM,
The data stored in the memory is read out as a predetermined output signal.
本発明の具体的実施例を第4図に示して説明す
る。
A specific embodiment of the present invention will be described with reference to FIG.
3はバイポーラROMであり、256W×4Bのよ
うな小さなROMで良い。 3 is a bipolar ROM, and a small ROM such as 256W x 4B is sufficient.
2は、Dフリツプフロツプである。X,Yは各
種パターンのパルス入力であり、S0〜S3はモード
セレクト信号である。セレクト信号はそのまま、
X,YはDフリツプフロツプ2で1回遅らせX′,
Y′とし、それを再度Dフリツプフロツプ2で1
回遅らせX″,Y″としてROM3に入力される。 2 is a D flip-flop. X, Y are pulse inputs of various patterns, and S0 to S3 are mode select signals. The select signal remains as is.
X, Y are delayed once by D flip-flop 2,
Y', and set it again to 1 with D flip-flop 2.
It is inputted into ROM3 as time delay X'', Y''.
つまり(Y″,X″,Y′,X′,S0,S1,S2,S3)
の8ビツト信号がROM3のアドレスA0〜A7信号
となる。 That is (Y″, X″, Y′, X′, S 0 , S 1 , S 2 , S 3 )
The 8-bit signal becomes the address A 0 to A 7 signal of the ROM3.
さてここでは、第3図の(ア)に示したパルスパタ
ーンを処理する場合を第5図に示して説明する。 Now, the case where the pulse pattern shown in FIG. 3(A) is processed will be described with reference to FIG. 5.
入力される2相パルスはDフリツプフロツプに
よつて1回(1クロツクパルスCP)遅れて、X′,
Y′に示す波形になつたものとする。すると、X″,
Y″はさらに1回遅れて図示するような波形にな
る。 The input two-phase pulse is delayed once (one clock pulse CP) by the D flip-flop, and
Assume that the waveform becomes as shown in Y′. Then, X″,
Y″ is delayed one more time and takes on the waveform shown in the figure.
このときの所定のセレクト信号S0〜S3は、説明
を簡単にするため、(0,0,0,0)とする。 The predetermined select signals S 0 to S 3 at this time are assumed to be (0, 0, 0, 0) to simplify the explanation.
すると、ROM3に入力されるアドレス信号A0
〜A7は、第5図に示すように“0H”,“0H”,…
…、“8H”,“AH”,……となる。 Then, the address signal A 0 input to ROM3
~ A7 is "0H", "0H",... as shown in Figure 5.
..., "8H", "AH", ....
ROM3はそれぞれのアドレスに記憶されてい
るデータをアクセスして読み出すことになるが、
このときあらかじめアドレス“0H”にはデータ
“4H”、アドレス“8H”にはデータ“AH”、アド
レス“AH”にはデータ“4H”(以下略)をとい
うふうに記憶させておけば、第5図に示すような
出力信号D0〜D3が得られる。 ROM3 will access and read the data stored at each address,
At this time, if you store data "4H" in address "0H", data "AH" in address "8H", and data "4H" (hereinafter omitted) in address "AH" in advance, the Output signals D 0 to D 3 as shown in FIG. 5 are obtained.
これはとりもなおさず、前述の(イ)や(キ)に示した
パルスパターンとなる。 This results in the pulse patterns shown in (a) and (g) above.
このときのアドレスとデータの関係を状態図と
して第6図に示す。二重丸は通常の所であり、丸
は入力パルスが立ち上がる所であり、丸内の数字
がアドレス、丸外の数字がデータである。実線矢
印が正転方向、点線矢印が逆転方向を示す。 The relationship between addresses and data at this time is shown in FIG. 6 as a state diagram. The double circle is the usual place, the circle is the place where the input pulse rises, the number inside the circle is the address, and the number outside the circle is the data. The solid line arrow indicates the forward direction, and the dotted line arrow indicates the reverse direction.
前述したようにアドレスが00H→08H→0AH→
……と変化すれば、データが4H→AH→4H→…
…となることがわかる。 As mentioned above, the address is 00H→08H→0AH→
If it changes like this, the data becomes 4H→AH→4H→…
It turns out that...
以上より、ROM3にあらかじめ書き込んでお
くデータを変えれば、種々の出力を得ることがで
きることは明らかであろう。 From the above, it is clear that various outputs can be obtained by changing the data written in the ROM 3 in advance.
例えば、第2図の(エ)に示したもののように(イ)の
出力の4分1の出力を得ようとすれば、正転に関
しては第6図のアドレス,,を4Hにすれ
ばよい。すなわち、モードセレクト信号S3〜S0を
例えば(1,0,0,0)とすれば、アドレス
80H,88A,8AH……に対応するデータを書き込
んでおけば良いのである。 For example, if you want to obtain an output that is 1/4 of the output in (A), as shown in (D) in Figure 2, you can set the address ,, in Figure 6 to 4H for forward rotation. . That is, if the mode select signals S 3 to S 0 are (1, 0, 0, 0), the address
All you have to do is write the data corresponding to 80H, 88A, 8AH...
つまり、アドレス信号の上位4桁はモードセレ
クト信号で指定されるので、(0,0,0,0)
から(1,1,1,1)まで、7種のデータ群を
出力できることになる。 In other words, the upper four digits of the address signal are specified by the mode select signal, so (0, 0, 0, 0)
This means that seven types of data groups can be output from (1, 1, 1, 1).
よつて本回路は、次の変換が可能である。 Therefore, this circuit can perform the following conversions.
() (A/B2相)→(UP,DOWN)
() (A/B2相)→(UP/DOWN,E)
() (UP,DOWN)→(UP/DOWN,
E)
() (UP/DOWN,E)→(UP,
DOWN)
さらに、現在知られていないパルスパターンも
出力可能である。() (A/B2 phase) → (UP, DOWN) () (A/B2 phase) → (UP/DOWN, E) () (UP, DOWN) → (UP/DOWN,
E) () (UP/DOWN, E) → (UP,
DOWN) Furthermore, it is also possible to output pulse patterns that are currently unknown.
以上述べたように、本発明によれば、きわめて
少ない部品点数で、ある種のパルスパターンを数
種のパルスパターンに変換できるので、多機能な
パルス処理回路をコンパクトに実現できる。
As described above, according to the present invention, one type of pulse pattern can be converted into several types of pulse patterns with an extremely small number of parts, so that a multifunctional pulse processing circuit can be realized in a compact manner.
第1図は、従来例、第2図は従来例の入出力パ
ルス例、第3図は従来のパルスパターン、第4図
は本発明の具体的実施例、第5図は本発明の入出
力パルス例、第6図は本発明を説明する状態図で
ある。
1:マルチプライヤー、2:Dフリツプフロツ
プ、3:パイポーラROM。
Fig. 1 shows a conventional example, Fig. 2 shows an example of input/output pulses in the conventional example, Fig. 3 shows a conventional pulse pattern, Fig. 4 shows a specific embodiment of the present invention, and Fig. 5 shows an input/output pulse of the present invention. Pulse Example, FIG. 6 is a state diagram illustrating the present invention. 1: Multiplier, 2: D flip-flop, 3: Bipolar ROM.
Claims (1)
を予め設定した複数の他の形式のパルスパターン
のうちの指定する一つの形式に変換するパルス処
理回路であつて、 DフリツプフロツプとROMを備え、前記パル
スジエネレータの2相パルス信号を前記Dフリツ
プフロツプに入力して1クロツク遅れの前記2相
パルス信号を得るとともに、その1クロツク遅れ
の前記2相パルス信号を再度前記Dフリツプフロ
ツプの他端子に入力し、2クロツク遅れの前記2
相パルス信号を得て、前記1クロツク遅れの前記
2相パルス信号、前記2クロツク遅れの前記2相
パルス信号、及び変換形式を指定して入力するモ
ードセレクト信号とでアドレス信号を合成し、そ
のアドレス信号を前記ROMに入力することによ
り、あらかじめ前記ROMに書き込んでおいた所
定のデータを前記アドレス信号に従つて読み出す
ことにより、前記パルスジエネレータの2相パル
ス信号を他の形式のパルス信号に変換することを
特徴とするパルス処理回路。[Claims] 1. A pulse processing circuit that converts a two-phase pulse output from a pulse generator into one of a plurality of preset pulse patterns of other formats, comprising: a D flip-flop; The circuit includes a ROM, inputs the two-phase pulse signal of the pulse generator to the D flip-flop to obtain the two-phase pulse signal delayed by one clock, and inputs the two-phase pulse signal delayed by one clock to the D flip-flop again. input to other terminals, and the above 2 clocks are delayed by 2 clocks.
Obtain a phase pulse signal, synthesize an address signal with the two-phase pulse signal delayed by one clock, the two-phase pulse signal delayed by two clocks, and a mode select signal input by specifying a conversion format. By inputting an address signal to the ROM, predetermined data written in the ROM in advance is read out according to the address signal, thereby converting the two-phase pulse signal of the pulse generator into another format of pulse signal. A pulse processing circuit characterized by converting.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58203246A JPS6094526A (en) | 1983-10-28 | 1983-10-28 | Pulse processing circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58203246A JPS6094526A (en) | 1983-10-28 | 1983-10-28 | Pulse processing circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS6094526A JPS6094526A (en) | 1985-05-27 |
| JPH0434685B2 true JPH0434685B2 (en) | 1992-06-08 |
Family
ID=16470851
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58203246A Granted JPS6094526A (en) | 1983-10-28 | 1983-10-28 | Pulse processing circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6094526A (en) |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5643827A (en) * | 1979-09-17 | 1981-04-22 | Matsushita Electric Ind Co Ltd | Pulse detecting circuit |
-
1983
- 1983-10-28 JP JP58203246A patent/JPS6094526A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6094526A (en) | 1985-05-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4887084A (en) | Priority encoder | |
| US4413350A (en) | Programmable clock rate generator | |
| US4061909A (en) | Variable waveform synthesizer using digital circuitry | |
| GB2159677A (en) | Distorted waveform signal generator | |
| JPH0434685B2 (en) | ||
| US4500961A (en) | Page mode memory system | |
| EP0858163B1 (en) | Pulse width modulation operation circuit | |
| US5122980A (en) | Encoder interpolator circuit | |
| JPH0234613Y2 (en) | ||
| SU1607071A1 (en) | Device for controlling stepping motor | |
| US4683545A (en) | Speed determining process and a device for implementing same | |
| JPS62257065A (en) | Encoder | |
| SU1372615A1 (en) | Frequency divider with variable fractional count-down ratio | |
| SU1335968A1 (en) | Signal generator | |
| JP2707759B2 (en) | Input signal change detection circuit | |
| JPH0650254B2 (en) | Measuring device and servo control device using the measuring device | |
| JPH0670639B2 (en) | Directional Discrimination Circuit for Polyphase Square Wave | |
| JPH0474736B2 (en) | ||
| SU1319024A1 (en) | Device for determining argument of vector | |
| KR880001218B1 (en) | Auxiliary memory device | |
| SU995312A1 (en) | Complex function forming device | |
| JPH0214617A (en) | Counter device | |
| JP4005241B2 (en) | Position detection device | |
| SU1239833A1 (en) | Synthesizer of frequency-modulated signals | |
| JPH01138464A (en) | Rotation information output device |