Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPS6027040B2 - key code generator - Google Patents
[go: Go Back, main page]

JPS6027040B2 - key code generator - Google Patents

key code generator

Info

Publication number
JPS6027040B2
JPS6027040B2 JP51047558A JP4755876A JPS6027040B2 JP S6027040 B2 JPS6027040 B2 JP S6027040B2 JP 51047558 A JP51047558 A JP 51047558A JP 4755876 A JP4755876 A JP 4755876A JP S6027040 B2 JPS6027040 B2 JP S6027040B2
Authority
JP
Japan
Prior art keywords
key
key code
output
clock
code generation
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
JP51047558A
Other languages
Japanese (ja)
Other versions
JPS52130621A (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.)
Kawai Musical Instruments Manufacturing Co Ltd
Original Assignee
Kawai Musical Instruments Manufacturing 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 Kawai Musical Instruments Manufacturing Co Ltd filed Critical Kawai Musical Instruments Manufacturing Co Ltd
Priority to JP51047558A priority Critical patent/JPS6027040B2/en
Publication of JPS52130621A publication Critical patent/JPS52130621A/en
Publication of JPS6027040B2 publication Critical patent/JPS6027040B2/en
Expired legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)

Description

【発明の詳細な説明】 本発明はキーコード発生回路群に入力するキ−スイッチ
データを時分割で送り記憶させる手段を具えたキーコー
ド発生装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a key code generating device having means for time-divisionally sending and storing key switch data input to a group of key code generating circuits.

電子オルガンのように多数のキースィツチを有する袋贋
において、スイッチの開閉情報を所望の回路に供V給す
るために各スイッチと回路を直接接続すると配線量はぼ
う大なものとなる。そこで各キースイツチを時分割に走
査することによって開閉情報をTDM(時分割多重)信
号またはPCM(パルス符号変調)信号としてキーコー
ド記憶装置に送る時分割多重方式が一般に用いられてい
た。しかしこの方式において、キースィッチの押鍵と雛
鍵の状態を時分割的に調べるため押されていないキース
ィッチの情報まで送る結果となり、必要な情報を送るた
めには1走査区間を必要とし、秤鍵と磯鍵に対する即答
性を高めるためには、非常に高い周波数のたとえば数百
KHZのクロックが必要であった。また押鍵と雛鍵時点
の1走査区間との関係により応答時間がずれること、た
とえば押鍵されたキースイツチが走査直後に離鍵される
と応答時間が1走査区間程度ずれることとなる。これら
を改善するため本発明の出願人は別出願により新規なキ
ーアサイナを提案している。
In a counterfeit machine having a large number of key switches such as an electronic organ, if each switch is directly connected to a circuit in order to supply switch opening/closing information to a desired circuit, the amount of wiring becomes enormous. Therefore, a time division multiplexing method has generally been used in which each key switch is scanned in a time division manner to send open/close information to a key code storage device as a TDM (time division multiplex) signal or a PCM (pulse code modulation) signal. However, in this method, since the state of the pressed key and the chick key of the key switch is checked in a time-sharing manner, information about the key switch that is not pressed is also sent, and one scanning period is required to send the necessary information. In order to improve the prompt response to the scale key and the iso key, a very high frequency clock, for example, several hundred kilohertz, was required. In addition, the response time may deviate depending on the relationship between the pressed key and one scanning period at the time of the chick key. For example, if a pressed key switch is released immediately after scanning, the response time will deviate by about one scanning period. In order to improve these problems, the applicant of the present invention has proposed a new key assigner in a separate application.

すなわち実施例において詳述するようにキーコード発生
装置を用いたもので、各キースィッチの走査によること
なくキースイツチの押鍵と離鍵の状態の変化の時にその
キーコードを送るものである。この場合全キースィッチ
の状態を同時に調べるクロックとその間のキーコードデ
ータを送る時間のみで十分であり、クロック周波数が低
いことと即答性の高いことを特徴としている。しかしキ
ースイッチより入力する入力ライン数はそのキースイツ
チ数だけ必要とされる。これらの回路を集積化する場合
には半導体素子のピン数は限定されるため、キースィツ
チより入力するライン数をできるだけ減少することが必
要となる。本発明の目的はキーコード発生装置の特徴を
損なうことなく入出力線数を減少することである。
That is, as will be described in detail in the embodiments, a key code generator is used, and the key code is sent when the state of a key switch changes, not by scanning each key switch. In this case, only a clock to simultaneously check the status of all key switches and time to send the key code data are sufficient, and the system is characterized by a low clock frequency and high prompt response. However, the number of input lines input from the key switch is equal to the number of key switches. When integrating these circuits, the number of pins of the semiconductor device is limited, so it is necessary to reduce the number of lines input from the key switch as much as possible. An object of the present invention is to reduce the number of input/output lines without impairing the characteristics of the key code generator.

