JPH0355908B2 - - Google Patents

Info

Publication number
JPH0355908B2
JPH0355908B2 JP18326182A JP18326182A JPH0355908B2 JP H0355908 B2 JPH0355908 B2 JP H0355908B2 JP 18326182 A JP18326182 A JP 18326182A JP 18326182 A JP18326182 A JP 18326182A JP H0355908 B2 JPH0355908 B2 JP H0355908B2
Authority
JP
Japan
Prior art keywords
data
program
switch
memory
predetermined
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
JP18326182A
Other languages
Japanese (ja)
Other versions
JPS5972689A (en
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 filed Critical
Priority to JP18326182A priority Critical patent/JPS5972689A/en
Publication of JPS5972689A publication Critical patent/JPS5972689A/en
Publication of JPH0355908B2 publication Critical patent/JPH0355908B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)

Description

【発明の詳細な説明】 本発明は、プログラムローデイング方法に関
し、特に所定の演奏順序に従つて複数の曲が演奏
されるように一連の動作を指令するプログラムを
自動演奏プレーヤ等における記憶装置へ記憶させ
るプログラムローデイング方法に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a program loading method, and more particularly, to a program loading method for loading a program that instructs a series of operations so that a plurality of songs are played in a predetermined playing order into a storage device in an automatic performance player or the like. This invention relates to a method for loading a program to be stored.

自動演奏プレーヤ等の一連の動作を指令するプ
ログラムにおける各命令は、例えば演奏する複数
の曲の各々を特定するデータ例えばレコード盤等
の記録媒体に記録された曲の記録順序を示す数値
で形成され、特定した曲の演奏指令となつてい
る。複数のかかる命令で形成されたプログラムを
従来のプログラムローデイング方法によつて記憶
装置に記憶させるプログラムローデイング装置を
第1図に示す。第1図においてSW0,SW1,…
SW9は、0〜9までの10進数の各々に対応するデ
ータを発生させるための数値入力キースイツチで
ある。キースイツチSW0〜SW9の各々は一端が接
地されておりかつ他端がエンコーダ11の対応す
る入力端子の各々に接続されている。キースイツ
チSW0〜SW9のうちの1つを選択的に押圧すると
エンコーダ11の対応する入力端子に低レベル信
号が供給される。そうすると、エンコーダ11よ
り0〜9までの10進数の各々に対応しBCD(2進
化10進)コード化された4ビツトのデータと例え
ば高レベル信号からなるキー入力検知信号aとが
出力される。エンコーダ11より出力された4ビ
ツトのデータはレジスタ12に供給される。ま
た、エンコーダ11より出力されたキー入力検知
信号aは書込み制御回路13に供給される。書込
み制御回路13の書込み指令入力端子には一端が
接地された書込み指令スイツチSW11の他端が接
続されている。書込み指令スイツチSW11を押圧
することにより書込み指令入力端子に低レベル信
号からなる入力データ書込み指令信号bが供給さ
れる。また、この書込み制御回路13にはメモリ
クリヤ制御回路14より所定データ書込み指令信
号cが供給される。書込み制御回路13は、キー
入力検知信号aが供給されるとクロツクパルスd
をレジスタ2に供給しかつ入力データ書込み指令
信号bが供給されると所定時間に亘つて出力バツ
フア制御信号eをレジスタ12に供給すると共に
書込みアドレス発生指令信号fをアドレス発生回
路15に供給しかつ所定データ書込み指令信号c
が供給されると書込みアドレス発生指令信号fを
アドレス発生回路15に供給する構成となつてい
る。また、レジスタ12は例えば4ビツト並列レ
ジスタが2段接続された構成となつており、書込
み制御回路13より供給されたクロツクパルスd
によつて前段のレジスタにエンコーダ11より供
給されたデータをラツチしかつ後段のレジスタに
前段のレジスタの保持データをラツチするように
なつている。従つて、キースイツチSW1〜SW9
択一的な押圧を2回連続して行なうことによりレ
ジスタ12に10進数2桁分のデータが保持され
る。
Each command in a program that instructs a series of operations of an automatic performance player, etc. is formed by, for example, data specifying each of a plurality of songs to be played, and a numerical value indicating the recording order of the songs recorded on a recording medium such as a record. , serves as a performance instruction for the specified song. FIG. 1 shows a program loading device for storing a program formed by a plurality of such instructions in a storage device using a conventional program loading method. In Figure 1, SW 0 , SW 1 ,...
SW 9 is a numerical input key switch for generating data corresponding to each decimal number from 0 to 9. Each of the key switches SW0 to SW9 has one end grounded and the other end connected to each of the corresponding input terminals of the encoder 11. Selectively pressing one of the keyswitches SW 0 -SW 9 provides a low level signal to the corresponding input terminal of the encoder 11. Then, the encoder 11 outputs 4-bit BCD (binary coded decimal) coded data corresponding to each decimal number from 0 to 9 and a key input detection signal a consisting of, for example, a high level signal. The 4-bit data output from the encoder 11 is supplied to the register 12. Further, the key input detection signal a output from the encoder 11 is supplied to the write control circuit 13. A write command input terminal of the write control circuit 13 is connected to a write command switch SW 11 whose one end is grounded and the other end thereof. By pressing the write command switch SW11 , an input data write command signal b consisting of a low level signal is supplied to the write command input terminal. Further, this write control circuit 13 is supplied with a predetermined data write command signal c from a memory clear control circuit 14 . When the write control circuit 13 is supplied with the key input detection signal a, the write control circuit 13 generates a clock pulse d.
is supplied to the register 2, and when the input data write command signal b is supplied, the output buffer control signal e is supplied to the register 12 for a predetermined period of time, and the write address generation command signal f is supplied to the address generation circuit 15. Predetermined data write command signal c
When supplied, a write address generation command signal f is supplied to the address generation circuit 15. Further, the register 12 has a configuration in which two stages of 4-bit parallel registers are connected, for example, and receives a clock pulse d supplied from the write control circuit 13.
The data supplied from the encoder 11 is latched in the register of the previous stage, and the data held in the register of the previous stage is latched in the register of the latter stage. Therefore, by selectively pressing the key switches SW 1 to SW 9 twice, two decimal digits of data are held in the register 12.

