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
JP3481669B2 - Electronic music box and its driving device - Google Patents
[go: Go Back, main page]

JP3481669B2 - Electronic music box and its driving device - Google Patents

Electronic music box and its driving device

Info

Publication number
JP3481669B2
JP3481669B2 JP07776894A JP7776894A JP3481669B2 JP 3481669 B2 JP3481669 B2 JP 3481669B2 JP 07776894 A JP07776894 A JP 07776894A JP 7776894 A JP7776894 A JP 7776894A JP 3481669 B2 JP3481669 B2 JP 3481669B2
Authority
JP
Japan
Prior art keywords
data
music box
electronic music
terminal
sound generator
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 - Fee Related
Application number
JP07776894A
Other languages
Japanese (ja)
Other versions
JPH07271719A (en
Inventor
淨 河内
Original Assignee
株式会社河内研究所
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 株式会社河内研究所 filed Critical 株式会社河内研究所
Priority to JP07776894A priority Critical patent/JP3481669B2/en
Publication of JPH07271719A publication Critical patent/JPH07271719A/en
Application granted granted Critical
Publication of JP3481669B2 publication Critical patent/JP3481669B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • Information Transfer Systems (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はサウンドジェネレータを
内蔵した電子オルゴールおよびその駆動装置に係り、特
に、パーソナルコンピュータ等の外部機器から入力され
た制御データに基づいてサウンドジェネレータを制御
し、所望の演奏を行う電子オルゴールおよびその駆動装
置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic music box having a built-in sound generator and its drive device, and more particularly to controlling the sound generator based on control data input from an external device such as a personal computer to achieve a desired performance. The electronic music box and its driving device.

【0002】[0002]

【従来の技術】従来から、予めROM等の記憶手段に記
憶された楽音データを順次読み出してサウンドジェネレ
ータへ供給し、楽音データに応じた演奏を行う制御系一
体型の電子オルゴールがある。しかしながら、制御系一
体型の電子オルゴールでは、予め用意されているいくつ
かの演奏しか行うことができず、また、高価なCPUや
その周辺回路を内蔵しなければならないので、装置が大
型化し、高価なものとなってしまうという問題があっ
た。
2. Description of the Related Art Conventionally, there is a control system integrated electronic music box which sequentially reads out musical tone data stored in advance in a storage means such as a ROM and supplies it to a sound generator to perform a performance according to the musical tone data. However, the electronic music box integrated with the control system can perform only a few performances prepared in advance, and since an expensive CPU and its peripheral circuits must be built in, the device becomes large and expensive. There was a problem that it would become something like.

【0003】このような問題点を解決するために、近年
ではコンピュータ等の外部機器から入力された制御デー
タに基づいて演奏を行う電子オルゴールや電子楽器が普
及しつつある。しかしながら、これらの装置では相変わ
らずCPUやその周辺回路が必要となるばかりか、各デ
ータが直列的に転送されるために新たな問題が生じてい
た。すなわち、サウンドジェネレータは並列データを対
象とするため、直列データを並列データに変換するため
の装置が新たに必要となってしまう。さらに、たとえば
32符音符のような高速制御を要求される楽音を含む場
合には、電子オルゴール内にFIFOメモリ等を備えな
ければならないという問題があった。
In order to solve such a problem, an electronic music box and an electronic musical instrument, which perform a performance based on control data input from an external device such as a computer, have become widespread in recent years. However, these devices still require a CPU and its peripheral circuits, and in addition, each data is serially transferred, which causes new problems. That is, since the sound generator targets parallel data, a new device for converting serial data into parallel data is needed. Further, if a musical tone requiring high-speed control such as 32 musical notes is included, there is a problem that a FIFO memory or the like must be provided in the electronic music box.

【0004】[0004]

【発明が解決しようとする課題】制御データを並列的に
転送するためには、スロットバスあるいはセントロニク
ス準拠のプリンタ用パラレルインターフェイスを利用す
ればよいが、スロットバスは、一般的に装置の背後に設
けられいることから接続が容易ではなく、また専用のボ
ードを用意しなければならない。しかも、スロットバス
は各社ごとに仕様が微妙に異なり、また、いわゆるノー
トパソコンにはスロットバスが用意されていないものも
あることから、汎用性が低いという問題があった。
In order to transfer control data in parallel, a slot bus or a parallel interface for printers conforming to Centronics may be used. The slot bus is generally provided behind the device. Because it is difficult to connect, you have to prepare a dedicated board. In addition, the specifications of the slot bus are slightly different for each company, and some so-called notebook computers do not have a slot bus, so there is a problem of low versatility.

【0005】一方、セントロニクス準拠のプリンタ用イ
ンターフェイスは、規格が統一されてノートパソコン等
にも標準装備されており、また接続ケーブルの着脱も極
めて容易であることから、上記スロットバスが抱えてい
る問題は全て解決することができる。しかしながら、上
記したプリンタ用インターフェイスでは、8ビットのデ
ータライン以外にはデータ・ストローブライン(ST
B)が唯一の受信用制御信号となっている。
On the other hand, the Centronics compliant printer interface has a unified standard and is also standard equipment in notebook computers and the like, and the connection cable can be attached and detached very easily. Can all be solved. However, in the printer interface described above, the data strobe line (ST
B) is the only control signal for reception.

【0006】これに対して、電子オルゴールに内蔵され
るサウンドジェネレータでは、8ビットのデータ入力端
子以外に、ライト・イネーブル(WE)端子、チップセ
レクト(CS)端子、および制御端子(例えば、後に詳
述するA0 端子)といった3つの制御端子を同時に制御
しなければならない。具体的に言えば、上記3種類の制
御端子のうち、WE端子およびCS端子は共通の信号で
制御可能であることから、データ入力端子以外に、少な
くとも2種類の端子を異なった信号で制御する必要があ
るため、上記プリンタ用インターフェイスでは、制御信
号が不足するという問題があった。
On the other hand, in the sound generator built into the electronic music box, in addition to the 8-bit data input terminal, a write enable (WE) terminal, a chip select (CS) terminal, and a control terminal (for example, details will be described later). It is necessary to control three control terminals such as A0 terminal mentioned above) at the same time. Specifically, among the above three types of control terminals, the WE terminal and the CS terminal can be controlled by a common signal, so that at least two types of terminals other than the data input terminal are controlled by different signals. Therefore, the printer interface has a problem of lack of control signals.

【0007】本発明の目的は、上記した従来技術の問題
点を解決し、外部機器から電子オルゴールへの制御デー
タの転送を、汎用性および操作性に優れたセントロニク
ス準拠のプリンタ用インターフェイスを利用して並列的
に行えるようにすることにある。
An object of the present invention is to solve the above-mentioned problems of the prior art and to transfer control data from an external device to an electronic music box by using a printer interface conforming to Centronics which is excellent in versatility and operability. It can be done in parallel.

【0008】[0008]

【課題を解決するための手段】上記した目的を達成する
ために、本発明では、以下のような手段を講じた点に特
徴がある。 (1) 内蔵したサウンドジェネレータを、外部機器から入
力された楽音データに基づいて制御する電子オルゴール
において、外部機器のセントロニクスインターフェイス
と接続される入力インターフェイス部の各データライン
およびストローブラインを、それぞれサウンドジェネレ
ータの各データ入力端子および第1の制御端子と接続す
ると共に、各データライン上に送出されたデータに基づ
いて制御信号を生成する手段を設け、生成された制御信
号をサウンドジェネレータの第2の制御端子へ供給する
ようにした点に特徴がある。 (2) 前記電子オルゴールを駆動する駆動装置であって、
セントロニクスインターフェイスのストローブラインを
独立的に制御する手段と、サウンドジェネレータの動作
に影響を及ぼさないダミーデータを生成する手段と、サ
ウンドジェネレータのアドレスを指定するための第1の
データ、およびこのアドレスに記憶させる第2のデータ
をデータライン上に送出する手段と、第1のデータおよ
び第2のデータの送出に先立って、前記ダミーデータを
前記データライン上にそれぞれ送出する手段とを設け、
前記ストローブラインを独立的に制御する手段は、前記
第1のデータを送出する主要期間はストローブラインを
第1のレベルとし、第2のデータを送出する主要期間は
第2のレベルとするようにした点に特徴がある。
In order to achieve the above object, the present invention is characterized in that the following means are taken. (1) In an electronic music box that controls the built-in sound generator based on the musical sound data input from an external device, each data line and strobe line of the input interface section connected to the Centronics interface of the external device are respectively connected to the sound generator. And a means for generating a control signal based on the data transmitted on each data line, and connecting the generated control signal to the second control of the sound generator. The feature is that it is supplied to the terminals. (2) A drive device for driving the electronic music box,
Means for independently controlling the strobe line of the Centronics interface, means for generating dummy data that does not affect the operation of the sound generator, first data for specifying the address of the sound generator, and storage at this address Means for sending the second data on the data line, and means for sending the dummy data on the data line prior to sending the first data and the second data, respectively.
The means for independently controlling the strobe line sets the strobe line at the first level during the main period for transmitting the first data, and sets the second level during the main period for transmitting the second data. The point is that it was done.

【0009】[0009]

【作用】上記した各構成によれば、データライン上に送
出される8ビットデータに基づいて新たに1つの制御信
号を生成することができるので、結局、セントロニクス
インターフェイス上の信号から、8ビットデータ以外
に、STB信号を含めて2種類の制御信号が得られるこ
とになる。したがって、この8ビットデータおよび2種
類の制御信号をサウンドジェネレータのデータ入力端子
および2つの制御端子にそれぞれ入力すれば、セントロ
ニクス準拠のパラレルインターフェイスを利用して、外
部機器から電子オルゴールを制御できるようになる。
According to each of the above-mentioned constitutions, one control signal can be newly generated based on the 8-bit data sent on the data line, so that the 8-bit data is finally obtained from the signal on the Centronics interface. Besides, two types of control signals including the STB signal are obtained. Therefore, by inputting the 8-bit data and the two types of control signals to the data input terminal and the two control terminals of the sound generator respectively, it is possible to control the electronic music box from an external device using the parallel interface conforming to Centronics. Become.

【0010】[0010]

【実施例】以下、図面を参照して本発明を詳細に説明す
る。図1は、本発明の電子オルゴールが適用されるシス
テムの構成を示した図であり、電子オルゴール部1は汎
用のプリンタケーブル2を介してパーソナルコンピュー
タ等の外部機器3と接続される。電子オルゴール部1か
ら出力された楽音信号は、増幅器4を介してスピーカ5
から出力される。なお、増幅器4およびスピーカ5は、
電子オルゴール部1に内蔵されるようにしても良い。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described in detail below with reference to the drawings. FIG. 1 is a diagram showing a configuration of a system to which the electronic music box of the present invention is applied. The electronic music box unit 1 is connected to an external device 3 such as a personal computer via a general-purpose printer cable 2. The musical tone signal output from the electronic music box unit 1 is transmitted to the speaker 5 via the amplifier 4.
Is output from. The amplifier 4 and the speaker 5 are
It may be built in the electronic music box unit 1.

【0011】図2は、本発明の一実施例である電子オル
ゴール部1の主要部の構成を示したブロック図であり、
ここでは、本発明の説明に不必要な構成は、その記載を
省略している。
FIG. 2 is a block diagram showing the configuration of the main part of the electronic music box unit 1 which is an embodiment of the present invention.
Here, the description of the configurations unnecessary for the description of the present invention is omitted.

【0012】同図において、データ入力コネクタ10
は、その機械的寸法および端子配列等がセントロニクス
仕様に準拠しており、汎用のプリンタケーブル2を利用
して、外部機器3に設けられたセントロニクス準拠のプ
リンタ用コネクタと相互に接続される。
In the figure, the data input connector 10
The mechanical dimensions, terminal arrangement, and the like conform to the Centronics specification, and the general-purpose printer cable 2 is used to mutually connect to a Centronics-compliant printer connector provided in the external device 3.

【0013】サウンドジェネレータ20は、例えばヤマ
ハ株式会社製のLSI「OPLLYM2413」であ
り、データバスD0 〜D7 に入力された制御データにし
たがって、楽音のエンベロープの形状や変調度、周波数
および発音モード等を決定し、出力端子OUTから各種
の楽音信号を出力する。制御信号生成部30は、8ビッ
トの入力データに基づいてサウンドジェネレータ20用
の制御信号を生成し、これを出力する。
The sound generator 20 is, for example, an LSI "OPLYM2413" manufactured by Yamaha Corporation, and determines the shape of the envelope of the musical tone, the degree of modulation, the frequency and the tone generation mode according to the control data input to the data buses D0 to D7. Then, various musical tone signals are output from the output terminal OUT. The control signal generation unit 30 generates a control signal for the sound generator 20 based on the 8-bit input data, and outputs this.

【0014】プリンタケーブル2を介して外部機器3か
ら入力されるデータ・ストローブ(STB)信号は、サ
ウンドジェネレータ20のA0 端子に入力される。ま
た、8ビットのデータ信号D0 〜D7 は、サウンドジェ
ネレータ20のデータ入力端子D0 〜D7 および制御信
号生成部30に入力される。制御信号生成部30の出力
信号は、サウンドジェネレータ20のチップセレクト
(CS)端子およびライト・イネーブル(WE)端子に
入力される。
A data strobe (STB) signal input from the external device 3 via the printer cable 2 is input to the A0 terminal of the sound generator 20. The 8-bit data signals D0 to D7 are input to the data input terminals D0 to D7 of the sound generator 20 and the control signal generating section 30. The output signal of the control signal generation unit 30 is input to the chip select (CS) terminal and the write enable (WE) terminal of the sound generator 20.

【0015】前記サウンドジェネレータ20のA0 端子
は、データ入力端子D0 〜D7 に入力されるデータの用
途を指定するための制御端子であり、A0 端子が“L”
レベルのときに入力された8ビットデータは、サウンド
ジェネレータ20内に設けられたレジスタのアドレス指
定用に用いられ、“H”レベルのときに入力された8ビ
ットデータは、当該指定されたレジスタに記憶されるデ
ータとなる。
The A0 terminal of the sound generator 20 is a control terminal for designating the purpose of the data input to the data input terminals D0 to D7, and the A0 terminal is "L".
The 8-bit data input at the level is used for addressing a register provided in the sound generator 20, and the 8-bit data input at the “H” level is stored in the specified register. It becomes the stored data.

【0016】図3は、前記制御信号生成部30の構成の
一例を具体的に示した回路図、図4は、その主要部の信
号波形を示した図である。
FIG. 3 is a circuit diagram specifically showing an example of the configuration of the control signal generator 30, and FIG. 4 is a diagram showing signal waveforms of the main part thereof.

【0017】プリンタケーブル2を介して外部機器から
入力された8ビットの制御データD0 〜D7 は8入力N
ANDゲート31に入力される。NANDゲート31の
出力端子は抵抗R1 、R2 の一端に接続されている。抵
抗R2 の他端はコンデンサC2 の一端および2入力NA
NDゲート33の一方の入力端子に接続され、抵抗R1
の他端はコンデンサC1 の一端およびインバータ32の
入力端子に接続されている。コンデンサC1 、C2 の他
端は接地されている。インバータ32の出力端子は2入
力NANDゲート33の他方の入力端子に接続され、N
ANDゲート33の出力信号は、前記したようにサウン
ドジェネレータ20のWE端子よびCS端子に入力され
る。
The 8-bit control data D0 to D7 input from the external device via the printer cable 2 are 8-input N.
It is input to the AND gate 31. The output terminal of the NAND gate 31 is connected to one ends of the resistors R1 and R2. The other end of the resistor R2 is connected to one end of the capacitor C2 and the 2-input NA.
The resistor R1 is connected to one input terminal of the ND gate 33.
The other end of is connected to one end of the capacitor C1 and the input terminal of the inverter 32. The other ends of the capacitors C1 and C2 are grounded. The output terminal of the inverter 32 is connected to the other input terminal of the 2-input NAND gate 33,
The output signal of the AND gate 33 is input to the WE terminal and the CS terminal of the sound generator 20 as described above.

【0018】このような構成によれば、入力された8ビ
ットの制御データが予定の値(本実施例では、&HF
F)となってNANDゲート31からパルス信号S1 が
出力されると、当該データが入力されてから予定時間経
過後に、NANDゲート33からパルス信号S5 が出力
される。
According to this structure, the input 8-bit control data has a predetermined value (& HF in this embodiment).
When the pulse signal S1 is output from the NAND gate 31 in F), the pulse signal S5 is output from the NAND gate 33 after a predetermined time has elapsed since the data was input.