前記目的を達成するため、本発明のキーコード発生装置
は第1のクロツクの前半で各キースィツチの状態を記憶
する第1の記憶回路、該第1の記憶回路の出力を前記第
1のクロックの後半で記憶する第2の記憶回路、該第1
、第2の記憶回路出力によりキースィッチの押鍵雛鍵の
状態変化を検出する変化検出回路、該変化検出回路の出
力により前記キースィッチの対応したキーコードを発生
する手段、前記第1のクロックと前記キーコードとより
ラッチパルスを出力する手段、前記第1のクロックと前
記変化検出回路の出力とにより前記第2の記憶回路をリ
セツトして出力発生を完了する手段より成るキーコード
発生回路を複数のキースィッチに対応してそれぞれ設け
たキーコード発生回路群、該キーコード発生回路群にお
ける前記変化検出回路の出力で所定の優先順位に従い、
高度先度の前記キーコード発生回路から順次前記第1の
クロックによりキーコード発生を行ない、低優先度の前
記変化検出回路の出力を一時禁止し、キーコード発生を
待機させる手段、およびキースィッチの離鍵と他のキー
スィツチの押鍵の同時操作の場合押鍵によるキーコード
発生を禁止し磯鍵を優先するための制御回路を具えたキ
ーコード発生装置において、前記キーコード発生回路群
に入力する複数のキ−スイッチにより構成したm×nの
キースイツチマトリツクス回路、核キースィッチマトリ
ックス回路よりオクターブ毎に、キースィツチ情報を第
1のクロツクに対し低速の同期または非同期の独立した
第2のクロックによりm時分割で転送する手段、および
前記キーコード発生回路群のn個を1ブロックとしたm
ブロックに順次低速で記憶させる制御回路より成る時分
割装置を具えたことを特徴とするものである。
In order to achieve the above object, the key code generator of the present invention includes a first memory circuit that stores the state of each key switch in the first half of the first clock, and an output of the first memory circuit that is stored in the first half of the first clock. A second memory circuit that stores data in the second half, the first
, a change detection circuit for detecting a change in state of a pressed key of a key switch based on the output of a second memory circuit; means for generating a key code corresponding to the key switch based on the output of the change detection circuit; and the first clock. and means for outputting a latch pulse based on the key code, and means for resetting the second storage circuit using the first clock and the output of the change detection circuit to complete output generation. A key code generation circuit group provided corresponding to a plurality of key switches, and an output of the change detection circuit in the key code generation circuit group according to a predetermined priority order,
Means for sequentially generating key codes from the high-priority key code generation circuit using the first clock, temporarily prohibiting output of the low-priority change detection circuit to wait for key code generation, and a key switch. In a key code generator equipped with a control circuit for prohibiting key code generation due to key presses and giving priority to the Iso key in the case of simultaneous operation of key release and key press of another key switch, input to the key code generation circuit group. An m×n key switch matrix circuit composed of a plurality of key switches, a core key switch matrix circuit, transmits key switch information for each octave to a first clock using a low-speed synchronous or asynchronous second clock. m time-division transfer means, and n pieces of the key code generation circuit group are set as one block.
It is characterized by comprising a time division device consisting of a control circuit that sequentially stores data in blocks at a low speed.

すなわち上記キーコード発生装置はキースイツチの開閉
状態を記憶する記憶装置を具備しているから、時分割使
用に適するものであり、時分割によりキーコード発生の
妨げになるものではない。
That is, since the above-mentioned key code generation device is equipped with a storage device that stores the open/closed state of the key switch, it is suitable for time-sharing use, and time-sharing does not interfere with key code generation.

