JPS6019594B2 - encoder - Google Patents

encoder

Info

Publication number
JPS6019594B2
JPS6019594B2 JP53092171A JP9217178A JPS6019594B2 JP S6019594 B2 JPS6019594 B2 JP S6019594B2 JP 53092171 A JP53092171 A JP 53092171A JP 9217178 A JP9217178 A JP 9217178A JP S6019594 B2 JPS6019594 B2 JP S6019594B2
Authority
JP
Japan
Prior art keywords
output
terminals
input terminals
circuit
supplied
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
JP53092171A
Other languages
Japanese (ja)
Other versions
JPS5520515A (en
Inventor
洋 安田
義雄 刑部
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP53092171A priority Critical patent/JPS6019594B2/en
Publication of JPS5520515A publication Critical patent/JPS5520515A/en
Publication of JPS6019594B2 publication Critical patent/JPS6019594B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Static Random-Access Memory (AREA)
  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 本発明は複数の入力端子と、この入力端子の数より少な
い複数の出力端子とを有し、複数の入力端子のうちの何
れの1個の入力端子に信号が供給されたかに応じて複数
の出力端子にその出力端子の数のビット数の2進符号化
信号が出力されるようにしたェンコーダの改良に係わる
Detailed Description of the Invention The present invention has a plurality of input terminals and a plurality of output terminals smaller than the number of input terminals, and a signal is supplied to any one of the plurality of input terminals. The present invention relates to an improvement of an encoder in which a binary encoded signal having the number of bits corresponding to the number of output terminals is outputted to a plurality of output terminals according to the number of output terminals.

先ず、第1図を参照して従来の斯種ェンコーダを設明す
る。
First, a conventional encoder of this type will be explained with reference to FIG.

第1図に於いてA,〜A8は8個の入力端子であって、
同時にこれらは切換スイッチSWの固定接点となり、そ
の可動接点Bから直流電源Eよりの直流電圧が信号とし
てこれら入力端子A,〜A8の何れか一つに選択的に供
給され、これら入力端子A,〜A8が4ビットのバイナ
リェンコーダ1に供給されて、その出力端子C,〜C4
に4ビットの2進符号化信号が出力されるように成され
ている。そして、この4ビットの2進符号化信号がメモ
リ等のアドレスを有する回路2にアドレス信号として供
給される。第1図に於いて、各出力端子C,〜C4の各
出力信号をS,〜S4とし、切換スイッチSWのスイッ
チポジションをA,〜A8とし、それに対応する4ビッ
トの2進符号化信号を夫々1,〜18とすると、これら
各スイッチポジションに応じた2進符号化信号1,〜い
ま第2図の真理値表にて示される如く成る。
In FIG. 1, A, ~A8 are eight input terminals,
At the same time, these become the fixed contacts of the changeover switch SW, and from the movable contact B, the DC voltage from the DC power source E is selectively supplied as a signal to any one of these input terminals A, ~A8, and these input terminals A, ~A8 is supplied to a 4-bit binary encoder 1, and its output terminals C, ~C4
A 4-bit binary encoded signal is output at each time. This 4-bit binary encoded signal is then supplied as an address signal to a circuit 2 having an address such as a memory. In Fig. 1, the output signals of the output terminals C, ~C4 are designated as S, ~S4, the switch positions of the changeover switch SW are designated as A, ~A8, and the corresponding 4-bit binary encoded signals are 1 and 18 respectively, the binary encoded signal 1 corresponding to each of these switch positions will be as shown in the truth table of FIG.

しかしながら、このようなバイナリヱンコーダはその回
路が複雑となり高価であるという欠点がある。
However, such a binary encoder has the disadvantage that its circuit is complicated and expensive.

斯る点に鑑み、本発明は回路が複雑で高価なバィナリヱ
ンコーダを使用せずして、回路が簡単となって値段の安
くなる斯種ェンコーダを提案せんとするものである。本
発明はm個の入力端子A,,A2・・・・・・、Amと
、n個(苦≦n<m)の出力端子C・,C2‐‐‐‐‐
‐、Cnとを有し、m個の出力端子A,,A2・・・・
・・、Amのうちの何れの1個の入力端子に信号が供給
されたかに応じてn個の出力端子C,,C2・・・・・
・、Cnにnビットの2進符号化信号が出力されるよう
にしたェンコーダに於いて、m個の入力端子のうちn個
の入力端子A,,A2・・・・・・、Anの入力を夫々
n個の出力端子C,,C2・・・・・・、Cnに供給し
、m個の入力端子A,,ん・・・・・・、Anのうち(
m−n)個の入力端子An十・、An+2、……、Am
の入力を全加算器に供給してnビットの所定2進符号化
信号と加算した後、n個の出力端子C,,C2・・・・
・・、Cnに供給するようにするものである。
In view of these points, the present invention aims to propose an encoder of this type which has a simple circuit and is inexpensive, without using a binary encoder which has a complicated circuit and is expensive. The present invention has m input terminals A,, A2..., Am and n output terminals C., C2 (n<n<m).
-, Cn, and m output terminals A,, A2...
. . . n output terminals C, , C2 . . . depending on which one input terminal of Am is supplied with the signal.
・In an encoder that outputs an n-bit binary encoded signal to Cn, the inputs of n input terminals A,, A2, . . ., An out of m input terminals are are supplied to n output terminals C,, C2..., Cn, respectively, and among m input terminals A,,..., An, (
m-n) input terminals An1, An+2, ..., Am
After supplying the input to a full adder and adding it with a predetermined n-bit binary encoded signal, n output terminals C,, C2, . . .
..., Cn.

以下に図面を参照して本発明の実施例を説明する。Embodiments of the present invention will be described below with reference to the drawings.

第3図は本発明の実施例を全体として示したZものであ
って、A,〜A8は8個の入力端子である。これら入力
端子A,〜A8は同時に切換スイッチSWの固定接点と
なり、之等にその可動接点Bから直流電源Eよりの直流
電圧が信号として選択的に供給されるようになされてい
る。C,〜C4はZ4個の出力端子であって、これら出
力端子C,〜C4はメモリ等のアドレスを有する回路2
に接続されている。入力端子A,〜A4は夫々バッファ
ダイオードD,〜D4を通じて出力端子C,〜C4に夫
々接続されている。又、出力端子C,〜C4は夫々負荷
抵抗器R,〜R4を通じて接地されている。入力端子A
5〜&は全加算器3の入力端子G,〜G4に接続されて
いる。全加算器3の他の入力端子日,〜凡には「010
1」(1坊隼数の5に対応する)の2進符号化信号が供
給されるように成されている。このため直流電源Eより
の直流電圧が端子F,を介して入力端子日,及び日3に
接続され、接地された端子F2が入力端子&及び日4に
接続されている。J.〜J4は全加算器3の出力端子で
あって、入力端子G,,日,;G2,日2:G3,日3
;G4,日4に供給され3る各ビットの2進符号化信号
が夫々加算されて出力端子J,,J2,J3,J4に夫
々加算出力が得られるように成されている。全加算器J
,〜J4の出力は夫々バッファ用ダイオードD5〜D6
を通じて出力端子C,〜C4に接続されている。
3この場合、切換スイッチSWの可動接点Bが固定接
点(入力端子)A5〜A8に接続されたときのみ、出力
端子J,〜J4に加算出力が得られるようなゲート(図
示しない)が全加算器3内に設けられている。
4全加算器3のより具体的
な構成を第4図に示す。この全加算器3は夫々1ビット
の各桁の全加算器(3一1)〜(3−4)から成り、そ
の各キャリーァウト信号が次段の全加算器に供給される
ように成されている。又、この第4図に於ける各ビット
の全加算器の具体構成を第5図に図示する。
FIG. 3 is a Z diagram showing the embodiment of the present invention as a whole, and A, to A8 are eight input terminals. These input terminals A, -A8 simultaneously serve as fixed contacts of a changeover switch SW, to which a DC voltage from a DC power source E is selectively supplied as a signal from their movable contacts B. C, ~C4 are Z4 output terminals, and these output terminals C, ~C4 are a circuit 2 having an address of a memory, etc.
It is connected to the. Input terminals A, ~A4 are connected to output terminals C, ~C4, respectively, through buffer diodes D, ~D4, respectively. Further, the output terminals C, .about.C4 are grounded through load resistors R, .about.R4, respectively. Input terminal A
5 to & are connected to input terminals G, to G4 of the full adder 3. The other input terminals of the full adder 3 are "010".
1'' (corresponding to the number 5 of 1) is supplied. Therefore, the DC voltage from the DC power supply E is connected to the input terminals 1 and 3 via the terminal F, and the grounded terminal F2 is connected to the input terminals & and 4. J. ~J4 is the output terminal of the full adder 3, and the input terminal G,, day,; G2, day 2: G3, day 3
The binary encoded signals of three bits supplied to G4 and Day 4 are respectively added, and the summed outputs are obtained at the output terminals J, , J2, J3 and J4, respectively. full adder J
,~J4 outputs are buffer diodes D5~D6, respectively.
It is connected to the output terminals C and C4 through the terminals C and C4.
3 In this case, a gate (not shown) that provides an addition output to the output terminals J, ~J4 only when the movable contact B of the changeover switch SW is connected to the fixed contacts (input terminals) A5 ~ A8 is connected to the full addition gate (not shown). It is provided inside the container 3.
A more specific configuration of the 4-full adder 3 is shown in FIG. This full adder 3 consists of full adders (3-1) to (3-4) for each digit of 1 bit, and is configured so that each carryout signal is supplied to the next stage full adder. There is. Further, a specific configuration of the full adder for each bit in FIG. 4 is shown in FIG. 5.

G及び印ま第3図及び第4図に於ける各入力端子G,〜
○4及び日,〜比を代表して示し、同様にJも各出力端
子J,〜J4を代表して示す。又CIはキャリーィン端
子COはキヤリーアウト端子である。入力端子Gの入力
がアンド回路4及び/ア回路5に供給され、他方の入力
端子日の入力がアンド回路4及びノア回路5に供給され
る。アンド回路4の出力はノア回路6に供給されると共
に、オァ回路9にも供給される。/ア回路5の出力はノ
ァ回路6に供給されると共に、位相反転してアンド回路
8にも供給される。ノア回路6の出力はェクスクルーシ
ィブオア回路7に供給される。キャリーィン端子CIか
らのキヤリーイン信号がェクスクルーシィブオア回路7
及びアンド回路8に供給される。ェクスクルーシイブオ
ア回路7の出力は出力端子Jに出力される。アンド回路
8の出力はオア回路9に供給される。オア回路9の出力
がキャリアウト端子GOに出力される。次に第2図に対
応する第6図の真理値表を参照して第3図の実施例のェ
ンコーダの動作を説明する。
G and each input terminal G in Fig. 3 and Fig. 4, ~
○4 and day, .about.ratio are shown as representatives, and similarly, J is also shown as a representative of each output terminal J, .about.J4. Further, CI is a carry-in terminal, and CO is a carry-out terminal. The input of the input terminal G is supplied to the AND circuit 4 and the /A circuit 5, and the input of the other input terminal G is supplied to the AND circuit 4 and the NOR circuit 5. The output of the AND circuit 4 is supplied to the NOR circuit 6 and also to the OR circuit 9. The output of the /A circuit 5 is supplied to a NOR circuit 6, and is also supplied to an AND circuit 8 after having its phase inverted. The output of the NOR circuit 6 is supplied to an exclusive OR circuit 7. The carry-in signal from the carry-in terminal CI is sent to the exclusive OR circuit 7.
and is supplied to the AND circuit 8. The output of exclusive OR circuit 7 is output to output terminal J. The output of the AND circuit 8 is supplied to an OR circuit 9. The output of the OR circuit 9 is output to the carry-out terminal GO. Next, the operation of the encoder of the embodiment shown in FIG. 3 will be explained with reference to the truth table shown in FIG. 6, which corresponds to FIG. 2.

尚、第6図では出力端子C,〜C4に得られる2進符号
化信号を1′として夫々のスイッチポジションA,〜公
に於ける2進符号化信号を1′,〜r8として示す。又
、入力端子F,及びF2から全加算器3に供給される所
定2進符号化信号をloとして示す。スイッチポジショ
ンがA,〜へのときは出力端子C,〜C4に得られる2
進符号化信号1′,〜1′4は第6図に図示の如く十進
数の1,2,4,8に相当する2進符号化信号である。
In FIG. 6, the binary encoded signals obtained at the output terminals C, .about.C4 are shown as 1', and the binary encoded signals at the respective switch positions A, .about.R8 are shown as 1', .about.r8. Further, a predetermined binary encoded signal supplied to the full adder 3 from the input terminals F and F2 is indicated as lo. When the switch position is A, ~, 2 is obtained at output terminal C, ~C4.
The hexadecimal encoded signals 1' to 1'4 are binary encoded signals corresponding to decimal numbers 1, 2, 4, and 8, as shown in FIG.

又、入力端子F,及びF2から全加算器3に供給される
所定2進符号化信号いま本例では「0101」即ち十進
数に直せば5であるから、スイッチポジションが&〜A
8のそきの出力様子C,〜C4に得られる2進符号化出
力r5〜1′8はr,〜r4に夫々loを加算した出力
となる。上述の実施例は冒頭に述べたmが8であり、n
が均ち4の場合である。
Also, since the predetermined binary encoded signal supplied to the full adder 3 from the input terminals F and F2 is "0101" in this example, that is, 5 if converted into decimal, the switch position is &~A.
The binary encoded outputs r5 to 1'8 obtained in the output states C and .about.C4 of 8 are the outputs obtained by adding lo to r and .about.r4, respectively. In the above embodiment, m mentioned at the beginning is 8, and n
This is the case where the average is 4.

こ似化M号と等しいときには、所定2進符号化信号lo
は十進数に直した場合2n‐1−1以下の値でなければ
ならなし、が、mが幼より小さいときは必ずしもこの制
限は当てはまらない。
When it is equal to the simulated number M, the predetermined binary encoded signal lo
must be a value less than or equal to 2n-1-1 when converted into a decimal number, but this restriction does not necessarily apply when m is smaller than 0.

要はm個の入力端子のうちの何れかの1個の入力端子に
信号が供給されたかに応じてn個の出力端子に互いに異
なるnビットの2進符号化信号が出力されるように所定
2進符号化信号の値を決めればよい。上述せる本発明に
よれば回路構成簡単且つ廉価にして、複数の入力端子と
、この入力端子の個数より少ない個数の複数の出力端子
を有し、その入力端子のうちの何れの1個の入力端子に
信号が供給されたかに応じて複数の出力端子にその出力
端子の数に応じたビット数の2進符号化信号が出力され
るェソコーダを得ることができる。
In short, it is predetermined so that different n-bit binary encoded signals are output to n output terminals depending on which one of the m input terminals is supplied with a signal. What is necessary is to determine the value of the binary encoded signal. According to the present invention described above, the circuit structure is simple and inexpensive, and it has a plurality of input terminals and a plurality of output terminals whose number is smaller than the number of input terminals, and which one of the input terminals is input. It is possible to obtain an esocoder that outputs a binary encoded signal having a number of bits corresponding to the number of output terminals to a plurality of output terminals depending on whether a signal is supplied to the terminal.

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

第1図は従来のェンコーダを示すブロック線図、第2図
は第1図の説明に供する真理値表を示す図、第3図は本
発明の一実施例を示すブロック線図、第4図は第3図の
一部を示すブロック線図、第5図は第4図の一部を示す
回路図、第6図は第3図の説明に供する真理値表を示す
図である。 O A,〜んは入力端子、C,〜C4は出力端子、3は
全加算器である。 第1図 第2図 第3図 第4図 第5図 第6図
FIG. 1 is a block diagram showing a conventional encoder, FIG. 2 is a truth table for explaining FIG. 1, FIG. 3 is a block diagram showing an embodiment of the present invention, and FIG. 4 is a block diagram showing a conventional encoder. 5 is a block diagram showing a part of FIG. 3, FIG. 5 is a circuit diagram showing a part of FIG. 4, and FIG. 6 is a truth table for explaining FIG. OA, - are input terminals, C, -C4 are output terminals, and 3 is a full adder. Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6

Claims (1)

【特許請求の範囲】[Claims] 1 m個の入力端子A_1,A_2……、Amと、n個
(m/2≦n<m)の出力端子C_1,C_2……、C
nとを有し、上記m個の入力端子A_1,A_2……、
Amのうちの何れの1個の入力端子に信号が供給された
かに応じて上記n個の出力端子C_1,C_2……、C
nにnビツトの2進符号化信号が出力されるようにした
エンコーダに於いて、上記m個の入力端子のうちn個の
入力端子A_1,A_2……、Anの入力を夫々上記n
個の出力端子C_1,C_2……、Cnに供給し、上記
m個の入力端子A_1,A_2……、Amのうちの残り
の(m−n)個の入力端子A_n_+_1、A_n_+
_2、……、Amの入力を全加算器に供給してnビツト
の所定2進符号化信号と加算した後上記n個の出力端子
C_1,C_2……、Cnに供給するようにしたことを
特徴とするエンコーダ。
1 m input terminals A_1, A_2..., Am and n output terminals C_1, C_2..., C (m/2≦n<m)
n, and the m input terminals A_1, A_2...,
The n output terminals C_1, C_2..., C depend on which one input terminal of Am is supplied with the signal.
In an encoder configured to output an n-bit binary encoded signal to n, the inputs of n input terminals A_1, A_2..., An among the m input terminals are respectively connected to n.
output terminals C_1, C_2..., Cn, and the remaining (m-n) input terminals A_n_+_1, A_n_+ among the m input terminals A_1, A_2..., Am.
The inputs of _2, . Featured encoder.
JP53092171A 1978-07-28 1978-07-28 encoder Expired JPS6019594B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP53092171A JPS6019594B2 (en) 1978-07-28 1978-07-28 encoder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP53092171A JPS6019594B2 (en) 1978-07-28 1978-07-28 encoder

Publications (2)

Publication Number Publication Date
JPS5520515A JPS5520515A (en) 1980-02-14
JPS6019594B2 true JPS6019594B2 (en) 1985-05-16

Family

ID=14046977

Family Applications (1)

Application Number Title Priority Date Filing Date
JP53092171A Expired JPS6019594B2 (en) 1978-07-28 1978-07-28 encoder

Country Status (1)

Country Link
JP (1) JPS6019594B2 (en)

Also Published As

Publication number Publication date
JPS5520515A (en) 1980-02-14

Similar Documents

Publication Publication Date Title
US4953115A (en) Absolute value calculating circuit having a single adder
JPH0734542B2 (en) D-A conversion circuit
JPH07114466B2 (en) Video signal fading circuit
EP0280321A3 (en) Digital-to-analog converter circuit
JP2598138B2 (en) D / A converter
JPS6019594B2 (en) encoder
JPH09114639A (en) Mask data generation circuit and bit field operation circuit
JPH04290012A (en) Data converter
US3240922A (en) Serial digital electronic computer
JPS63246927A (en) Reference voltage generating circuit
JPH0381175B2 (en)
JPS6118780B2 (en)
JPH01314023A (en) Digital signal processing circuit
JPH0997165A (en) Pure binary conversion circuit for binary-coded decimal and binary-coded decimal conversion circuit for pure binary
JPH04227336A (en) Decoder
JP2922963B2 (en) Sequence controller
JPH0213326B2 (en)
JPS6128423Y2 (en)
SU1196864A1 (en) Device for determining sign of number in residual class system
JPS62192085A (en) Bit processing circuit
JPS6314497Y2 (en)
JPS6136653B2 (en)
JPH01276227A (en) Digital rounding circuit
JPH05257643A (en) Binary complement unit
JPH0731590B2 (en) Adder circuit