【0019】次いで、外部装置3による当該電子オルゴ
ールの制御方法について説明する。本実施例では外部装
置として、日本電気株式会社製のPC−9800シリー
ズのパーソナルコンピュータを用いた場合を例にして説
明する。
Next, a method of controlling the electronic music box by the external device 3 will be described. In the present embodiment, a case where a personal computer of PC-9800 series manufactured by NEC Corporation is used as an external device will be described as an example.

【0020】当該パーソナルコンピュータ3では、図5
に示したように、バスライン60が8255系の入出力
インターフェイスIC40を介してパラレルインターフ
ェイス用コネクタ50と接続されている。IC40のP
Aポートにはアドレス“&H40”が割り当てられ、P
Cポートにはアドレス“&H44”が割り当てられてい
る。PAポートはパラレルインターフェイスのデータバ
スラインD0 〜D7 と接続され、PCポートは、その最
上位ビット(MSB)D7 がパラレルインターフェイス
のSTB信号ラインと接続されている。
In the personal computer 3 shown in FIG.
As shown in FIG. 5, the bus line 60 is connected to the parallel interface connector 50 via the input / output interface IC 40 of the 8255 system. IC40 P
Address "&H40" is assigned to port A, and P
The address "&H44" is assigned to the C port. The PA port is connected to the data bus lines D0 to D7 of the parallel interface, and the PC port has its most significant bit (MSB) D7 connected to the STB signal line of the parallel interface.