ざらに押鍵雛鍵に対するキーコード発生に要する時間は
このキーコード発生袋瞳のクロツク周波数の許容度から
すれば時分割時における時間遅れは全く問題とはならな
いものである。このように何らキーコード発生装置の特
徴を窺うことなく入出力線数を効果的に減少しうるもの
である。以下本発明を実施例につき詳述する。
Roughly speaking, considering the tolerance of the clock frequency of this key code generation loop, the time required to generate a key code for each pressed key does not pose any problem at all in terms of time delay during time division. In this way, the number of input/output lines can be effectively reduced without looking at any characteristics of the key code generator. The present invention will be described in detail below with reference to examples.

第1図は本発明の実施例の構成を示す概要説明図である
FIG. 1 is a schematic explanatory diagram showing the configuration of an embodiment of the present invention.

同図において、キースイツチマトリツクス2は(m,n
)行列で構成され、キーデータは時分割クロツク1によ
ってm分の時分割でnビットづつ順次出力されキーコー
ド発生回路群3に与えられる。キーコード回路群3もキ
ースイツチマトリックス1と同様にキーコード発生回路
n個を1ブロックとするとmブロックで構成されている
。時分割クロック回路1はクロツク源よりクロツクaを
与えられるリングカウンタまたはシフトレジスタによっ
て構成される。このク。ック周波数をナaとする。さら
にキーコード発生回路3の記憶回路に与えられる周波数
ナbのクロックbはクロツク源よりゲート11で周波数
「aのクロツクaとANDをとり各ブロックに振分けら
れる。この場合クロツクbはクロツクaと同期したタイ
ミングをもつクロツクとするか、またはサンプリング定
理を満足するために、メbZ2ナaという非同期のクロ
ツクとしてもよい。実施例の場合にはクロック周波数を
下げる観点からクロックaとクロツクbとは同一周波数
の同期したものとする。この時分割されたキーデータが
クロックbによりキーコード発生回路群3の各ブロック
毎にキースィッチの開閉状態を順次その記憶回路に書き
込んでいく。このキーデータ検出によりキーコード発生
回路3は時分割クロツクとは無関係にあらかじめ設定さ
れた一定の優先順位に従ってキーコードデータを順次出
力する。第2図はキースィツチマトリックス2の構成を
示したものでm,n行列より構成される。
In the figure, the key switch matrix 2 is (m, n
) matrix, and the key data is sequentially output n bits at a time in m minutes by the time division clock 1 and given to the key code generation circuit group 3. Similarly to the key switch matrix 1, the key code circuit group 3 is composed of m blocks, where n key code generating circuits are one block. The time division clock circuit 1 is composed of a ring counter or a shift register to which a clock a is applied from a clock source. This ku. Let the clock frequency be a. Furthermore, the clock b of frequency Nb applied to the memory circuit of the key code generation circuit 3 is ANDed with the clock a of frequency A by the gate 11 from the clock source and distributed to each block. In this case, clock B is synchronized with clock a. Alternatively, in order to satisfy the sampling theorem, the clock may be an asynchronous clock such as mebZ2naa.In the case of the embodiment, clock a and clock b may be the same clock from the viewpoint of lowering the clock frequency. It is assumed that the frequencies are synchronized.This time-divided key data is used to sequentially write the open/closed state of the key switch for each block of the key code generation circuit group 3 into its memory circuit.By this key data detection, The key code generation circuit 3 sequentially outputs key code data according to a preset priority order, regardless of the time division clock.Figure 2 shows the configuration of the key switch matrix 2, which is composed of m and n matrices. configured.

すなわち時分割クロックaによりn,〜nnまで走査さ
れ出力nビットがm分の時分割で出力される。いまスイ
ッチSWi‐jが押されたとすればタイムスロットiの
時点すなわちmi走査の時点で出力njに“1”を出力
する。これは同時にnブロックより成るキーコード発生
回路群のiブロックのキーコード発生回路Ki‐jに入
力される。第3図は第1図の実施例のキーコード発生回
路につき破線で囲まれた代表的なキーコード発生回路(
KH)3を示す。
That is, it is scanned from n to nn by the time division clock a, and the output n bits are output in a time division of m minutes. If the switch SWi-j is pressed now, "1" is output to the output nj at the time of time slot i, that is, at the time of mi scanning. This is simultaneously input to the key code generating circuit Ki-j of block i of the key code generating circuit group consisting of n blocks. FIG. 3 shows a typical key code generation circuit (encircled by a broken line) for the key code generation circuit of the embodiment shown in FIG.
KH)3 is shown.