次に、書込み指令スイツチSW11が押圧される
と書込み制御回路13よりレジスタ12に出力バ
ツフア制御信号eが供給されると共に書込みアド
レス発生指令信号fがアドレス発生回路15に供
給される。アドレス発生回路15は、例えば書込
みアドレス発生指令信号f及び読出しアドレス発
生指令信号gによつてカウントアツプする4ビツ
トバイナリカウンタと、読出しアドレス発生指令
信号gによつてトリガされる単安定マルチバイブ
レータとを含んだ構成となつている。このアドレ
ス発生回路15におけるバイナリカウンタの出力
はメモリ16のアドレス入力端子に供給されてい
る。また、出力バツフア制御信号がレジスタ12
に供給されると、レジスタ12における出力バツ
フアが活性化され、前段のレジスタの出力で下位
4ビツトが形成されかつ後段のレジスタの出力で
上位4ビツトが形成された8ビツトのデータすな
わちBCDコード化された10進数2桁分のデータ
が出力バツフアを介してデータバス17に送出さ
れる。そして、データバス17に送出された10進
数2桁分のデータが自動演奏プレーヤの動作を指
令する命令としてアドレス発生回路15の出力に
よつて指定されるメモリ16における記憶場所に
記憶される。
Next, when the write command switch SW 11 is pressed, the write control circuit 13 supplies the output buffer control signal e to the register 12 and the write address generation command signal f to the address generation circuit 15. The address generation circuit 15 includes, for example, a 4-bit binary counter that counts up in response to the write address generation command signal f and the read address generation command signal g, and a monostable multivibrator that is triggered by the read address generation command signal g. It has a structure that includes The output of the binary counter in the address generation circuit 15 is supplied to the address input terminal of the memory 16. Also, the output buffer control signal is output to the register 12.
, the output buffer in register 12 is activated, and the 8-bit data, in which the lower 4 bits are formed by the output of the previous register and the upper 4 bits are formed by the output of the subsequent register, is converted into BCD code. The resulting two-digit decimal number data is sent to the data bus 17 via the output buffer. Then, the two-digit decimal number data sent to the data bus 17 is stored in a storage location in the memory 16 designated by the output of the address generation circuit 15 as a command for instructing the operation of the automatic performance player.

