JP3028667B2 - Digital recorder - Google Patents

Digital recorder

Info

Publication number
JP3028667B2
JP3028667B2 JP03339938A JP33993891A JP3028667B2 JP 3028667 B2 JP3028667 B2 JP 3028667B2 JP 03339938 A JP03339938 A JP 03339938A JP 33993891 A JP33993891 A JP 33993891A JP 3028667 B2 JP3028667 B2 JP 3028667B2
Authority
JP
Japan
Prior art keywords
data
transfer
cpu
address
dma
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
JP03339938A
Other languages
Japanese (ja)
Other versions
JPH05151706A (en
Inventor
宣男 飯塚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP03339938A priority Critical patent/JP3028667B2/en
Publication of JPH05151706A publication Critical patent/JPH05151706A/en
Application granted granted Critical
Publication of JP3028667B2 publication Critical patent/JP3028667B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、音声信号等をデジタル
的に記録再生、更には、編集することが可能なデジタル
レコーダに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital recorder capable of digitally recording and reproducing an audio signal and the like, and further, capable of editing.

【0002】[0002]

【従来の技術】音声信号等を記録するのに、大容量のハ
ードディスクや光磁気ディスク等の外部記録装置を用い
ることが提案されている(例えば、本件出願人による特
願平2−123788号等)。この場合、音声信号は、
A/D変換器によりアナログ信号からデジタル信号に変
換され、一旦バッファメモリに記憶される。バッファメ
モリに記憶されたデジタルデータは、所定のタイミング
でハードディスクに転送され、記録される。一方、読み
出し時においてもハードディスクから読み出されたデジ
タルデータは、一旦バッファメモリに記憶され、所定の
タイミングでバッファメモリから読み出され、D/A変
換器に入力される。D/A変換器によりデジタル信号か
らアナログ信号に変換された音声信号は、スピーカ等に
供給される。ハードディスクのアクセスアドレスを制御
することにより、高度で柔軟な編集機能を有する装置を
実現することが出来る。
2. Description of the Related Art It has been proposed to use an external recording device such as a large-capacity hard disk or a magneto-optical disk for recording an audio signal or the like (for example, Japanese Patent Application No. 2-123788 by the present applicant). ). In this case, the audio signal is
The signal is converted from an analog signal to a digital signal by the A / D converter, and is temporarily stored in the buffer memory. The digital data stored in the buffer memory is transferred and recorded on a hard disk at a predetermined timing. On the other hand, even at the time of reading, digital data read from the hard disk is temporarily stored in the buffer memory, read from the buffer memory at a predetermined timing, and input to the D / A converter. The audio signal converted from a digital signal to an analog signal by the D / A converter is supplied to a speaker or the like. By controlling the access address of the hard disk, an apparatus having an advanced and flexible editing function can be realized.

【0003】[0003]

【発明が解決しようとする課題】この様な装置を低コス
トで実現するには、ディスクアクセスのオーバーヘッド
を吸収するためのバッファメモリとしてのRAMを少し
でも小容量のものにする必要がある。一方、編集時にお
いて、例えば、きわめて短い時間間隔で多数回数ルーピ
ング再生の指定を行うと、ディスクアクセスが頻繁に行
われるため、余り小容量のバッファメモリではディスク
アクセスのオーバーヘッドを吸収することが出来ず、デ
ーター転送が間に合わなくなって、再生中に音とび等の
不都合が生じるという課題があった。
In order to realize such an apparatus at low cost, it is necessary to make the RAM as a buffer memory for absorbing the overhead of disk access at least a small capacity. On the other hand, during editing, for example, if a large number of looping playbacks are specified at extremely short time intervals, disk access is frequently performed, so a buffer memory with a very small capacity cannot absorb the disk access overhead. However, there has been a problem that data transfer cannot be made in time, causing inconveniences such as skipping of sound during reproduction.

【0004】特に外部記憶装置として、例えばハードデ
ィスクと光磁気ディスク等の異なるメディアを用いた場
合(ハードディスクの方が高速であり、光磁気ディスク
の方が低速である)には、それぞれのディスクに対する
転送レートの違いがあるので、バッファメモリの容量を
効率的に利用することが困難である課題があった。
[0004] In particular, when different media such as a hard disk and a magneto-optical disk are used as the external storage device (the hard disk is faster and the magneto-optical disk is slower), transfer to each disk is performed. There is a problem that it is difficult to efficiently use the capacity of the buffer memory due to the difference in the rates.

【0005】本発明は、この様な状況に鑑みて成された
もので、バッファメモリの容量を効率的に利用すること
ができるようにするものである。
[0005] The present invention has been made in view of such a situation, and it is an object of the present invention to efficiently use the capacity of a buffer memory.

【0006】[0006]

【課題を解決するための手段】本発明のデジタルレコー
ダは、デジタル信号が記録される第1の外部記録手段と
してのハードディスク12−1と、デジタル信号が記録
されるとともに、ハードディスク12−1より遅いアク
セス時間を有する第2の外部記録手段としての光磁気デ
ィスク12−2と、ハードディスク12−1と光磁気デ
ィスク12−2より再生されたデジタル信号を一時的に
記憶する複数の領域を有する一時記憶手段としてのバッ
ファ9−1乃至9−3と、第1の外部記録手段としての
ハードディスク12−1より再生される情報と第2の外
部記録手段としての光磁気ディスク12−2より再生さ
れる情報の比率を演算する演算手段としてのCPU1お
よびプログラム上のステップ4−1と、演算手段である
CPU1のステップ4−1による演算結果に対応して一
時記憶手段としてのバッファ9−1乃至9−3の領域の
割合を設定する設定手段としてのCPU1およびプログ
ラム上のステップ4−3,4−4とを備えることを特徴
とする。
A digital recorder according to the present invention has a hard disk 12-1 as first external recording means for recording a digital signal, and a digital signal is recorded and is slower than the hard disk 12-1. Magneto-optical disk 12-2 as second external recording means having access time, and temporary storage having a plurality of areas for temporarily storing digital signals reproduced from hard disk 12-1 and magneto-optical disk 12-2 Buffers 9-1 to 9-3 as means, information reproduced from a hard disk 12-1 as first external recording means, and information reproduced from a magneto-optical disk 12-2 as second external recording means CPU 4-1 as a calculating means for calculating the ratio of the program and step 4-1 on the program, and the step of the CPU 1 as the calculating means. A CPU 1 as setting means for setting the ratio of the areas of the buffers 9-1 to 9-3 as temporary storage means according to the calculation result of 4-1 and steps 4-3 and 4-4 on the program. It is characterized by the following.

【0007】設定手段すなわちCPU1のステップ4−
3,4−4による一時記憶手段としてのバッファ9−1
乃至9−3の領域の割合の設定は、所定の時間ごとに行
なうことができる。
The setting means, that is, step 4 of the CPU 1
Buffer 9-1 as temporary storage means by 3, 4-4
The setting of the ratio of the areas 9 to 9-3 can be performed at predetermined time intervals.

【0008】[0008]

【作用】請求項1に記載のデジタルレコーダにおいて
は、アクセス時間が速い第1の外部記録手段であるハー
ドディスク12−1より再生される情報と、アクセス時
間が遅い第2の外部記録手段である光磁気ディスク12
−2より再生される情報の比率が演算され、その演算結
果に対応して一時記憶手段としてのバッファ9−1乃至
9−3の領域の割合が設定される。従って、一時記憶手
段としてのバッファ9−1乃至9−3を効率的に利用す
ることができる。
In the digital recorder according to the first aspect, information reproduced from the hard disk 12-1 which is the first external recording means having a fast access time and light which is the second external recording means having a slow access time are provided. Magnetic disk 12
-2, the ratio of the information to be reproduced is calculated, and the ratio of the areas of the buffers 9-1 to 9-3 as the temporary storage means is set in accordance with the calculation result. Therefore, the buffers 9-1 to 9-3 as temporary storage means can be used efficiently.

【0009】[0009]

【実施例】以下、この発明のデジタルレコーダの好適な
実施例を図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the digital recorder according to the present invention will be described below with reference to the drawings.

【0010】〈全体構成〉図1は、本発明のデジタルレ
コーダの一実施例の全体構成を示しており、この実施例
においては、同時に3トラックまでの録音、再生動作が
出来るようになっている。全体は、図示のとおり、CP
U部(図中左側の部分)と、DMAユニット(音声記録
再生処理装置)(図中右側の部分)とにわかれる。
<Overall Configuration> FIG. 1 shows the overall configuration of an embodiment of a digital recorder according to the present invention. In this embodiment, recording and playback operations for up to three tracks can be performed simultaneously. . The whole is CP as shown
It is divided into a U part (left part in the figure) and a DMA unit (audio recording / reproducing processing device) (right part in the figure).

【0011】CPU部は、CPU1と、このCPU1の
動作を規定するプログラム(詳細は後述)を記憶したプ
ログラムROM2と、各種データを記憶するエリア、3
トラックのカレントポインタを記憶するエリア、ならび
にワークエリア等を含むRAM3と、CPU1のI/O
ポートに接続された周辺機器である各種ファンクション
キー、データ入力キー等を含むキーボード4、CRTあ
るいはLCDとそのドライバを含み各種表示を行う表示
装置5とを有する。
The CPU section includes a CPU 1, a program ROM 2 for storing a program (described later in detail) for defining the operation of the CPU 1, an area for storing various data,
A RAM 3 including an area for storing a current pointer of a track, a work area, and the like;
It has a keyboard 4 including various function keys and data input keys as peripheral devices connected to the port, a display device 5 including a CRT or LCD and its driver and performing various displays.

【0012】CPU1は、後述するようにリアルタイム
動作時(録音/再生等)において、DMAユニットのア
ドレスバス、データバスの空き時間に、必要に応じてD
MAユニットの各構成要素の制御を行ない、編集時にお
いて、データブロックの並べ換えや、ディスクアクセス
ポインタの操作等を行なう。キーボード4からは、後述
するように、各トラック(以下、Trとする)の録音/
再生モードの設定、スタート、ストップ、ロケート、編
集点の指定などが行える。プログラムROM2,RAM
3のアドレス端子には、アドレスバスを介してCPU1
からアドレス信号が送られ、その出力端子はデータバス
を介してCPU1にあるいはトランシーバ7に接続され
ている。
As will be described later, during real-time operation (recording / reproducing, etc.), the CPU 1 sets the D / A bus in the idle time of the address bus and the data bus of the DMA unit as necessary.
The components of the MA unit are controlled, and during editing, rearrangement of data blocks, manipulation of a disk access pointer, and the like are performed. Recording / recording of each track (hereinafter referred to as Tr) is performed from the keyboard 4 as described later.
You can set playback mode, start, stop, locate, and specify edit points. Program ROM2, RAM
3 is connected to an address terminal of the CPU 1 via an address bus.
And an output terminal thereof is connected to the CPU 1 or the transceiver 7 via the data bus.

【0013】すなわち、CPU部とDMAユニットとを
連結するために、バッファ6、トランシーバ7がDMA
ユニット内に設けられている。バッファ6はCPU1と
アドレスバスを介して接続され、更にDMAユニット内
のアドレスバスに連結される。トランシーバ7はCPU
1とデータバスを介して接続され、更にDMAユニット
内のデータバスに連結される。DMAユニット内には、
Tr1の為の音声入出力装置8−1、Tr2の為の音声
入出力装置8−2、Tr3の為の音声入出力装置8−3
が設けられていて、夫々には、アナログ音声信号が独立
に入出力可能となっている。
That is, in order to connect the CPU unit and the DMA unit, the buffer 6 and the transceiver 7
It is provided in the unit. The buffer 6 is connected to the CPU 1 via an address bus, and further connected to an address bus in the DMA unit. The transceiver 7 is a CPU
1 and a data bus, and further connected to a data bus in the DMA unit. In the DMA unit,
Audio input / output device 8-1 for Tr1, audio input / output device 8-2 for Tr2, audio input / output device 8-3 for Tr3
Are provided, and analog audio signals can be input and output independently of each other.

【0014】各音声入出力装置8−1〜8−3の内部に
は、A/D変換、D/A変換を選択的に実行する変換器
のほか、サンプリングノイズ除去用のローパスフィル
タ、更にサンプリング周期でクロックを発生するクロッ
ク回路などが含まれている。これらの音声入出力装置8
−1〜8−3においては、当該トラックがレコード(記
録)状態に設定されれば、外部からのアナログ音声信号
をサンプリング周期毎に適宜フィルタリングした後、A
/D変換して、デジタル音声データを得る。逆に当該ト
ラックがプレイ(再生)状態に設定されれば、予め読み
出されたデジタル音声データをサンプリング周期毎にD
/A変換して適宜フィルタリングした後、アナログ音声
信号として出力する。
Inside each of the audio input / output devices 8-1 to 8-3, in addition to a converter for selectively performing A / D conversion and D / A conversion, a low-pass filter for removing sampling noise, and a sampling device A clock circuit that generates a clock with a period is included. These audio input / output devices 8
In -1 to 8-3, if the track is set to the record state, an external analog audio signal is appropriately filtered for each sampling period, and
/ D conversion to obtain digital audio data. Conversely, if the track is set to the play (playback) state, the digital audio data read in advance is
After being subjected to / A conversion and appropriately filtered, it is output as an analog audio signal.

【0015】Tr1〜Tr3の各音声入出力装置8−1
〜8−3は、データバスを介して対応するバッファ9−
1(BUF1)、バッファ9−2(BUF2)、バッフ
ァ9−3(BUF3)とそれぞれ接続され、デジタル音
声データの授受を行う。このバッファ9−1〜9−3は
Tr1〜Tr3に夫々対応しており、音声入出力装置8
−1〜8−3との間のデータ転送は、制御手段としての
DMAコントローラ10にて直接メモリアクセス(DM
A)方式により行われる。
Each audio input / output device 8-1 of Tr1 to Tr3
8-3 correspond to the corresponding buffers 9- via the data bus.
1 (BUF1), a buffer 9-2 (BUF2), and a buffer 9-3 (BUF3), respectively, for exchanging digital audio data. The buffers 9-1 to 9-3 correspond to Tr1 to Tr3, respectively.
Data transfer between -1 to 8-3 is performed by direct memory access (DM
A) The method is performed.