【0021】図6は、パーソナルコンピュータ3側でベ
ーシックのプログラムを用いて電子オルゴール部1を制
御する場合に実行される命令〜と、当該命令により
電子オルゴール部1に入力される信号のタイミグチャー
トを示している。なお、ここでは本発明の説明に必要な
命令・動作のみを示している。
FIG. 6 shows a command to be executed when the personal computer 3 controls the electronic music box unit 1 using a basic program, and a timing chart of signals input to the electronic music box unit 1 by the command. Shows. It should be noted that only the instructions and operations necessary for explaining the present invention are shown here.

【0022】命令では、アドレス“&H44”が指定
されてSTB信号出力用のデータ“&H0”が出力され
る。この結果、図5のIC40ではPCポートが選択さ
れ、そのD7 端子から“L”レベルのデータが出力され
るので、インターフェイス上ではSTB信号が“L”レ
ベルとなる。したがって、電子オルゴール部1側ではA
0 端子が“L”レベルとなる。
In the instruction, the address "&H44" is designated and the data "&H0" for outputting the STB signal is output. As a result, in the IC 40 of FIG. 5, the PC port is selected and the data of "L" level is output from the D7 terminal thereof, so that the STB signal becomes "L" level on the interface. Therefore, on the electronic music box section 1 side, A
The 0 terminal goes to "L" level.