キースイツチSW0〜SW9の択一的押圧を2回連
続して行なつたのちスイツチSW11を押圧すると
いう操作を所定回数繰り返すことにより所定の演
奏順序に従つて自動演奏がなされるように一連の
動作を指令するプログラムがメモリ16に記憶さ
れる。ここで、キースイツチSW0〜SW9の誤操作
等によつて誤つたプログラムが記憶された場合等
においてメモリ16の記憶内容を消去したいとき
一端が接地されたクリヤスイツチSW12を押圧す
ると、スイツチSW12の他端より低レベル信号か
らなるクリヤ指令信号hがメモリクリヤ制御回路
14に供給される。メモリクリヤ制御回路14
は、クリヤ指令信号hが供給されたとき所定時間
間隔をもつて所定データ書込み指令信号cを書込
み制御回路13に所定回数供給すると共に2桁の
10進数“00”に対応しBCDコード化された8ビ
ツトのデータをデータバス17に送出するように
構成されている。このため、クリヤスイツチ
SW12の押圧操作によつてアドレス発生回路15
におけるカウンタがカウントアツプしてプログラ
ムが記憶されるべきメモリ16における記憶場所
を指定するアドレスが順次変化してプログラムが
記憶されていた場所に順次データ“00”が書込ま
れ、メモリ16の記憶内容が消去される。
By repeating the operation of selectively pressing key switches SW 0 to SW 9 twice in succession and then pressing switch SW 11 a predetermined number of times, a series of automatic performances are performed according to a predetermined performance order. A program that instructs the operation of is stored in memory 16. Here, if you want to erase the stored contents of the memory 16, such as when an incorrect program is stored due to an erroneous operation of the key switches SW 0 to SW 9 , press the clear switch SW 12 , one end of which is grounded, and the switch SW 12 A clear command signal h consisting of a low level signal is supplied to the memory clear control circuit 14 from the other end. Memory clear control circuit 14
supplies a predetermined data write command signal c to the write control circuit 13 a predetermined number of times at predetermined time intervals when the clear command signal h is supplied, and also outputs a two-digit data
It is configured to send 8-bit BCD-coded data to the data bus 17 corresponding to the decimal number "00". For this reason, the clear switch
Address generation circuit 15 is activated by pressing SW 12 .
As the counter counts up, the address specifying the storage location in the memory 16 where the program is to be stored changes sequentially, data "00" is sequentially written to the location where the program was stored, and the storage contents of the memory 16 change. will be deleted.

メモリ16にプログラムが誤りなく記憶された
のち例えば自動演奏スタートスイツチ(図示せ
ず)が押圧されると、自動演奏プレーヤの制御回
路(図示せず)より読出し指令信号が読出し制御
回路18に供給される。そうすると、読出し制御
回路18より読出しアドレス発生指令信号gがア
ドレス発生回路15に供給される。アドレス発生
回路15において、読出しアドレス発生指令信号
gによつてバイナリカウンタがカウントアツプす
ると共に単安定マルチバイブレータがトリガされ
て例えば所定時間幅の高レベル信号iがこの単安
定マルチバイブレータのQ出力端子より出力され
てメモリ16のリード・ライト制御入力端子及び
出力バツフア回路19のクロツク入力端子に供給
される。そうすると、メモリ16は所定時間に亘
つて読出しモードとなり、アドレス発生回路15
のアドレス出力によつて指定される場所に記憶さ
れている命令が読出されてデータバス17に送出
される。この読出された命令は、アドレス発生回
路15より出力された所定時間幅の高レベル信号
iの例えば消滅時に出力バツフア回路19に保持
される。そして、この出力バツフア回路19に保
持された命令が自動演奏プレーヤの制御回路(図
示せず)に供給される。
For example, when an automatic performance start switch (not shown) is pressed after the program is stored without error in the memory 16, a read command signal is supplied to the read control circuit 18 from the control circuit (not shown) of the automatic performance player. Ru. Then, the read address generation command signal g is supplied from the read control circuit 18 to the address generation circuit 15. In the address generation circuit 15, the read address generation command signal g causes a binary counter to count up and a monostable multivibrator to be triggered, so that, for example, a high level signal i with a predetermined time width is output from the Q output terminal of this monostable multivibrator. The signal is output and supplied to the read/write control input terminal of the memory 16 and the clock input terminal of the output buffer circuit 19. Then, the memory 16 is in the read mode for a predetermined period of time, and the address generation circuit 15
The instruction stored in the location specified by the address output of is read out and sent to the data bus 17. This read command is held in the output buffer circuit 19 when, for example, the high level signal i of a predetermined time width outputted from the address generation circuit 15 disappears. The commands held in the output buffer circuit 19 are then supplied to a control circuit (not shown) of the automatic performance player.

以上の如く従来のプログラムローデイング方法
による装置においてはメモリ16の記憶内容を消
去するためにクリヤスイツチSW12が必要となつ
ているので、操作スイツチが多くなつて機器の小
型化に際して設計上の制約が多くなると共に操作
スイツチが誤操作され易くなつて最悪の場合メモ
リ16の記憶内容が誤消去されてしまうという不
都合が発生することとなる。
As described above, in the device using the conventional program loading method, the clear switch SW 12 is required to erase the stored contents of the memory 16, so the number of operation switches increases, and there are design constraints when miniaturizing the device. As the number of times increases, the operation switch is more likely to be operated erroneously, and in the worst case, the contents of the memory 16 may be erased by mistake.