【0016】この各音声入出力装置8−1〜8−3は、
DMAコントローラ10に対し、レコーディング時に
は、サンプリング周期で音声入出力装置8−1〜8−3
からバッファ9−1〜9−3方向への1回のサンプリン
グに係るデジタルデータのDMA転送(シングル転送)
を要求(リクエスト)し(DRQ信号を送出し(Tr1
ではDRQ1、Tr2ではDRQ2、Tr3ではDRQ
3としてDMAコントローラ10に与えられる))、D
MAコントローラ10からの回答(アクノーレッジが、
Tr1ではDAK1、Tr2ではDAK2、Tr3では
DAK3としてDMAコントローラ10から与えられ
る)を受けて、実際のデータ転送が実行される。プレイ
時には、サンプリング周期でバッファ9−1〜9−3か
ら音声入出力装置8−1〜8−3方向への1回のサンプ
リングに係るデジタルデータのDMA転送(シングル転
送)の要求が、音声入出力装置8−1〜8−3からなさ
れ、上記した場合と同様にDMAコントローラ10によ
ってデータ転送が実行される。
Each of the audio input / output devices 8-1 to 8-3 includes:
At the time of recording, the audio input / output devices 8-1 to 8-3 are transmitted to the DMA controller 10 at a sampling period.
Transfer (single transfer) of digital data related to one sampling in the direction from the buffer to the buffers 9-1 to 9-3
Request (request) and send a DRQ signal (Tr1
DRQ1, DRQ2 for Tr2, DRQ for Tr3
3) to the DMA controller 10)), D
Answer from MA controller 10 (Acknowledge is
Tr1 receives DAK1, Tr2 receives DAK2, and Tr3 receives DAK3 as DAK3), and the actual data transfer is executed. At the time of play, a request for DMA transfer (single transfer) of digital data relating to one sampling from the buffers 9-1 to 9-3 in the direction of the audio input / output devices 8-1 to 8-3 in the sampling cycle is issued when audio input Data is transferred from the output devices 8-1 to 8-3 by the DMA controller 10 in the same manner as described above.

【0017】このバッファ9−1〜9−3は、1回もし
くは複数回のデジタル音声データを記憶できる容量を持
ち、例えばRAMをTr1〜Tr3に3分割し、夫々リ
ングバッファ(最終アドレスと先頭アドレスとが仮想的
につながったバッファ)として使用することで、FIF
Oバッファとして機能するよう構成されている。このバ
ッファ9−1〜9−3に対するアドレス指定は、アドレ
スバスを介してDMAコントローラ10などよりなされ
る。すなわちDMA転送を行っているときはDMAユニ
ット内のアドレスバス、データバス、制御信号ラインは
DMAコントローラ10が専有することになる。
Each of the buffers 9-1 to 9-3 has a capacity capable of storing digital audio data once or a plurality of times. For example, the RAM is divided into three parts Tr1 to Tr3, and each of the buffers is divided into a ring buffer (last address and first address). Is used as a buffer that is virtually connected to the
It is configured to function as an O buffer. The addresses for the buffers 9-1 to 9-3 are specified by the DMA controller 10 or the like via an address bus. That is, when the DMA transfer is performed, the DMA controller 10 occupies the address bus, the data bus, and the control signal line in the DMA unit.

【0018】そしてバッファ9−1〜9−3はデータバ
スを介し、更にデバイスコントローラ11の制御に従っ
てハードディスク12−1や光磁気ディスク12−2等
(以下、単にディスク12と言う)のディスクとデータ
の授受を行う。ディスク12とデバイスコントローラ1
1とはデータバスとコントロール信号ラインとを介し連
結され、ディスク12に対するリード/ライトアクセス
が全てデバイスコントローラ11によりなされる。各デ
ィスクは、Tr1〜Tr3の3トラック分の分割された
記憶エリアを有しており、バッファ9−1〜9−3との
データ転送がDMAコントローラ10によりなされる。
これは、デバイスコントローラ11が1つのデータブロ
ックを転送し終ると割込み(INT)をCPU1にか
け、次のデータブロックの転送指示をCPU1に対し行
うことによりなされる。CPU1は、デバイスコントロ
ーラ11からインタラプト信号INTが到来すると、D
MAコントローラ10、デバイスコントローラ11を所
望の状態に設定したり、プログラミングしたりした後、
DMA転送を行わせる。この動作の詳細は後に説明す
る。
The buffers 9-1 to 9-3 are connected to disks such as a hard disk 12-1 and a magneto-optical disk 12-2 (hereinafter simply referred to as a disk 12) under the control of the device controller 11 via a data bus. To give and receive. Disk 12 and device controller 1
1 is connected via a data bus and a control signal line, and all read / write accesses to the disk 12 are performed by the device controller 11. Each disk has a storage area divided into three tracks of Tr1 to Tr3, and data transfer with the buffers 9-1 to 9-3 is performed by the DMA controller 10.
This is done by the device controller 11 issuing an interrupt (INT) to the CPU 1 when the transfer of one data block is completed, and instructing the CPU 1 to transfer the next data block. When an interrupt signal INT is received from the device controller 11, the CPU 1
After setting the MA controller 10 and the device controller 11 to desired states or programming,
DMA transfer is performed. Details of this operation will be described later.

【0019】DMAコントローラ10はプレイ時にあっ
ては、ディスク12から予め指定された量(複数サンプ
リング周期分)のデジタル音声データを読み出した後、
バッファ9−1〜9−3のうちの指定されるバッファへ
DMA転送(ブロック転送)するよう動作し、レコード
時にあっては、指定されたバッファから予め指定された
量(複数サンプリング周期分)のデジタル音声データを
読み出してディスク12の指定される位置へDMA転送
(ブロック転送)するよう動作する。
When playing, the DMA controller 10 reads out a predetermined amount (a plurality of sampling periods) of digital audio data from the disk 12 and then
It operates to perform DMA transfer (block transfer) to a designated buffer among the buffers 9-1 to 9-3, and at the time of recording, a predetermined amount (for a plurality of sampling periods) from the designated buffer. It operates to read digital audio data and perform DMA transfer (block transfer) to a designated position on the disk 12.

【0020】このディスク12とバッファ9−1〜9−
3との間のデータ転送の際は、デバイスコントローラ1
1よりDMAコントローラ10に対し要求信号DREQ
を出力し(DMAコントローラ10側ではDRQ4とし
て受取る)、転送可能となると逆に回答信号DACKを
受取る(DMAコントローラ10側ではDAK4として
出力する)ことで、実際の転送状態となる。
This disk 12 and buffers 9-1 to 9-
When transferring data to / from the device controller 1,
1 to the DMA controller 10 by request signal DREQ
Is output (received as DRQ4 on the DMA controller 10 side), and when the transfer becomes possible, the answer signal DACK is received (outputted as DAK4 on the DMA controller 10 side), whereby the actual transfer state is set.

【0021】このように、DMAコントローラ10は、
Tr1〜Tr3の音声入出力装置8−1〜8−3とバッ
ファ9−1〜9−3との間の3チャンネル(後述するC
H1〜CH3)のデータ転送と、順番に選択されたいず
れかのバッファ9−1〜9−3とディスクとの間の1チ
ャンネル(後述するCH4)のデータ転送との、計4チ
ャンネルの時分割データ転送動作をする。
As described above, the DMA controller 10
3 channels between audio input / output devices 8-1 to 8-3 of Tr1 to Tr3 and buffers 9-1 to 9-3 (C to be described later)
H1 to CH3) data transfer and one-channel (CH4) data transfer between one of the buffers 9-1 to 9-3 selected in order and the disk, for a total of four channels in time division. Perform data transfer operation.

【0022】CPU1は、DMAユニット内の各構成要
素の機能、作用を管理するために、アドレスバスを介し
バッファ6にアドレス信号を与えるほか、各構成要素の
指定信号をバッファ6を介しデコーダ13に供給して、
夫々の指定信号CSを、各音声入出力装置8−1〜8−
3、バッファ9−1〜9−3、DMAコントローラ1
0、デバイスコントローラ11に与える。同時に、トラ
ンシーバ7を介し、データバスを経由して種々のデータ
のやりとりがCPU1との間でなされる。
The CPU 1 supplies an address signal to the buffer 6 via an address bus and manages a designation signal of each component to the decoder 13 via the buffer 6 in order to manage the function and operation of each component in the DMA unit. Supply,
Each of the designation signals CS is transmitted to each of the audio input / output devices 8-1 to 8-
3, buffers 9-1 to 9-3, DMA controller 1
0, given to the device controller 11. At the same time, various data are exchanged with the CPU 1 via the transceiver 7 and the data bus.

【0023】更に、CPU1から各音声入出力装置8−
1〜8−3のIOWR端子にはレコード状態(ライト状
態)とするのかプレイ状態(リード状態)とするのかを
指定する指定信号WRが、バッファ6を介して与えられ
る。
Further, each of the voice input / output devices 8-
A designation signal WR for designating a record state (write state) or a play state (read state) is supplied to the IOWR terminals 1 to 8-3 via the buffer 6.

【0024】また、各バッファ9−1〜9−3、DMA
コントローラ10、デバイスコントローラ11に対して
もこの指定信号(ライト信号)WRと、別の指定信号
(リード信号)RDとがバッファ6を介してCPU1か
ら与えられ、夫々の構成要素からデータを読み出したり
逆にデータを書込んだりするようになる。また、DMA
コントローラ10からも、DMA転送状態にあってはこ
れらの指定信号RD、WRを出力するようになる。これ
らの信号と各構成要素の機能、動作の関係は後述する。
Each of the buffers 9-1 to 9-3, DMA
The designation signal (write signal) WR and another designation signal (read signal) RD are also supplied from the CPU 1 to the controller 10 and the device controller 11 via the buffer 6 to read data from the respective constituent elements. Conversely, data is written. Also, DMA
The controller 10 outputs these designation signals RD and WR in the DMA transfer state. The relationship between these signals and the function and operation of each component will be described later.

【0025】DMAコントローラ10は、DMA転送を
各構成要素間で行っているとき、DMA可能(イネーブ
リング)信号DMAENBを“1”にして出力する。そ
の結果、この信号DMAENBがインバータ16を介し
て与えられるアンドゲート14の出力は“0”となり、
バッファ6、トランシーバ7にはイネーブリング信号E
が“0”として与えられ、結局CPU部とDMAユニッ
トとのデータ、アドレスの授受はできなくなる。このと
き、アンドゲード15に“1”信号がデコーダ13より
与えられておれば、アンドゲート15の出力が“1”と
なってCPU1にウェイト信号WAITが供給される。
The DMA controller 10 outputs a DMA enable (enabling) signal DMAENB to "1" when a DMA transfer is being performed between the constituent elements. As a result, the output of the AND gate 14 to which the signal DMAENB is applied via the inverter 16 becomes “0”,
The enabling signal E is supplied to the buffer 6 and the transceiver 7.
Is given as "0", so that data and addresses cannot be transferred between the CPU unit and the DMA unit. At this time, if a "1" signal is given to the AND gate 15 from the decoder 13, the output of the AND gate 15 becomes "1" and the wait signal WAIT is supplied to the CPU 1.

【0026】つまり、CPU1が、DMAユニットを管
理するために、バッファ6、トランシーバ7を開かせる
べくデコーダ13に所定の信号を与えているとき、つま
りアンドゲート14の一入力端にデコーダ13より
“1”信号を供給しているとき(CPU1がバッファ9
−1〜9−3、DMAコントローラ10、デバイスコン
トローラ11、音声入出力装置8−1〜8−3のいずれ
かにアクセスするためのアドレス信号を出力すると、デ
コーダ13の出力はアクティブとなりアンドゲート1
4、15の夫々の一入力端への出力は“1”となる)、
DMA転送を開始するとCPU1にはウェイト(WAI
T)がかかり、DMA転送が優先して実行された後、ウ
ェイト解除にともなってCPU1の動作が再開される。
That is, when the CPU 1 supplies a predetermined signal to the decoder 13 in order to open the buffer 6 and the transceiver 7 in order to manage the DMA unit, that is, the decoder 13 outputs "1" to one input terminal of the AND gate 14. 1 ”signal is supplied (the CPU 1
-1 to 9-3, the DMA controller 10, the device controller 11, and the address signal for accessing any of the audio input / output devices 8-1 to 8-3, the output of the decoder 13 becomes active and the AND gate 1
The output to one input terminal of each of 4 and 15 is "1"),
When the DMA transfer starts, the CPU 1 waits (WAI
T), and after the DMA transfer is executed with priority, the operation of the CPU 1 is restarted with the release of the wait.

【0027】また、逆にDMAコントローラ10がDM
A転送を実行しているときに、CPU1が例えばDMA
コントローラ10をアクセスしようとしても、アンドゲ
ート15よりウェイト信号WAITが与えられCPU1
の実行サイクルは途中で引き延ばされて、バッファ6、
トランシーバ7はその間閉じられることになる。
On the contrary, the DMA controller 10
When executing the A transfer, the CPU 1
Even if an attempt is made to access controller 10, wait signal WAIT is supplied from AND gate 15 and CPU 1
Execution cycle is extended halfway, buffer 6,
Transceiver 7 will be closed during that time.

【0028】結局、CPU1が、DMAユニットの各構
成要素にアクセスできるのは、 CPU1がDMAユニットの各構成要素をアクセスす
るためのアドレスを出した。 信号DMAENBがインアクティブ(“0”)つまり
DMAユニットのデータバスが空いている。 の2つの条件を満足するときであるが、CPU1は上述
したように、ゲート14、15の作用によっていつDM
Aユニットにアクセスするかを考慮することなく処理を
すすめることができる。
After all, the reason why the CPU 1 can access each component of the DMA unit is that the CPU 1 has issued an address for accessing each component of the DMA unit. The signal DMAENB is inactive ("0"), that is, the data bus of the DMA unit is free. Is satisfied when the two conditions are satisfied, but as described above, the CPU 1
Processing can be advanced without considering whether to access the A unit.

【0029】また、CPU1は、キー入力やコントロー
ルデータのトリガに応じて直ちにDMAユニットの動作
状態を変えたい場合、DMAコントローラ10に対し
て、DMAコントローラ10の状態がどのような状態で
あってもDMA転送を中断する指令DMAENDを出力
することができる(これは、DMAコントローラ10に
はEND信号として与えられる)。
When the CPU 1 wants to immediately change the operation state of the DMA unit in response to a key input or a trigger of control data, the CPU 1 is not limited to the DMA controller 10 regardless of the state of the DMA controller 10. A command DMAEND for interrupting the DMA transfer can be output (this is given to the DMA controller 10 as an END signal).

【0030】〈DMAコントローラ10の要部構成〉次
に、DMAコントローラ10の一構成例を説明する。D
MAコントローラ10は、1バスサイクルが数百ナノ秒
である転送能力をもつ。従って、3トラック分のサンプ
リングデータを転送する時間は1から2マイクロ秒とな
る。
<Main Configuration of DMA Controller 10> Next, an example of the configuration of the DMA controller 10 will be described. D
The MA controller 10 has a transfer capability in which one bus cycle is several hundred nanoseconds. Therefore, the time for transferring the sampling data for three tracks is 1 to 2 microseconds.

【0031】サンプリング周波数fsを48KHzとし
たとき、1サンプリング時間の間隔は約21マイクロ秒
となり、サンプリング時間間隔のほとんどは、バッファ
9−1〜9−3とデバイスコントローラ11、ディスク
12との間のデータ転送及びCPU1から各構成要素の
プログラミング時間にあてることが可能となる。
When the sampling frequency fs is 48 KHz, the interval of one sampling time is about 21 microseconds, and most of the sampling time interval is between the buffers 9-1 to 9-3, the device controller 11, and the disk 12. The time for data transfer and the programming time of each component from the CPU 1 can be allocated.

【0032】さて、その具体例の主要構成は、図2に示
されている。このDMAコントローラ10は、アドレス
バスと接続される入力側(IN)のアドレスバッファ1
01と出力側(OUT)のアドレスバッファ102を有
する。入力側のアドレスバッファ101に与えられるア
ドレス信号によって、レジスタセレクタ103の指定内
容が変化し、アドレスレジスタ104とコントロールレ
ジスタ105とに存在する所望のレジスタが指定される
ことになる。
FIG. 2 shows the main configuration of the specific example. The DMA controller 10 has an input (IN) address buffer 1 connected to an address bus.
01 and an output side (OUT) address buffer 102. The contents specified by the register selector 103 change according to the address signal applied to the input side address buffer 101, and the desired registers existing in the address register 104 and the control register 105 are specified.

【0033】アドレスレジスタ104、コントロールレ
ジスタ105には4つのチャンネルCH1〜CH4のエ
リアがあり、チャンネルCH1〜CH3は、バッファ9
−1〜9−3と音声入出力装置8−1〜8−3との間の
DMA転送を行うためのレジスタであり、チャンネルC
H4は、バッファ9−1〜9−3のうちの指定したバッ
ファとハードディスク12−1または光磁気ディスク1
2−2との間のDMA転送を行なうためのレジスタであ
る。
The address register 104 and the control register 105 have areas for four channels CH1 to CH4.
-1 to 9-3 and a register for performing DMA transfer between the audio input / output devices 8-1 to 8-3.
H4 indicates the designated buffer among the buffers 9-1 to 9-3 and the hard disk 12-1 or the magneto-optical disk 1.
This is a register for performing a DMA transfer with the 2-2.

【0034】アドレスレジスタ104内の各チャンネル
CH1〜CH4のレジスタは、対応するバッファ9−1
〜9−3及び指定されたバッファのカレントアドレスと
スタートアドレスとを少なくとも記憶するエリアを有
し、CH4のレジスタには、さらに転送カウンタが具備
され、このカウンタに設定されただけのデータ数がDM
A転送されると、デバイスコントローラ11のDMAリ
クエストが続いても新たにカウンタが設定されるまでD
MA動作は停止される(後述する図8の8−8によ
る)。またコントロールレジスタ105の各チャンネル
CH1〜CH4のエリアには、例えばDMA転送の方向
を指定するコントロールデータが記憶される。
The registers of the channels CH1 to CH4 in the address register 104 are stored in the corresponding buffers 9-1.
9-3 and an area for storing at least the current address and the start address of the designated buffer. The register of CH4 is further provided with a transfer counter, and the number of data set in this counter is DM.
When the A transfer is performed, even if the DMA request from the device controller 11 continues, the D
The MA operation is stopped (according to 8-8 in FIG. 8 described later). In the area of each of the channels CH1 to CH4 of the control register 105, for example, control data designating the direction of the DMA transfer is stored.

【0035】このアドレスレジスタ104、コントロー
ルレジスタ105の内容は、データバッファ106を介
してデータバスに対して入出力可能となっている。そし
て、これらの各構成要素を制御しているのが、タイミン
グコントロールロジック107と、サービスコントロー
ラ108、チャンネルセレクタ109である。
The contents of the address register 104 and the control register 105 can be input / output to / from a data bus via a data buffer 106. These components are controlled by the timing control logic 107, the service controller 108, and the channel selector 109.

【0036】サービスコントローラ108は、ハードロ
ジックもしくはマイクロプログラム制御構成となってい
て、タイミングコントロールロジック107からの信
号、音声入力装置8−1〜8−3、デバイスコントロー
ラ11からのDMA要求信号DRQ1〜DRQ4や、C
PU1からのDMA中断指令END(DMAEND)を
受けとり、上記各構成要素に対する回答(アクノーレッ
ジ)信号DAK1〜DAK4、DMA転送中を示すDM
A可能(イネーブリング)信号DMAENBを出力する
ほか、タイミングコントロールロ107に対し各種指令
を出したり、チャンネルセレクタ109に対しチャンネ
ルセレクト信号を出力したりする。チャンネルセレクタ
109は、アドレスレジスタ104、コントロールレジ
スタ105の中の各チャンネルCH1〜CH4に対応す
るレジスタを選択的に指定する。
The service controller 108 has a hardware logic or microprogram control structure, and receives signals from the timing control logic 107, audio input devices 8-1 to 8-3, and DMA request signals DRQ1 to DRQ4 from the device controller 11. And C
Upon receiving a DMA suspend command END (DMAEND) from PU1, answer (acknowledge) signals DAK1 to DAK4 for the above-described components, and a DM indicating that DMA transfer is in progress
In addition to outputting the A enable (enabling) signal DMAENB, it also issues various commands to the timing controller 107 and outputs a channel select signal to the channel selector 109. The channel selector 109 selectively designates a register corresponding to each of the channels CH1 to CH4 in the address register 104 and the control register 105.

【0037】タイミングコントロールロジック107
は、デコーダ13からの指定信号CS、コントロールレ
ジスタ105からのコントロール信号、サービスコント
ローラ108からの制御信号を受けて、アドレスバッフ
ァ102、データバッファ106の入出力制御をするほ
か、アドレスインクリメンタ110を動作させて、アド
レスレジスタ104の中の指定されたチャンネルのカレ
ントアドレスレジスタをインクリメントし、該チャンネ
ルに割り当てられたバッファの最終アドレスになったな
ら、該チャンネルに割り当てられたバッファの開始アド
レスにリセットする。
Timing control logic 107
Receives the designation signal CS from the decoder 13, the control signal from the control register 105, and the control signal from the service controller 108, controls the input / output of the address buffer 102 and the data buffer 106, and operates the address incrementer 110. Then, the current address register of the designated channel in the address register 104 is incremented. When the current address register reaches the final address of the buffer assigned to the channel, the current address register is reset to the start address of the buffer assigned to the channel.

【0038】またバッファのエリア情報を管理・制御す
るために監視手段としてのエリアデータレジスタ111
とエリアデータバッファ112が用いられている。
An area data register 111 as monitoring means for managing and controlling buffer area information.
And the area data buffer 112 are used.

【0039】エリアデータレジスタ111及びエリアデ
ータバッファ112の内部には、該チャンネルに割り付
けられたバッファエリアのトップ(先頭)及びテイル
(末尾)アドレスが記憶される。アドレスインクリメン
タ110はカレントアドレスをインクリメントする毎
に、現在サービスを行なっているチャンネルのエリアデ
ータレジスタ111を参照し、アドレスのインクリメン
ト結果がテイルアドレスに達したなら、バッファを循環
させるためにトップアドレスにリセットする。あるい
は、このテイルアドレスからトップアドレスへの変更
は、後述するように、DMAコントローラ10のプログ
ラム制御処理によってもよい(図8、8−16参照)。
In the area data register 111 and the area data buffer 112, the top (head) and tail (end) addresses of the buffer area allocated to the channel are stored. Each time the address incrementer 110 increments the current address, the address incrementer 110 refers to the area data register 111 of the channel currently being serviced, and if the increment result of the address reaches the tail address, the address is incremented to the top address to circulate the buffer. Reset. Alternatively, the change from the tail address to the top address may be performed by a program control process of the DMA controller 10 as described later (see FIGS. 8 and 16).

【0040】<CPU1の全体動作>以下に、本実施例
の動作について説明する。CPU1の動作を示すフロー
チャートが図3乃至図6に示されている。これはプログ
ラムROM2に記憶されたプログラム(ソフトウェア)
よるもので、図3はメインルーチンを示し、図4は、図
3のステップ3−20のより詳細な処理を示すフローチ
ャートを示している。また図5は、デバイスコントロー
ラ11からのインタラプト信号INTの到来に応答して
実行するインタラプトルーチンを示し、図6は図5に示
すインタラプトルーチンの一部のステップ(5−2)を
さらに詳細に示している。
<Overall Operation of CPU 1> The operation of this embodiment will be described below. Flow charts showing the operation of the CPU 1 are shown in FIGS. This is the program (software) stored in the program ROM 2
FIG. 3 shows a main routine, and FIG. 4 shows a flowchart showing more detailed processing of step 3-20 in FIG. FIG. 5 shows an interrupt routine executed in response to an interrupt signal INT from the device controller 11, and FIG. 6 shows some steps (5-2) of the interrupt routine shown in FIG. 5 in more detail. ing.

【0041】まず図3において、CPU1は、電源オン
に応じてメインルーチンをスタートさせ、ステップ3−
0(以下、単に3−0と記す)において各種初期状態を
設定する。そして、3−1においてキー入力を受け、3
−2において何のモードに設定されたかを判断する。
First, in FIG. 3, the CPU 1 starts a main routine in response to power-on, and proceeds to step 3-
Various initial states are set at 0 (hereinafter simply referred to as 3-0). Then, a key input is received in 3-1.
In -2, it is determined what mode has been set.

【0042】CPU1が、現在プレイ/レコードモード
であるとジャッジすると、3−2から3−3に進み3つ
あるトラックを順次選択指定し、さらに3−4に進み各
トラックの動作モードをキーボード4の入力指示に従っ
て設定し、3−5において、A/D変換、D/A変換の
いずれの動作を各音声入出力装置8−1〜8−3が実行
するのか、バッファ6、デコーダ13を介して指定信号
CSを順次送出しながらIOWRを与えてセッティング
する。いま、例えばTr1については、プレイ状態(従
ってD/A変換動作状態)、Tr2及びTr3は夫々レ
コード状態(従ってA/D変換動作状態)とする。図1
0に、このようなモード設定した場合の概略動作の概念
図を示す。
When the CPU 1 judges that the current mode is the play / record mode, the program proceeds from 3-2 to 3-3 to sequentially select and designate three tracks, and further proceeds to 3-4 to change the operation mode of each track to the keyboard 4 mode. Via the buffer 6 and the decoder 13 at 3-5, which of the A / D conversion and the D / A conversion is performed by each of the audio input / output devices 8-1 to 8-3 in 3-5. The IOWR is set while sequentially transmitting the designation signal CS. Now, for example, Tr1 is in a play state (accordingly, a D / A conversion operation state), and Tr2 and Tr3 are each in a record state (accordingly, an A / D conversion operation state). FIG.
FIG. 0 shows a conceptual diagram of a schematic operation when such a mode is set.

【0043】そして、3−5では、DMAコントローラ
10に対し、各Tr1〜Tr3についてのバッファ9−
1〜9−3のアドレスを初期化させる。つまり、図2の
アドレスバッファ101、レジスタセレクタ103、チ
ャンネルセレクタ109等により、チャンネルCH1〜
CH3の各レジスタ(アドレスレジスタ104、コント
ロールレジスタ105)を指定しながら、データバッフ
ァ106を介して初期設定データを入力設定する。
In step 3-5, the buffer 9 for each of the Tr1 to Tr3 is sent to the DMA controller 10.
The addresses 1 to 9-3 are initialized. That is, the channels CH1 to CH1 are controlled by the address buffer 101, the register selector 103, and the channel selector 109 in FIG.
Initial setting data is input and set via the data buffer 106 while designating each register (the address register 104 and the control register 105) of CH3.

【0044】ここで、バッファ9−1〜9−3は、リン
グバッファとして循環的に使用されるようになってお
り、初期状態としては、各バッファ9−1〜9−3のス
タートアドレスとカレントアドレスとは一致するようセ
ットされる(図10に、各バッファ9−1〜9−3のス
タートアドレスとカレントアドレスとが、CH1〜CH
3のアドレスレジスタ104に記憶されて制御される状
態を模式的に示してある)。
Here, the buffers 9-1 to 9-3 are cyclically used as ring buffers. Initially, the buffers 9-1 to 9-3 are initialized with the start addresses of the buffers 9-1 to 9-3. The addresses are set so as to match (in FIG. 10, the start addresses and the current addresses of the buffers 9-1 to 9-3 are CH1 to CH3).
3 schematically shows the state stored and controlled in the address register 104).

【0045】続いてCPU1は3−6の処理を実行し、
RAM3内の作業(ワーク)メモリエリアに存在するハ
ードディスク12−1、光磁気ディスク12−2の各ト
ラックTr1〜Tr3に対応するディスクアクセスポイ
ンタを初期設定する(図10にハードディスク12−1
の記憶エリアと、ディスクアクセスポインタとの関係を
示している)。
Subsequently, the CPU 1 executes the processing of 3-6,
Initialize the disk access pointers corresponding to the tracks Tr1 to Tr3 of the hard disk 12-1 and the magneto-optical disk 12-2 existing in the work (work) memory area in the RAM 3 (FIG. 10 shows the hard disk 12-1).
Shows the relationship between the storage area and the disk access pointer.

【0046】次にCPU1は、各音声入出力装置8−1
〜8−3のA/D変換動作又はD/A変換動作を開始さ
せる(3−7)。続いて、3−8において、ソフトウェ
ア割込みをかけて、デバイスコントローラ11が、ハー
ドディスク12−1または光磁気ディスク12−2とバ
ッファ9−1〜9−3のいずれかとの間のデータ転送の
プログラム要求(デバイスコントローラ11がCPU1
に対してインタラプトINTをかけること)を行なった
とき(後述)と同じ処理を実行する。
Next, the CPU 1 controls each audio input / output device 8-1.
The A / D conversion operation or D / A conversion operation of 8-3 is started (3-7). Subsequently, in 3-8, a software interrupt is issued, and the device controller 11 issues a program request for data transfer between the hard disk 12-1 or the magneto-optical disk 12-2 and any of the buffers 9-1 to 9-3. (The device controller 11 is the CPU 1
Perform the same processing as described below (interrupt INT).

【0047】具体的には、図5及び図6に示したフロー
チャートに従った動作を3−8で実行することになる。
ここで図5及び図6に示したフローチャートの説明に入
る前に、前記した図1のRAM3に格納される各テーブ
ルの構成について説明する。図1のRAM3には、図1
1乃至図14に示すように再生スケジュールを制御する
イベントテーブル(ETとする)、イベントシーケンス
テーブル(ESTとする)が定義されており、それらの
中間データであるカレントデータのメモリ領域が取られ
ている。
More specifically, the operation according to the flowcharts shown in FIGS. 5 and 6 is executed in 3-8.
Before starting the description of the flowcharts shown in FIGS. 5 and 6, the configuration of each table stored in the RAM 3 of FIG. 1 will be described. The RAM 3 of FIG.
As shown in FIGS. 1 to 14, an event table (referred to as ET) and an event sequence table (referred to as EST) for controlling the reproduction schedule are defined, and a memory area for the current data which is intermediate data between them is taken. I have.

【0048】すなわち、図11は前記したイベントテー
ブルの登録例を示しており、このテーブルに格納される
イベントデータは、イベント名(name)、ディスク
ID(id)(ハードディスク12−1(00)と光磁
気ディスク12−2(01)のいずれかを指定する)、
先頭データアドレス(サンプル(ワード)データアドレ
ス)(adrs)、及びイベント長(サンプルデータ
数)(vol)より構成されている。そして図11に示
すイベントテーブルにおいては、オリジナルレコーディ
ングデータである“1”から“4”は、録音時の領域確
保によって自動的に作られる。
FIG. 11 shows an example of registration of the above-mentioned event table. The event data stored in this table includes an event name (name), a disk ID (id) (the hard disk 12-1 (00) and One of the magneto-optical disks 12-2 (01)),
It is composed of a head data address (sample (word) data address) (adrs) and an event length (sample data number) (vol). In the event table shown in FIG. 11, the original recording data "1" to "4" are automatically created by securing an area at the time of recording.

【0049】また、図12はオリジナルレコーディング
データのESTの例を示しており、横方向に“0”から
“2”のESTインデックス(ESTindex)が、
縦方向に各トラック番号が配列され、それぞれに対応し
てイベント番号が格納される。図12においては、例え
ばトラック2のデータ(2と3)はディスク“00”と
“01”にまたがって記録された状態を示しており、イ
ベント番号“0”はシーケンス要素の終端を示すための
ものである。
FIG. 12 shows an example of the EST of the original recording data. The EST index (ESTindex) from "0" to "2" is set in the horizontal direction.
Each track number is arranged in the vertical direction, and an event number is stored corresponding to each track number. In FIG. 12, for example, the data (2 and 3) of track 2 shows a state where the data is recorded over disks “00” and “01”, and an event number “0” indicates the end of a sequence element. Things.

【0050】また、図13はイベントをユーザ自ら定義
し、出力すべきトラックにそれらを並べた編集作品1の
ESTの例を示しており、図12と同様に横方向に
“0”から“8”のESTインデックスが、縦方向に各
トラック番号が配列され、それぞれに対応してイベント
番号が格納される。従って以上のようにESTは編集作
品に対応して複数存在しうる。
FIG. 13 shows an example of an EST of the edited work 1 in which events are defined by the user himself and arranged on tracks to be output. As in FIG. 12, "0" to "8" are displayed in the horizontal direction. The EST index of "" is arranged in the track direction in the vertical direction, and an event number is stored corresponding to each track number. Therefore, as described above, there can be a plurality of ESTs corresponding to the edited works.

【0051】さらにまた、図14は実際にDMA転送を
行っているときのカレントデータを示しており、各トラ
ックの次回の転送対象となるESTのインデックス番号
と、そのイベントがどれだけ転送されたかを示す既転送
量が記憶される。
FIG. 14 shows the current data when DMA transfer is actually performed. The index number of the EST to be transferred next for each track and the amount of the event transferred are shown. The indicated transfer amount is stored.

【0052】以下、図13に示すようなユーザ定義のイ
ベントシーケンスを再生させた場合のCPU1の動作
を、図5及び図6に示したフローチャートに従って説明
する。まず、Tr1について、ハードディスク12から
デジタル信号データをバッファ9−1にDMA転送する
ために、DMAコントローラ10のチャンネルとしてT
r1に対応するチャンネルCH1を決定する(5−
1)。
The operation of the CPU 1 when reproducing a user-defined event sequence as shown in FIG. 13 will be described below with reference to the flowcharts shown in FIGS. First, with regard to Tr1, in order to transfer digital signal data from the hard disk 12 to the buffer 9-1 by DMA, the channel of the DMA controller 10 is set to T1.
The channel CH1 corresponding to r1 is determined (5-
1).

【0053】続いて、トラック番号とチャンネルバッフ
ァの空き容量(転送可能容量)から、ディスクID、ワ
ードアドレス、転送アドレスを求める5−2のステップ
を実行する。この5−2のステップについては、図6に
さらに詳しくそのフローが示されている。尚、バッファ
の空き容量は、セクタ単位に切り捨てる演算がなされて
いることを前提とする。
Subsequently, a step 5-2 for obtaining a disk ID, a word address, and a transfer address from the track number and the free space (transferable capacity) of the channel buffer is executed. FIG. 6 shows the flow of the step 5-2 in more detail. It is assumed that the free space of the buffer has been calculated by rounding down in sectors.

【0054】すなわち、6−1のステップにおいて、該
当するトラックカレントデータよりESTインデックス
を求め、イベント番号を求める。そして6−2のステッ
プにおいて、図11に示すイベントテーブルよりそのイ
ベントのIDを求める。次いで6−3において、「その
イベントの先頭アドレス+カレントデータの既転送量=
ワードアドレス」の式に従って、ワードアドレスを演算
する。イベントの先頭アドレスは図11に示すイベント
テーブルより求められ、またカレントデータの既転送量
は図14に示すカレントデータより求められる。
That is, in the step 6-1, an EST index is obtained from the corresponding track current data, and an event number is obtained. Then, in step 6-2, the ID of the event is obtained from the event table shown in FIG. Next, in 6-3, “the start address of the event + the transferred amount of the current data =
The word address is calculated according to the expression of "word address". The head address of the event is obtained from the event table shown in FIG. 11, and the transferred amount of the current data is obtained from the current data shown in FIG.

【0055】そして、CPU1は6−4において、ワー
ドアドレス(セクタ(1セクタ=100h)を示すディ
スクアドレス)よりオフセット(ワード)を求める。次
いで6−5において、「イベントの容量−既転送量=未
転送量」の式に従って、未転送量の演算がなされる。イ
ベントの容量は図11におけるイベントテーブルのvo
lより求められ、既転送量は図14のカレントデータよ
り求められる。ここで6−6において「空き容量>未転
送量」であるか否かが判断される。6−6においてNO
とジャッジした場合、イベント末尾に達していないの
で、6−7において「カレントデータの既転送量+空き
容量−オフセット=既転送量」の演算がなされ、6−8
において「転送ワード数=空き容量−オフセット」とす
る。尚、2回目以降の転送では空き容量はセクタ単位の
大きさに切り捨てられているので、後述する通り、デー
タ転送はセクタ単位となる。また前記ステップ6−6に
おいてYESとジャッジした場合、イベント末尾に達し
たので、6−9において「カレントデータのESTのイ
ンデックスを+1、既転送量=0」の処理を成し、6−
10において「転送ワード数=未転送量」とする。
Then, in step 6-4, the CPU 1 obtains an offset (word) from the word address (disk address indicating a sector (1 sector = 100h)). Next, in 6-5, the untransferred amount is calculated in accordance with the formula of “event capacity−transferred amount = untransferred amount”. The capacity of the event is vo of the event table in FIG.
1 and the transferred amount is obtained from the current data in FIG. Here, in 6-6, it is determined whether or not “free space> untransferred amount”. NO at 6-6
If the judgment is made that the end of the event has not been reached, the calculation of “the transferred amount of the current data + the free space−the offset = the transferred amount” is performed in 6-7, and 6-8.
It is assumed that “the number of transfer words = the free space−the offset”. In the second and subsequent transfers, the free space is rounded down to the size of a sector unit, so that the data transfer is performed in sector units as described later. If the judgment is YES in the step 6-6, the end of the event has been reached. In step 6-9, the processing of "the index of the EST of the current data is +1 and the transferred amount = 0" is performed.
In 10, it is assumed that “number of transferred words = untransferred amount”.

【0056】図5に戻り、5−3において、ワードアド
レスをディスクアドレスとオフセットに直し、転送ワー
ド数より転送セクタ数を求める。この転送セクタ数の決
定に際し、セクタ未満のデータは転送できない(セクタ
単位で転送する)ため、セクタ単位で切り捨てが行われ
る。更に5−4において、ディスクアドレス、転送セク
タ数、トラックモードにより、デバイスコントローラ1
1をプログラミングする。また、録音または再生のモー
ドに対応して、CH4の転送方向(録音時、バッファ9
−1乃至9−3からディスク12の方向、再生時はその
逆の方向)がプログラムされる。ここで5−5において
「オフセット=0」であるか否かがジャッジされ、NO
とジャッジされた場合には、イベント先頭の位置が半端
なデータを含んだセクタにある。そしてこの様な半端が
ある場合には5−6および5−7において、DMAコン
トローラ10におけるアドレスレジスタ104のCH4
のスタートアドレスをイメージ(実際には存在しない)
領域に設定し、前記転送カウンタにオフセット値を設定
してダミー転送する。
Returning to FIG. 5, in 5-3, the word address is converted into the disk address and the offset, and the number of transfer sectors is obtained from the number of transfer words. In determining the number of transfer sectors, data smaller than a sector cannot be transferred (transfer is performed on a sector basis), and is therefore truncated on a sector basis. Further, in 5-4, the device controller 1 is controlled by the disk address, the number of transfer sectors, and the track mode.
Program one. Further, the transfer direction of CH4 (recording, buffer 9
From -1 to 9-3, the direction of the disk 12 and the reverse direction during reproduction) are programmed. Here, it is judged whether or not “offset = 0” in 5-5, and NO is determined.
Is judged, the event start position is in the sector containing odd data. If there is such a half, CH4 of the address register 104 in the DMA controller 10 is used in 5-6 and 5-7.
The start address of the image (it does not actually exist)
The area is set, an offset value is set in the transfer counter, and dummy transfer is performed.

【0057】5−7においてダミー転送が終了したと判
定されるか、または5−5においてYESのジャッジが
成された場合には、5−8乃至5−10のステップを実
行する。いまの場合、先頭ダミー転送分以外の領域の転
送設定を行なう。即ち、5−8で、アドレスレジスタ1
04の当該CH(いまの場合、CH1)のスタートアド
レスをCH4のスタートアドレスにコピーする。そし
て、5−9では、転送カウンタの値が「セクタ数×セク
タ長−オフセット値」の値に設定される。さらに5−1
0では、5−8で求まっている転送ワード数より当該C
Hのスタートアドレスを更新する。そしてメインルーチ
ン(図3)にリターンする。このようにして、次のアク
セスアドレスはセクタの境界と一致する。
If it is determined in 5-7 that the dummy transfer has been completed, or if a judgment of YES is made in 5-5, steps 5-8 to 5-10 are executed. In this case, the transfer setting of the area other than the first dummy transfer is performed. That is, in 5-8, the address register 1
The start address of the corresponding channel 04 (in this case, CH1) is copied to the start address of CH4. Then, in 5-9, the value of the transfer counter is set to the value of "number of sectors × sector length-offset value". Further, 5-1
In the case of 0, the C is calculated from the number of transfer words obtained in 5-8.
Update the start address of H. Then, the process returns to the main routine (FIG. 3). In this way, the next access address matches the sector boundary.

【0058】ところで、図5におけるステップ5−6に
おいては、イメージ領域(実際には存在していないアド
レス領域)にダミー転送を行なうようにしている。これ
は特にイメージ領域でなく、バッファ中の未発音データ
以外の領域に転送してしまっても効果としては同じであ
るが、この場合、スタートアドレスの設定をその度にD
MAコントローラ10のレジスタ104から得なくては
ならない。しかし、イメージ領域ならば、スタートアド
レスはイメージ領域の最初を示す固定値にして、アドレ
スレジスタ104の転送カウンタだけをプログラムすれ
ばいいので、やや効率がよい。
In step 5-6 in FIG. 5, dummy transfer is performed to an image area (an address area that does not actually exist). This has the same effect even if the data is transferred not to the image area but to an area other than the unvoiced data in the buffer, but in this case, the start address is set every time the D
It must be obtained from the register 104 of the MA controller 10. However, in the case of an image area, the start address is set to a fixed value indicating the start of the image area, and only the transfer counter of the address register 104 needs to be programmed.

【0059】また逆に、イベント末尾の無効データを、
イメージ領域に転送する処理は必要なく、無効データを
含まない位置に、転送ワード数からスタートアドレスを
更新できるので問題はない。これは5−10において、
未転送量が転送ワード数とされていることによる。
Conversely, the invalid data at the end of the event is
There is no need to perform processing for transferring data to the image area, and there is no problem because the start address can be updated from the number of words to be transferred to a position that does not include invalid data. This is 5-10
This is because the untransferred amount is the number of words to be transferred.

【0060】次に、図3に戻る。後の説明でも明らかに
なるとおり、最初の割込みルーチン(図5)が起動され
て、デバイスコントローラ11が一度動かされると、あ
とは、CPU1が指定したデータブロックの転送が終了
するたびに、デバイスコントローラ11から割込みがな
される(INT信号がCPU1に与えられる)ので、C
PU1が行なうのは、録音/再生動作の終了になった
か、キー入力があったかまたはコントロールデータに指
示しておいたトリガがかかったかの判断を行うのみであ
る。
Next, returning to FIG. As will be apparent from the following description, once the first interrupt routine (FIG. 5) is activated and the device controller 11 is operated once, every time the transfer of the data block designated by the CPU 1 is completed, the device controller 11 is activated. 11 (the INT signal is given to the CPU 1).
The PU1 only determines whether the recording / playback operation has ended, whether a key input has been made, or whether a trigger instructed to the control data has been applied.

【0061】すなわちCPU1は、3−9においてディ
スクアクセスポインタ(RAM3)を参照し、メモリエ
リアオーバーか否か、つまり終了か否かをジャッジし
(3−10)、YESの場合は、各音声入出力装置8−
1〜8−3のA/D変換、D/A変換動作を停止(3−
11)させ、3−1に戻る。NOの場合は、キー入力状
態を参照し(3−12)、もし変化がなければ、ディスク
アクセスポインタをチェックすべく3−9の処理へもど
り、以下3−9〜3−13をくりかえす。
That is, the CPU 1 refers to the disk access pointer (RAM3) in 3-9 and judges whether or not the memory area is over, that is, whether or not to end (3-10). Output device 8-
Stop A / D conversion and D / A conversion operation of 1-8-3 (3-
11) Then return to 3-1. In the case of NO, the key input state is referred to (3-12). If there is no change, the process returns to the step 3-9 to check the disk access pointer, and the following steps 3-9 to 3-13 are repeated.

【0062】そして、3−13において何らかの変化が
あると、3−13から3−14に進み、CPU1はDM
A転送を一時中断して、新たな設定をすべく、DMAコ
ントローラ10に対するDMA中止指令(DMAEN
D)を出力する。続けて、新たな入力指示等に従って、
DMAコントローラ10、音声入出力装置8−1〜8−
3をプログラムし(3−15)、再びDMA動作を再開
すべく3−16に進み、上述した3−8と同様に図5の
インタラプトルーチンを実行した後、3−9へもどる。
If there is any change in 3-13, the process proceeds from 3-13 to 3-14, where the CPU 1
In order to temporarily suspend the A transfer and make a new setting, a DMA stop command (DMAEN
D) is output. Then, according to new input instructions, etc.,
DMA controller 10, audio input / output devices 8-1 to 8-
3 (3-15), proceed to 3-16 to restart the DMA operation again, execute the interrupt routine of FIG. 5 similarly to 3-8 described above, and then return to 3-9.

【0063】このように、CPU1はプレイ/レコード
時にあっては、3−4〜3−8の初期設定を行なった後
は、3−9、3−10、3−12、3−13更に3−1
4〜3−16をくりかえし実行し、キーボード4での変
更指示(例えばあるトラックについてポーズ(A/D、
D/Aの中断)あるいはパンチイン/アウト(A/D、
D/Aの動作の切換)等)や、編集時に得たコントロー
ルデータの変化に応答して、即時にDMA転送制御を中
断し、プログラムを変更した上で、再び同様の処理を実
行するように動作する。
As described above, at the time of play / recording, the CPU 1 performs the initial setting of 3-4 to 3-8, and then sets 3-9, 3-10, 3-12, 3-13 and 3-3. -1
4 to 3-16 are repeatedly executed, and a change instruction using the keyboard 4 (for example, pause (A / D,
D / A interruption) or punch in / out (A / D,
In response to a change in the control data obtained at the time of editing, the DMA transfer control is immediately interrupted, the program is changed, and the same processing is executed again. Operate.

【0064】3−2において、CPU1が現在、イベン
ト処理モードにあると判断すると、3−2から3−17
に進み、ディスク12に記憶されている音声データをイ
ベント化する。イベント化とは、手動指定操作などによ
って時間軸上に連続した音声データを複数に区切り、各
区切られた音声データ(イベント)を識別するためのイ
ベント名、ディスクIDおよび区切られた区間を示すデ
ータ(スタートポイントとその長さ(ボリューム))を
作り出すことを意味する。イベント化に対応して、3−
18においてイベントテーブル(図11)が作成され
る。このイベントテーブル(ET)には、イベント名、
ディスクID、スタートポイントおよびボリュームが登
録される。ディスクID、スタートポイントおよびボリ
ュームは、当該イベントが記憶されるディスク12のス
タートアドレスおよびイベント長に相当する。
In 3-2, when the CPU 1 determines that the CPU 1 is currently in the event processing mode, 3-2 to 3-17
Then, the audio data stored in the disk 12 is converted into an event. The eventing means that continuous audio data on the time axis is divided into a plurality of parts by a manual designation operation or the like, and an event name for identifying each divided audio data (event), a disc ID, and data indicating a divided section. (Start point and its length (volume)). In response to the event,
At 18, an event table (FIG. 11) is created. This event table (ET) contains event names,
The disk ID, start point, and volume are registered. The disk ID, start point, and volume correspond to the start address and event length of the disk 12 where the event is stored.

【0065】次いで3−19において、前記イベントテ
ーブルに基づいてイベントシーケンステーブルEST
(図13)が作成される。次に3−20において、エリ
アデータ設定のサブルーチン(その詳細は後述する)が
実行された後、ESTの作成の終了が3−21で検出さ
れると、CPU1は3−1において再びキー入力を調べ
る。
Next, at 3-19, an event sequence table EST is created based on the event table.
(FIG. 13) is created. Next, in 3-20, after an area data setting subroutine (the details of which will be described later) is executed and the end of EST creation is detected in 3-21, the CPU 1 again inputs a key in 3-1. Find out.

【0066】3−2において、CPU1が現在、編集
(EDIT)モードにあると判断すると、3−2から3
−22に進み、編集するトラックやポイント、どのよう
な編集をするのか(例えば、ある時間指定したポイント
に録音した音のタイミングを前後にずらしたり、修正、
削除したりすること)をCPU1は判断し、各種編集作
業を実行する(3−23)。この編集作業は、特には詳
述しないが、デバイスコントローラ11とDMAコント
ローラ10とに対するディスク12からの読み出しアク
セスポイントのプログラムや、RAM3への転送、RA
M3を用いての各種編集、そして編集後のデジタル音声
データのディスク12への再格納作業、アクセスポイン
トの指定等を、CPU1の制御下で実行する。3−24
において編集作業の終了が検出されると、CPU1は、
3−1において再びキー入力を調べる。
In 3-2, when the CPU 1 determines that the mode is currently in the edit (EDIT) mode, 3-2 to 3
Go to -22, and edit the track or point, and what kind of editing (for example, shift the timing of the sound recorded at the specified point for a certain time,
The CPU 1 judges that the data is to be deleted, and executes various editing operations (3-23). Although this editing work is not particularly described in detail, a program of an access point for reading out from the disk 12 to the device controller 11 and the DMA controller 10, transfer to the RAM 3, RA
Under the control of the CPU 1, various edits using the M3, work of restoring the edited digital audio data to the disk 12, designation of an access point, and the like are executed. 3-24
When the end of the editing work is detected in, the CPU 1
The key input is checked again at 3-1.

【0067】次に図4を参照して、図3におけるステッ
プ3−20のエリアデータ設定のサブルーチンの詳細に
ついて説明する。最初にステップ4−1において各トラ
ックの光磁気ディスク12−2のイベントの比率が求め
られる。例えば図13のESTに示すトラック1の場
合、ESTインデックス0から8までの各イベント番号
が示すイベントテーブル(図11)が検査される。ES
Tインデックスが0のイベント番号は21であるから、
このイベント番号21のIDを図11より判定すると0
である。即ち、イベント番号21のイベントは光磁気デ
ィスク12−2ではなく、ハードディスク12−1に記
録されている。次のESTインデックス1のイベント番
号は9であり、図11よりこのイベント番号が記録され
ているディスクを判定すると、そのIDが01であるか
ら光磁気ディスク12−2となる。そこで、このイベン
ト番号9の容量(長さ)を図11のイベントテーブルの
volから求める。即ちこの場合の容量は9675hと
なる。
Next, the details of the area data setting subroutine of step 3-20 in FIG. 3 will be described with reference to FIG. First, in step 4-1, the event ratio of the magneto-optical disk 12-2 for each track is determined. For example, in the case of the track 1 shown in the EST of FIG. 13, the event table (FIG. 11) indicated by each event number of the EST indexes 0 to 8 is inspected. ES
Since the event number for which the T index is 0 is 21,
If the ID of this event number 21 is determined from FIG.
It is. That is, the event of the event number 21 is recorded on the hard disk 12-1 instead of the magneto-optical disk 12-2. The event number of the next EST index 1 is 9, and when the disc on which this event number is recorded is determined from FIG. Therefore, the capacity (length) of the event number 9 is obtained from vol of the event table in FIG. That is, the capacity in this case is 9675h.

【0068】以下同様にして、トラック1に記録されて
いる各イベントのうち、光磁気ディスク12−2に記録
されているイベントの容量を求める。この実施例の場
合、図13において丸印を付して示したイベント(即
ち、イベント番号9と10)が光磁気ディスク12−2
に記録されている。イベント番号10の容量は、図11
より10000hであるから、トラック1のイベントの
うち、光磁気ディスク12−2に記録されているイベン
トの総容量は次のようになる。 9675h×3+10000h=2345Fh
In the same manner, the capacity of the event recorded on the magneto-optical disk 12-2 among the events recorded on the track 1 is obtained. In the case of this embodiment, the events shown with circles in FIG. 13 (that is, event numbers 9 and 10) are recorded on the magneto-optical disk 12-2.
It is recorded in. The capacity of event number 10 is shown in FIG.
Since it is 10,000 h, the total capacity of the events recorded on the magneto-optical disk 12-2 among the events of the track 1 is as follows. 9675h × 3 + 10000h = 2345Fh

【0069】いま、仮りに各トラック1乃至トラック3
の総容量(合計サンプル数)は同一であり、いずれも4
78BEであるとすると、トラック1の光磁気ディスク
12−2に記録されているデータの比率Meは、次式で
示される。 Me=2345Fh/478BEh=0.5
It is assumed that each of tracks 1 to 3
Total volume (total number of samples) is the same,
Assuming that the speed is 78BE, the ratio Me of the data recorded on the magneto-optical disk 12-2 on the track 1 is expressed by the following equation. Me = 2345Fh / 478BEh = 0.5

【0070】図13に示すように、トラック2のイベン
トはすべてハードディスク12−1に記録されており、
トラック3においてはイベント番号10のイベントのみ
が光磁気ディスク12−2に記録され、その他のイベン
トはすべてハードディスク12−1に記録されているも
のとすると、トラック2とトラック3のイベント比率M
2,Me3は次のようになる。 Me2=0/478BEh=0 Me3=10000h/478BEh=0.22
As shown in FIG. 13, all events of track 2 are recorded on the hard disk 12-1.
In track 3, only the event of event number 10 is recorded on the magneto-optical disk 12-2, and all other events are recorded on the hard disk 12-1.
e 2 and Me 3 are as follows. Me 2 = 0 / 478BEh = 0 Me 3 = 10000h / 478BEh = 0.22

【0071】このようにして各トラックTr1乃至Tr
3の光磁気イベント比率Me1乃至Me3が求められた
後、4−2において各トラックのバッファ比率が次のよ
うにして求められる。即ち、ある条件での光磁気ディス
ク12−2の平均データ転送バンド幅(これについては
後述する)をBとするとき、次の式から各トラックのア
クセス負荷を求める。 アクセス負荷=1/(1×(1−Me)+B×Me)
As described above, each of the tracks Tr1 to Tr
After 3 of the magneto-optical event ratio Me 1 to Me 3 has been determined, a buffer ratio of each track is determined as follows in 4-2. That is, when the average data transfer bandwidth (which will be described later) of the magneto-optical disk 12-2 under a certain condition is B, the access load of each track is obtained from the following equation. Access load = 1 / (1 × (1-Me) + B × Me)

【0072】トラック1においてはMe=0.5であ
り、Bは後述するように、例えば0.44であるとする
と、アクセス負荷は次のようにして求められる。 1/(0.5+0.44×0.5)=1.44
Assuming that Me = 0.5 in track 1 and B is, for example, 0.44 as described later, the access load is obtained as follows. 1 / (0.5 + 0.44 × 0.5) = 1.44

【0073】この数字が意味するのは、ハードディスク
12−1上のデータを再生する場合と同じだけのアクセ
スオーバーヘッド吸収能力を持つためには、光磁気ディ
スク12−2上にアクセスする場合においてはハードデ
ィスク12−1をアクセスする場合に比べて1.44倍
の容量を持たなければならないことを意味している。同
様にして、トラック2およびトラック3におけるアクセ
ス負荷を求めると、1または1.14となる。これらの
アクセス負荷がそのままバッファ容量の比率になる。
This number means that in order to have the same access overhead absorbing capacity as when reproducing data on the hard disk 12-1, when accessing the magneto-optical disk 12-2, This means that it must have a capacity 1.44 times that of accessing 12-1. Similarly, the access load on track 2 and track 3 is 1 or 1.14. These access loads become the ratio of the buffer capacity as it is.

【0074】ここで平均データ転送バンド幅について説
明すると、これはアクセスオーバーヘッドを考慮したデ
ータの転送能力を意味するため、アクセス発生条件によ
って異なった値となる。いま、ハードディスク12−1
および光磁気ディスク12−2のデータ転送の最大転送
バンド幅(アクセスが終了した後の転送幅)を1.5M
byte/Sとし、ハードディスク12−1の平均アク
セス時間を15ms、光磁気ディスク12−2の平均ア
クセス時間を50msとする。このアクセス条件を20
Kbyteごとのデータブロックを単位としてアクセス
するものとすると、データブロックを転送し終えるのに
必要な時間は、ハードディスク12−1の場合、アクセ
スに15msを要し、データ転送に20K/1.5M=
13.3ms必要となるため、合計28msの時間が必
要になる。従って、実質の転送バンド幅は20Kbyt
e/28ms=714Kbyte/Sとなる。これが上
述した条件におけるハードディスク12−1の平均デー
タ転送バンド幅となる。
Here, the average data transfer bandwidth will be described. This means the data transfer capability in consideration of the access overhead, and therefore has a different value depending on the access occurrence condition. Now, the hard disk 12-1
And the maximum transfer bandwidth of the data transfer of the magneto-optical disk 12-2 (the transfer width after the access is completed) is 1.5M.
Byte / S, the average access time of the hard disk 12-1 is 15 ms, and the average access time of the magneto-optical disk 12-2 is 50 ms. This access condition is 20
Assuming that access is made in units of data blocks for each Kbyte, the time required to complete the transfer of the data block is 15 ms for access in the case of the hard disk 12-1, and 20K / 1.5M =
Since 13.3 ms is required, a total time of 28 ms is required. Therefore, the actual transfer bandwidth is 20 Kbytes.
e / 28 ms = 714 Kbyte / S. This is the average data transfer bandwidth of the hard disk 12-1 under the conditions described above.

【0075】同様に、光磁気ディスク12−2における
平均データ転送バンド幅は、20Kbyte/63ms
=317Kbyte/Sとなる。その結果、光磁気ディ
スク12−2のハードディスク12−1に対するバンド
幅比率は、 317/714=0.44 となる。このディスク12への平均的なアクセス単位を
小さく見積もるほどデバイスのアクセスオーバーヘッド
の差が顕著に現れるので、実現したシステムの個々の構
成部品の性能、制御方法などに応じて見積もるようにす
ることが好ましい。尚、アクセスオーバーヘッドにはC
PU1が転送のためのデータの設定なども考慮して定め
ると、より正確になる。
Similarly, the average data transfer bandwidth of the magneto-optical disk 12-2 is 20 Kbytes / 63 ms.
= 317 Kbytes / S. As a result, the bandwidth ratio of the magneto-optical disk 12-2 to the hard disk 12-1 is 317/714 = 0.44. The smaller the average access unit to the disk 12, the more noticeable the difference in device access overhead becomes. Therefore, it is preferable to estimate the average access unit according to the performance of each component of the realized system, the control method, and the like. . The access overhead is C
If the PU1 determines the data setting for transfer in consideration of the setting, the accuracy becomes more accurate.

【0076】以上のようにしてバッファの比率が求めら
れたとき、次に4−3においてエリアデータの生成を行
なう。即ち、4−2で演算して求めた比率と、バッファ
9−1乃至9−3に割り付けられたアドレスから、バッ
ファ9−1乃至9−3のエリアデータを割り出す。さら
に4−4においてDMAコントローラ10のエリアデー
タレジスタ111を設定する。その後、メインルーチン
に戻る。
When the buffer ratio is obtained as described above, area data is generated in step 4-3. That is, the area data of the buffers 9-1 to 9-3 is determined from the ratio calculated by 4-2 and the addresses allocated to the buffers 9-1 to 9-3. Further, in 4-4, the area data register 111 of the DMA controller 10 is set. Then, the process returns to the main routine.

【0077】<音声入出力装置8−1〜8−3の動作>
次に図7を参照して、音声入出力装置8−1〜8−3の
動作状態を説明する。このフローチャートは、マイクロ
プログラム制御によるものであっても、ハードロジック
制御によるものであってもよく、機能実現手段は種々選
択できる。
<Operation of Audio Input / Output Devices 8-1 to 8-3>
Next, an operation state of the audio input / output devices 8-1 to 8-3 will be described with reference to FIG. This flowchart may be based on microprogram control or hard logic control, and various means for implementing functions can be selected.

【0078】さて、7−1において、CPU1から当該
音声入出力装置の指定信号CSが到来している(アクテ
ィブとなっている)か否かジャッジし、YESならば7
−2において、CPU1より動作状態(レコード、プレ
イ、ストップ等)が設定される。これは図3のCPU1
のメインルーチンの中の3−5、3−15に応答してな
される。
In the step 7-1, it is judged whether or not the designation signal CS of the voice input / output device has arrived from the CPU 1 (it is active).
In -2, the operation state (record, play, stop, etc.) is set by the CPU 1. This is the CPU 1 in FIG.
In response to 3-5 and 3-15 in the main routine.

【0079】そして、7−1においてNOの判断がなさ
れると、7−3において、当該音声入出力装置8−1〜
8−3がレコード状態であるのかプレイ状態であるのか
判断し、レコード状態と判断されると、7−3から7−
4〜7−9の処理へ進み、プレイ状態と判断されると7
−10〜7−15の処理へ進む。
Then, if NO is determined in 7-1, in 7-3, the voice input / output devices 8-1 to 8-1
It is determined whether 8-3 is in the record state or the play state.
Proceed to the processing of 4 to 7-9, and if it is determined that
The process proceeds to -10 to 7-15.

【0080】先ずレコード状態に設定された音声入出力
装置(いまの場合音声入出力装置8−2、8−3)の動
作を説明する。7−4において、サンプリング時刻とな
ったか否か判断し、サンプリング時刻となるまで、この
7−4をくりかえす。なお、サンプリング時刻の判断
は、音声入出力装置8−1〜8−3内部に夫々ハードタ
イマーをもってその出力によって行ってもよく、あるい
は共通なハードタイマーを設けてその出力に従って各音
声入出力装置が動作するようにしてもよい。後の説明か
らも理解されるとおり、各音声入出力装置8−1〜8−
3のサンプリング周波数を別々にすることも可能であ
る。
First, the operation of the audio input / output devices set in the record state (the audio input / output devices 8-2 and 8-3 in this case) will be described. At 7-4, it is determined whether or not the sampling time has come, and this 7-4 is repeated until the sampling time comes. The determination of the sampling time may be performed by using a hard timer in each of the audio input / output devices 8-1 to 8-3 and outputting the same, or a common hard timer may be provided and each audio input / output device may operate in accordance with the output. It may be operated. As will be understood from the following description, each of the audio input / output devices 8-1 to 8-
It is also possible to make the sampling frequencies of 3 different.

【0081】さて、7−4において、YESの判断がな
されると、与えられるアナログ音声信号は、サンプルホ
ールド(S/H)され、A/D変換される。続いて、7
−6において、DMAコントローラ10に対してDMA
転送要求DRQをアクティブにして出力する。
When the determination of YES is made in 7-4, the applied analog audio signal is sampled and held (S / H) and A / D converted. Then, 7
-6, the DMA controller 10
Activate and output the transfer request DRQ.

【0082】DMAコントローラ10は、この要求信号
DRQを受けとり、DMA転送を行うべく、その回答信
号DAKを出力する。従って、音声入出力装置8−1〜
8−3(いまの場合レコード状態である音声入出力装置
8−2又は8−3)は、7−7の判断がYESとなる
と、7−8に進み、A/D変換して得たデジタル音声デ
ータをデータバスに出力し、対応するバッファ9−1〜
9−3(いまの場合バッファ9−2又は9−3)へ送
る。そして、7−9にて、DMA転送要求DRQをイン
アクティブにする。従って、いまの場合、音声入出力装
置8−2、8−3にあっては、サンプリング周期毎に、
外部から与えられるアナログ音声信号をデジタル音声信
号に変換し、後述するようにDMAコントローラ10に
て夫々指定されるバッファ9−2、9−3のカレントア
ドレスに転送する(図10参照)。
The DMA controller 10 receives the request signal DRQ and outputs an answer signal DAK for performing the DMA transfer. Therefore, the audio input / output devices 8-1
8-3 (the audio input / output device 8-2 or 8-3 which is in the record state in this case) proceeds to 7-8 if the judgment of 7-7 is YES, and proceeds to A / D conversion to obtain a digital signal obtained by A / D conversion. The audio data is output to the data bus, and the corresponding buffers 9-1 to 9-1 are output.
9-3 (in this case, the buffer 9-2 or 9-3). Then, in step 7-9, the DMA transfer request DRQ is made inactive. Therefore, in this case, in the audio input / output devices 8-2 and 8-3, each sampling period
An analog audio signal supplied from the outside is converted into a digital audio signal, and transferred to the current addresses of the buffers 9-2 and 9-3 specified by the DMA controller 10 as described later (see FIG. 10).

【0083】また、7−3においてプレイ状態と判断さ
れると、7−10に進み、DMAコントローラ10に対
しDMA転送要求DRQをアクティブにし、DMAコン
トローラ10から回答信号DAKの到来を待って(7−
11)、データバス上のデジタル音声データを取込み
(7−12)、上記要求DRQをインアクティブにする
(7−13)。このときのDMAコントローラ10の動
作は後述するが、いまの場合、図9に示すとおり、Tr
1に対応するバッファ9−1のカレントアドレスの内容
(これはすでにディスク12のTr1のエリアの内容が
転送記録されている)が、以上の操作で音声入出力装置
8−1に入力設定されることになる。そして、サンプリ
ング時刻となったか否か判断する(7−14)。このサ
ンプリング時刻の到来の検出は、7−4において述べた
ことと同じである。
If it is determined in step 7-3 that the player is in the play state, the process proceeds to step 7-10, in which the DMA controller 10 activates the DMA transfer request DRQ and waits for an answer signal DAK from the DMA controller 10 (step 7-7). −
11), fetch digital audio data on the data bus (7-12), and inactivate the request DRQ (7-13). The operation of the DMA controller 10 at this time will be described later, but in this case, as shown in FIG.
The contents of the current address of the buffer 9-1 corresponding to 1 (the contents of the Tr1 area of the disk 12 have already been transferred and recorded) are input and set to the audio input / output device 8-1 by the above operation. Will be. Then, it is determined whether or not the sampling time has come (714). The detection of the arrival of the sampling time is the same as that described in 7-4.

【0084】そして、7−14でYESとなると7−1
5に進み、D/A変換及びローパスフィルタリングを実
行した上でアナログ音声信号を外部に出力する。
If the answer is YES in 7-14, 7-1
Proceed to 5 to execute the D / A conversion and the low-pass filtering, and then output the analog audio signal to the outside.

【0085】以上レコード状態の場合と、プレイ状態の
場合との1つのサンプリング時刻における動作を説明し
たが、7−9、7−15の各処理の終了後7−1にもど
り、以下同様にして次々とサンプリング時刻に対する処
理を実行する。
The operation at one sampling time in the record state and the play state has been described above. However, the operation returns to 7-1 after the completion of each processing of 7-9 and 7-15, and so on. The processing for the sampling time is executed one after another.

【0086】<DMAコントローラ10の動作>次に、
図8を参照してDMAコントローラ10の動作を説明す
る。この図8のフローチャートは、図2のサービスコン
トローラ108がマイクロプログラム制御で動作するの
を表わしているとしてもよく、あるいは、ハードロジッ
クでDMAコントローラ10が機能実現をしているとし
てもよい。
<Operation of DMA Controller 10>
The operation of the DMA controller 10 will be described with reference to FIG. The flowchart of FIG. 8 may represent that the service controller 108 of FIG. 2 operates under microprogram control, or the function of the DMA controller 10 may be realized by hard logic.

【0087】先ず、8−1においてCPU1からの指定
信号CSが到来している(アクティブとなっている)か
否か判断し、YESならば、リード信号RD、ライト信
号WRのいずれがCPU1から与えられているか判断
(8−2)し、リード信号RDならば8−3に進み、ア
ドレスバスを介して与えられるアドレス信号にて指定さ
れるレジスタ104、105の内容をデータバスを介し
て出力してCPU1がリードできるようにし、逆にライ
ト信号WRならば8−4に進み、指定したレジスタにデ
ータバスを介して所望のデータを入力設定することにな
る。この8−3、8−4の処理は、CPU1のメインル
ーチンの3−5、3−15などの処理に対応する。従っ
て、8−4の処理によって図2の各レジスタ104、1
05には所望のデータがセットされることになる。
First, at 8-1, it is determined whether or not the designation signal CS from the CPU 1 has arrived (is active). If YES, either the read signal RD or the write signal WR is given from the CPU 1. It is determined (8-2) whether or not the contents of the registers 104 and 105 specified by the address signal given via the address bus are output via the data bus. Then, the CPU 1 can read the data, and if the write signal WR, on the other hand, the process proceeds to 8-4 to input and set desired data to the designated register via the data bus. The processes of 8-3 and 8-4 correspond to processes of 3-5 and 3-15 of the main routine of the CPU 1. Therefore, by the processing of 8-4, each register 104, 1 in FIG.
In 05, desired data is set.

【0088】そして、このようなCPU1からのDMA
コントローラ10に対するアクセスやプログラムが終る
と指定信号CSはインアクティブとされ、8−1から8
−5に処理は進むことになる。
The DMA from the CPU 1
When the access to the controller 10 or the program is completed, the designation signal CS is made inactive, and 8-1 to 8
The process proceeds to -5.

【0089】8−5では、各音声入出力装置8−1〜8
−3からDMA転送要求DRQ1〜DRQ3がきている
か、デバイスコントローラ11からDMA転送要求DR
EQ(DRQ4)がきているか判断し、もし、いずれか
から要求が来ていると8−6に進み、DMA可能信号D
MAENBを“1”に(アクティブ)にし、DMAユニ
ット内のアドレスバスとデータバスをDMAコントロー
ラ10が専有するようにし、CPU1からのアクセスを
受け付けなくする。
In 8-5, each of the audio input / output devices 8-1 to 8-8
-3, the DMA transfer requests DRQ1 to DRQ3 have been received, or the device controller 11
It is determined whether the EQ (DRQ4) has arrived. If a request has been received from any of them, the process proceeds to 8-6, and the DMA enable signal D
MAENB is set to “1” (active), so that the DMA controller 10 occupies the address bus and the data bus in the DMA unit, and does not accept access from the CPU 1.

【0090】続いて、複数の要求に際しては、チャンネ
ルCH1〜CH4の順の優先順位に従って、チャンネル
を選択する(8−7)。
Subsequently, for a plurality of requests, a channel is selected according to the priority order of channels CH1 to CH4 (8-7).

【0091】次に、アドレスレジスタ104のCH4が
選択され、かつ、CH4に設けられた転送カウンタの値
が“0”であるか否かが判断される(8−8)。ここで
CH4が選択され、かつ、転送カウンタの値が“0”で
あれば、つまりCH4により転送すべきデータ量だけの
転送が終了してしまった後は、転送要求があっても、転
送を行わずに8−5にもどり、8−5〜8−8のルーチ
ンを繰り返す。そしてCH4が選択されていないか、ま
たはCH4が選択されていても転送カウンタの値が
“0”でなければ、選択したチャンネル(いま、例えば
CH2)のカレントアドレス(アドレスレジスタ104
のCH2のカレントアドレスレジスタの内容)をアドレ
スバスに出力する(8−9)。そして選択したチャンネ
ル(いま、例えばCH2)のコントロールレジスタ10
5の内容を参照し、DMA転送をいずれの方向へ行うか
決定し(8−10)、もしバッファ9−1〜9−3から
他の要素(I/O)への転送なら8−11から8−12
へ進んで、バッファ9−1〜9−3のうちの選択してい
るバッファに対しリード信号RDを与え、逆に他の要素
(I/O)からバッファ9−1〜9−3への転送ならば
8−13に進み、当該バッファに対してライト信号WR
を与える。
Next, it is determined whether or not CH4 of the address register 104 is selected and the value of the transfer counter provided for CH4 is "0" (8-8). Here, if CH4 is selected and the value of the transfer counter is "0", that is, after the transfer of only the amount of data to be transferred by CH4 has been completed, even if there is a transfer request, the transfer is stopped. Return to 8-5 without performing, and repeat the routine of 8-5 to 8-8. If CH4 is not selected, or if the value of the transfer counter is not "0" even if CH4 is selected, the current address (address register 104) of the selected channel (now, for example, CH2) is selected.
(The content of the current address register of CH2) is output to the address bus (8-9). Then, the control register 10 of the selected channel (now, for example, CH2)
5 to determine in which direction the DMA transfer is to be performed (8-10). If the data is to be transferred from the buffers 9-1 to 9-3 to another element (I / O), the processing is to be performed from 8-11. 8-12
Then, the read signal RD is given to the buffer selected from among the buffers 9-1 to 9-3, and conversely, the transfer is performed from another element (I / O) to the buffers 9-1 to 9-3. If so, the process proceeds to 8-13, and the write signal WR is sent to the buffer.
give.

【0092】しかる後、回答信号DAKをアクティブに
する(8−14)。その結果、いまの場合、Tr2の音
声入出力装置8−2は、7−7、7−8(図7)の処理
によって、サンプリングした音声データをデータバスに
送出し、バッファ9−2のカレントアドレスのエリア
に、DMAコントローラ10が書込むことになる(図1
0参照)。
Thereafter, the answer signal DAK is activated (8-14). As a result, in this case, the audio input / output device 8-2 of the Tr2 sends out the sampled audio data to the data bus by the processing of 7-7 and 7-8 (FIG. 7), and the current of the buffer 9-2. The DMA controller 10 writes data in the address area (FIG. 1).
0).

【0093】8−15では、データ転送が終了したの
で、上記リード信号RD又はライト信号WR、回答信号
DAKをインアクティブにし、8−16で当該チャンネ
ル(いまCH2)のカレントアドレス(図2のアドレス
レジスタ104内)の内容を+1とし、バッファの最終
アドレス到達の後はバッファ開始アドレスにリセットさ
せる。この8−16の動作により、バッファ9−1〜9
−3に対して新たなサンプリング音声データが書込まれ
る都度、あるいは新たに音声データが読出される都度、
アップカウントまたはバッファ開始アドレスにリセット
されることになる。そして、8−16の処理の後、8−
1へもどる。
In the step 8-15, since the data transfer is completed, the read signal RD or the write signal WR and the answer signal DAK are made inactive, and in the step 8-16, the current address (the address in FIG. (In the register 104) is set to +1 and after reaching the final address of the buffer, the buffer is reset to the buffer start address. By the operation of 8-16, the buffers 9-1 to 9
-3, each time new sampled audio data is written, or each time new audio data is read out,
It will be reset to the up-count or buffer start address. Then, after the processing of 8-16, 8-
Return to 1.

【0094】先程の状態では、Tr2とTr3との音声
入出力装置8−2、8−3よりデータ転送要求がDMA
コントローラ10に対してなされており、これまでにT
r2についてのみデータ転送の実行をしたのであるから
続く8−5においてはYESの判断がなされる。以下T
r3に関して、音声入出力装置8−3からバッファ9−
3の方向へのデータ転送が、8−7〜8−11、8−1
3〜8−16を実行することにより上記した場合と同様
にしてなされる。
In the above state, the data transfer request from the audio input / output devices 8-2 and 8-3 for Tr2 and Tr3
Has been done for the controller 10 and so far T
Since the data transfer has been executed only for r2, YES is determined in the following 8-5. Below T
Regarding r3, the voice input / output device 8-3 sends the buffer 9-
The data transfer in the direction 3 is 8-7 to 8-11 and 8-1.
By executing the steps 3 to 8-16, the operation is performed in the same manner as in the case described above.

【0095】このようなデータ転送が完了すると8−5
から8−17に進み、DMA可能信号を“0”(インア
クティブ)にして、DMAユニット内のデータバス、ア
ドレスバスをDMAコントローラ10が専有するのを中
止し、CPU1からのアクセスを受付けられるようにす
る。
When such data transfer is completed, 8-5
From 8 to 17, the DMA enable signal is set to "0" (inactive), the DMA controller 10 stops occupying the data bus and address bus in the DMA unit, and the access from the CPU 1 can be accepted. To

【0096】以上Tr2、Tr3に関し、音声入出力装
置8−2、8−3から夫々対応するバッファ9−2、9
−3へのデータ転送について説明したが、Tr1につい
ては、逆に、バッファ9−1から音声入出力装置8−1
へのデータ転送がDMAコントローラ10によってなさ
れる。
[0096] Regarding Tr2 and Tr3, the audio input / output devices 8-2 and 8-3 transmit the corresponding buffers 9-2 and 9-3, respectively.
The data transfer to the audio input / output device 8-1 has been described above.
Is transferred by the DMA controller 10.

【0097】CPU1は、動作中のトラックに対応する
バッファ9−1〜9−3とディスク12との間のデータ
転送を各トラック毎に順番に行うようになり、各トラッ
ク毎に、前回のデータ転送(ブロック転送)に続くデー
タ転送を行うようになる。図10の例では、例えばTr
1については、ディスク12から、図示のスタートアド
レス(CH1)とカレントアドレス(CH1)の間の空
白部分に対応するデータ量の転送をこれから行うように
なる(他のトラックについてもデータ転送の方向は逆で
あるが、同様の制御によることは明らかである)。な
お、プレイモードのバッファ(9−1が該当)およびレ
コードモードのバッファ(9−2、9−3が該当)では
斜線部分が音声入力されたデータ部分に対応する。
The CPU 1 sequentially performs data transfer between the buffers 9-1 to 9-3 corresponding to the operating track and the disk 12 for each track, and for each track, the Data transfer following transfer (block transfer) is performed. In the example of FIG.
As for the track No. 1, the data amount corresponding to the blank portion between the illustrated start address (CH1) and the current address (CH1) will be transferred from the disk 12 (the data transfer direction is also applied to other tracks). Conversely, it is clear that similar control is performed.) Note that, in the play mode buffer (corresponding to 9-1) and the record mode buffer (corresponding to 9-2 and 9-3), the hatched portions correspond to the voice-inputted data portions.

【0098】DMAコントローラ10では、8−5にお
いてデバイスコントローラ11から転送要求があること
を検知すると、上記した場合と同様にして、8−6〜8
−10を実行した後、バッファ9−1〜9−3からディ
スク12方向へのデータ転送の要求か、ディスク12か
らバッファ9−1〜9−3方向へのデータ転送の要求
か、8−11において判断し、前者ならば8−12へ、
後者ならば8−13へ進んだ後、8−14〜8−16の
各処理を実行する。このとき、1回の転送操作で、例え
ば1サンプル分のデジタル音声データの転送がなされる
ので、この8−5〜8−16の動作を複数回くりかえし
実行して、ブロック転送がなされる。このディスク12
とバッファ9−1〜9−3とのデータ転送については、
デバイスコントローラ11の動作も大きく関連するの
で、後に更に説明する。
When the DMA controller 10 detects that there is a transfer request from the device controller 11 at 8-5, the DMA controller 10 executes 8-6 to 8 in the same manner as described above.
After executing -10, a request for data transfer from the buffers 9-1 to 9-3 to the disk 12 or a request for data transfer from the disk 12 to the buffers 9-1 to 9-3, 8-11 In the former, go to 8-12,
If the latter, the process proceeds to 8-13, and then executes the processes of 8-14 to 8-16. At this time, for example, digital audio data for one sample is transferred by one transfer operation, and the operations of 8-5 to 8-16 are repeated a plurality of times to perform block transfer. This disk 12
For the data transfer between the buffer 9-1 and the buffers 9-1 to 9-3,
The operation of the device controller 11 is also closely related, and will be further described later.

【0099】そして、DMA転送が完了すると、要求信
号DRQ1〜4が到来しなくなり、8−5から8−17
へ進み、DMA可能信号DMAENBを“0”(インア
クティブ)とする。
When the DMA transfer is completed, the request signals DRQ1 to DRQ4 do not arrive, and the request signals 8-5 to 8-17
Then, the DMA enable signal DMAENB is set to "0" (inactive).

【0100】<デバイスコントローラ11の動作>次
に、図9を参照してデバイスコントローラ11の動作を
説明する。このデバイスコントローラ11は、ハードロ
ジックによっても、マイクロプログラム制御によっても
よく、いずれにしても図9の動作フローを機能実現す
る。
<Operation of Device Controller 11> Next, the operation of the device controller 11 will be described with reference to FIG. This device controller 11 may be realized by hardware logic or microprogram control, and in any case, implements the operation flow of FIG.

【0101】まず、CPU1から指定信号CSが与えら
れているか判断する(9−1)。NOの場合は元に戻る
が、YESの場合は9−2に進み、CPU1からリード
信号RDが与えられているか、ライト信号WRが与えら
れているか判断し、リード時には9−3でデバイスコン
トローラ11内部の指定データ(アドレスレジスタの内
容等)をデータバスを介してCPU1へ出力する。
First, it is determined whether the designation signal CS is given from the CPU 1 (9-1). In the case of NO, the process returns to the original, but in the case of YES, the process proceeds to 9-2, and it is determined whether the read signal RD or the write signal WR is provided from the CPU 1, and at the time of reading, the device controller 11 is determined in 9-3. The internal designated data (contents of the address register, etc.) is output to the CPU 1 via the data bus.

【0102】また、ライト信号WRが与えられていると
きは9−2から9−4に進み、今回DMAコントローラ
10のチャンネルCH4にてDMA転送するバッファと
ディスク12とのデータ転送方向を設定し、9−5に
て、アクセスするディスク12のアクセスポイントを設
定する。これは、CPU1がRAM3から得ている当該
トラックのアクセスポインタによる。
When the write signal WR is given, the process proceeds from 9-2 to 9-4, and the data transfer direction between the buffer for DMA transfer and the disk 12 in the channel CH4 of the DMA controller 10 this time is set. At 9-5, an access point of the disk 12 to be accessed is set. This is based on the access pointer of the track obtained by the CPU 1 from the RAM 3.

【0103】続いて9−6において、転送データ数(デ
ジタル音声データ数)をデバイスコントローラ11の内
部カウンタに設定する。
Subsequently, in step 9-6, the number of transfer data (the number of digital audio data) is set in an internal counter of the device controller 11.

【0104】このように、9−4〜9−6を実行するこ
とによってCPU1の制御のもとでデバイスコントロー
ラ11はプログラムされ、その後デバイスコントローラ
11はDMAコントローラ10に対しデータ転送の要求
をする(9−7)。このことからも理解されるとおり、
CPU1は、デバイスコントローラ11からインタラプ
ト信号INTを受けると、次のトラックに対応する(つ
まり、いまTr1〜Tr3は全て動作中とすると、Tr
1、Tr2、Tr3、Tr1、……の順で)DMA転送
の設定、制御をDMAコントローラ10に対し実行し、
デバイスコントローラ11をプログラムする。その後、
CPU1はデバイスコントローラ11とDMAコントロ
ーラ10とから離れて、相互のインタラクションで実際
のDMA転送を実行させる。
As described above, by executing steps 9-4 to 9-6, the device controller 11 is programmed under the control of the CPU 1, and thereafter, the device controller 11 requests the DMA controller 10 for data transfer ( 9-7). As you can see from this,
Upon receiving the interrupt signal INT from the device controller 11, the CPU 1 corresponds to the next track (that is, if all of Tr1 to Tr3 are operating now,
1, in the order of Tr2, Tr3, Tr1,...
Program the device controller 11. afterwards,
The CPU 1 is separated from the device controller 11 and the DMA controller 10 to execute an actual DMA transfer by mutual interaction.

【0105】デバイスコントローラ11は、9−7の次
に9−8へ進み、DMAコントローラ10から回答信号
DACK(DAK4)を受けとる(図8、8−14参
照)まで9−8を繰り返す。9−8の判断がYESとな
ると9−9に進み、DMAコントローラ10のCH4の
動作によって、1サンプルのデジタル音声データの転送
が行われ、9−6にて設定した転送カウンタを1だけダ
ウンカウントする(9−10)。続く9−11におい
て、予め設定していた転送データ数分のデータ転送が完
了したか上記転送カウンタの内容に従ってジャッジし、
NOならば再び9−8へ戻る。従って、DMAコントロ
ーラ10においては、デバイスコントローラ11から設
定したデータ数の転送(ブロック転送)が終了するま
で、転送要求DRQ4を続けて受けとることになり、こ
の転送要求に従って8−5〜8−16の処理(図8)を
実行し、それに応答する形でデバイスコントローラ11
側では9−8〜9−11の処理を実行する。
The device controller 11 proceeds to 9-8 following 9-7, and repeats 9-8 until receiving the answer signal DACK (DAK4) from the DMA controller 10 (see 8-14 in FIG. 8). When the judgment in 9-8 becomes YES, the process proceeds to 9-9, in which the operation of CH4 of the DMA controller 10 transfers the digital audio data of one sample, and the transfer counter set in 9-6 is counted down by one. (9-10). In the following 9-11, judgment is made according to the contents of the transfer counter as to whether the data transfer for the preset number of transfer data has been completed,
If NO, return to 9-8 again. Therefore, the DMA controller 10 continuously receives the transfer request DRQ4 until the transfer (block transfer) of the number of data set from the device controller 11 is completed. The device controller 11 executes the processing (FIG. 8) and responds thereto.
The side executes the processes of 9-8 to 9-11.

【0106】そして、転送終了が9−11にて判断され
ると、9−12に進み、デバイスコントローラ11から
DMAコントローラ10に対してのデータ転送の要求D
REQ(DRQ4)を“0”(インアクティブ)とす
る。そして、次のトラックに関してディスク12とバッ
ファ9−1〜9−3のいずれかとのデータ転送を行わせ
るために、デバイスコントローラ11はCPU1へイン
タラプト信号INTを与える(9−13)。これに応答
して、CPU1はインタラプトルーチン(図5)を実行
することは上述したとおりである。
When the end of the transfer is determined in 9-11, the process proceeds to 9-12, in which a request D for data transfer from the device controller 11 to the DMA controller 10 is issued.
REQ (DRQ4) is set to “0” (inactive). Then, the device controller 11 supplies an interrupt signal INT to the CPU 1 in order to transfer data between the disk 12 and any of the buffers 9-1 to 9-3 for the next track (9-13). In response to this, the CPU 1 executes the interrupt routine (FIG. 5) as described above.

【0107】以上の実施例においては、トラック1乃至
3の総再生時間長を同一としたが、この値が異なる場合
においては次のように処理することもできる。即ち、図
4に示した処理を所定の時間間隔ごとに行ない、例えば
最初の5秒は第1のバッファ比率、次の5秒間において
は第2のバッファ比率というふうに算出し、再生開始
後、その区間ごとに先に求めたデータに対応してエリア
を変更するようにすることができる。このようにすれば
トラックごとの再生時間長が異なる場合、即ち、トラッ
ク数が変動する場合にも適用が可能となる。このような
場合は、エリアデータバッファ112に、所定時間毎の
各バッファのトップ、テイルのアドレスデータをストア
しておき、これをデータ転送における最適なタイミング
でエリアデータレジスタ111に設定することで実現す
る。
In the above embodiment, the total reproduction time lengths of the tracks 1 to 3 are the same, but when the values are different, the following processing can be performed. That is, the processing shown in FIG. 4 is performed at predetermined time intervals. For example, the first 5 seconds are calculated as a first buffer ratio, and the next 5 seconds are calculated as a second buffer ratio. The area can be changed for each section in accordance with the previously obtained data. In this way, the present invention can be applied even when the reproduction time length of each track is different, that is, when the number of tracks is changed. In such a case, address data of the top and tail of each buffer is stored at predetermined time intervals in the area data buffer 112, and this is set in the area data register 111 at an optimal timing in data transfer. I do.

【0108】[0108]

【発明の効果】以上のように請求項1に記載のデジタル
レコーダによれば、アクセス時間の速い第1の外部記録
手段より再生される情報と、アクセス時間の遅い第2の
外部記録手段より再生される情報の比率を演算し、その
演算結果に対応して一時記憶手段の領域の割合を設定す
るようにしたので、一時記憶手段を効率的に利用するこ
とができる。従って、一時記憶手段の容量を小さくし、
装置を低コスト化することが可能となる。
As described above, according to the digital recorder of the first aspect, the information reproduced from the first external recording means having a short access time and the information reproduced from the second external recording means having a short access time. Since the ratio of the information to be obtained is calculated and the ratio of the area of the temporary storage means is set in accordance with the calculation result, the temporary storage means can be used efficiently. Therefore, the capacity of the temporary storage means is reduced,
The cost of the device can be reduced.

【0109】また請求項2に記載のデジタルレコーダに
よれば、一時記憶手段の領域の割合の設定を所定の時間
ごとに行なうようにしたので、トラックごとに再生時間
長が異なる場合においても適用が可能となる。
According to the digital recorder of the present invention, since the setting of the area ratio of the temporary storage means is performed at predetermined time intervals, the present invention can be applied even when the reproduction time length differs for each track. It becomes possible.

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

【図1】本発明のデジタルレコーダの一実施例の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of an embodiment of a digital recorder according to the present invention.

【図2】図1におけるDMAコントローラの一実施例の
構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of one embodiment of a DMA controller in FIG. 1;

【図3】図1のCPU1のメインの動作を説明するフロ
ーチャートである。
FIG. 3 is a flowchart illustrating a main operation of a CPU 1 of FIG. 1;

【図4】図3のステップ3−20のより詳細な処理を説
明するフローチャートである。
FIG. 4 is a flowchart illustrating a more detailed process of step 3-20 in FIG. 3;

【図5】図1のCPU1のインタラプトルーチンの動作
を説明するフローチャートである。
FIG. 5 is a flowchart illustrating the operation of an interrupt routine of CPU 1 of FIG. 1;

【図6】図5のステップ5−2のより詳細な処理を示す
フローチャートである。
FIG. 6 is a flowchart showing a more detailed process of step 5-2 in FIG. 5;

【図7】図1の音声入出力装置8−1乃至8−3の動作
を説明するフローチャートである。
FIG. 7 is a flowchart illustrating the operation of the audio input / output devices 8-1 to 8-3 in FIG. 1;

【図8】図1のDMAコントローラ10の動作を説明す
るフローチャートである。
FIG. 8 is a flowchart illustrating the operation of the DMA controller 10 of FIG. 1;

【図9】図1のデバイスコントローラ11の動作を説明
するフローチャートである。
FIG. 9 is a flowchart illustrating an operation of the device controller 11 of FIG. 1;

【図10】図1のデジタルレコーダの全体的な動作を示
す概念図である。
FIG. 10 is a conceptual diagram showing an overall operation of the digital recorder in FIG.

【図11】図1の実施例におけるイベントテーブルの一
例を示した説明図である。
FIG. 11 is an explanatory diagram showing an example of an event table in the embodiment of FIG. 1;

【図12】図1の実施例におけるオリジナルレコーディ
ングデータのイベントシーケンステーブルの一例を示し
た説明図である。
FIG. 12 is an explanatory diagram showing an example of an event sequence table of original recording data in the embodiment of FIG.

【図13】ユーザ定義のイベントシーケンステーブルの
一例を示した説明図である。
FIG. 13 is an explanatory diagram showing an example of a user-defined event sequence table.

【図14】カレントデータの一例を示した説明図であ
る。
FIG. 14 is an explanatory diagram showing an example of current data.

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

1 CPU 2 ROM 3 RAM 8−1乃至8−3 音声入出力装置 9−1乃至9−3 バッファ 10 DMAコントローラ 11 デバイスコントローラ 12−1 ハードディスク 12−2 光磁気ディスク DESCRIPTION OF SYMBOLS 1 CPU 2 ROM 3 RAM 8-1 to 8-3 Audio input / output device 9-1 to 9-3 Buffer 10 DMA controller 11 Device controller 12-1 Hard disk 12-2 Magneto-optical disk

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 デジタル信号が記録される第1の外部記
録手段と、 デジタル信号が記録されるとともに、前記第1の外部記
録手段より遅いアクセス時間を有する第2の外部記録手
段と、 前記第1および第2の外部記録手段より再生されたデジ
タル信号を一時的に記憶する複数の領域を有する一時記
憶手段と、 前記第1の外部記録手段より再生される情報と前記第2
の外部記憶手段より再生される情報の比率を演算する演
算手段と、 前記演算手段の演算結果に対応して前記一時記憶手段の
領域の割合を設定する設定手段とを備えることを特徴と
するデジタルデコーダ。
A first external recording unit on which a digital signal is recorded; a second external recording unit on which a digital signal is recorded and which has a slower access time than the first external recording unit; Temporary storage means having a plurality of areas for temporarily storing digital signals reproduced by the first and second external recording means; information reproduced by the first external recording means;
A digital device comprising: a calculating means for calculating a ratio of information reproduced from an external storage means; and a setting means for setting a ratio of an area of the temporary storage means in accordance with a calculation result of the calculating means. decoder.
【請求項2】 前記設定手段は、前記一時記憶手段の領
域の割合の設定を所定の時間毎に行なうことを特徴とす
る請求項1に記載のデジタルデコーダ。
2. The digital decoder according to claim 1, wherein the setting unit sets the ratio of the area of the temporary storage unit at predetermined time intervals.
JP03339938A 1991-11-28 1991-11-28 Digital recorder Expired - Fee Related JP3028667B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP03339938A JP3028667B2 (en) 1991-11-28 1991-11-28 Digital recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP03339938A JP3028667B2 (en) 1991-11-28 1991-11-28 Digital recorder

Publications (2)

Publication Number Publication Date
JPH05151706A JPH05151706A (en) 1993-06-18
JP3028667B2 true JP3028667B2 (en) 2000-04-04

Family

ID=18332182

Family Applications (1)

Application Number Title Priority Date Filing Date
JP03339938A Expired - Fee Related JP3028667B2 (en) 1991-11-28 1991-11-28 Digital recorder

Country Status (1)

Country Link
JP (1) JP3028667B2 (en)

Also Published As

Publication number Publication date
JPH05151706A (en) 1993-06-18

Similar Documents

Publication Publication Date Title
JP2979100B2 (en) Digital recorder
JP3024327B2 (en) Digital recorder
US5974015A (en) Digital recorder
US5519684A (en) Digital recorder for processing in parallel data stored in multiple tracks
JP3055220B2 (en) Digital recorder
JP3252172B2 (en) Digital recorder
JP2969187B2 (en) Digital recorder
JP3028667B2 (en) Digital recorder
US5642492A (en) Digital recorder employing punch-in and punch-out processes
JP2916533B2 (en) Digital multi-track recorder
JP3230756B2 (en) Digital recorder
JPH04232666A (en) Digital recorder
JP3114299B2 (en) Digital recorder
JP3131849B2 (en) Digital recorder
US5680378A (en) Digital recorder for recording/reproducing events formed by dividing audio data in a designated order
JP3298655B2 (en) Digital recorder
JP3055221B2 (en) Digital recorder
JP3055222B2 (en) Digital recorder
JP2979154B2 (en) Digital recorder
JPH04117688A (en) Digital recorder
JPH05135548A (en) Digital recorder
JPH04232684A (en) Digital recorder
KR100744053B1 (en) Data player capable of reservation commands and method for controlling the same
JPH04369754A (en) Digital recorder
JP3250440B2 (en) Audio / video data recording / reproducing device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090204

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20100204

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20110204

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees