JPS621027A - Cassette type magnetic tape reading controller - Google Patents
Cassette type magnetic tape reading controllerInfo
- Publication number
- JPS621027A JPS621027A JP13957885A JP13957885A JPS621027A JP S621027 A JPS621027 A JP S621027A JP 13957885 A JP13957885 A JP 13957885A JP 13957885 A JP13957885 A JP 13957885A JP S621027 A JPS621027 A JP S621027A
- Authority
- JP
- Japan
- Prior art keywords
- serial data
- cmt
- data reception
- pulse
- processing
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 claims description 71
- 238000001514 detection method Methods 0.000 claims description 8
- 230000006866 deterioration Effects 0.000 abstract description 2
- 238000013500 data storage Methods 0.000 description 21
- 238000010586 diagram Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- UDPGUMQDCGORJQ-UHFFFAOYSA-N (2-chloroethyl)phosphonic acid Chemical compound OP(O)(=O)CCCl UDPGUMQDCGORJQ-UHFFFAOYSA-N 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明は、一般オーディオカセット磁気テープが出力し
たパルスを読取り、シリアルデータを解読するオーディ
オカセット磁気テープ制御装置に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to an audio cassette magnetic tape control device that reads pulses output from a general audio cassette magnetic tape and decodes serial data.
オーディオカセット磁気テープ(以下、オーディオCM
Tと呼ぶ)はコンパクトで取扱いが容易であること、機
器が安価であること等からマイクロコンピュータの補助
メモリとしてかなり普及している。最近では、このオー
ディオCMTはその入力媒体としての汎用性により、マ
イクロコンピュータの分野に限らず、ミニコンピユータ
あるいはハンドベルトコンピュータ等にも広く採用され
ている。こうしたオーディオCMTの入力媒体としての
高い汎用性から、そのシリアルデータ解読のためのイン
タフェースはより高機能、高性能であることが要求され
ている。Audio cassette magnetic tape (hereinafter referred to as audio commercial
(referred to as T) is quite popular as an auxiliary memory for microcomputers because it is compact, easy to handle, and the device is inexpensive. Recently, this audio CMT has been widely adopted not only in the field of microcomputers but also in minicomputers, hand belt computers, etc. due to its versatility as an input medium. Due to the high versatility of audio CMT as an input medium, the interface for decoding serial data is required to have higher functionality and higher performance.
このオーディオCMTのシリアルデータ解読のインタフ
ェースを内蔵したマイクロコンピュータの従来例を第2
図のブロック図と第3図、第4図のオーディオCMTの
出力パルス波形図と第5図、第6図、第7図のフローチ
ャートを参照して説明する。A conventional example of a microcomputer with a built-in interface for decoding the serial data of this audio CMT is shown in the second example.
This will be explained with reference to the block diagram shown in the figure, the audio CMT output pulse waveform diagrams shown in FIGS. 3 and 4, and the flowcharts shown in FIGS. 5, 6, and 7.
従来のマイクロコンピュータ100は実行部108と、
プログラムメモリ108と、データメモリ111と、オ
ーディオCMTの出力パルスの立下りエツジを検出し、
これに同期した立下りエツジ信号1011を出力する立
下りエツジ信号制御部lO1と、このオーディオCMT
立下りエツジ信号101−1によって実行部108へ割
込を通知する割込制御部110とから構成され、データ
バス117を介してそれぞれが相互に接続されている。The conventional microcomputer 100 includes an execution unit 108,
Detecting the falling edge of the output pulse of the program memory 108, the data memory 111, and the audio CMT,
A falling edge signal control unit lO1 that outputs a falling edge signal 1011 synchronized with this, and this audio CMT.
The interrupt control section 110 notifies the execution section 108 of an interrupt using a falling edge signal 101-1, and the interrupt control section 110 is connected to each other via a data bus 117.
実行部108はプログラムカウンタ108−1とプログ
ラムステータスワード108−2と汎用レジスタセット
108−3を有し、プログラムメモリ108から命令コ
ードを読出して実行し、処理データをデータメモリ11
1上に格納する。データメモリ111上には、オーディ
オCMTから出力されたパルスの立下りエツジ信号の発
生毎に、受信したパルスの回数をカウントするパルスカ
ウンタ111−1と、このパルスカウンタUt−tで1
シリアルデ一タ分のカウント終了毎にシリアルデータ受
信回数としてカウントするシリアルカウンタ111−2
と、前記シリアルデータを受信毎に、これをビットのL
SBから右詰めでセットし退避しておく1バイト分のシ
リアルデータ格納領域111−3と、前記1バイト分の
データを格納するバイトデータ格納領域111−5と、
その格納アドレスを指すポインタ111−4から構成さ
れている。インターバルタイマ102はタイマスタート
によりカウントを開始し、設定値をオーバーフロースル
ト、インターバルオーバーフロー信号(以下、インター
バルOVF信号と記す)を発生するタイマ部102−2
と、インターバルOVF信号によってセットされるイン
ターバルオーバーフローフラグ(以下、インターバルO
VFフラグと記す) 102−3から構成されている・
、このインターバルタイマ102は値が設定された後、
そのスタート命令が実行されて始めて設定値のカウント
を開始する。The execution unit 108 has a program counter 108-1, a program status word 108-2, and a general-purpose register set 108-3, reads and executes instruction codes from the program memory 108, and stores processed data in the data memory 11.
Store on 1. On the data memory 111, there is a pulse counter 111-1 that counts the number of received pulses every time a falling edge signal of a pulse output from the audio CMT occurs, and this pulse counter Ut-t.
Serial counter 111-2 counts as the number of serial data receptions each time the count for one serial data is completed.
, and each time the serial data is received, it is set to the L bit of the serial data.
a 1-byte serial data storage area 111-3 that is set and saved right-aligned from SB; a byte data storage area 111-5 that stores the 1-byte data;
It consists of a pointer 111-4 pointing to the storage address. The interval timer 102 starts counting by a timer start, sets the set value to overflow, and generates an interval overflow signal (hereinafter referred to as an interval OVF signal) using a timer section 102-2.
and the interval overflow flag (hereinafter referred to as the interval OVF signal) set by the interval OVF signal.
(referred to as VF flag) 102-3.
, after the value of this interval timer 102 is set,
Counting of the set value starts only after the start command is executed.
次に第3図のオーディオCMTの出力パルスの形式を示
す図を参照してインターバルタイマ102に設定する値
の算出方法を説明する。オーディオCMTの出力パルス
の論理値は周波数の高低によって判別し、一般に“0”
は1200(H2)、“1”は2400(H2)で、各
周波数でのパルス回数は変調速度によって決まる。この
従来例のマイクロコンピュータの変調速度では、論理“
O″は2パルス、論理“l”は4パルスによって判読す
る。この両パルスの波形をそれぞれ論理“0”のパルス
と論理“1″のパルスと呼ぶ、また、論理“0”の論理
時間は1例えば時間rtの立下りエツジから時間T3の
立下りエツジまでを2Nとすると、論理“l”の論理時
間は時間T1の立下りエツジから時間T2の立下りエツ
ジまでのNである。インターバルタイマ102に設定す
る値は前記論理“0”と論理“l”の平均時間から得ら
れる。従って、インN+2N
ターパルタイマ102の設定値=−7−= 1 、5
Nとなる。これによって、論理値が“0”の場合1時間
T1の立下りエツジ検出時にスタートしたインターバル
タイマ102は時間T3の立下りエツジ検出時に、イン
ターバルOVFフラグ102−3をチェックするとオン
になり、同様に論理値が“1″の場合、時間TIの立下
りエツジ検出時にスタートしたインターバルタイマ10
2は時間T2の立下りエツジ検出時にインターバルOV
Fフラグ102−3をチェックするとオフになる。従っ
て、算出した論理“0”と論理“1”の平均インターバ
ル設定値をインターバルタイマ102に設定後の、立下
りエツジ信号101−1による割込サービスにおいては
、インターバルタイマ102のスタートとインターパル
OVFフラグ102−3のチェックと1シリアルデータ
受信完了までのパルスをカウントする処理と、インター
バルOVFフラグ102−3をリセットする処理を実行
すればよい。Next, a method of calculating a value to be set in the interval timer 102 will be explained with reference to the diagram shown in FIG. 3 which shows the format of the output pulse of the audio CMT. The logic value of the output pulse of an audio CMT is determined by the high or low frequency, and is generally “0”.
is 1200 (H2), "1" is 2400 (H2), and the number of pulses at each frequency is determined by the modulation speed. At the modulation speed of this conventional microcomputer, the logic “
The waveforms of these two pulses are called the logic "0" pulse and the logic "1" pulse, respectively. Also, the logic time of the logic "0" is 1. For example, if the period from the falling edge of time rt to the falling edge of time T3 is 2N, the logic time of logic "1" is N from the falling edge of time T1 to the falling edge of time T2.Interval timer The value to be set in 102 is obtained from the average time of the logic "0" and logic "1". Therefore, the setting value of the terpal timer 102 = -7 - = 1, 5
It becomes N. As a result, when the logical value is "0", the interval timer 102, which started when the falling edge of 1 hour T1 was detected, turns on when the interval OVF flag 102-3 is checked when the falling edge of time T3 is detected, and similarly If the logical value is "1", the interval timer 10 starts when the falling edge of time TI is detected.
2 is the interval OV when the falling edge of time T2 is detected.
When the F flag 102-3 is checked, it is turned off. Therefore, in the interrupt service by the falling edge signal 101-1 after setting the calculated average interval setting value of logic "0" and logic "1" in the interval timer 102, the start of the interval timer 102 and the interval OVF What is necessary is to execute the process of checking the flag 102-3, counting the pulses until one serial data reception is completed, and the process of resetting the interval OVF flag 102-3.
第4図のオーディオCMTの出力パルス図は1バイトデ
ータ=“6B″Hを出力した場合のパルスの波形で、1
バイトデータの最下位ピッ) (LSB)から順次出力
されていくので、前記割込サービスでは、■シリアルデ
ータ分のパルスデータ受信後は、得られたシリアルデー
タを1バイト分のシリアルデータ格納領域t t 1−
3に、第4図における1バイトデータのように最下位ビ
ット(LSB)から順次セットしていけばよい。The output pulse diagram of the audio CMT in Figure 4 shows the pulse waveform when 1 byte data = "6B"H is output.
Since the byte data is output sequentially starting from the least significant bit (LSB), in the above interrupt service, ■ After receiving the pulse data for the serial data, the obtained serial data is stored in the serial data storage area t for 1 byte. t 1-
3, the bits may be set sequentially starting from the least significant bit (LSB) like the 1-byte data in FIG.
次に、第5図、第6図、第7図のフローチャートを参照
してオーディオCMTの立下りエツジ信号101−1に
よって発生する割込サービスの処理手順を説明する0本
ソフトウェア対理では、データメモリ111内に、受信
した1バイト分のシリアルデータ格納領域111−3
と受信した1バイト分のデータを順次格納していくバイ
トデータ格納領域111−5を設定し、受信したパルス
から1シリアルデータが設定されるまでカウントダウン
するパルスカウンタ111−1の初期値に4を、1バイ
トデータの受信が完了するまでカウントダウンするシリ
アルカウンタ111−2の初期値に8を、1バイトデー
タ受信完了毎にバイトデータを格納するバイトデータ格
納領域111−5のポインタ111−4にはそのバイト
データ格納領域111−5の格納先アドレスをそれぞれ
予め設定しておく。Next, with reference to the flowcharts of FIGS. 5, 6, and 7, we will explain the processing procedure of the interrupt service generated by the falling edge signal 101-1 of the audio CMT. In the memory 111, a received 1-byte serial data storage area 111-3
The byte data storage area 111-5 is set to sequentially store 1 byte of data received, and 4 is set to the initial value of the pulse counter 111-1 that counts down from the received pulse until 1 serial data is set. , the initial value of the serial counter 111-2 that counts down until the reception of 1 byte data is completed is set to 8, and the pointer 111-4 of the byte data storage area 111-5 that stores byte data every time the reception of 1 byte data is completed is set to 8. The storage address of each byte data storage area 111-5 is set in advance.
第5図のフローチャートにおいて、オーディオCMTの
立下りエツジ信号101−1が入力されると、実行部1
08はオーディオCMTの立下りエツジ割込処理を実行
する。すなわち、まずそれまでの処理内容を保持してお
くためにプログラムカウンタ108−1 、 プログラ
ムステータスワード108−2、汎用レジスタセラ)
108−3の内容を一時的にスタックに退避させる(処
理l)0次に、論理゛0″と論理“1”の平均論理時間
が設定されたインターバルタイマ102をスタートさせ
る(処理2)、続いて、立下りエツジ発生毎にカウント
ダウンするパルスカウンタl1l−1の情報をレジスタ
ヘロートスるl理3)、インターバルOVFフラグ10
2−3は前回の立下りエツジ割込のソフトウェア処理中
にスタートしたインターバルタイマ102が論理“O”
と論理“1”の平均論理時間を経過した場合にセットさ
れるので、インターバルOVFフラグ102−3がオン
の場合は、今回の立下りエツジ割込が発生するまでに起
きたパルスが論理“Oパであったことを意味し、インタ
ーバルOVFフラグ102−3がオフの場合はパルスが
論理“1”であったことを意味する。そこで、パルスカ
ウンタ111−1のパルスカウント値がロードされたレ
ジスタ値を論理“l”のパルス受信後には1回のみ、論
理“O”のパルス受信後は2回カウントダウンする(処
理4〜6)、パルスカウンタ1111のパルスカウント
値がロードされたレジスタ値が、このカウントダウンに
よってOになった場合には、1シリアルデ一タ分のパル
スを受信完了した時で、この時は第5図に示した1シリ
アルデータ受信完了処理(処理8)を行ってから復帰処
理(処理9)を行う、まだ1シリアルデ一タ分のパルス
を受信完了していない場合は、直ちに復帰処理(処理9
)を行う、復帰処理(処理9)では、データメモリ11
1からレジスタにロードし、更新されたパルスのカウン
ト値をパルスカウンタ111−1へ退避する。その後汎
用レジスタセット10B−3、プログラムステータスワ
ード10B−2、プログラムカウンタ108−1を復帰
してオーディオCMTの立下りエツジ割込サービスから
復帰し。In the flowchart of FIG. 5, when the falling edge signal 101-1 of the audio CMT is input, the execution unit 1
08 executes audio CMT falling edge interrupt processing. That is, first of all, in order to hold the processing contents up to that point, the program counter 108-1, program status word 108-2, general-purpose register server)
Temporarily save the contents of 108-3 to the stack (Process 1) Next, start the interval timer 102 in which the average logical time of logic "0" and logic "1" is set (Process 2), and continue. The information of the pulse counter l1l-1, which counts down every time a falling edge occurs, is stored in the register 3), and the interval OVF flag 10.
2-3, the interval timer 102, which started during software processing of the previous falling edge interrupt, is at logic “O”.
It is set when the average logic time of logic "1" has elapsed, so if the interval OVF flag 102-3 is on, the pulses that occurred before the current falling edge interrupt occur will be set to logic "0". If the interval OVF flag 102-3 is off, it means that the pulse was a logic "1".Therefore, the register loaded with the pulse count value of the pulse counter 111-1 The register value loaded with the pulse count value of the pulse counter 1111 is counted down only once after receiving a logic "L" pulse and twice after receiving a logic "O" pulse (processes 4 to 6). If this countdown reaches O, it means that the reception of one serial data pulse is completed, and in this case, the one serial data reception completion process (process 8) shown in Figure 5 is performed, and then the return process is performed. (Processing 9). If the reception of one serial data pulse has not yet been completed, immediately return processing (Processing 9) is performed.
), in the return process (process 9), the data memory 11
1 to the register, and the updated pulse count value is saved to the pulse counter 111-1. Thereafter, the general-purpose register set 10B-3, program status word 10B-2, and program counter 108-1 are restored, and the audio CMT falling edge interrupt service is resumed.
本割込サービスで中断していたメインプログラム処理を
継続する。The main program processing that was interrupted by this interrupt service continues.
第6図は前述の1シリアルデータ受信完了処理のフロー
チャートである。まず、データメモリ111から1バイ
ト分のシリアルデータをカウントするシリアルカウンタ
i 11−2とシリアルデータ格納領域111−3のデ
ータを読出し、各レジスタにモー2トする(処理20)
0次に、インターバルo■Fフラグ102−3をチェッ
クしく処理21)、オンであればこれは論理“O”のパ
ルスを1シリアルデ一タ分受信完了した時で、この場合
はキャリフラグをリセットしく処理22)、オフであれ
ばこれは論理“1”のパルスを1シリアルデ一タ分受信
完了した時で、キャリフラグをセットする(処理23)
。シリアルデータ格納領域111−3から読出したデー
タがセットされているレジスタを前記キャリフラグと共
に右へローテーションする(処理20、これにより、今
回受信した1シリアルデータは前記レジスタの最上位ビ
ットにセットされ、前回までに受信され、各ビットにセ
ット済みのシリアルデータは1ビツト下位ヘシフトされ
る。この時点で第5図のフローチャートで用いたパルス
カウンタ111−1の値がセットされているレジスタに
次のパルスデータをカウントするために初期値=4を設
定し、インターバルOVFフラグ102−3をリセット
する(処理25)、続いて、lシリアルデータ受信をカ
ウントするために、シリアルカウンタ1112の値がセ
ットされているレジスタをカウントダウンしく処理2B
)、このレジスタの値がOになったかどうかをチェック
する(処理27)。FIG. 6 is a flowchart of the aforementioned one serial data reception completion process. First, the data in the serial counter i 11-2 that counts 1 byte of serial data and the serial data storage area 111-3 are read from the data memory 111 and are stored in each register (process 20).
0 Next, check the interval o F flag 102-3 and process 21). If it is on, this means that one serial data worth of logic "O" pulses has been received, and in this case, reset the carry flag. If it is off, this means that one serial data worth of logic "1" pulses has been received, and the carry flag is set (process 23).
. The register in which the data read from the serial data storage area 111-3 is set is rotated to the right together with the carry flag (process 20, whereby one serial data received this time is set to the most significant bit of the register, The serial data that has been received previously and has been set in each bit is shifted one bit lower.At this point, the next pulse is stored in the register in which the value of the pulse counter 111-1 used in the flowchart of Fig. 5 is set. In order to count the data, the initial value = 4 is set and the interval OVF flag 102-3 is reset (process 25).Then, the value of the serial counter 1112 is set to count l serial data reception. Process registers in a countdown manner 2B
), it is checked whether the value of this register has become O (process 27).
シリアルカウンタ111−2の値がセットされているレ
ジスタの値がOの場合、これは1バイト分のシリアルデ
ータ受信完了時であり、この時は第7図に示したl 、
<イトデータ受信完了処理(処理28)を行ってから復
帰処理(処理29)を行う、まだ1バイト分のシリアル
データを受信完了していない場合は、直ちに復帰処理(
処理29)を行う、復帰処理(処理29)では、データ
メモリ111からレジスタにロードし、これまでの処理
で更新されたシリアルカウンタ111−2とシリアルデ
ータ格納領域111−3のロードされた各レジスタをそ
れぞれデータメモリ111のシリアルカウンタ111−
2とシリアルデータ格納領域111−3へ格納する。そ
の後、本シリアルデータ受信完了処理は第6図のパルス
立下りエツジ割込処理へ合流し、割込から復帰する。If the value of the register in which the value of the serial counter 111-2 is set is O, this means that reception of 1 byte of serial data is completed, and at this time, l, as shown in FIG.
<Perform the return process (process 29) after performing the byte data reception completion process (process 28). If the reception of 1 byte of serial data has not yet been completed, immediately perform the return process (process 28).
In the return process (process 29), which performs process 29), the registers are loaded from the data memory 111, and the serial counter 111-2 updated in the previous process and each loaded register in the serial data storage area 111-3 are loaded. Serial counter 111- of data memory 111
2 and stored in the serial data storage area 111-3. Thereafter, this serial data reception completion process merges into the pulse falling edge interrupt process shown in FIG. 6, and returns from the interrupt.
第7図は前述の第6図の説明中の処理28で示した1バ
イトデータ受信完了処理のフローチャートである。この
1バイトデータ受信完了処理では、まず、データメモリ
11!から受信完了した1バイトデータの退避先である
バイトデータ格納領域111−5のポインタt t 1
−4を読出し、レジスタにセットしく処理30)、第6
図の処理中に1バイト分のシリアルデータがセットされ
たレジスタのデータをポインタ111−4がセットされ
たレジスタが示すバイトデータ格納領域111−5へ格
納しく処理31)、その後ポインタ111−4の値がセ
ットされていたレジスタのアドレス値を更新し、シリア
ルカウンタ111−2の値がセットされているレジスタ
の値に、次のシリアルデータをカウントするために初期
値=8を設定しく処理32)、復帰処理(処理34)を
行う、復帰処理(処理30は1バイトデータ受信完了処
理中に更新されたポインタ111−4の値がセットされ
たレジスタ内のデータをデータメモリ111のポインタ
111−4へ格納する。その後、本1バイトデータ受信
完了処理ルーチンは第6図のシリアルデータ受信完了処
理ルーチンへ合流し、1シリアルデータ受信完了処理の
復帰処理(処理29)後、第5図の立下りエツジ割込処
理ルーチンへ合流し、立下りエツジ割込処理ルーチンの
I帰帆理C帆理q)港 刻;入光ち渭侭十六−以上説明
したように、従来のマイクロコンピュータにおけるオー
ディオCMTの1シリアルデ一タ受信割込によるソフト
ウェア処理では、通常、パルスのカウントとシリアルデ
ータの受信および1バイトデータの受信と1バイトデー
タの格納等の処理を行うが、このほかにCPUの割込処
理、レジスタセットやプログラムカウンタやプログラム
ステータスワード等の退避と復帰、メインルーチンへの
復帰、さらに個々の命令の読出し、デコード等相当のオ
ーバヘッドが伴っている。FIG. 7 is a flowchart of the 1-byte data reception completion process shown in process 28 in the explanation of FIG. 6 above. In this 1-byte data reception completion process, first, data memory 11! Pointer to the byte data storage area 111-5, which is the save destination for the 1-byte data received from t t 1
-4 is read and set in the register 30), 6th
During the process shown in the figure, the data in the register in which one byte of serial data has been set is stored in the byte data storage area 111-5 indicated by the register to which pointer 111-4 is set (31), and then the data in the register set in pointer 111-4 is stored. Update the address value of the register where the value was set, and set the initial value = 8 to the value of the register where the value of the serial counter 111-2 was set in order to count the next serial data 32) , a return process (process 34) is performed, and a return process (process 30) transfers the data in the register to which the value of the pointer 111-4 that was updated during the 1-byte data reception completion process to the pointer 111-4 of the data memory 111. Thereafter, this 1-byte data reception completion processing routine merges with the serial data reception completion processing routine shown in FIG. 6, and after the return processing (process 29) of the 1-byte data reception completion processing, As explained above, the audio CMT in the conventional microcomputer is 1 Software processing using a serial data reception interrupt normally involves processing such as pulse counting, serial data reception, 1-byte data reception, and 1-byte data storage, but in addition to this, CPU interrupt processing, Considerable overhead is involved, such as saving and restoring register sets, program counters, program status words, etc., returning to the main routine, and reading and decoding individual instructions.
このオーバヘッドの割合は全割込サービスルーチンの相
当を占めており、また、1シリアルデータの受信を完了
するまで論理“0”では2回の割込処理が、論理“1”
では4回の割込処理が起動されるため、この従来の方法
はメインプログラムの処理時間を減少させ、CPUの処
理能力を低下させるという大きな問題点を有している。This overhead occupies a considerable proportion of the entire interrupt service routine, and in addition, until the reception of one serial data is completed, interrupt processing is performed twice at logic "0", and interrupt processing is performed twice at logic "1".
Since interrupt processing is activated four times, this conventional method has a major problem in that it reduces the processing time of the main program and lowers the processing capacity of the CPU.
本発明の目的は、CPUの処理能力の低下を最小限に抑
え、オーディオCMTから受信したパルス情報からシリ
アルデータおよびバイトデータを読取るCMT制i制置
装置供することにある。SUMMARY OF THE INVENTION An object of the present invention is to provide a CMT-based control device that reads serial data and byte data from pulse information received from an audio CMT while minimizing deterioration in CPU processing performance.
本発明は、オーディオCMTの入力パルス受信時に発生
する処理、すなわち受信パルスデータの論理値を所定回
数チェックし、lシリアルデータの受信を完了する処理
(以下、CMTパルスデータ受信処理と記す)をハード
ウェア上で、更に1シリアルデータ受信後のオーディオ
CMTの論理値を8ビツト分セットし、1バイトデータ
の受信を完了する処理(以下、CMTシリアルデータ受
信処理と記す)をソフトウェアのオーバヘー、ド無しで
実現するものである。The present invention provides hardware for the processing that occurs when an audio CMT receives an input pulse, that is, the processing that checks the logical value of received pulse data a predetermined number of times and completes the reception of serial data (hereinafter referred to as CMT pulse data reception processing). After receiving 1 serial data, the software further sets the logical value of the audio CMT for 8 bits and completes the reception of 1 byte data (hereinafter referred to as CMT serial data reception processing) without any software overhead or code. This will be realized by
すなわち、本発明のカセット型磁気テープ読取り制御装
置は、中央処理装置(CPU)が、プログラム実行にか
かわる状態を保持したまま、前記シリアルデータ検出部
の処理要求に基づき、シリアルデータ受信の内容に対応
した処理を行ない得るシリアルデータ受信処理手段を有
し、前記シリアルデータ検出部が前記シリアルデータ受
信処理要求を発生した時、前記シリアルデータ受信処理
手段により、前記中央処理装置がカセット型磁気テープ
に記憶されている情報に対応して入力されるシリアルデ
ータの受信処理を行なうことを特徴とする。That is, in the cassette type magnetic tape reading control device of the present invention, the central processing unit (CPU) responds to the contents of serial data reception based on the processing request of the serial data detection section while maintaining the state related to program execution. When the serial data detecting section generates the serial data reception processing request, the serial data reception processing means causes the central processing unit to store data on a cassette-type magnetic tape. It is characterized in that it performs reception processing of input serial data in accordance with the information being received.
前記CMTパルスデータ受信処理を実現するハードウェ
アとしては立下りエツジ信号制御部と、インターバルタ
イマと、オアゲートと、2ビツトのカウンタと、RSフ
リップフロップから構成され、前記CMTシリアルデー
タ受信処理を実現するには前記CMTパルスデータ受信
処理によって発生する要求によりCPUの通常のプログ
ラム実行動作を停止し、CPUの種々の状態(以下、ス
テータスと記す)およびデータを保持したままCPU自
身がCMTのシリアルデータ受信処理を行うことにより
実現するので、CMTのシリアルデータ受信処理用の特
別なハードウェアは必要としない、CPUはCMTシリ
アルデータ受信処理を終了すると、保持していたステー
タスおよびデータにより中断していたプログラムの実行
を再開する。従って、ソフトウェアからはプログラムの
中断は見えず、あたかもCMTシリアルデータ受信処理
がプログラム中に自動的に挿入されたように見える。The hardware that realizes the CMT pulse data reception process includes a falling edge signal control section, an interval timer, an OR gate, a 2-bit counter, and an RS flip-flop, and realizes the CMT serial data reception process. In response to the request generated by the CMT pulse data reception processing, the CPU stops its normal program execution operation, and the CPU itself receives the CMT serial data while retaining the various states (hereinafter referred to as status) and data of the CPU. Since this is achieved through processing, special hardware for CMT serial data reception processing is not required. When the CPU finishes CMT serial data reception processing, the program that was suspended due to the status and data held is Resumes execution. Therefore, the interruption of the program is not visible to the software, and it appears as if the CMT serial data reception process was automatically inserted into the program.
本発明により、オーディオCMTの1バイトデータ受信
完了までの割込の発生がなくなり、ソフトウェア処理の
負担を軽減することができる。According to the present invention, it is possible to eliminate the occurrence of an interrupt until the reception of 1-byte data of the audio CMT is completed, and it is possible to reduce the burden on software processing.
また、CMTシリアルデータ受信処理が1バイトデータ
を受信完了すると、次の一連の受信データ処理や受信し
た1バイトデータの処理は一般に割込によるソフトウェ
ア処理の方法で対応するが、オーディオCMTから受信
するデータのバイト数が予め定められていれば、カウン
タを一個追加するだけで、割込処理を用いず、所定数の
CMTシリアルデータ受信処理を容易に実現することも
できる。Furthermore, once the CMT serial data reception processing completes receiving 1 byte data, the next series of received data processing and the processing of the received 1 byte data are generally handled by software processing using interrupts, but when receiving from the audio CMT, If the number of data bytes is predetermined, it is possible to easily realize a predetermined number of CMT serial data reception processes by simply adding one counter and without using interrupt processing.
次に、本発明の実施例について図面を参照して説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図は本発明によるカセット型磁気テープ読取り制御
装置の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of a cassette type magnetic tape reading control device according to the present invention.
本実施例は、オーディオCMTの出力パルス立下りエツ
ジを検出し、これに同期した立下りエツジ信号101−
1を出力する立下りエツジ信号制御部lot と、この
オーディオCMT立下りエツジ信号1ot−iによって
スタートするインターバルタイマ102 ト、゛インl
)−/</110VF信号102−1 、!:立下リエ
ッジ信号101−1の論理和を取るオアゲート103と
、オアゲート103から出力されたパルスカウント信号
103−1によってカウントアツプする2ビツトカウン
タ104と、インターバルOVF信号102−1を保持
するRSフリップフロップ105と、パルスカウントO
VF信号104−1によるCMTシリアルデータ受信処
理要求を受付けるI10要求制御部toeと、I10要
求制御部10B カI”+(7) I 10fi理実行
要求線10B−1およびI10処理処理形態指定線10
B−2を受けて実行部の動作を制御する工10要求受付
部107と、メインプログラム、シリアルデータ受信処
理プログラム等のプログラムを格納するプログラムメモ
リ109と、処理データを保持するデータメモリ111
と、次に実行するプログラムの番地を保持するプログラ
ムカウンタ108−1と、実行部全体の動作状態を示す
プログラムステータスワード108−2と、算術論理演
算機能を持つ算術論理演算ユニット(以下、ALUと記
す)11Bと、各種データ、ポインタ等で構成される汎
用レジスタセラ) 10B−3と、実行すべき命令を保
持しておくべき命令レジスタ113と、命令レジスタ1
13の内容により各種制御信号を発生する命令デコーダ
114と、命令デコーダ114の出力により実行部全体
の動作を制御する実行制御部115と、CMTシリアル
データ受信処理回数を保持するターミナルカウンタ(以
下、TCと記す) 112から構成されている。TC1
12はデータメモリ111に存在し、ソフトウェアによ
り任意の値を設定することができる0本実施例ではパル
スカウントOVF信号104−1に同期してカウントダ
ウンするTC112には、1バイトデータ受信完了まで
のカウント値=8がソフトウェアにより予め格納されて
いる。In this embodiment, a falling edge of an output pulse of an audio CMT is detected, and a falling edge signal 101-
1, and an interval timer 102 started by this audio CMT falling edge signal 1ot-i.
)-/</110VF signal 102-1,! : An OR gate 103 that takes the logical sum of the falling edge signal 101-1, a 2-bit counter 104 that counts up based on the pulse count signal 103-1 output from the OR gate 103, and an RS flip-flop that holds the interval OVF signal 102-1. pulse count O
An I10 request control unit toe that accepts a CMT serial data reception processing request based on the VF signal 104-1, an I10 request control unit 10B, a process execution request line 10B-1, and an I10 processing mode specification line 10.
A request reception unit 107 that receives B-2 and controls the operation of the execution unit, a program memory 109 that stores programs such as a main program and a serial data reception processing program, and a data memory 111 that holds processing data.
, a program counter 108-1 that holds the address of the next program to be executed, a program status word 108-2 that indicates the operating status of the entire execution section, and an arithmetic and logic unit (hereinafter referred to as ALU) that has an arithmetic and logic operation function. 11B), a general-purpose register cellar consisting of various data, pointers, etc.) 10B-3, an instruction register 113 that should hold instructions to be executed, and an instruction register 1.
an instruction decoder 114 that generates various control signals according to the contents of 13; an execution control section 115 that controls the operation of the entire execution section based on the output of the instruction decoder 114; and a terminal counter (hereinafter referred to as TC 112). TC1
12 exists in the data memory 111 and can be set to any value by software.0 In this embodiment, the TC 112, which counts down in synchronization with the pulse count OVF signal 104-1, has a count until the completion of 1-byte data reception. The value=8 is stored in advance by software.
はじめに、第1図を参照しながら、CMTパルスデータ
受信処理について説明する。立下りエツジ信号制御部1
01がオーディオCMTパルスの立下りエツジを検出し
て、立下りエツジ信号101−1のハイレベル信号がイ
ンターバルタイマ102とオアゲート103へ出力され
ると、まずオアゲート103はパルスカウント信号10
3−1を2ビツトカウンタ104へ出力する。同時に、
インターバルタイマ102は立下りエツジ信号101−
1によって、予めCMTパルスデータの論理“Onと論
理“1”の平均論理時間(= 1.5N)の設定された
タイマをスタートさせる。インターバルタイマ102は
次の立下りエツジ信号101−1が設定時間内に発生し
た場合にはインターバルOVF信号IQ2−1をロウレ
ベルで、設定時間をオーバーフローした場合にはインタ
ーバルOVF信号102−1をハイレベルで。First, CMT pulse data reception processing will be explained with reference to FIG. Falling edge signal control section 1
01 detects the falling edge of the audio CMT pulse and the high level signal of the falling edge signal 101-1 is output to the interval timer 102 and the OR gate 103. First, the OR gate 103 outputs the pulse count signal 10.
3-1 is output to the 2-bit counter 104. at the same time,
The interval timer 102 receives the falling edge signal 101-
1 starts a timer set in advance for the average logic time (= 1.5N) between logic "ON" and logic "1" of the CMT pulse data.The interval timer 102 is set by the next falling edge signal 101-1. If the overflow occurs within the set time, the interval OVF signal IQ2-1 is set to low level, and if the set time overflow occurs, the interval OVF signal 102-1 is set to high level.
RSフリップフロップ105とオアゲート103へ出力
する。オアゲート103はインターバルOVF信号10
2−1がハイレベル信号を出力した時パルスカウント信
号103−1を2ビツトカウンタ1G4へ出力する。し
たがって、CMTパルスデータの1シリアルデ一タ受信
完了時までに、論理“l”の場合は立下りエツジ信号1
01−1が4発、論理“0”の場合は立下りエツジ信号
tot−tとインターバルOVF信号102−1を交互
に2発づつ合計4発、オアゲート103に出力され、パ
ルスカウント信号103−1が2ビツトカウンタ104
でカウントアツプされる。2ビツトカウンタ104は初
期状態を“00”とし、4カウント目でオーバフローを
起こし初期状態“00″へ戻る2ビツトのカウンタなの
で、CMTパルスデータの1シリアルデ一タ受信完了時
には、論理値が“O”の場合も、“l”の場合もオーバ
フローを起こして初期状態“00″に戻る。2ビツトカ
ウンタ104はオーバフローを起こすとパルスカウント
OVF信号1G4−1をI10要求制御部10Bへ出力
し、RSフリップフロップ105はインターバルOVF
信号102−1を保持する。インターバルOVF信号1
02−1の反転した出力信号105−1はCMTパルス
の1シリアルデ一タ以上の一連の処理でCMTパルスデ
ータ受信処理が終了する。この一連の処理は第5図にお
けるシリアルデータ受信完了処理(処理8)の部分を除
く立下りエツジ割込処理に相当し、この後、実行部はC
MTシリアルデータ受信処理を実行する。It is output to the RS flip-flop 105 and the OR gate 103. OR gate 103 is interval OVF signal 10
When the counter 2-1 outputs a high level signal, it outputs a pulse count signal 103-1 to the 2-bit counter 1G4. Therefore, by the time the reception of one serial data of CMT pulse data is completed, if the logic is "L", the falling edge signal 1
01-1 is 4 times, and when the logic is "0", the falling edge signal tot-t and the interval OVF signal 102-1 are alternately sent 2 times each, for a total of 4 times, and output to the OR gate 103, and the pulse count signal 103-1 is output. is a 2-bit counter 104
will be counted up. The 2-bit counter 104 is a 2-bit counter whose initial state is "00" and which overflows at the fourth count and returns to the initial state "00", so when the reception of one serial data of CMT pulse data is completed, the logical value becomes "0". ” and “l” cause an overflow and return to the initial state “00”. When the 2-bit counter 104 overflows, it outputs the pulse count OVF signal 1G4-1 to the I10 request control unit 10B, and the RS flip-flop 105 outputs the pulse count OVF signal 1G4-1 to the I10 request control unit 10B.
Holds signal 102-1. Interval OVF signal 1
The inverted output signal 105-1 of 02-1 completes the CMT pulse data reception process by a series of processing of one or more serial data of the CMT pulse. This series of processing corresponds to the falling edge interrupt processing excluding the serial data reception completion processing (processing 8) in FIG.
Executes MT serial data reception processing.
次に、CMTシリアルデータ受信処理について同じく第
1図を参照しながら説明する。実行部は通常、プログラ
ムカウンタ108−1の内容に対応するプログラムメモ
リ109に記憶されている命令を命令レジスタ113へ
転送し、命令デコーダ114および実行制御部115が
各種制御を行ない、プログラムの実行を実現している。Next, CMT serial data reception processing will be explained with reference to FIG. 1 as well. The execution unit normally transfers the instructions stored in the program memory 109 corresponding to the contents of the program counter 108-1 to the instruction register 113, and the instruction decoder 114 and execution control unit 115 perform various controls to execute the program. It has been realized.
そして、−命令実行する毎にプログラムカウンタ108
−1は1次に実行する番地の値に更新される。I10要
求受付部107はl命令の完了毎にI10処理要求線1
0B−1をサンプルし、ロウレベルの時は上記動作を繰
り返す。- Each time an instruction is executed, the program counter 108
-1 is updated to the value of the address to be executed first. The I10 request reception unit 107 sends the I10 processing request line 1 every time the l instruction is completed.
Sample 0B-1 and repeat the above operation when it is low level.
次に、受信I10要求が発生した場合の動作を9%
I’ll ・ト 1 0 し・L ・h
^ ・/ # 1117 J・こ I
X・II ii +l・データ分のパルス受信回数カ
ウントのオーバーフロー信号であるパルスカウンタOV
F信号104−1をI10要求制御部10Bへ出力する
ことによって実行部はCMTシリアルデータ受信処理の
I10要求を行う、工10要求制御部106はCMTシ
リアルデータ受信処理以外にも複数のI10要求を受付
けて、この中から優先順位の最も高いものを選択するが
、本実施例では省略する。工10要求制御部10BはC
MTシリアルデータ受信処理をI10要求されると、工
10処理実行要求線10B−1とI10処理処理形態指
定線10B−2をハイレベルにする。I10要求受付部
107はI10処理実行要求線10Ei−1がハイレベ
ルであることを検出すると、I10処理処理形態指定線
10B−2のレベルをサンプルする。工10処理実行形
態指定線10B−2がハイレベルであればI10要求受
付部107は要求がCMTシリアルデータ受信処理要求
であると判断し、命令レジスタ113に強制的にCMT
シリアルデータ受信処理コードを設定する。実行制御部
115はプログラムカウンタ108−1のアドレス更新
を禁止し、続いてプログラムカウンタ108−1、プロ
グラムステータスワード108−2 、汎用レジスタセ
ット108−3の値を保持したまま以下の処理を開始す
る。Next, the behavior when a receive I10 request occurs is 9%
I'll ・to 1 0 し・L ・h
^ ・/ # 1117 J・ko I
X・II ii +l・Pulse counter OV which is an overflow signal for counting the number of pulses received for data
By outputting the F signal 104-1 to the I10 request control unit 10B, the execution unit issues an I10 request for CMT serial data reception processing. The request is accepted and the one with the highest priority is selected from among them, but this is omitted in this embodiment. The engineering 10 request control unit 10B is C
When the I10 request for MT serial data reception processing is made, the I10 processing execution request line 10B-1 and the I10 processing type designation line 10B-2 are set to high level. When the I10 request reception unit 107 detects that the I10 process execution request line 10Ei-1 is at a high level, it samples the level of the I10 process processing type designation line 10B-2. If the I10 process execution mode designation line 10B-2 is at a high level, the I10 request reception unit 107 determines that the request is a CMT serial data reception processing request, and forces the command register 113 to write the CMT
Set the serial data reception processing code. The execution control unit 115 prohibits updating of the address of the program counter 108-1, and then starts the following processing while holding the values of the program counter 108-1, program status word 108-2, and general-purpose register set 108-3. .
■ I10要求制御部10Bはデータバス117上にT
C112とシリアルデータ格納領域111−3のアドレ
スを出力する。■ The I10 request control unit 10B sends T on the data bus 117.
C112 and the address of the serial data storage area 111-3 are output.
■ 実行制帽115はこのTC112とシリアルデータ
格納領域111−3のアドレスを読込みレジスタにセッ
トする。(2) The execution controller 115 sets the addresses of this TC 112 and the serial data storage area 111-3 in the read register.
■ 実行制御部115はTC112をA I、 U 1
1Bを使って1減算し、再びT C112へ格納する。■ The execution control unit 115 sets the TC 112 to A I, U 1
1B is used to subtract 1, and the result is stored in T C112 again.
■ 次に、データ出力信号105−1をサンプリングし
た結果がオンならばキャリをセットし、オフならばキャ
リをリセットしてシリアルデータ格納領域111−3の
セットされたレジスタの内容と共に右へローテーション
スル。■ Next, if the result of sampling the data output signal 105-1 is on, a carry is set, and if it is off, the carry is reset and rotated to the right along with the contents of the set register in the serial data storage area 111-3. .
■ 続いて、リセット入力信号105−2によってRS
フリップフロップ105をリセットする。■ Subsequently, the RS is set by the reset input signal 105-2.
Flip-flop 105 is reset.
以上の一連の処理でCMTシリアルデータ受信処理が完
了する。この一連の処理は第6図における1バイトデー
タ受信完了処理(処理28)の部分を除くシリアルデー
タ受信完了処理に相当する。The above series of processes completes the CMT serial data reception process. This series of processes corresponds to the serial data reception completion process excluding the 1-byte data reception completion process (process 28) in FIG.
実行部ではT C112の値が一連のシリアルデータ受
信完了処理による減算でOになっていない場合は受信I
10要求が発生する毎にCMTシリアルデータ受信処理
を実行する。ただし、TC112の値が一連のCMTシ
リアルデータ受信処理による減算で0になった場合は、
A L U 118が自動的に1バイトデ一タ受信完了
割込制御線11111−1を工10要求制御部106に
出力し、I10要求制御部1・06はI10処理実行要
求線10B−1をハイレベルにし、I10処理処理形態
指定線10B−2をロウレベルにする。I10要求受付
部107はこれを1バイトデ一タ受信割込要求と判断し
て命令レジスタ113に強制的に1バイトデ一タ受信割
込処理コードを設定する。また、実行制御部115はプ
ログラムカウンタ10B−1およびプログラムステータ
スワード108−2をデータメモリ111へ退避させる
。In the execution unit, if the value of T C112 does not become O after the subtraction process in a series of serial data reception completion processes, the reception I
CMT serial data reception processing is executed every time 10 requests occur. However, if the value of TC112 becomes 0 after a series of subtractions during CMT serial data reception processing,
The ALU 118 automatically outputs the 1-byte data reception completion interrupt control line 11111-1 to the process 10 request control unit 106, and the I10 request control unit 1.06 sets the I10 process execution request line 10B-1 high. level, and the I10 processing type designation line 10B-2 is set to low level. The I10 request reception unit 107 determines this as a 1-byte data reception interrupt request and forcibly sets a 1-byte data reception interrupt processing code in the instruction register 113. Furthermore, the execution control unit 115 saves the program counter 10B-1 and the program status word 108-2 to the data memory 111.
I10要求制御部106はデータバス117上に1バイ
トデ一タ受信割込アドレスを転送し、実行制御部115
は、この1バイト受信割込アドレスをプログラムカウン
タ108−1へ転送することにより、1バイトデ一タ受
信割込処理プログラムを開始する。このようにT C1
12の値がCMTシリアルデータ受信処理による減算で
Oになった場合はCMTシリアルデータ受信処理を終了
すると同時に1バイトデ一タ受信割込要求が発生し、1
バイトデ一タ受信割込プログラムが起動される0以上の
一連の処理は第6図における1バイトデータ受信完了処
理(処理28)の部分を除く、1シリアルデータ受信完
了処理に相当する。The I10 request control unit 106 transfers the 1-byte data reception interrupt address onto the data bus 117, and the execution control unit 115
starts the 1-byte data reception interrupt processing program by transferring this 1-byte reception interrupt address to the program counter 108-1. In this way T C1
If the value of 12 becomes O by subtraction during CMT serial data reception processing, a 1-byte data reception interrupt request is generated at the same time as the CMT serial data reception processing ends, and 1
The series of 0 or more processes in which the byte data reception interrupt program is started corresponds to the 1-serial data reception completion process excluding the 1-byte data reception completion process (process 28) in FIG.
1 /<イトデータ受信割込ゾログラムは第7図の1バ
イトデータ受信完了処理ルーチンと同様の処理を実行す
る。すなわち、レジスタ類の退避(処理l)を行ってか
ら、データメモリ111からバイトデータ格納領域11
1−5のポインタ1114を読出しく処理30)、受信
完了した1バイトデータをバイトデータ格納領域111
−5に格納する(処理31)0次に、ポインタ111−
4を更新し、ソフトウエア的に設定可能なT C112
へ次のシリアルデータをカウントするために初期値=8
を設定する(処理32)0次に1以上の一連のプログラ
ム処理で更新されたレジスタ内容を復元する復帰処理(
処理30と、データメモリ111に退避していたデータ
をプログラムカウンタ10B−1およびプログラムステ
ータスワード108−2へ戻して1バイトデ一タ受信完
了割込プログラムから復帰し、中断されていたメインプ
ログラムへ合流する。The 1/<ite data reception interrupt zologram executes the same process as the 1-byte data reception completion process routine in FIG. That is, after saving the registers (processing 1), data is transferred from the data memory 111 to the byte data storage area 11.
Process 30) to read the pointer 1114 of 1-5, and transfer the received 1-byte data to the byte data storage area 111.
-5 (process 31) 0th order, pointer 111-
TC112 updated with 4 and configurable via software.
Initial value = 8 to count next serial data
(Process 32) Return processing (processing 32) that restores the register contents updated by a series of program processing of 1 or more
Step 30 and return the data saved in the data memory 111 to the program counter 10B-1 and program status word 108-2, return from the 1-byte data reception completion interrupt program, and join the interrupted main program. do.
なお、本実施例においては1バイトデータ受信完了後は
割込による処理を発生させるが、CMTバイトデータの
出力するバイト数が予め定まっていればカウンタをさら
に1個設けるだけでCMTシリアルデータ受信処理内で
のデータメモリ上への格納も容易に実現可能である。Note that in this embodiment, processing by interrupt is generated after receiving one byte data, but if the number of bytes to be output as CMT byte data is determined in advance, CMT serial data reception processing can be performed simply by providing one more counter. It is also possible to easily store the data on the data memory within the system.
以上説明したように本発明は、カセット型磁気テープ読
取り制御装置が、ハードウェアによるCMTパルスデー
タ受信処理と、受信I10要求に対するCMTシリアル
データ受信処理形態と、同受信I10要求形態による1
バイトデ一タ受信割込要求に対する処理形態を有してい
ることにより、ソフトウェアの設定によるCMTパルス
データ受信をCMTパルスデータ受信処理とCMTシリ
アルデータ受信処理で行なう時には、従来の割込処理に
内在していたプログラムカウンタ、プログラムステータ
スワードのスタックへの退避、割込プログラムへの分岐
処理、汎用レジスタセットの退避処理命令の読出し、デ
コード等の割込の退避処理と、汎用レジスタセットの復
帰処理命令の読出し、デコード、メインプログラムへの
分岐処理、プログラムステータスワード、プログラムカ
ウンタのスタックからの復帰などの割込みからの復帰処
理に費していた時間を大幅に削減することができ、さら
にCMTパルスデータ受信処理とCMTシリアルデータ
受信処理によって1バイトデータ受信完了後は自動的に
1バイトデ一タ受信割込要求を発生し、CMTシリアル
データ受信割込プログラムの起動がかかるので、CPU
の処理能力の低下を最小限に抑えることが可能となる。As explained above, the present invention provides a cassette-type magnetic tape reading control device that performs CMT pulse data reception processing by hardware, CMT serial data reception processing format in response to a reception I10 request, and CMT serial data reception processing format based on the reception I10 request format.
By having a processing form for byte data reception interrupt requests, when CMT pulse data reception is performed by software settings in CMT pulse data reception processing and CMT serial data reception processing, it is possible to perform processing that is not inherent in conventional interrupt processing. Saving the program counter and program status word to the stack, branching to the interrupt program, reading general-purpose register set saving processing instructions, saving interrupts such as decoding, and returning general-purpose register set processing instructions. The time spent on return processing from interrupts such as reading, decoding, branch processing to the main program, program status word, and return from the program counter stack can be significantly reduced. After the 1-byte data reception is completed by the CMT serial data reception process, a 1-byte data reception interrupt request is automatically generated and the CMT serial data reception interrupt program is activated.
This makes it possible to minimize the decline in processing capacity.
以上の通り、本発明によるカセット型磁気テープ読取り
制御装置はオーディオCMTの入力パルスの受信処理と
シリアルデータの受信処理に対して最も適した受信デー
タ処理手段を提供することが可能で、実用効果はきわめ
て高い。As described above, the cassette type magnetic tape reading control device according to the present invention can provide the most suitable received data processing means for receiving processing of input pulses of audio CMT and receiving processing of serial data, and has practical effects. Extremely expensive.
第1図は本発明によるカセット型磁気テープ読取り制御
装置の一実施例の実行部のブロック図、第2図はカセッ
ト型磁気テープ読取り制御装置の従来例のブロック図、
第3図はオーディオCMTの出力パルスの論理値を示す
タイムチャート、第4図はオーディオCMTから出力さ
れる1バイトデータ“6B”のパルス波形図、第5図は
立下りエツジ割込処理のフローチャート、第6図はlシ
リアルデータ受信完了処理のフローチャート、第7図は
1バイトデータ受信完了処理のフローチャートである。
101:立下りエツジ信号制御部
1ot−t :立下りエツジ信号
102:インターバルタイマ
102−1 : (7ターバJL/ OV F信号1
03 ニオアゲート
103−1 :パルスカウント信号
104:2ビットカウンタ
104−1 :パルスカウントOVF信号105
:RSフリップフロップ
105−1 :データ出力信号
105−2 :リセット入力信号
108 :I10要求制御部
10B−1: I10処理実行要求線
10Ei−2: I10処理処理形態指定線107
:I10要求受付部
108:実行部
108−1 ニブログラムカウンタ
108−2 ニブログラムステータスワード108−
3 :汎用レジスタセット
109ニブログラムメモリ
110:割込制御部
111:データメモリ
111−1 :パルスカウンタ
111−2 ニジリアルカウンタ
111−3 ニジリアルデータ格納領域111−4
:ポインタ
111−5 :バイトデータ格納領域112:ターミ
ナルカウンタ(TC)
113:命令レジスタ
114 :命令デコーダ
115 :実行制御部
116:算術論理演算ユニット(A L U)11B−
1: 1バイトデータ受信完了割込制御縁第7図FIG. 1 is a block diagram of an execution unit of an embodiment of a cassette type magnetic tape reading control device according to the present invention, and FIG. 2 is a block diagram of a conventional example of a cassette type magnetic tape reading control device.
Figure 3 is a time chart showing the logical values of output pulses of the audio CMT, Figure 4 is a pulse waveform diagram of 1-byte data "6B" output from the audio CMT, and Figure 5 is a flowchart of falling edge interrupt processing. , FIG. 6 is a flowchart of 1 serial data reception completion processing, and FIG. 7 is a flowchart of 1-byte data reception completion processing. 101: Falling edge signal control unit 1ot-t: Falling edge signal 102: Interval timer 102-1: (7turba JL/OV F signal 1
03 Nior gate 103-1: Pulse count signal 104: 2-bit counter 104-1: Pulse count OVF signal 105
: RS flip-flop 105-1 : Data output signal 105-2 : Reset input signal 108 : I10 request control unit 10B-1 : I10 processing execution request line 10Ei-2 : I10 processing processing form designation line 107
:I10 Request reception unit 108: Execution unit 108-1 Nibragram counter 108-2 Nibragram status word 108-
3: General purpose register set 109 Niprogram memory 110: Interrupt control unit 111: Data memory 111-1: Pulse counter 111-2 Niji real counter 111-3 Niji real data storage area 111-4
: Pointer 111-5 : Byte data storage area 112 : Terminal counter (TC) 113 : Instruction register 114 : Instruction decoder 115 : Execution control section 116 : Arithmetic logic unit (ALU) 11B-
1: 1 byte data reception completion interrupt control edge Figure 7
Claims (1)
入力されるパルスを検出するパルス検出部と、該パルス
検出部のパルス検知に同期して計数動作を開始し、前記
カセット型磁気テープに記録されている情報に対応した
パルスの周期を計測するパルス周期計測部と、前記パル
ス検出部および前記パルス周期計測部により制御され、
シリアルデータ受信処理要求を発生するシリアルデータ
検出部と、プログラムおよび各種データを記憶するメモ
リ部と、前記シリアルデータ検出部の処理要求と前記プ
ログラムによる処理とを選択的に実行する中央処理装置
とを備えたカセット型磁気テープ読取り制御装置におい
て、 前記中央処理装置は、プログラム実行にかかわる状態を
保持したまま、前記シリアルデータ検出部の処理要求に
基づき、シリアルデータ受信の内容に対応した処理を行
ない得るシリアルデータ受信処理手段を有し、前記シリ
アルデータ検出部が前記シリアルデータ受信処理要求を
発生した時、前記シリアルデータ受信処理手段により、
前記中央処理装置がカセット型磁気テープに記憶されて
いる情報に対応して入力されるシリアルデータの受信処
理を行なうことを特徴とするカセット型磁気テープ読取
り制御装置。[Scope of Claims] A pulse detection section detects pulses input in accordance with information recorded on a cassette-type magnetic tape, and a counting operation is started in synchronization with the pulse detection of the pulse detection section, and the a pulse period measuring section that measures the period of a pulse corresponding to information recorded on a cassette-type magnetic tape; controlled by the pulse detecting section and the pulse period measuring section;
A serial data detection section that generates a serial data reception processing request, a memory section that stores programs and various data, and a central processing unit that selectively executes processing requests of the serial data detection section and processing according to the program. In the cassette type magnetic tape reading control device, the central processing unit can perform processing corresponding to the content of serial data reception based on a processing request from the serial data detection unit while maintaining a state related to program execution. comprising serial data reception processing means, and when the serial data detection section generates the serial data reception processing request, the serial data reception processing means:
A cassette-type magnetic tape reading control device, wherein the central processing unit performs a process of receiving serial data input in correspondence with information stored on a cassette-type magnetic tape.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13957885A JPS621027A (en) | 1985-06-26 | 1985-06-26 | Cassette type magnetic tape reading controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP13957885A JPS621027A (en) | 1985-06-26 | 1985-06-26 | Cassette type magnetic tape reading controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPS621027A true JPS621027A (en) | 1987-01-07 |
Family
ID=15248519
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP13957885A Pending JPS621027A (en) | 1985-06-26 | 1985-06-26 | Cassette type magnetic tape reading controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS621027A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04228346A (en) * | 1990-04-14 | 1992-08-18 | Carl Freudenberg:Fa | Non-woven cleaning body for car wash equipment |
-
1985
- 1985-06-26 JP JP13957885A patent/JPS621027A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04228346A (en) * | 1990-04-14 | 1992-08-18 | Carl Freudenberg:Fa | Non-woven cleaning body for car wash equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6237089B1 (en) | Method and apparatus for affecting subsequent instruction processing in a data processor | |
| US4250546A (en) | Fast interrupt method | |
| EP0313097B1 (en) | Microcomputer system including master processor and slave processor | |
| EP0212636B1 (en) | Bus state control circuit | |
| JP4628521B2 (en) | Method and apparatus for handling interruptible multi-cycle instructions | |
| JPH05204709A (en) | Processor | |
| US6986028B2 (en) | Repeat block with zero cycle overhead nesting | |
| JPS621027A (en) | Cassette type magnetic tape reading controller | |
| JP2536415B2 (en) | DMA transfer control device | |
| US4797816A (en) | Virtual memory supported processor having restoration circuit for register recovering | |
| EP0306891A2 (en) | Pipelined slave protocol for high performance CPU-FPU cluster | |
| JPH0414377B2 (en) | ||
| JPS62224831A (en) | Data reception processing system | |
| JPS6242301B2 (en) | ||
| JP2929980B2 (en) | Information processing device | |
| JP2721611B2 (en) | Programmable controller | |
| JP2721610B2 (en) | Programmable controller | |
| JP3531856B2 (en) | Program control method and program control device | |
| JPH0623947B2 (en) | Information processing equipment | |
| JPH0531775B2 (en) | ||
| JPH0695304B2 (en) | Data processing device | |
| JP2007018497A (en) | RISC microprocessor priority vector interrupt system | |
| JPH0283779A (en) | Instruction execution control method for vector processing equipment | |
| JPH0152775B2 (en) | ||
| JPH0195336A (en) | System for controlling retry |