そこで、本発明の目的は記憶装置の記憶内容を
消去するための操作スイツチを不要としかつ記憶
装置の記憶内容の誤消去を防止することができる
プログラムローデイング方法を提供することであ
る。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a program loading method that does not require an operation switch for erasing the contents of a storage device and can prevent the contents of the storage device from being erased erroneously.

本発明によるプログラムローデイング方法は、
入力データと所定データとを比較してこれら入力
データと所定データとが一致したときのみ記憶装
置の記憶内容を消去することを特徴としている。
The program loading method according to the present invention includes:
It is characterized in that the input data and predetermined data are compared and the stored contents of the storage device are erased only when the input data and the predetermined data match.

以下、本発明の実施例につき第2図乃至第4図
を参照して詳細に説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to FIGS. 2 to 4.

第2図に示す如くキースイツチSW0〜SW9、書
込み指令スイツチSW11、エコーダ11、レジス
タ12、書込み制御回路13、アドレス発生回路
15、メモリ16、データバス17、読出し制御
回路18、出力バツフア回路19は第1図と同様
に接続されている。しかしながら、本例において
はBCDコード化された8ビツトの所定データを
出力する所定データ発生回路20が設けられてい
る。この所定データ発生回路20の出力はデータ
比較回路21に供給されている。データ比較回路
21は、レジスタ12の出力が有するビツトパタ
ーンと所定データ発生回路20の出力が有するビ
ツトパターンとが一致したとき所定時間間隔をも
つて所定データ書込み指令信号cを書込み制御回
路3に所定回数供給すると共に2桁の10進数
“00”に対応する8ビツトのBCDコード化された
データをデータバス17に送出し、両ビツトパタ
ーンが一致しなかつたときレジスタ12の出力を
データバス17に送出するように構成されてい
る。
As shown in FIG. 2, key switches SW0 to SW9 , write command switch SW11 , echoer 11, register 12, write control circuit 13, address generation circuit 15, memory 16, data bus 17, read control circuit 18, output buffer circuit 19 are connected in the same way as in FIG. However, in this example, a predetermined data generation circuit 20 is provided which outputs 8-bit BCD coded predetermined data. The output of this predetermined data generation circuit 20 is supplied to a data comparison circuit 21. The data comparison circuit 21 sends a predetermined data write command signal c to the write control circuit 3 at a predetermined time interval when the bit pattern of the output of the register 12 and the bit pattern of the output of the predetermined data generation circuit 20 match. At the same time, the 8-bit BCD coded data corresponding to the 2-digit decimal number "00" is sent to the data bus 17, and when the two bit patterns do not match, the output of the register 12 is sent to the data bus 17. configured to send.

以上の構成において、所定データ発生回路20
より出力されるデータが自動演奏プレーヤの一連
の動作を指令するプログラムにおける命令になり
得ないデータすなわち例えば10進数“00”に対応
するデータとなるようにすれば、第1図の装置と
同様にキースイツチSW0〜SW9の択一的押圧を2
回連続して行なつたのちスイツチSW11を押圧す
るという操作を所定回数繰り返すことにより一連
の動作を指令するプログラムがメモリ16に記憶
される。また、所定データ発生回路20より出力
されているデータと同一のデータがレジスタ12
に保持されるようにキースイツチSW0〜SW9の択
一的押圧を2回連続して行なつたのちスイツチ
SW11を押圧すると、データ比較回路21におい
て比較されるデータが一致してデータ比較回路2
1より書込み制御回路13に所定データ書込み指
令信号cが所定時間間隔をもつて所定回数供給さ
れかつ2桁の10進数“00”に対応する8ビツトの
BCDコード化されたデータがデータバス17に
送出される。そうすると、第1図の装置において
クリヤスイツチSW12が押圧されたときと同様に
アドレス発生回路15におけるカウンタがカウン
トアツプしてプログラムが記憶されるべきメモリ
16における記憶場所を指定するアドレスが順次
変化してプログラムが記憶されていた記憶場所に
順次データ“00”が書込まれてメモリ16の記憶
内容が消去される。また、自動演奏プレーヤの制
御回路(図示せず)より読出し指令信号が読出し
制御回路18に供給されると第1図の装置と同様
にメモリ16に記憶されている命令が読出されて
出力バツフア回路19に保持される。この出力バ
ツフア回路19に保持された命令が自動演奏プレ
ーヤの制御回路(図示せず)に送出される。
In the above configuration, the predetermined data generation circuit 20
If the data output from the automatic performance player is data that cannot be a command in a program that instructs a series of operations of the automatic performance player, for example, data that corresponds to the decimal number "00", the system can be used similarly to the device shown in Fig. 1. Alternative press of key switch SW 0 ~ SW 9 2
A program for instructing a series of operations is stored in the memory 16 by repeating the operation of pressing the switch SW 11 a predetermined number of times. Also, the same data as the data output from the predetermined data generation circuit 20 is sent to the register 12.
Press the key switches SW 0 to SW 9 twice in succession so that the switch is held at
When SW 11 is pressed, the data compared in the data comparison circuit 21 match and the data comparison circuit 2
1, a predetermined data write command signal c is supplied to the write control circuit 13 a predetermined number of times at a predetermined time interval, and an 8-bit data write command signal c corresponding to a two-digit decimal number "00" is supplied.
BCD encoded data is sent to data bus 17. Then, in the same way as when the clear switch SW 12 is pressed in the device shown in FIG. 1, the counter in the address generation circuit 15 counts up and the addresses specifying the storage location in the memory 16 where the program is to be stored sequentially change. Data "00" is sequentially written into the memory location where the program was stored, and the stored contents of the memory 16 are erased. Further, when a read command signal is supplied to the read control circuit 18 from the control circuit (not shown) of the automatic performance player, the command stored in the memory 16 is read out and sent to the output buffer circuit, similar to the device shown in FIG. It is held at 19. The commands held in the output buffer circuit 19 are sent to a control circuit (not shown) of the automatic performance player.

以上の動作において、メモリ16の記憶内容の
消去がなされるのはプログラムを形成する各命令
をメモリ16に記憶させるときと同様に数値入力
キースイツチSW0〜SW9及び書込み指令スイツチ
SW11を操作することによつてレジスタ12より
データ比較回路21に送出されたデータが所定デ
ータと一致したときであるので、クリヤスイツチ
等の記憶内容消去用の操作スイツチが不要となつ
て操作スイツチの個数を減少させることができる
故に機器の小型化が容易になると共に誤操作が減
少するという効果が期待できる。また、複数の操
作スイツチを所定の手順で操作したときのみメモ
リ16の記憶内容が消去されるので、誤操作によ
る記憶内容の誤消去を防止することができるとい
う効果も期待できることとなる。
In the above operation, the memory contents of the memory 16 are erased using the numerical input key switches SW 0 to SW 9 and the write command switch in the same way as when each instruction forming the program is stored in the memory 16.
This is when the data sent from the register 12 to the data comparison circuit 21 by operating SW 11 matches the predetermined data, so there is no need for an operation switch such as a clear switch for erasing the memory contents. Since it is possible to reduce the number of devices, it is possible to expect the effects of easier miniaturization of the device and a reduction in erroneous operations. Furthermore, since the stored contents of the memory 16 are erased only when a plurality of operation switches are operated in a predetermined procedure, it is possible to expect the effect that erroneous erasure of the stored contents due to erroneous operations can be prevented.

第3図は、本発明によるプログラムローデイン
グ方法によつて自動演奏プレーヤに一連の動作を
指令するプログラムを記憶装置に記憶させる装置
をマイクロコンピユータを用いて構成した例を示
すブロツク図である。第3図において、タイミン
グパルス発生回路30よりキーマトリクス31の
入力信号線の各々が互いに発生時刻の異なるタイ
ミングパルスが供給されている。入力信号線とそ
れぞれ交差する出力信号線は操作スイツチ検出回
路32の入力端子に接続されている。入力信号線
と出力信号線との各交点には押圧操作されること
によつて両信号線を接続するようにキースイツチ
SW0〜SW9及び書込み指令スイツチSW11が設け
られている。スイツチSW0〜SW9及びSW11のう
ちのいずれか1つが押圧操作されると互いに発生
時刻の異なるタイミングパルスのうちの1つが操
作スイツチ検出回路32の入力端子のうちの1つ
に供給される。そうすると、操作スイツチ検出回
路31において押圧操作された操作スイツチが特
定されてその操作スイツチに対応した4ビツトの
BCDコード化されたデータが出力される。この
4ビツトのデータは入力ポート33に供給されて
ラツチされる。入力ポート33には自動演奏プレ
ーヤの制御回路(図示せず)より読出し指令信号
も供給される。この入力ポート32より、4ビツ
トのデータをラツチしたか否かを示す情報、数値
入力キースイツチ及び書込み指令スイツチのうち
のいずれが押圧されたかを示す情報、読出し指令
信号が供給されたか否かを示す情報と共にラツチ
した4ビツトのデータを含む8ビツトのデータが
データバス34を介してプロセツサ35に取り込
まれる。プロセツサ35は、ROM36,RAM
37と協働して取込んだデータを処理する。そし
て、プロセツサ35はRAM37の所定領域をプ
ログラムメモリ領域としてそこに自動演奏プレー
ヤの一連の動作を指令するプログラムを記憶さ
せ、プログラムメモリ領域の記憶内容を消去し、
またはプログラムメモリ領域に記憶されている命
令を読出して出力ポート38を介して自動演奏プ
レーヤの制御回路(図示せず)に送出する。尚、
プロセツサ35のアドレス出力はアドレスバス3
9を介して入力ポート33、ROM36、RAM
37、出力ポート38の各々に供給されている。
FIG. 3 is a block diagram showing an example in which a microcomputer is used to configure a device for storing a program for instructing an automatic performance player to perform a series of operations in a storage device using the program loading method according to the present invention. In FIG. 3, a timing pulse generating circuit 30 supplies each input signal line of a key matrix 31 with timing pulses having different generation times. Output signal lines that intersect with the input signal lines are connected to input terminals of the operation switch detection circuit 32. A key switch is installed at each intersection of the input signal line and the output signal line so that the two signal lines are connected when pressed.
SW 0 to SW 9 and a write command switch SW 11 are provided. When any one of the switches SW 0 to SW 9 and SW 11 is pressed, one of the timing pulses having different generation times is supplied to one of the input terminals of the operation switch detection circuit 32. . Then, the operation switch detection circuit 31 identifies the operation switch that has been pressed and displays the 4-bit information corresponding to the operation switch.
BCD encoded data is output. This 4-bit data is supplied to input port 33 and latched. A read command signal is also supplied to the input port 33 from a control circuit (not shown) of the automatic performance player. From this input port 32, information indicating whether 4-bit data has been latched, information indicating which of the numerical input key switch or write command switch has been pressed, and information indicating whether a read command signal has been supplied. 8-bit data, including the 4-bit data latched with the information, is taken into the processor 35 via the data bus 34. The processor 35 is ROM36, RAM
37 to process the captured data. Then, the processor 35 uses a predetermined area of the RAM 37 as a program memory area to store therein a program that instructs a series of operations of the automatic performance player, erases the stored contents of the program memory area,
Alternatively, the commands stored in the program memory area are read out and sent through the output port 38 to a control circuit (not shown) of the automatic performance player. still,
The address output of the processor 35 is the address bus 3.
Input port 33, ROM36, RAM via 9
37 and output port 38, respectively.

第3図に示された本発明による装置の動作の一
部を第4図のフローチヤートの参照しつつ説明す
る。操作スイツチが押圧操作されたか否かの判定
等を含むスイツチ入力処理動作をなす(第3図S
1)。押圧操作された操作スイツチが数値入力ス
イツチであるか否かを判定する(同図S2)。数
値入力スイツチが押圧操作されたときは入力ポー
ト33より取込んだデータに含まれているバイナ
リコード化された4ビツトのデータをRAM37
のプログラムメモリ領域以外の所定の場所に設定
された8ビツト分の記憶容量を有するバツフアに
既に書込まれている4ビツトのデータが消去され
ないように書込み(同図S3)、S1に戻る。押
圧操作されたスイツチが数値入力スイツチでなか
つたときは書込み指令スイツチが押圧操作された
のか否かを判定し(同図S4)、書込み指令スイ
ツチが押圧操作されたのでなければS1に戻る。
押圧操作されたスイツチが書込み指令スイツチで
あつたときはバツフアに2桁の10進数“00”に対
応するデータが書込まれているか否かを判定する
(同図S5)。バツフアに“00”に対応するデータ
が書込まれていたときはRAM37におけるプロ
グラムメモリ領域における記憶内容を消去し(同
図S6)、S1に戻る。バツフアに“00”に対応
するデータが書込まれていなかつたときはRAM
37におけるプログラムメモリ領域にバツフアに
書込まれていたデータを命令として書込む(同図
S7)。その後、プログラムメモリ領域内の記憶
場所を指定するためのアドレス値に1を加え(同
図S8)、S1に戻る。
A portion of the operation of the apparatus according to the invention shown in FIG. 3 will now be described with reference to the flowchart shown in FIG. Performs switch input processing operations including determining whether or not the operation switch has been pressed (see Figure 3, S).
1). It is determined whether the pressed operation switch is a numerical input switch (S2 in the figure). When the numerical input switch is pressed, the 4-bit binary coded data contained in the data taken in from the input port 33 is transferred to the RAM 37.
The 4-bit data that has already been written to a buffer having a storage capacity of 8 bits set in a predetermined location other than the program memory area is written so as not to be erased (S3 in the figure), and the process returns to S1. If the pressed switch is not a numerical input switch, it is determined whether the write command switch has been pressed (S4 in the figure), and if the write command switch has not been pressed, the process returns to S1.
If the pressed switch is a write command switch, it is determined whether data corresponding to the two-digit decimal number "00" is written in the buffer (S5 in the same figure). If data corresponding to "00" has been written in the buffer, the contents stored in the program memory area of the RAM 37 are erased (S6 in the figure), and the process returns to S1. If data corresponding to “00” has not been written to the buffer, the RAM
The data written in the buffer is written into the program memory area at 37 as an instruction (S7 in the same figure). Thereafter, 1 is added to the address value for specifying the storage location within the program memory area (S8 in the figure), and the process returns to S1.

以上の如き装置においても、自動演奏プレーヤ
の一連の動作を指令するプログラムを記憶するメ
モリの記憶内容の消去は、書込み指令スイツチが
押圧されたときバツフアに10進数“00”に対応す
るデータが書込まれていた場合になされるので、
第2図の装置と同様な効果が得られることとな
る。
Even in the above-mentioned device, when the write command switch is pressed, the data corresponding to the decimal number "00" is written to the buffer. This will be done if the
The same effect as the device shown in FIG. 2 can be obtained.

尚、上記実施例においては入力データが10進数
の“00”に対応するデータであつた場合にメモリ
の記憶内容が消去されるとしたが、自動演奏プレ
ーヤの如き機器以外の10進数“00”が意味を有す
る機器例えば演算装置における記憶装置にプログ
ラムをロードする場合には例えば10進数“99”の
如き最大値に対応するデータが入力されたときに
メモリの記憶内容が消去されるようにしても良
い。また、本例においては入力データが2桁の10
進数に対応するBCDコード化された8ビツトの
データであるとしたが、入力データが2桁の16進
数又は2桁の8進数にそれぞれ対応した8ビツト
又は6ビツトのデータとなる場合も本発明を適用
することができ、また入力データの桁数が2桁で
はなく3桁或いは4桁となる場合も本発明を適用
することができる。
In the above embodiment, the contents of the memory are erased when the input data corresponds to the decimal number "00", but when the input data corresponds to the decimal number "00", When loading a program into a storage device in a device that has a meaning, such as an arithmetic unit, the contents of the memory are erased when data corresponding to the maximum value, such as the decimal number "99", is input. Also good. In addition, in this example, the input data is a two-digit 10
Although the input data is 8-bit data encoded in BCD that corresponds to a hexadecimal number, the present invention also applies when the input data is 8-bit or 6-bit data that corresponds to a 2-digit hexadecimal number or a 2-digit octal number, respectively. The present invention can also be applied when the number of digits of input data is three or four digits instead of two.

以上詳述した如く本発明によるプログラムロー
デイング方法によれば入力データと所定データと
を比較してこれら入力データと所定データとが一
致したときプログラムがロードされる記憶装置の
記憶内容が消去されるので、記憶内容消去用の操
作スイツチが不要となつて機器の小型化が容易に
なると共に誤操作が減少するという効果が期待で
きる。また、複数の操作スイツチを所定の手順で
操作したときのみ記憶内容が消去されるので、記
憶内容の誤消去を防止することができるという効
果も期待できる。
As detailed above, according to the program loading method according to the present invention, input data and predetermined data are compared, and when the input data and the predetermined data match, the memory contents of the storage device into which the program is loaded are erased. Therefore, an operation switch for erasing the memory content is no longer necessary, and it is expected that the device can be easily miniaturized and the number of erroneous operations will be reduced. Furthermore, since the stored contents are erased only when a plurality of operation switches are operated in a predetermined procedure, it is possible to prevent the stored contents from being erroneously erased.

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

第1図は、従来のプログラムローデイング方法
によつてプログラムを記憶装置に記憶させる装置
を示すブロツク図、第2図は、本発明の一実施例
を示すブロツク図、第3図は、本発明の他の実施
例を示すブロツク図、第4図は、第3図に示した
装置の動作を示すフローチヤートである。 主要部分の符号の説明、11……エンコーダ、
12……レジスタ、13……書込み制御回路、1
5……アドレス発生回路、16……メモリ、20
……所定データ発生回路、21……データ比較回
路、30……タイミングパルス発生回路、31…
…キーマトリクス、32……操作スイツチ検出回
路、33……入力ポート、35……プロセツサ、
36……ROM、37……RAM。
FIG. 1 is a block diagram showing an apparatus for storing a program in a storage device using a conventional program loading method, FIG. 2 is a block diagram showing an embodiment of the present invention, and FIG. 3 is a block diagram showing an embodiment of the present invention. FIG. 4 is a flowchart showing the operation of the apparatus shown in FIG. 3. Explanation of codes of main parts, 11...Encoder,
12...Register, 13...Write control circuit, 1
5...Address generation circuit, 16...Memory, 20
...Predetermined data generation circuit, 21 ... Data comparison circuit, 30 ... Timing pulse generation circuit, 31 ...
...key matrix, 32...operation switch detection circuit, 33...input port, 35...processor,
36...ROM, 37...RAM.

Claims (1)

【特許請求の範囲】[Claims] 1 所定の演奏手順に従つて複数の曲が演奏され
るように一連の動作を指令するプログラムを自動
演奏プレーヤ等における記憶装置へ記憶させるプ
ログラムローデイング方法であつて、入力データ
と所定データとを比較するステツプと、前記入力
データが前記所定データと一致したとき前記記憶
装置の記憶内容を消去するステツプと、前記入力
データと前記所定データとが一致しなかつたとき
前記入力データを前記プログラムにおける命令と
して前記記憶装置に記憶させるステツプとを含む
ことを特徴とするプログラムローデイング方法。
1. A program loading method for storing a program that instructs a series of operations so that a plurality of songs are played according to a predetermined performance procedure in a storage device of an automatic performance player, etc., which includes input data and predetermined data. a step of comparing the input data with the predetermined data, a step of erasing the storage contents of the storage device when the input data matches the predetermined data, and a step of erasing the stored contents of the storage device when the input data and the predetermined data do not match, the input data is replaced with the instructions in the program. A method for loading a program, comprising the step of: storing the program in the storage device.
JP18326182A 1982-10-19 1982-10-19 Program loading system Granted JPS5972689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18326182A JPS5972689A (en) 1982-10-19 1982-10-19 Program loading system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18326182A JPS5972689A (en) 1982-10-19 1982-10-19 Program loading system

Publications (2)

Publication Number Publication Date
JPS5972689A JPS5972689A (en) 1984-04-24
JPH0355908B2 true JPH0355908B2 (en) 1991-08-26

Family

ID=16132567

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18326182A Granted JPS5972689A (en) 1982-10-19 1982-10-19 Program loading system

Country Status (1)

Country Link
JP (1) JPS5972689A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63181184A (en) * 1987-01-21 1988-07-26 Matsushita Electric Ind Co Ltd optical disc playback device
US6617706B2 (en) 1998-11-09 2003-09-09 Ngk Spark Plug Co., Ltd. Ignition system

Also Published As

Publication number Publication date
JPS5972689A (en) 1984-04-24

Similar Documents

Publication Publication Date Title
US5548741A (en) IC memory card system having a host processor selectively operable with an IC memory card including either an SRAM or an EEPROM
US6154808A (en) Method and apparatus for controlling data erase operations of a non-volatile memory device
US4247905A (en) Memory clear system
US6388908B1 (en) Recording system, data recording device, memory device, and data recording method
EP0597706B1 (en) Solid state peripheral storage device
EP0712067A2 (en) Flash disk card
JPH029358B2 (en)
JPH0355908B2 (en)
US3983577A (en) Introduction of data entry completion signals to a cassette tape containing data processing terminal unit
US5911031A (en) IC card memory for recording and reproducing audio and/or video data concurrently or separately and a control method thereof
US4432056A (en) Programmable electronic computer
EP0217348B1 (en) Memory connected state detecting circuit
JPS6019538B2 (en) Program writing method
JPH0135425B2 (en)
US5542092A (en) Method and system for setting bus addresses in order to resolve or prevent bus address conflicts between interface cards of a personal computer
JPH0137754B2 (en)
JPS599765A (en) Timing control circuit of auxiliary storage device
JPH05134928A (en) Memory device
KR100504064B1 (en) Microcomputer
JPS5931745B2 (en) Unused program number display method
SU1203364A1 (en) On-line storage with data correction
SU329578A1 (en) MAGNETIC STORAGE DEVICE
JPS62168241A (en) Microprogram controller
SU1291954A1 (en) Information input device
SU970479A1 (en) Memory with autonomous checking