【0023】命令では、アドレス“&H40”が指定
されてダミーのデータ“&HFF”が出力される。この
結果、IC40ではPAポートが選択され、そのD0 〜
D7端子の全てから“H”レベルのデータが出力され
る。したがって、電子オルゴール部1側では、サウンド
ジェネレータ20および制御信号生成部30の各データ
入力端子に“&HFF”のデータが入力されることにな
る。
In the instruction, the address "&H40" is designated and dummy data "&HFF" is output. As a result, the IC 40 selects the PA port, and D0 to
"H" level data is output from all D7 terminals. Therefore, on the electronic music box unit 1 side, the data “& HFF” is input to each data input terminal of the sound generator 20 and the control signal generation unit 30.

【0024】このとき、図3に示した制御信号生成部3
0では、NANDゲート31の出力端子がデータ“&H
FF”の出力期間だけ、図5に破線で示したタイミング
で立ち下がる(パルスS1 )が、NANDゲート33の
出力端子は依然として“H”レベルのまま(図4を参
照)なので、当該“&HFF”データがサウンドジェネ
レータ20に対して影響を及ぼすことはない。
At this time, the control signal generator 3 shown in FIG.
At 0, the output terminal of the NAND gate 31 is data "&H".
Although it falls at the timing shown by the broken line in FIG. 5 (pulse S1) only during the FF "output period, the output terminal of the NAND gate 33 is still at the" H "level (see FIG. 4). The data has no effect on the sound generator 20.

【0025】命令では、アドレス“&H40”が指定
されて所望の制御データ“&H△△”が出力される。こ
の結果、IC40ではPAポートが選択され、そのD0
〜D7 端子にはデータ“&H△△”が出力される。電子
オルゴール部1側では、サウンドジェネレータ20およ
び制御信号生成部30の各データ入力端子にデータ“&
H△△”が入力される。
In the instruction, the address "&H40" is designated and the desired control data "&HΔΔ" is output. As a result, the PA port is selected in IC40 and its D0
Data "& H △△" is output to the ~ D7 terminals. On the electronic music box section 1 side, data “&” is input to each data input terminal of the sound generator 20 and the control signal generation section 30.
HΔΔ ”is input.

【0026】このとき、サウンドジェネレータ20のA
0 端子は、先の命令により既に“L”レベルとなって
いる。そして、制御信号生成部30からは、先の命令
によりNANDゲート31から出力されたパルス信号S
1 が、図5に示したように予定時間だけ遅延されてNA
NDゲート33からパルス信号S5 として出力され、こ
れがCS信号およびWE信号としてサウンドジェネレー
タ20に入力されるので、当該データ“&H△△”によ
り、サウンドジェネレータ20のレジスタアドレスが指
定されることになる。
At this time, A of the sound generator 20
The 0 terminal has already been at the “L” level according to the previous instruction. Then, from the control signal generation unit 30, the pulse signal S output from the NAND gate 31 in accordance with the previous instruction.
1 is delayed by the scheduled time as shown in FIG.
Since the pulse signal S5 is output from the ND gate 33 and is input to the sound generator 20 as the CS signal and the WE signal, the register address of the sound generator 20 is designated by the data “& HΔΔ”.

【0027】命令では、アドレス“&H44”が指定
されてデータ“&H80”が出力される。この結果、図
5のIC40ではPCポートが選択され、そのD7 端子
から“H”レベルのデータが出力されるので、インター
フェイス上ではSTB信号が“H”レベルとなる。した
がって、電子オルゴール部1側ではA0 端子が“H”レ
ベルとなる。
In the instruction, the address "&H44" is designated and the data "&H80" is output. As a result, in the IC 40 of FIG. 5, the PC port is selected and the "H" level data is output from the D7 terminal, so that the STB signal becomes the "H" level on the interface. Therefore, on the electronic music box section 1 side, the A0 terminal becomes "H" level.

【0028】命令では、アドレス“&H40”が指定
されてダミーのデータ“&HFF”が出力され、前記命
令の場合と同様の制御が行われる。
In the instruction, the address "&H40" is designated and dummy data "&HFF" is output, and the same control as in the case of the above instruction is performed.