いまスイッチマトリックスSWi‐jが押されたとする
と、タイムスロットiの時にDタイプのフリツプフロツ
プ(FFI)21の○端子に“1”が入力される。それ
と同時にゲート11が関されてクロツクbがT端子に入
力され、(FFI)21のQ出力は‘‘1”を出力する
。JKタイプフリツプフロツプ(FF2)22の出力Q
は“1”であり、ANDIには 〇FI)21のQ出力
“1”と(FF2)22のQ出力“1”が入力されるか
ら“1”を出力する。この時他のキーコード発生回路に
おいて麹鍵によるキーコードを発生していなければ他の
同様のAND3は“0”を出力し、相互にダイオードD
Iをして連結された線(1,)24は“0”を出力する
。AND2はANDIの出力と線(1,)24の反転出
力“1”が入力され“1”を出力する。AND2出力は
ORIに入力し、ORIは“1”を出力する。この時同
時にキーコード発生回路Ki‐jより上の同回路Kp‐
q(KM≦Kp‐q<KH)が離鍵あるし、は押鍵状態
でなければ相互にィンバータを介してAND4にそれぞ
れ入力するように接続された線(12)25には“0”
が入力され、従って“1”をAND4に入力する。AN
D4にはORIと線(ら)25の出力“1”が入力され
た結果“1”を出力する。AND4出力はOR2に入力
し、OR2は“1”を出力する。これによってキーコー
ド発生回路Ki‐jより下のキースイツチでのキーコー
ド発生を禁止待機させる。次にJKタイプのフリップフ
ロツブ(FF2)22はJが“1”、Kが“0”でAN
D6に入力されているクロツクによりセットされ、(F
F2)22のQ出力は、“0”となり、AND1,AN
D2,AND3,OR1,AND4,AND5,OR2
,AND6の出力は、“0”となりキーコード発生を停
止し、他のキーコード発生回路への禁止と待機を解除す
る。次にキースイッチマトリックスSWi‐iが離れた
場合、タイムスロットiの時にフリップフロップ(FF
I)21のD端子に“0”が入力され、それと同時にゲ
ート11が開かれてクロツクbがiブロックのT端子に
入力され、フリツプフロツプ(FFI)21のQ出力は
‘‘1”となる。
If the switch matrix SWi-j is now pressed, "1" is input to the ○ terminal of the D-type flip-flop (FFI) 21 at time slot i. At the same time, gate 11 is connected, clock b is input to the T terminal, and Q output of (FFI) 21 outputs ``1''. Output Q of JK type flip-flop (FF2) 22.
is "1", and since the Q output "1" of 〇FI) 21 and the Q output "1" of (FF2) 22 are input to ANDI, it outputs "1". At this time, if no key code is generated by the koji key in other key code generation circuits, other similar AND3 outputs "0", and the diode D is mutually output.
The connected line (1,) 24 outputs "0". AND2 receives the output of ANDI and the inverted output "1" of line (1,) 24, and outputs "1". The AND2 output is input to ORI, and ORI outputs "1". At this time, at the same time, the same circuit Kp- above the key code generation circuit Ki-j
If q (KM≦Kp-q<KH) is released and the key is not pressed, the wires (12) and 25 connected to each other through an inverter are set to "0".
is input, and therefore "1" is input to AND4. AN
D4 receives ORI and the output "1" of line (ra) 25, and outputs "1" as a result. The AND4 output is input to OR2, and OR2 outputs "1". As a result, generation of key codes at the key switches below the key code generating circuit Ki-j is prohibited and placed on standby. Next, JK type flip-flop (FF2) 22 is AN with J being “1” and K being “0”.
It is set by the clock input to D6, and (F
The Q output of F2) 22 becomes “0” and AND1, AN
D2, AND3, OR1, AND4, AND5, OR2
, AND6 becomes "0" and stops key code generation, canceling the inhibition and standby for other key code generation circuits. Next, when the key switch matrix SWi-i leaves, the flip-flop (FF
``0'' is input to the D terminal of I) 21, and at the same time, the gate 11 is opened and clock b is input to the T terminal of the i block, and the Q output of the flip-flop (FFI) 21 becomes ``1''.

フリツプフロツプ(FF2)22のQ出力は‘‘1”を
出力しており、従ってこれら両出力が入力するAND3
は“1”を出力する。AND3出力はORIに入力しO
RIは“1”を出力する。AND3の出力は全キーコー
ド発生回路K,‐jでの押鍵によるキーコード発生を禁
止するよう他のキーコード発生回路の同様の線(1,)
24に“1”を入力する。さらにキーコード発生回路K
i‐jより上の同回路Kp‐q(K,‐,SKp‐q<
Ki−j)でキーコードが発生されていなければ線(1
2)25には“0”が入力し、反転されて、“1”を出
力する。AND4にはORIと線(12)25の各出力
“1”が入力されて“1”が出力される。押鍵時と同様
AND4の出力“1”によりi−i段のキースイツチコ
ードがダイオードマトリックス30に入力し線26によ
りキーコードーこ対応する。たとえば8ビットをダイオ
ードD2〜D5で符号化したデータが出力される。これ
とともに単安定マルチパイプレータ(MMI)出力Qと
AND4出力“1”をAND5に入力し、キーコードデ
ータのラツチパルス線27よりダイオードD4を通して
出力する。またAND4出力はOR2に入力Ki−jよ
り下のキースィッチでの線(12)25に“1”を入力
し従って出力は反転して“0”となるからキーコード発
生を禁止する。次にフリツプフロツプ(FF2)22は
Jが“0”Kが“1”でANG6に入力されるクロツク
によりリセットされ、(FF2)22の出力Qは“0”
となる。これによりキーコード発生を完了する。さらに
押鍵、機鍵によるキーコード発生が同時にに行なわれる
場合には、AND3出力により全キーコード発生回路の
線(12)24に入力し、藤鍵によるキーコード発生を
優先するように働き、さらにAND4出力によりOR2
を通して下のキーコード発生回路の線(12)25に入
力し上位たとえば高音を優先させる動作を行ない、この
優先順位に従ってキーコードは出力される。
The Q output of the flip-flop (FF2) 22 is outputting ``1'', so these two outputs are connected to the input AND3.
outputs “1”. AND3 output is input to ORI and O
RI outputs "1". The output of AND3 is connected to the similar line (1,) of the other key code generating circuits so that all key code generating circuits K, -j are prohibited from generating key codes by pressing keys.
Enter "1" in 24. Furthermore, key code generation circuit K
The same circuit Kp-q (K, -, SKp-q<
If no key code is generated in line (Ki-j), line (1
2) "0" is input to 25, which is inverted and outputs "1". ORI and each output "1" of the line (12) 25 are input to AND4, and "1" is output. Similar to when a key is pressed, the output "1" of the AND4 causes the key switch code of the i-i stage to be inputted to the diode matrix 30, and the line 26 corresponds to the key code. For example, data obtained by encoding 8 bits with diodes D2 to D5 is output. At the same time, the output Q of the monostable multipipulator (MMI) and the AND4 output "1" are input to AND5, and output from the key code data latch pulse line 27 through the diode D4. Further, the AND4 output inputs "1" to the key switch line (12) 25 below the input Ki-j to OR2, and therefore the output is inverted and becomes "0", thereby inhibiting key code generation. Next, the flip-flop (FF2) 22 is reset by the clock input to ANG6 with J being "0" and K being "1", and the output Q of (FF2) 22 is "0".
becomes. This completes key code generation. Furthermore, when key codes are generated by pressing keys and machine keys at the same time, the AND3 output is input to the line (12) 24 of all key code generation circuits, and priority is given to key code generation by key codes. Furthermore, OR2 is generated by AND4 output.
is inputted to the line (12) 25 of the lower key code generation circuit through the key code to give priority to higher notes, for example, high notes, and key codes are output in accordance with this priority order.

第4図は本発明の実施例のタイムチャートを示す。FIG. 4 shows a time chart of an embodiment of the present invention.

すなわちキースイツチマトリツクスは(m,n)=(6
,12)とし、キーコード発生回路は12回路を1ブロ
ックとする6ブロックキースイツチに対応して設けられ
ている。さらにクロックbはクロツクaの負論理出力と
し、同期をとってキースィッチの状態を記憶する。
In other words, the key switch matrix is (m, n) = (6
, 12), and the key code generation circuit is provided corresponding to a 6-block key switch in which 12 circuits constitute one block. Further, the clock b is a negative logic output of the clock a, and the state of the key switch is stored in synchronization with the clock b.

またフリツプフロツプ(FF2)22のT端子に入力す
るクロツクはクロツクaと同一のものを使用する。これ
らのクロツクaは同図aの波形CIaで、クロックbは
同図cの波形CIbで示される。同図bはm=6とした
場合の時分割タイムスロットを示したものである。いま
同図eに示す3個のキースイッチSW2−,,SW2‐
2,SW3‐2がそれぞれ図示のように押鍵、隣鍵され
たものとする。この場合、SW2−,とSW2‐2は何
れもタイムスロット2に属し、同時に押鍵され、SW3
‐2はタイムスロット3に属し僅かに遅れて押鍵される
。これらの離鍵の時点はそれぞれ異なる。これらのキー
コードは同図bのそれぞれのタイムスロットm2,m3
と同図cのクロックbにより形成された同図dに示すゲ
ート出力パルスG2,G3で制御される。また同時押鍵
の場合には高音優先で処理される。従ってキーコード出
力としては同図ハこ示すように、押鍵の場合にはまずS
W2−,がその直後の○2のパルスにより出力し、次に
優先順位により1タイムスロット遅れてSW2‐2が出
力し、最後にSW3‐2がさらに1タイムスロット遅れ
て出力する。離鍵の場合にはまずSW2−,が麹鍵の直
後のG2のパルスに対応して出力し、これに引続きSW
2‐2,SW3‐2の機鍵直後のそれぞれG2,G2の
額序に従い出力する。
The clock input to the T terminal of flip-flop (FF2) 22 is the same as clock a. These clocks a are shown by waveform CIa in figure a, and clock b is shown by waveform CIb in figure c. Figure b shows time-division time slots when m=6. Now, the three key switches SW2-, SW2- shown in FIG.
2. Assume that SW3-2 is pressed and the adjacent key is pressed as shown. In this case, both SW2- and SW2-2 belong to time slot 2, and are pressed at the same time.
-2 belongs to time slot 3 and is pressed with a slight delay. The timing of these key releases is different. These key codes correspond to the respective time slots m2 and m3 in Figure b.
It is controlled by gate output pulses G2 and G3 shown in FIG. 2D, which are generated by clock b in FIG. Furthermore, in the case of simultaneous key presses, high notes are given priority. Therefore, as shown in the figure, the key code output is S first when a key is pressed.
W2-, is outputted by the pulse of ○2 immediately after that, then SW2-2 is outputted with a delay of one time slot depending on the priority order, and finally SW3-2 is outputted with a further delay of one time slot. In the case of key release, SW2-, first outputs in response to the G2 pulse immediately after the Koji key, and then SW2-, outputs in response to the G2 pulse immediately after the Koji key.
2-2 and SW3-2 are output in accordance with the order of G2 and G2 immediately after the machine keys, respectively.

このようなキーコード出力を構成することにより若千押
鍵離鍵時′点のずれはなくなり、従来の走査方式のよう
に大きなずれはなくなり、即答性において優れたキーコ
ード発生が実現できるものである。以上説明したように
、本発明によれば従来の走査方式に比較してクロック周
波数が低く即答性が高くまた応答時間のずれが少ないと
いう特徴を損なうことなく、しかもキ−スイッチをマト
リックス構成としてキーコード発生回路群と接続し時分
割で使用することにより、その間入出力線を減少するこ
とができる。
By configuring key code output in this way, there is no difference in the timing of key press and release, and there is no large difference as with the conventional scanning method, making it possible to generate key codes with excellent prompt response. be. As explained above, according to the present invention, compared to the conventional scanning method, the clock frequency is low, the quick response is high, and the deviation in response time is small. By connecting it to a group of code generation circuits and using it in a time-sharing manner, the number of input/output lines can be reduced.

すなわちマトリックス構成mxnの各点を直接接続した
場合の入出力線がm×n本であるのに対し時分割した場
合はm+n本に減少することができる。またキーコード
を出力するのにかかる時間は最大同時に×個のキースィ
ッチの状態変化があった時、時分割しない場合はクロツ
クを100マイクロ秒とすれば(X+1)×100マイ
クロ秒であったのに対し、本実施例においては最大(m
+×+1)×100マイクロ秒となり、応答時間は時分
割数mによって若干延びる。
In other words, the number of input/output lines is m×n when the points of the matrix configuration mxn are directly connected, but it can be reduced to m+n when time-division is performed. Also, the maximum time it takes to output a key code is (X + 1) x 100 microseconds if the clock is 100 microseconds when there are x key switch state changes at the same time without time sharing. On the other hand, in this example, the maximum (m
+×+1)×100 microseconds, and the response time is slightly extended depending on the number of time divisions m.

しかしmは入出力線を減少させるものであり、たとえば
25針固のキースィツチの入出力線数はm=8,n=3
2として8×32三256であるから8十32=4止本
で足りることになる。この場合m=8となり応答性は時
分割することによってそれほど悪くならないことは明ら
かである。また同程度の応答速度にするためにはm+X
+IX寿÷十1倍1こク。ックを上げるこをX+1によ
っても達成される。
However, m reduces the number of input and output lines. For example, the number of input and output lines for a 25-needle key switch is m = 8, n = 3.
2 is 8x323256, so 832 = 4 stops will be sufficient. In this case, m=8, and it is clear that the responsiveness will not deteriorate so much by time division. Also, in order to achieve the same response speed, m+X
+ IX longevity ÷ 11 times 1 koku. This is also accomplished by X+1.

本発明に適用したキーコード発生方式は低いクロック周
波数を用いることが特徴の1つとなっているからこれを
若干上げても殆ど問題にはならない。
One of the characteristics of the key code generation method applied to the present invention is that it uses a low clock frequency, so even if this frequency is slightly increased, there is hardly any problem.

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

第1図は本発明の実施例の構成を示す概要説明図、第2
図は第1図の実施例のキースイッチマトックスの説明図
、第3図は第1図の実施例のキーコード発生回路の詳細
図、第4図は本発明の実施例のタイムチャートであり、
図中1は時分割クロツク、2はキースイツチマトリツク
ス、3はキーコード発生回路、11はゲート、21,2
2はフリツプフロツプ、30はダイオードマトリックス
を示す。 第1図 第2図 第3図 第4図
FIG. 1 is a schematic explanatory diagram showing the configuration of an embodiment of the present invention, and FIG.
The figure is an explanatory diagram of the key switch matrix of the embodiment of FIG. 1, FIG. 3 is a detailed diagram of the key code generation circuit of the embodiment of FIG. 1, and FIG. 4 is a time chart of the embodiment of the present invention. ,
In the figure, 1 is a time division clock, 2 is a key switch matrix, 3 is a key code generation circuit, 11 is a gate, 21, 2
2 is a flip-flop, and 30 is a diode matrix. Figure 1 Figure 2 Figure 3 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 1 第1のクロツクの前半で各キースイツチの状態を記
憶する第1の記憶回路、該第1の記憶回路の出力を前記
第1のクロツクの後半で記憶する第2の記憶回路、該第
1、第2の記憶回路の出力によりキースイツチの押鍵離
鍵の状態変化を検出する変化検出回路、該変化検出回路
の出力により前記キースイツチに対応したキーコードを
発生する手段、前記第1のクロツクと前記キーコードと
よりラツチパルスを出力する手段、前記第1のクロツク
と前記変化検出回路の出力とにより前記第2の記憶回路
をリセツトして出力発生を完了する手段より成るキーコ
ード発生回路を複数のキースイツチに対応してそれぞれ
設けたキーコード発生回路群、該キーコード発生回路群
における前記変化検出回路の出力で所定の優先順位に従
い、高優先度の前記キーコード発生回路から順次前記第
1のクロツクによりキーコード発生を行ない、低優先度
の前記変化険出回路の出力を一時禁止し、キーコード発
生を待機させる手段、およびキースイツチの離鍵と他の
キースイツチの押鍵の同時操作の場合押鍵によるキーコ
ード発生を禁止し離鍵を優先するための制御回路を具え
たキーコード発生装置において、前記キーコード発生回
路群に入力する複数のキースイツチにより構成したm×
nのキースイツチマトリツクス回路、該キースイツチマ
トリツクス回路よりオクターブ毎にキースイツチ情報を
第1のクロツクに対し低速の同期または非同期の独立し
た第1のクロツクによりm時分割で転送する手段、およ
び前記キーコード発生回路群のn個を1ブロツクとした
mブロツクに順次低速で記憶させる制御回路より成る時
分割装置を具えたことを特徴とするキーコード発生装置
1 a first memory circuit that stores the state of each key switch in the first half of the first clock; a second memory circuit that stores the output of the first memory circuit in the second half of the first clock; a change detection circuit for detecting a change in the key press/release status of a key switch based on the output of a second memory circuit; means for generating a key code corresponding to the key switch based on the output of the change detection circuit; A key code generation circuit comprising means for outputting a latch pulse based on a key code, and means for resetting the second memory circuit using the first clock and the output of the change detection circuit to complete output generation, is connected to a plurality of key switches. According to a predetermined priority order of the outputs of the change detection circuits in the key code generation circuit groups provided corresponding to the key code generation circuit groups, the key code generation circuits are sequentially set by the first clock, starting from the key code generation circuit with the highest priority. Means for generating a key code, temporarily inhibiting the output of the change detection circuit of low priority, and waiting for the generation of the key code, and in case of simultaneous operation of releasing a key switch and pressing a key of another key switch. In a key code generation device equipped with a control circuit for prohibiting key code generation and giving priority to key release, m×
n key switch matrix circuits; means for transmitting key switch information for each octave from the key switch matrix circuits in m time-division manner using low-speed synchronous or asynchronous independent first clocks with respect to the first clock; 1. A key code generation device comprising a time division device comprising a control circuit that sequentially stores data at low speed in m blocks each consisting of n key code generation circuits.
JP51047558A 1976-04-26 1976-04-26 key code generator Expired JPS6027040B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP51047558A JPS6027040B2 (en) 1976-04-26 1976-04-26 key code generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51047558A JPS6027040B2 (en) 1976-04-26 1976-04-26 key code generator

Publications (2)

Publication Number Publication Date
JPS52130621A JPS52130621A (en) 1977-11-02
JPS6027040B2 true JPS6027040B2 (en) 1985-06-26

Family

ID=12778507

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51047558A Expired JPS6027040B2 (en) 1976-04-26 1976-04-26 key code generator

Country Status (1)

Country Link
JP (1) JPS6027040B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3899951A (en) * 1973-08-09 1975-08-19 Nippon Musical Instruments Mfg Key switch scanning and encoding system
JPS5615520B2 (en) * 1974-09-05 1981-04-10

Also Published As

Publication number Publication date
JPS52130621A (en) 1977-11-02

Similar Documents

Publication Publication Date Title
US4365532A (en) Electronic musical instrument with plural tone production channels
US3961138A (en) Asynchronous bit-serial data receiver
JPS5936755B2 (en) key assigner
JPH06188850A (en) Data transfer method and data transfer device
EP0497049A1 (en) Time-shared scanning keyboard interface
US4194425A (en) Key code generator
US2985865A (en) Circuit arrangement for controlling a buffer storage
JPS6247008B2 (en)
GB1317984A (en) Key telephone systems
US4207435A (en) Channel translators for use in time division digital exchangers
US4899339A (en) Digital multiplexer
US4176573A (en) Intrakeyboard coupling and transposition control for a keyboard musical instrument
US4033221A (en) Key switch system
US4138917A (en) Key code generator
US4551583A (en) Control signal transmission system for key telephone system
JPS6027040B2 (en) key code generator
JPS6034758B2 (en) key assigner
JPS5847918B2 (en) Time division switching line switch control device
US3436477A (en) Automatic dialer
EP0409168B1 (en) Elastic store memory circuit
US4333159A (en) Combination shift register, counter and memory device
JPS5937837B2 (en) Key code detection circuit for electronic musical instruments
JPS6027039B2 (en) key assigner
JP2801595B2 (en) Normal-to-linear conversion device
SU1765814A1 (en) Time mark generating device