【0029】命令では、アドレス“&H40”が指定
されて所望の制御データ“&H××”が出力される。こ
の結果、IC40ではPAポートが選択され、そのD0
〜D7 端子にはデータ“&H××”が出力される。電子
オルゴール側1では、サウンドジェネレータ20および
制御信号生成部30の各データ入力端子に“&H××”
のデータが入力されることになる。
In the instruction, the address "&H40" is designated and the desired control data "&HXX" is output. As a result, the PA port is selected in IC40 and its D0
Data "&HXX" is output to the ~ D7 terminals. On the electronic music box side 1, “& Hxx” is attached to each data input terminal of the sound generator 20 and the control signal generator 30.
Will be input.

【0030】このとき、サウンドジェネレータ20のA
0 端子は、先の命令により既に“H”レベルとなって
いる。そして、制御信号生成部30からは、先の命令
によりNANDゲート33から出力されたパルス信号S
5 が、前記と同様にCS信号およびWE信号としてサウ
ンドジェネレータ20に入力されるので、当該データ
“&H××”は、先にデータ“&H△△”で指定された
レジスタに記憶されることになる。
At this time, A of the sound generator 20
The 0 terminal has already been set to the “H” level by the previous instruction. Then, from the control signal generation unit 30, the pulse signal S output from the NAND gate 33 according to the previous instruction.
Since 5 is input to the sound generator 20 as the CS signal and the WE signal in the same manner as described above, the data “& Hxx” is stored in the register designated by the data “& HΔΔ”. Become.

【0031】上記したように本実施例では、パーソナル
コンピュータ3から電子オルゴール部1に対して本来の
制御データを送出する際に、その制御データの送出に先
立ってダミーのデータ“&HFF”を出力すると共に、
電子オルゴール部1側では、入力されたダミーデータに
基づいて、制御信号生成部30が本来の制御データの入
力タイミングで出力されるCS信号,WE信号を生成す
るようにした。したがって、唯一の制御信号であるST
B信号から、A0 信号およびWE信号(CS信号)とい
う2種類の信号を生成することができ、セントロニクス
仕様のインターフェイスを利用して電子オルゴールを制
御することができるようになる。
As described above, in this embodiment, when the original control data is sent from the personal computer 3 to the electronic music box section 1, the dummy data "&HFF" is output prior to the sending of the control data. With
On the electronic music box unit 1 side, the control signal generation unit 30 generates the CS signal and the WE signal output at the original input timing of the control data, based on the input dummy data. Therefore, the only control signal is ST
Two kinds of signals, an A0 signal and a WE signal (CS signal), can be generated from the B signal, and the electronic music box can be controlled by using the interface of the Centronics specification.

【0032】なお、上記した実施例ではダミーデータと
して“&HFF”を用いるものとして説明したが、サウ
ンドジェネレータの動作に影響を及ぼさない制御データ
であれば、これ以外の制御データをダミーデータとして
利用しても良い。
In the above embodiment, "&HFF" is used as the dummy data, but if the control data does not affect the operation of the sound generator, the other control data is used as the dummy data. May be.

【0033】また、上記した実施例では、ダミーデータ
に基づいてCS信号,WE信号を生成する手段として、
図3に示した制御信号生成部30を用いたが、本発明は
これのみに限定されず、入力されたダミーデータに基づ
いて、本来の制御データの入力タイミングでパルス信号
を出力できるものであれば、どのような回路構成であっ
ても良い。
Further, in the above-mentioned embodiment, as means for generating the CS signal and the WE signal based on the dummy data,
Although the control signal generation unit 30 shown in FIG. 3 is used, the present invention is not limited to this, and any pulse signal can be output at the original control data input timing based on the input dummy data. As long as it has any circuit configuration.

【0034】さらに、上記した実施例では、制御信号生
成部30で生成されたパルス信号を、サウンドジェネレ
ータ20のCS端子およびWE端子のいずれにも入力す
るものとして説明したが、CS端子は常時“L”レベル
(イネーブル)とし、WE端子のみに入力するようにし
ても良い。
Further, in the above embodiment, the pulse signal generated by the control signal generating section 30 is described as being input to both the CS terminal and the WE terminal of the sound generator 20, but the CS terminal is always "". It may be set to L ″ level (enable) and input only to the WE terminal.

【0035】[0035]

【発明の効果】上記したように、本発明では外部機器側
からは本来の制御データの送出に先立ってダミーデータ
(&HFF)を送出する一方、電子オルゴール側では、
入力されたダミーデータに基づいて、この次に入力され
る本来の制御データ(&H△△や&H××)の入力タイ
ミングで発生するパルス信号S5 を生成するようにし
た。そして、この生成したパルス信号およびSTB信号
を、それぞれWE信号(CS信号)およびA0 信号とし
てサウンドジェネレータに供給するようにしたので、制
御信号としてSTB信号しか有しないセントロニクス仕
様のインターフェイスを利用して、A0 信号およびWE
(CS)信号という、2種類の制御信号を必要とする電
子オルゴール(サウンドジェネレータ)を制御できるよ
うになる。
As described above, according to the present invention, the dummy data (& HFF) is transmitted from the external device side prior to the transmission of the original control data, while the electronic music box side is transmitted.
Based on the input dummy data, the pulse signal S5 generated at the input timing of the original control data (& HΔΔ or & HXX) to be input next is generated. Then, the generated pulse signal and STB signal are supplied to the sound generator as the WE signal (CS signal) and the A0 signal, respectively. Therefore, using the Centronics interface having only the STB signal as the control signal, A0 signal and WE
It becomes possible to control an electronic music box (sound generator) that requires two types of control signals, which are (CS) signals.

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

【図1】 本発明の電子オルゴールが適用されるシステ
ムの構成を示した図である。
FIG. 1 is a diagram showing a configuration of a system to which an electronic music box of the present invention is applied.

【図2】 電子オルゴールの主要部の構成を示したブロ
ック図である。
FIG. 2 is a block diagram showing a configuration of a main part of an electronic music box.

【図3】 制御信号生成部30の構成を具体的に示した
回路図である。
FIG. 3 is a circuit diagram specifically showing a configuration of a control signal generator 30.

【図4】 図3の主要部の信号波形を示した図である。FIG. 4 is a diagram showing a signal waveform of a main part of FIG.

【図5】 外部機器3のインターフェイス部の構成を示
した図である。
FIG. 5 is a diagram showing a configuration of an interface section of the external device 3.

【図6】 外部機器3による制御方法を説明するための
図である。
FIG. 6 is a diagram for explaining a control method by the external device 3.

【符号の説明】[Explanation of symbols]

1…電子オルゴール、2…プリンタケーブル、3…外部
機器、4…増幅器、5…スピーカ、10…データ入力コ
ネクタ、20…サウンドジェネレータ、30…制御信号
生成部、40…8255系入出力インターフェイスI
C、50…パラレルインターフェイス用コネクタ
DESCRIPTION OF SYMBOLS 1 ... Electronic music box, 2 ... Printer cable, 3 ... External device, 4 ... Amplifier, 5 ... Speaker, 10 ... Data input connector, 20 ... Sound generator, 30 ... Control signal generation part, 40 ... 8255 system input / output interface I
C, 50 ... Parallel interface connector

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 内蔵したサウンドジェネレータを、外部
機器から入力されたデータに基づいて制御する電子オル
ゴールにおいて、 外部機器のセントロニクスインターフェイスと接続され
る入力インターフェイス部と、 前記入力インターフェイス部のデータ・ストローブライ
ンをサウンドジェネレータの第1の制御端子と接続する
手段と、並列データの入力端子を備え、前記入力端子に入力され
る並列データに基づいて制御信号を生成し、これを出力
する制御信号生成手段と、 前記入力インターフェイス部の並列データラインを、前
記サウンドジェネレータの並列入力端子および前記制御
信号生成手段の並列入力端子へ分岐接続する手段と、 前記制御信号生成手段の出力端子をサウンドジェネレー
タの第2の制御端子と接続する接続手段と を具備したこ
とを特徴とする電子オルゴール。
1. An electronic music box for controlling a built-in sound generator based on data input from an external device, an input interface unit connected to a Centronics interface of the external device, and a data strobe line of the input interface unit. Means for connecting to the first control terminal of the sound generator, and an input terminal for parallel data,
Generate a control signal based on parallel data and output it
The control signal generating means and the parallel data line of the input interface unit
The parallel input terminals of the sound generator and the control
A means for branching and connecting to a parallel input terminal of the signal generating means and an output terminal of the control signal generating means are connected to the sound generator.
An electronic music box, comprising: a connecting means for connecting to a second control terminal of the electronic musical instrument .
【請求項2】 前記データライン上のデータに基づいて
制御信号を生成する手段は、 データライン上の予定のデータに応答して、予定のタイ
ミングでパルス信号を出力することを特徴とする請求項
1に記載の電子オルゴール。
2. The means for generating a control signal based on the data on the data line outputs a pulse signal at a predetermined timing in response to predetermined data on the data line. The electronic music box described in 1.
【請求項3】 前記予定のタイミングは、前記予定のデ
ータの次のデータがデータライン上に出力されている期
間であることを特徴とする請求項2に記載の電子オルゴ
ール。
3. The electronic music box according to claim 2, wherein the scheduled timing is a period during which data next to the scheduled data is output on a data line.
【請求項4】 前記予定のデータは、サウンドジェネレ
ータの動作に影響を及ぼさないダミーデータであること
を特徴とする請求項2または3に記載の電子オルゴー
ル。
4. The electronic music box according to claim 2, wherein the predetermined data is dummy data that does not affect the operation of the sound generator.
【請求項5】 前記第1の制御端子は、データ入力端子
上のデータが、当該データを記憶するアドレスを指定す
るためのデータおよび記憶するデータ自身のいずれであ
るかを決定する制御端子であり、前記第2の制御端子
は、データ書込許可(WE)端子および素子選択(C
S)端子のうち少なくともデータ書込許可端子であるこ
とを特徴とする請求項1ないし4のいずれかに記載の電
子オルゴール。
5. The first control terminal is a control terminal for determining whether the data on the data input terminal is data for designating an address for storing the data or stored data itself. , The second control terminal is a data write enable (WE) terminal and element selection (C
5. The electronic music box according to claim 1, wherein the electronic music box is at least a data write enable terminal among the S) terminals.
【請求項6】 前記請求項1ないし5のいずれかに記載
の電子オルゴールを駆動する駆動装置であって、 セントロニクスインターフェイスと、 前記セントロニクスインターフェイスのストローブライ
ンを独立的に制御する手段と、 サウンドジェネレータの動作に影響を及ぼさないダミー
データを生成する手段と、 サウンドジェネレータのアドレスを指定するための第1
のデータをセントロニクスインターフェイスのデータラ
イン上に送出する手段と、 前記指定したアドレスに記憶させる第2のデータを前記
データライン上に送出する手段と、 第1のデータおよび第2のデータの送出に先立って、前
記ダミーデータを前記データライン上にそれぞれ送出す
る手段とを具備し、 前記ストローブラインを独立的に制御する手段は、前記
第1のデータの送出期間はストローブラインを第1のレ
ベルとし、第2のデータの送出期間は第2のレベルとす
ることを特徴とする電子オルゴールの駆動装置。
6. A drive device for driving the electronic music box according to claim 1, further comprising a centronics interface, means for independently controlling strobe lines of the centronics interface, and a sound generator. A means for generating dummy data that does not affect the operation, and a first means for specifying the address of the sound generator.
Means for sending the data on the data line of the Centronics interface, means for sending the second data to be stored at the specified address on the data line, and prior to sending the first data and the second data. And means for individually sending the dummy data onto the data line, wherein the means for independently controlling the strobe line sets the strobe line to the first level during the sending period of the first data, A driving device for an electronic music box, wherein a second data transmission period is at a second level.
JP07776894A 1994-03-25 1994-03-25 Electronic music box and its driving device Expired - Fee Related JP3481669B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07776894A JP3481669B2 (en) 1994-03-25 1994-03-25 Electronic music box and its driving device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07776894A JP3481669B2 (en) 1994-03-25 1994-03-25 Electronic music box and its driving device

Publications (2)

Publication Number Publication Date
JPH07271719A JPH07271719A (en) 1995-10-20
JP3481669B2 true JP3481669B2 (en) 2003-12-22

Family

ID=13643131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07776894A Expired - Fee Related JP3481669B2 (en) 1994-03-25 1994-03-25 Electronic music box and its driving device

Country Status (1)

Country Link
JP (1) JP3481669B2 (en)

Also Published As

Publication number Publication date
JPH07271719A (en) 1995-10-20

Similar Documents

Publication Publication Date Title
EP0551884B1 (en) Tone signal generator adapted for coupling with personal computer
HK1001932B (en) Tone signal generator adapted for coupling with personal computer
US5758108A (en) Data processing apparatus for variable bus width CPU
EP0624846B1 (en) Bus control apparatus
US5768608A (en) Data processing apparatus and method for making same
JP2850707B2 (en) Music control device
JP3481669B2 (en) Electronic music box and its driving device
JP3208590B2 (en) Serial controller
JP2002518729A (en) Interface device for connecting devices operating at different clock rates and method of operating the interface
US20040027870A1 (en) Ic card and ic card system
US6553506B1 (en) Information processing device and electronic equipment
US5724615A (en) Communication circuit receiving data selectably synchronized to the rising or falling edge of a timing signal provided from the data source
CN111221769A (en) Single wire read-write communication method
KR19990026343A (en) Adaptive Interface Circuitry for Serial and Serial Data Transmission
JP4490837B2 (en) Mobile device
US5703307A (en) Tone generating apparatus with FM sound source and PCM sound source
US7714871B2 (en) System and method for controlling display of mobile terminal
JPH09330156A (en) Bus system and circuit board
JP2871956B2 (en) Print control apparatus and interface setting method
US5900569A (en) Music playing data fetch circuit
JP3003530B2 (en) Integrated circuit device for generating tone signals
JPH10320267A (en) Memory control device and method
JP3278593B2 (en) Register setting method and register setting method
JPH03117116A (en) integrated circuit
JPH10161929A (en) Electronic equipment

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081010

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees