JP4023332B2 - Recording / playback device - Google Patents
Recording / playback device Download PDFInfo
- Publication number
- JP4023332B2 JP4023332B2 JP2003038011A JP2003038011A JP4023332B2 JP 4023332 B2 JP4023332 B2 JP 4023332B2 JP 2003038011 A JP2003038011 A JP 2003038011A JP 2003038011 A JP2003038011 A JP 2003038011A JP 4023332 B2 JP4023332 B2 JP 4023332B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- fifo
- recording
- channels
- control unit
- 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
Links
- 238000012546 transfer Methods 0.000 claims description 127
- 239000000872 buffer Substances 0.000 claims description 78
- 238000000034 method Methods 0.000 claims description 31
- 230000004044 response Effects 0.000 claims description 11
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 description 41
- 229920005994 diacetyl cellulose Polymers 0.000 description 25
- 238000010586 diagram Methods 0.000 description 14
- 230000005236 sound signal Effects 0.000 description 8
- 238000005070 sampling Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 102100036409 Activated CDC42 kinase 1 Human genes 0.000 description 2
- 101000928956 Homo sapiens Activated CDC42 kinase 1 Proteins 0.000 description 2
- 101100015484 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) GPA1 gene Proteins 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 2
- 101100288236 Arabidopsis thaliana KRP4 gene Proteins 0.000 description 1
- 101100433979 Bos taurus TNK2 gene Proteins 0.000 description 1
- 101100385394 Zea mays ACK2 gene Proteins 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013404 process transfer Methods 0.000 description 1
- 230000008929 regeneration Effects 0.000 description 1
- 238000011069 regeneration method Methods 0.000 description 1
Images
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
- Reverberation, Karaoke And Other Acoustics (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、ハードディスク装置などの記録媒体に蓄積されている音楽データを読み出して再生したり外部から入力されるオーディオ信号を取り込んで記録媒体に録音することのできる記録再生装置に関する。
【0002】
【従来の技術】
従来より、ハードディスク装置(HDD)などの記録媒体から音楽データ(曲データ)を読み出して複数の部屋で再生したり、外部から入力されるオーディオ信号を取り込んで記録媒体に録音したりすることが可能な複数のチャンネルを有する記録再生装置が知られている。
図9は、この種記録再生装置の構成例を示すブロック図である。
この図において、1はこの記録再生装置全体の制御を行う制御部(CPU)、2は制御プログラムなどを格納するROMとワークエリアやバッファ領域などとして使用されるRAMなどからなるメモリ、3はCPU1やDMAC61,…,91などからのデータバス10の使用要求を調停するバス調停器(バスアービター)、4はハードディスク装置5を接続するATAPI(AT Attachment Packet Interface)インターフェース回路、5は音楽データ(曲データ)が格納されているハードディスク装置である。
6〜9は、この記録再生装置に蓄積されている曲データの再生信号を複数の部屋(ルーム1〜ルームn)に出力するための各チャンネルに対応するオーディオ出力部である。各オーディオ出力部6〜9は、いずれも、同一の構成要素を有しており、データバス10に接続されたDMAコントローラ(DMAC:Direct Memory Access Controller)61,71,81,91、FIFO制御部62,72,82,92、FIFO(first-in first-out)バッファ(以下、単に「FIFO」とよぶ)63,73,83,93、DACインターフェース回路64,74,84,94及びDAC(デジタルアナログ変換器)65,75,85,95からなる。
また、11は、アナログデジタル変換器(ADC)111、ADCインターフェース回路112、録音用FIFOバッファ113、録音用FIFO制御部114及び録音用DMAC115を有するオーディオ入力部、10は、前記CPU1、メモリ2、ATAPIインターフェース回路4、オーディオ出力部6〜9、オーディオ入力部11などの間のデータ転送を行うためのデータバスである。
なお、図示していないが、操作指示などを入力するための入力装置、状態情報などを表示する表示装置も当然に設けられており、さらに、CD−R/RWドライブ装置、DVDドライブ装置などが設けられていてもよい。
【0003】
このように構成された記録再生装置において、HDD5中に蓄積されている曲データを再生するときは、まず、前記CPU1が、前記ATAPIインターフェース回路4を介して前記HDD5から再生する曲データを読み出し、前記メモリ2のバッファ領域に所定量書き込む(バッファリングする)。
図10は、前記メモリ2に設定されたバッファ領域のメモリマップを示す図である。この図に示す例では、バッファ領域は、再生されたオーディオ信号が供給される各部屋(ルーム1〜ルームn)対応に設定される。各バッファ領域にバッファリングされるデータ量(各バッファ領域に書き込まれるデータ量)は、前記HDD5のアクセス時間や、他の部屋に対するDMACの転送時間などを考慮して、FIFO63,…,93の容量に比較して十分大きく取っておく必要がある。
【0004】
バッファ領域に所定量のデータがバッファリングされると、CPU1は、前記メモリ2のバッファ領域から各ルーム対応のオーディオ出力部6〜9におけるFIFO63,…,93へのデータ転送を各DMACにより行わせるためにDMACのセッティング(DMA転送処理)を行う。
図11は、このDMA転送処理の流れを示すフローチャートである。
すなわち、CPU1は、各DMACに対して、今回のDMA転送処理で転送すべき曲データのメモリ2における先頭アドレスと転送バイト数をセットし(ステップS51、S52)、ステップS53で、当該DMACを起動する、すなわち、そのDMACを動作可能状態とする。これにより、そのDMACは、バスアービター3からバス使用許可を獲得したときに即時にデータ転送を行うことができるようになる。CPU1は、DMACによるデータの転送が終了し、DMAC転送終了割り込みがあるのを待つ(ステップS54)。
例えば、ルーム1で再生する場合は、まず、先頭アドレスを前記図10におけるAにセットし(S51)、転送バイト数を(B−A)にセットする(S52)。そして、DMACを起動し(S53)、DMA転送の終了を待つ(S54)。次回のDMA転送処理では、先頭アドレスをB点に、転送バイト数を(C−B)分にセットする。なお、後述するが、1回のDMA転送処理による転送バイト数は一定とするのが好都合である。
【0005】
FIFO制御部62,72,…,92は、対応するバッファ63,…,93に蓄積されているデータ量(FIFO残量)がある一定量以下になると転送要求信号(REQn)を生成するように設定されている。
図12は、FIFO63,73,…,93を示す図であり、図示するように、FIFOの記憶残量が所定値TH以下となったことを検出して、対応するFIFO制御部が転送要求信号(REQn)を生成してバスアービター3に出力する。
バスアービター3は前記転送要求信号(REQn)を受け付けると、すなわち、転送要求が発生したFIFOに対する転送を開始することができる状態となると、転送要求受付信号(ACKn)を当該転送要求信号(REQn)を生成したFIFO制御部及び対応するDMACに返す。
これにより、DMA転送が開始され、転送要求受付信号(ACKn)が返された後に前記データバス10に流れるデータは、転送要求信号(REQn)を発生したFIFOに対するデータであるため、転送要求受付信号(ACKn)を受け取ったFIFO制御部はそのデータをラッチしてそのFIFOに書き込む。
ここで、1回のDMA転送による転送バイト数は、図12における(full−TH)分としておくと好都合である。
また、前記バスアービター3における調停方法としては種々の方法があり、優先順位を固定する方法、優先順位を順に変更していく方法などがある。この例の場合は、後者が適当である。
【0006】
前記DACインターフェース回路64,74,84,94は、対応するFIFO63,…,93から所定のサンプリング周期(例えば、44.1kHz)で曲データを読み出し、DAC入力フォーマットに合わせて並列直列変換(PS変換)を行って、DAC65,75,85,95に出力し、DAC65,…,95から曲データが再生されることとなる。
【0007】
このように従来の記録再生装置においては、FIFO、DACインターフェース回路、DACを有する各チャンネルのオーディオ出力部毎に、DMACとFIFO制御部とが必要とされており、多くの構成部品を必要としていた。
また、数多くのFIFO制御部からの転送要求信号(REQn)を処理することが必要となるため、バスアービター3の構成・処理も複雑なものとなっていた。
【0008】
また、このような問題点を解消するために、DMACの使用個数を減少させるようにした装置も提案されている(特許文献1を参照されたい)。
この特許文献1で提案されている方法によれば、DMACの使用個数を減少させることができるが、FIFOの使用残量が一定量以下になるとCPUに割り込みが掛かり、その時点でDMACの転送処理が開始されるので、FIFO制御部が転送要求を出してから実際にデータの転送が開始されるまでにタイムラグが発生するという問題点があった。
【0009】
【特許文献1】
特開平09−069071号公報
【0010】
【発明が解決しようとする課題】
そこで、本発明は、複数のチャンネルを有する記録再生装置において、DMACの使用個数を減らすとともに、複雑な構成や複雑な処理を必要としない記録再生装置を提供することを目的としている。
【0011】
【課題を解決するための手段】
上記目的を達成するために、本発明の記録再生装置は、複数の再生チャンネルを有する記録再生装置であって、制御部と、前記複数の再生チャンネルにそれぞれ対応して設けられ、互いに同期して読み出しが行われる複数のFIFOバッファと、前記複数の再生チャンネルのうちのデータの再生が行われる再生チャンネルに対応するFIFOバッファに転送するデータを、再生が行われる再生チャンネルごとに所定量ずつ順次記憶するメモリと、DMAコントローラと、前記複数のFIFOバッファを制御するFIFO制御部とを有し、前記制御部は、データの再生が行われる再生チャンネル数を判定して、データの再生が行われる再生チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を実行するものであり、前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記メモリから前記データの再生が行われる再生チャンネルそれぞれに対する前記所定量ずつのデータをデータバスに順次読み出すものであり、前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値を下回るときに前記DMAコントローラによるDMA転送を要求する処理と、前記DMAコントローラにより前記メモリから前記データバスに順次読み出されたデータの再生が行われる再生チャンネルそれぞれに対する前記所定量ずつのデータを順次それぞれ対応するFIFOバッファに書き込む処理を行うものとされている。
また、本発明の他の記録再生装置は、複数の再生チャンネルを有する記録再生装置であって、制御部と、前記複数の再生チャンネルにそれぞれ対応して設けられ、互いに同期して読み出しが行われる複数のFIFOバッファと、前記複数のFIFOバッファに転送するデータを各再生チャンネル対応に所定量ずつ順次記憶するメモリであって、前記複数の再生チャンネルのうちのデータの再生が行われる再生チャンネルに対応するFIFOバッファに対しては再生するデータを記憶し、前記複数の再生チャンネルのうちのデータの再生が行われない再生チャンネルに対応するFIFOバッファに対してはヌルデータを記憶するメモリと、DMAコントローラと、前記複数のFIFOバッファを制御するFIFO制御部とを有し、前記制御部は、前記複数の再生チャンネルのうちのデータの再生が行われる再生チャンネルの数にかかわらず、前記複数の再生チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を実行するものであり、前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記メモリから前記複数の再生チャンネルそれぞれに対する前記所定量ずつのデータをデータバスに順次読み出すものであり、前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値を下回るときに前記DMAコントローラによるDMA転送を要求する処理と、前記DMAコントローラにより前記メモリから前記データバスに順次読み出された前記複数の再生チャンネルそれぞれに対する前記所定量ずつのデータを順次それぞれ対応するFIFOバッファに書き込む処理を行うものとされている。
さらに、本発明のさらに他の記録再生装置は、複数の録音チャンネルを有する記録再生装置であって、制御部と、前記複数の録音チャンネルにそれぞれ対応して設けられ、互いに同期して書き込みが行われる複数のFIFOバッファと、前記複数の録音チャンネルのうちのデータの録音が行われる録音チャンネルに対応するFIFOバッファから転送されるデータを、録音が行われる録音チャンネルごとに所定量ずつ順次記憶するメモリと、DMAコントローラと、前記複数のFIFOバッファを制御するFIFO制御部とを有し、前記制御部は、データの録音が行われる録音チャンネル数を判定して、データの録音が行われる録音チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を実行するものであり、前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記FIFO制御部により前記複数の録音チャンネルのうちのデータの録音が行われる録音チャンネルに対応するFIFOバッファから所定量ずつデータバスに順次読み 出されたデータを前記メモリに順次書き込むものであり、前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値となると前記DMAコントローラによるDMA転送を要求する処理と、前記データの録音が行われる録音チャンネルに対応するFIFOバッファに蓄積されているデータを所定量ずつ前記データバスに順次読み出す処理を行うものとされている。
さらにまた、本発明のさらに他の記録再生装置は、複数の録音チャンネルを有する記録再生装置であって、制御部と、前記複数の録音チャンネルにそれぞれ対応して設けられ、互いに同期して書き込みが行われる複数のFIFOバッファと、前記複数のFIFOバッファから転送されるデータを各録音チャンネルごとに所定量ずつ順次記憶するメモリと、DMAコントローラと、前記複数のFIFOバッファを制御するFIFO制御部とを有し、前記制御部は、前記複数の録音チャンネルのうちのデータの録音が行われる録音チャンネルの数にかかわらず、前記複数の録音チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を行うものであり、前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記FIFO制御部により前記複数のFIFOバッファからそれぞれ所定量ずつデータバスに順次読み出されるデータを前記メモリに順次書き込むものであり、前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値となると前記DMAコントローラによるDMA転送を要求する処理と、前記複数のFIFOバッファに蓄積されているデータを、当該FIFOバッファがデータの録音が行われる録音チャンネルに対応するFIFOバッファであるか否かにかかわらず、所定量ずつ前記データバスに順次読み出す処理を行うものとされている。
【0012】
【発明の実施の形態】
図1は、本発明の記録再生装置の一実施の形態の構成を示すブロック図である。この図において、前記図9と同一の構成要素には同一の番号を付し、説明の重複を避けることとする。
図1と前記図9とを比較すると明らかなように、図1に示す本発明の記録再生装置においては、複数のオーディオ出力部6,7,…,9のうち一部のオーディオ出力部、図示する例ではオーディオ出力部6にのみDMAC61とFIFO制御部62とが設けられており、それ以外のオーディオ出力部(7,8,9)は、それぞれ、FIFO(73,…,93)、DACインターフェース回路(74,…,94)及びDAC(75,…,95)のみを有し、各FIFO(73,…,93)は前記オーディオ出力部6に設けられているDMAC61及びFIFO制御部62により制御されるようになされている。
なお、ここで、DMAC61からFIFO63,73,…,93にデータが書き込まれる速度が、FIFO63,73,…,93から各DACインターフェース回路64,74,…,94にデータが読み出される速度よりも十分に速く、DAC1(65)〜DACn(95)は同一クロック(ワードクロック及びビットクロック)で動作するものとする。
また、各FIFOの記憶容量は等しいものとし、各DACインターフェース回路64,…,94はFIFOがfull(空きがない状態)になり次第、リードストローブ信号(RD1〜RDn)を生成し、その部屋の再生を開始する。ここで、各リードストローブ信号(RD1〜RDn)は、DAC1〜DACnが同一クロックで動作しているため、同期している。FIFO制御部62は、DMAC61が一旦起動し転送が行われてFIFO残量がしきい値(TH)を超えるまで転送要求信号(REQ1)を出し続ける。ここで、FIFO残量のしきい値は、FIFOの記憶容量の1/2に設定してある。
なお、この実施の形態においては、DMAC及びFIFO制御部が設けられているオーディオ出力部が一つ(オーディオ出力部6)の場合を示しているが、複数のオーディオ出力部にDMACとFIFO制御部とを設け、該複数のオーディオ出力部によりDMAC及びFIFO制御部が設けられていないオーディオ出力部を分担して制御するようにしてもよい。
【0013】
このように構成された本発明の記録再生装置の第1の実施の形態の動作について、オーディオ信号を出力する部屋数が全部で3室(ルーム1、ルーム2及びルーム3)であり、再生チャンネル数が3チャンネルである場合を例にとって説明する。
図2は、本発明の記録再生装置の第1の実施の形態における動作の一例を説明するためのタイムチャートである。
この図において、時刻T1にルーム1への曲データの再生要求が発生したとする。前記CPU1は、この再生要求に応じて、その部屋に対応するオーディオ出力部のFIFO(この場合は、オーディオ出力部6のFIFO63)をイネーブル(動作可能)とするように前記FIFO制御部62を設定する。そして、要求された曲データをHDD5から読み出し、前記メモリ2のバッファ領域に転送する。
【0014】
図3は、ルーム1〜ルーム3に配信される曲データが前記HDD5に蓄積されている様子を示す図である。この図に示すように、HDD5には、複数の曲データが記憶されており、ルーム1に配信される曲データは、R1データ0,R1データ1,R1データ2,…、ルーム2の曲データはR2データ0,R2データ1,…、ルーム3の曲データはR3データ0,R3データ1,…というようにそれぞれ複数のブロックからなっている。ここで、ブロックのサイズ(アドレスE−アドレスD)は、例えば、前記FIFO(63,73,…,93)の記憶容量の1/2とされており、このブロック単位でデータ転送が行われる。
【0015】
前記CPU1は、ルーム1の曲データR1データ0、R1データ1、…を順次前記メモリ2のバッファ領域に転送する。
図4は、前記メモリ2に設定されたバッファ領域に曲データが蓄積される様子を示す図である。
この図に示すように、前記CPU1による転送処理により、HDD5から曲データR1データ0,R1データ1,…がメモリ2のアドレスFから順に蓄積されていく(バッファリングされる)。
そして、該メモリ2中に所定量の曲データがバッファリングされたら、前記CPU1は、図5に示すDMA転送処理を開始する。このバッファリングされるデータ量は、FIFOの容量に比較して十分大きく取られている。
【0016】
図5に示すDMA転送処理が開始されると、まず、ステップS11において、現在曲データが再生されている部屋数がチェックされる。その結果、1部屋のみ再生の場合には、前記DMAC61に前記1ブロックに相当するバイト数を転送バイト数として設定し、2部屋再生の場合は2ブロック分を転送バイト数として設定し、3部屋再生の場合は3ブロック分を転送バイト数として設定する(ステップS12〜S16)。次に、転送の先頭アドレスをセットし(ステップS17)、ステップS18で、DMAC61を起動する(動作可能状態とする)。
前述のように、前記FIFO制御部62は、自己の管理しているFIFO63,73,…,93のうちのいずれかにおけるデータ蓄積量(FIFO残量)が前記しきい値(FIFOの記憶容量の1/2)を超えない(下回る)ときは、転送要求信号(REQ1)をバスアービター3に出力するように構成されている。
したがって、前述のようにはじめて時刻T1でルーム1の再生要求があったときは、FIFO63〜93のいずれにおいても曲データの蓄積量がその記憶容量の1/2を超えていないため、前記FIFO制御部62は転送要求信号(REQ1)を出力する。バス10の使用権を獲得し、バスアービター3から転送要求受付信号(ACK1)が返されると、DMAC61は、メモリ2の前記ステップS17でセットされた先頭アドレス(具体的には、図4のF)からステップS13でセットされた転送バイト数(=G−F)のデータを読み出す。前記FIFO制御部62はライトイネーブル信号WE1を出力し、前記データバス10上に読み出されたその曲データをFIFO63に書き込む(図2の時刻T2)。このDMA転送により、図2に示すように、FIFO1(63)のデータ蓄積量(残量)は、その記憶容量の1/2であるTHとなる。
【0017】
また、このDMA転送が終了すると、前記DMAC61からCPU1に対して転送終了割り込みが発生する(図5のステップS19)。全ての部屋での再生が終了したわけではないので(ステップS20)、前記CPU1は、ステップS11にもどり、DMA転送処理を繰り返し、次回のDMA転送の先頭アドレスとしてGをセットし、転送ブロック数として1ブロック分をセットする。
【0018】
上述のように、第1回目のDMA転送が終了した後の前記FIFO63のデータ蓄積量はTH(=記憶容量の1/2)に等しくTHを超えていないため、前記FIFO制御部62は、さらに転送要求信号(REQ1)を出力し続ける。
したがって、上述と同様にして、第2回目のDMA転送が行われる(図2の時刻T3)。これにより、前記図4における曲データ「R1データ1」がFIFO63に転送され、前記FIFO1(63)の記憶容量一杯まで曲データが蓄積されることとなる。
前記FIFO制御部63は、FIFO1(63)の曲データ蓄積量が一杯であることを検知すると、対応するDACインターフェース回路64に通知し、DACインターフェース回路64は所定周期のリードストローブ信号(RD信号)の生成を開始して(図2の時刻T4)、該RD信号をFIFO63に出力し、これにより、FIFO63から所定周期で曲データが読み出されDAC65に供給され、DAC65からアナログのオーディオ出力信号がルーム1に供給されることとなる。これにより、ルーム1での曲の再生が開始された。
以下、RD信号によりFIFO63から曲データが読み出されていく。そして、FIFO63に蓄積されているデータ量(残量)が前記TH以下となったとき、前述のように、前記FIFO制御部62が転送要求信号(REQ1)を生成し、DMA転送を行う。以下、これを繰り返すことにより、曲データの再生が行われる。
一方、前記CPU1は、前記メモリ2のバッファ領域における曲データの蓄積量を監視し、所定量以下となったことを検出したときは、前述と同様に、前記HDD5から後続する曲データを読み出してメモリ2のバッファ領域に転送する。以上の処理を繰り返すことにより、ルーム1に対する曲データの配信が行われる。
【0019】
さて、時刻T5(図2)において、ルーム2に対する再生要求が発生したとする。前記CPU1は、この再生要求に応じて、前記FIFO制御部62に対して対応するFIFO2(73)をイネーブルとするように設定する。そして、このルーム2で再生する曲の曲データの、HDD5から前記メモリ2のバッファ領域への転送を開始する。すなわち、この時点より、前記HDD5からメモリ2のバッファ領域に、ルーム1の曲データとルーム2の曲データの両者(合わせて2ブロック分のデータ)を転送する。これにより、メモリ2のアドレスH以降の領域に、ルーム1への曲データ(R1データm+1)とルーム2への曲データの最初のブロック(R2データ0)とが1回の転送処理で転送されることとなる。そして、このアドレスHを記憶しておく。
【0020】
以下、前述のようにしてルーム1に対する曲の再生が進行して行き、次回の転送の先頭アドレスが前記Hとなったときは、前記DMA転送処理のステップS11において再生部屋数が2とされ、DMAC61に転送バイト数として2ブロック分セットし(ステップS15)、先頭アドレスとしてH(図4)をセットする(ステップS17)。
そして、前記FIFO1(63)に記憶されている曲データの残量がその記憶容量の1/2(TH)以下となり、FIFO制御部62により転送要求信号(REQ1)が生成され、バスアービター3から転送要求受付信号(ACK1)が返されると、前述のようにDMAC61による転送処理が開始される。すなわち、前記DMAC61は、前記メモリ2のアドレスH(先頭アドレス)から2ブロック分(転送バイト数)のデータを読み出す。前記FIFO制御部62は、前記データバス10上に読み出された曲データの先頭1ブロック分のデータについては、ライトイネーブル信号WE1を発生して、FIFO63に蓄積し(時刻T6)、後の1ブロック分のデータについては、ライトイネーブル信号WE2を発生してFIFO73に蓄積する(時刻T7)。
これにより、図2に示すように、FIFO1(63)には一杯まで曲データR1が蓄積され、FIFO2(73)にはその記憶容量の1/2(TH)まで曲データR2が蓄積される。
したがって、この時点では、FIFO1(63)に蓄積された曲データはDACインターフェース回路64からのRD信号により読み出されて再生されるが、FIFO2(73)に蓄積された曲データは、DACインターフェース回路74を駆動する指示がFIFO制御部62から供給されていないため、読み出されない。
【0021】
このようにして、曲データ1の再生が進み、前記FIFO1(63)に記憶されている曲データの量(残量)がTH以下となると、前述と同様に、FIFO制御部61から転送要求信号(REQ1)が生成され、DMA転送が行われる。このDMA転送の先頭アドレスはIである。このDMA転送により、図2に示すように、FIFO2(73)も曲データが記憶容量一杯まで蓄積される。これにより、前記FIFO制御部62は、前記DACインターフェース回路64に対すると同様に、DACインターフェース回路74に対しても、RD信号(RD2)の生成を開始させる指示信号を供給する。これにより、このRD2信号により、前記FIFO2(73)から所定の周期(サンプリング周期)ごとに曲データが読み出され、DAC75でアナログ信号に変換されて、ルーム2にオーディオ信号が出力される(時刻T10)。このようにして、ルーム2における再生が開始される。
【0022】
そして、時刻T11に、ルーム3に対する再生要求が発生したとする。前述と同様に、前記CPU1は、この再生要求に応じて、前記FIFO制御部62に対して対応するFIFO3(83)をイネーブルとするように設定する。そして、このルーム3で再生する曲の曲データR3をHDD5から前記メモリ2のバッファ領域に転送する。すなわち、この時点より、前記HDD5からメモリ2のバッファ領域に、ルーム1の曲データR1、ルーム2の曲データR2及びルーム3の曲データR3を1回の転送処理で各1ブロックずつ転送するようにする。
これにより、図4に示すように、メモリ2のアドレスJ以降には、各曲データR1〜R3が1ブロック分ずつ蓄積されていく。
以下、前述と同様にルーム1とルーム2の再生が進行して行き、次回の先頭アドレスがJとなったとき、前記DMA転送処理において、再生部屋数が3(ステップS11)、転送バイト数が3ブロック分(ステップS16)、先頭アドレスがJ(ステップS17)にセットされる。
【0023】
そして、前記FIFO1(63)とFIFO2(73)の記憶残量がTH以下になると、前記FIFO制御部62から転送要求信号(REQ1)が生成され、DMAC61により前記メモリ2のアドレスJから3ブロック分の曲データ(「R1データn+1」、「R2データp+1」、「R3データ0」)がデータバス10上に読み出され、FIFO制御部62は、最初の1ブロック分の曲データはライトイネーブル信号WE1によりFIFO1(63)に転送し(時刻T12)、次の1ブロック分の曲データはWE2によりFIFO2(73)に転送し(T13)、最後の1ブロック分の曲データはWE3によりFIFO3(83)に転送する(T14)。これにより、FIFO3(83)には、THまで曲データが蓄積される。
そして、時刻T15から開始される次回のDMA転送により、FIFO3(83)に曲データが一杯まで蓄積される(T17)。これにより、FIFO制御部62は、DACインターフェース回路84に対してRD信号(RD3)の生成を開始する指示信号を供給し、前述と同様にしてルーム3に対するオーディオ信号の配信が開始される(T18)。
以上のようにして、複数の部屋に対する曲データの配信を単一のDMAC61を用いて行うことができる。
【0024】
次に、ハードウェア設計やソフトウェア処理を簡素化した本発明の記録再生装置の第2の実施の形態について説明する。この実施の形態は、1回のDMA転送のデータ転送量を一定(例えば、3ブロック分)とすることにより、ハード設計やソフトウェア処理を簡素化するものである。
図6は、本発明の第2の実施の形態における動作の一例を示すタイミングチャート、図7は、この実施の形態における前記メモリ2のバッファ領域のメモリマップの一例を示す図、図8は、この実施の形態におけるDMA転送処理を示すフローチャートである。なお、ここでは、前述と同様に全部屋数が3(再生チャンネル数が3)であるものとして説明するが、任意の複数の再生チャンネルを有する場合に同様に適用することができる。
図7のメモリマップに示すように、この実施の形態においては、実際に曲データを再生する部屋数にかかわらず、全部屋分(この例では、3室分)のデータを単位として転送するようにしている。すなわち、ルーム1のみを再生するときでも常に3ブロック分のデータをバッファリングするようにし、再生を行っていない部屋に対応する部分はヌルデータで埋めておくようにしている。また、ルーム1とルーム2とで再生を行なっている場合には、ルーム3に対応する第3番目のブロックをヌルデータで埋めておくようにしている。
【0025】
図8は、DMA転送処理の流れを示すフローチャートである。この実施の形態においては、再生時にはDMAC61の起動に関しては、再生部屋数にかかわらず常に同じ処理を実行すればよい。すなわち、転送バイト数は常に3ブロック分にセットし(ステップS31)、転送の先頭アドレスを3ブロック分ずつずらしてセットする(ステップS32)のみで良い。このように、前記第1の実施の形態におけるDMA転送処理(図5)よりもソフトウェア処理を簡単化することができる。ただし、メモリ2の使用効率は低下する。
【0026】
図6は、この第2の実施の形態の動作の一例を示すタイミングチャートである。
この図に示すように、時刻T1において再生要求(例えば、ルーム1への再生要求)が発生すると、以下、3つのFIFO(63,73,83)全てに対して、データ転送が行われる。前記FIFO制御部62は、DMA転送される3ブロック分のデータ(曲データ又はヌルデータ)が前記3つのFIFOに順に格納されるように、WE1,WE2,WE3を順次出力する。DMA転送を2回実行することにより、FIFO1(63)に実際に再生される曲データがフルまで蓄積され、FIFO2(73)とFIFO3(83)にはそれぞれヌルデータがフルまで蓄積されることとなる。これにより、前記FIFO制御部62は各DACインターフェース回路(64,74,84)に対し、リードストローブ信号(RD信号)を生成させる指示を送り、これに基づいて、前記FIFOからDACに曲データ又はヌルデータがサンプリング周期ごとに読み出されることとなる。
【0027】
このように、この実施の形態によれば、リードストローブ信号(RDn)は、再生部屋数にかかわらず、いずれかのFIFOがフルになった状態で生成を開始するようにすればよく、ライトイネーブル信号(WEn)は常に3ブロック分のデータが転送されることを前提に1ブロック分のデータが転送される毎にWE1→WE2→WE3と切り替えて出力すればよい。したがって、ハードウェア構成も簡単なものとすることができる。これに対し、前述した第1の実施の形態の場合には、FIFO制御部62がDMAC61からの転送バイト数の切り換えに応じてWEn信号の生成を制御することが必要であった。
【0028】
なお、上述した各実施の形態においては、曲データの再生について説明したが、録音の場合も、データの流れる方向が変わるだけで全く同様に構成することができる。
例えば、前記図1においては、単一のオーディオ入力部11のみが設けられていたが(録音チャンネル数が1)、複数チャンネルの外部信号を入力することができるように、複数のオーディオ入力部(録音チャンネル)を設け、そのうちの1つにのみDMACとFIFO制御部を設けるようにする。そして、外部からの複数チャンネルのオーディオ入力信号を、各オーディオ入力部のADCでデジタルデータに変換し、各ADCインターフェース回路の制御により各録音用FIFOに書き込む。このとき、各FIFOへの書き込みは同期したライトイネーブル信号により行うようにする。録音用FIFOに所定量のデジタルデータが蓄積されると、共通に設けられた録音用FIFO制御部がバスアービター3に対して転送要求信号(REQ2)を生成する。バスの使用権を獲得し転送要求受付信号信号(ACK2)が返されると、共通に設けられた録音用DMACの制御により各録音用FIFOに蓄積されているデータが前記メモリ2のバッファ領域に一括して転送される。該メモリ2のバッファ領域に蓄積されたデータはCPU1の制御のもとに前記HDD5に転送される。このようにして、複数チャンネルのオーディオ信号を外部から取り込んでHDDに記録することができる。
あるいは、前述した第2の実施の形態と同様に、実際に記録しているか否かにかかわらず、複数の録音チャンネル分のデータを一括してメモリに転送するようにしてもよい。
なお、図1に示したように、録音と再生が混在するシステムにおいては、共通に用いるDMACとFIFO制御部を録音側と再生側とにそれぞれ設ければよい。
【0029】
さらに、前述した各実施の形態においては、前記HDD5からメモリ2へのデータ転送はCPU1が実行するものとして説明したが、DMACを設けて、該DMACによりHDD5からメモリ2へのデータ転送を行わせるようにしてもよい。この場合には、さらに効率的に転送を行うことができる。
さらにまた、上述した各実施の形態においてはHDD5に蓄積されている曲データは、そのままD/A変換することによりオーディオ信号となるサンプリングデータであるとして説明したが、これに限られることはなく、圧縮された曲データであってもよい。この場合には、D/Aに入力される前のいずれかの個所でデコードすればよい。
【0030】
【発明の効果】
以上のように、本発明の記録再生装置によれば、少ない個数、典型的には1個のDMACを用いることで、複数のFIFOに曲データを転送制御することが可能となり、複数のFIFOを有する記録再生装置を少ない部品数で構成することが可能となる。
また、複数のFIFOを同期させて動作させているため、FIFOがTHに達するタイミングが同期している。したがって、1回のCPU割り込みにより複数のFIFO分のDMACセッティングが可能となり、CPUの負荷を低減することが可能となる。
【図面の簡単な説明】
【図1】 本発明の記録再生装置の一実施の形態の構成を示すブロック図である。
【図2】 本発明の記録再生装置の第1の実施の形態の動作について説明するためのタイムチャートである。
【図3】 曲データがHDD内に蓄積されている様子を示す図である。
【図4】 第1の実施の形態において、メモリ2に曲データがバッファリングされる様子を示す図である。
【図5】 第1の実施の形態におけるDMA転送処理を説明するためのフローチャートである。
【図6】 本発明の記録再生装置の第2の実施の形態の動作について説明するためのタイムチャートである。
【図7】 第2の実施の形態において、メモリ2に曲データがバッファリングされる様子を示す図である。
【図8】 第2の実施の形態におけるDMA転送処理を説明するためのフローチャートである。
【図9】 従来の記録再生装置の構成を示すブロック図である。
【図10】 従来の記録再生装置におけるバッファ領域のメモリマップの一例を示す図である。
【図11】 従来の記録再生装置におけるDMA転送処理のフローチャートである。
【図12】 従来の記録再生装置におけるFIFOについて説明するための図である。
【符号の説明】
1:CPU、2:メモリ、3:バスアービター、4:ATAPIインターフェース回路、5:ハードディスク装置、6〜9:オーディオ出力部、10:データバス、61:DMAC、62:FIFO制御部、63,73,83,93:FIFOバッファ、64,74,84,94:DACインターフェース回路、65,75,85,95:DAC、11:オーディオ入力部、111:ADC、112:ADCインターフェース回路、113:FIFOバッファ、114:FIFO制御部、115:DMAC[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a recording / reproducing apparatus capable of reading out and reproducing music data stored in a recording medium such as a hard disk apparatus or recording an audio signal input from the outside on a recording medium.
[0002]
[Prior art]
Conventionally, music data (song data) can be read from a recording medium such as a hard disk drive (HDD) and played back in multiple rooms, or audio signals input from the outside can be captured and recorded on the recording medium. A recording / reproducing apparatus having a plurality of channels is known.
FIG. 9 is a block diagram showing a configuration example of this type of recording / reproducing apparatus.
In this figure, 1 is a control unit (CPU) that controls the entire recording / reproducing apparatus, 2 is a memory that includes a ROM that stores a control program and the like, and a RAM that is used as a work area and a buffer area. , 91, etc., a bus arbiter (bus arbiter) that arbitrates use requests of the
An
Although not shown, an input device for inputting operation instructions and a display device for displaying status information are naturally provided. Further, a CD-R / RW drive device, a DVD drive device, and the like are provided. It may be provided.
[0003]
In the recording / reproducing apparatus configured as described above, when reproducing the music data stored in the
FIG. 10 is a diagram showing a memory map of the buffer area set in the
[0004]
When a predetermined amount of data is buffered in the buffer area, the
FIG. 11 is a flowchart showing the flow of this DMA transfer process.
That is, the
For example, when reproducing in
[0005]
The FIFO
FIG. 12 is a diagram showing FIFOs 63, 73,..., 93. As shown in the figure, it is detected that the remaining storage capacity of the FIFO is equal to or less than a predetermined value TH, and the corresponding FIFO control unit sends a transfer request signal. (REQn) is generated and output to the
When the
As a result, since the DMA transfer is started and the data that flows on the
Here, it is convenient to set the number of transfer bytes by one DMA transfer to (full-TH) in FIG.
There are various arbitration methods in the
[0006]
The
[0007]
As described above, in the conventional recording / reproducing apparatus, the DMAC and the FIFO control unit are required for each audio output unit of each channel having the FIFO, the DAC interface circuit, and the DAC, and many components are required. .
In addition, since it is necessary to process transfer request signals (REQn) from many FIFO control units, the configuration and processing of the
[0008]
In order to solve such problems, there has also been proposed an apparatus that reduces the number of DMACs used (see Patent Document 1).
According to the method proposed in
[0009]
[Patent Document 1]
JP 09-069071 A
[0010]
[Problems to be solved by the invention]
SUMMARY OF THE INVENTION An object of the present invention is to provide a recording / reproducing apparatus that reduces the number of DMACs used in a recording / reproducing apparatus having a plurality of channels and does not require a complicated configuration or complicated processing.
[0011]
[Means for Solving the Problems]
In order to achieve the above object, a recording / reproducing apparatus of the present invention is a recording / reproducing apparatus having a plurality of reproduction channels,A control unit;Provided corresponding to each of the plurality of playback channels,Each otherData to be transferred to a plurality of FIFO buffers to be read synchronously and a FIFO buffer corresponding to a reproduction channel from which data is reproduced among the plurality of reproduction channels., One by one for each playback channel on which playback is performedA memory for storing, a DMA controller, and a FIFO controller for controlling the plurality of FIFO buffers;The controller is operable to determine the number of reproduction channels on which data is reproduced and set the data transfer amount corresponding to the number of reproduction channels on which data is reproduced to the DMA controller to operate the DMA controller. The process to set to the state is executed,The DMA controllerIn response to a DMA transfer request from the FIFO controller,Previously from the memory in one DMA transferDePlayback channel on which data is playedThe predetermined amount for eachDataRead sequentially to data busThe FIFO controller is configured to request a DMA transfer by the DMA controller when the amount of data stored in the FIFO buffer is lower than a predetermined value, and from the memory by the DMA controller.Sequentially read to the data busPlayback channel where data is played backThe predetermined amount for eachDataSequentiallyEach of them writes data to the corresponding FIFO buffer.
Another recording / reproducing apparatus of the present invention is a recording / reproducing apparatus having a plurality of reproduction channels,A control unit;Provided corresponding to each of the plurality of playback channels,Each otherA plurality of FIFO buffers to be read synchronously and data to be transferred to the plurality of FIFO buffersSequentially a predetermined amount for each playback channelA memory to store,The data to be reproduced is stored in the FIFO buffer corresponding to the reproduction channel on which the data of the plurality of reproduction channels is reproduced,Playback of data among the plurality of playback channelsButDoneThisFIFO buffer corresponding to no playback channelOn the other handA memory for storing null data, a DMA controller, and a FIFO controller for controlling the plurality of FIFO buffers;The control unit sets a data transfer amount corresponding to the number of the plurality of reproduction channels in the DMA controller regardless of the number of the reproduction channels in which data is reproduced from among the plurality of reproduction channels. The process to set the controller to an operable state is executed.The DMA controllerIn response to a DMA transfer request from the FIFO controller,In a single DMA transfer, the memoryThe predetermined amount for each playback channelDataRead sequentially to data busThe FIFO control unit is configured to request a DMA transfer by the DMA controller when the amount of data stored in the FIFO buffer falls below a predetermined value, and from the memory by the DMA controller.Sequentially read to the data busThe plurality ofThe predetermined amount for each playback channelDataSequentiallyEach of them writes data to the corresponding FIFO buffer.
Furthermore, still another recording / reproducing apparatus of the present invention is a recording / reproducing apparatus having a plurality of recording channels,A control unit;Provided corresponding to each of the plurality of recording channels,Each otherA plurality of FIFO buffers to be written synchronously and data transferred from a FIFO buffer corresponding to a recording channel for recording data among the plurality of recording channels., One by one for each recording channel on which recording is performedA memory for storing, a DMA controller, and a FIFO controller for controlling the plurality of FIFO buffers;The controller is operable to determine the number of recording channels on which data is recorded and to set the data transfer amount corresponding to the number of recording channels on which data is recorded in the DMA controller to operate the DMA controller. The process to set to the state is executed,The DMA controllerIn response to a DMA transfer request from the FIFO controller,With one DMA transfer,By the FIFO control unitFIFO buffer corresponding to a recording channel on which data is recorded among the plurality of recording channels.Sequentially read to the data bus by a predetermined amount IssuedData to the memoryWrite sequentiallyThe FIFO control unit performs processing for requesting a DMA transfer by the DMA controller when the amount of data stored in the FIFO buffer reaches a predetermined value, and a FIFO corresponding to a recording channel on which the data is recorded. The data stored in the bufferSequentially to the data bus by a predetermined amountIt is supposed to perform a reading process.
Still another recording / reproducing apparatus of the present invention is a recording / reproducing apparatus having a plurality of recording channels,A control unit;Provided corresponding to each of the plurality of recording channels,Each otherA plurality of FIFO buffers to be written synchronously and data transferred from the plurality of FIFO buffersSequential amounts for each recording channelA memory for storing, a DMA controller, and a FIFO controller for controlling the plurality of FIFO buffers;The controller sets a data transfer amount corresponding to the number of the plurality of recording channels in the DMA controller regardless of the number of recording channels in which the data is recorded among the plurality of recording channels. It performs processing to set the controller to an operable state,The DMA controllerIn response to a DMA transfer request from the FIFO controller,With one DMA transfer,By the FIFO control unitThe plurality of FIFO buffersAre sequentially read out to the data bus by a predetermined amount.Data to the memoryWrite sequentiallyThe FIFO controller is configured to request a DMA transfer by the DMA controller when the amount of data stored in the FIFO buffer reaches a predetermined value, and to store data stored in the plurality of FIFO buffers.TheRegardless of whether the FIFO buffer is a FIFO buffer corresponding to a recording channel on which data is recorded,Sequentially to the data bus by a predetermined amountIt is supposed to perform a reading process.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 1 is a block diagram showing a configuration of an embodiment of a recording / reproducing apparatus of the present invention. In this figure, the same components as those in FIG. 9 are given the same reference numerals to avoid duplication of explanation.
As is apparent from a comparison between FIG. 1 and FIG. 9, in the recording / reproducing apparatus of the present invention shown in FIG. 1, some of the
Here, the speed at which data is written from the
Further, the storage capacity of each FIFO is assumed to be equal, and each
In this embodiment, the case where there is one audio output unit (audio output unit 6) provided with the DMAC and FIFO control unit is shown. However, a plurality of audio output units include a DMAC and a FIFO control unit. And a plurality of audio output units may share and control audio output units that are not provided with DMAC and FIFO control units.
[0013]
Regarding the operation of the first embodiment of the recording / reproducing apparatus of the present invention configured as described above, the total number of rooms for outputting audio signals is three (
FIG. 2 is a time chart for explaining an example of the operation in the first embodiment of the recording / reproducing apparatus of the present invention.
In this figure, it is assumed that a music data reproduction request to
[0014]
FIG. 3 is a diagram illustrating a state in which music data distributed to the
[0015]
The
FIG. 4 is a diagram showing how music data is stored in the buffer area set in the
As shown in the figure, music data R1 data 0,
When a predetermined amount of music data is buffered in the
[0016]
When the DMA transfer process shown in FIG. 5 is started, first, in step S11, the number of rooms in which music data is currently being reproduced is checked. As a result, in the case of reproducing only one room, the number of bytes corresponding to the one block is set in the
As described above, the
Therefore, when the playback request for
[0017]
When the DMA transfer ends, a transfer end interrupt is generated from the
[0018]
As described above, since the amount of data stored in the
Therefore, the second DMA transfer is performed in the same manner as described above (time T3 in FIG. 2). As a result, the music piece data “
When the
Thereafter, the music data is read from the
On the other hand, when the
[0019]
Now, it is assumed that a reproduction request for
[0020]
Hereinafter, when the reproduction of the music for
Then, the remaining amount of music data stored in the FIFO 1 (63) becomes 1/2 (TH) or less of the storage capacity, and a transfer request signal (REQ1) is generated by the
As a result, as shown in FIG. 2, the music piece data R1 is stored in the FIFO1 (63) up to the full capacity, and the music piece data R2 is stored in the FIFO2 (73) up to 1/2 (TH) of the storage capacity.
Therefore, at this time point, the music data stored in the FIFO 1 (63) is read and reproduced by the RD signal from the
[0021]
In this way, when the reproduction of the
[0022]
Then, it is assumed that a reproduction request for the
As a result, as shown in FIG. 4, after the address J of the
Hereinafter, when the reproduction of the
[0023]
When the remaining memory capacity of the FIFO1 (63) and FIFO2 (73) becomes less than TH, a transfer request signal (REQ1) is generated from the
Then, by the next DMA transfer started from time T15, the music piece data is stored in FIFO3 (83) to the full (T17). As a result, the
As described above, music data can be distributed to a plurality of rooms using a
[0024]
Next, a description will be given of a second embodiment of the recording / reproducing apparatus of the present invention in which hardware design and software processing are simplified. This embodiment simplifies hardware design and software processing by making the data transfer amount of one DMA transfer constant (for example, for three blocks).
FIG. 6 is a timing chart showing an example of the operation in the second embodiment of the present invention, FIG. 7 is a diagram showing an example of a memory map of the buffer area of the
As shown in the memory map of FIG. 7, in this embodiment, data for all the rooms (in this example, for three rooms) is transferred as a unit regardless of the number of rooms in which the song data is actually reproduced. I have to. That is, even when
[0025]
FIG. 8 is a flowchart showing the flow of the DMA transfer process. In this embodiment, at the time of reproduction, regarding the activation of the
[0026]
FIG. 6 is a timing chart showing an example of the operation of the second embodiment.
As shown in this figure, when a reproduction request (for example, a reproduction request to room 1) occurs at time T1, data transfer is performed for all three FIFOs (63, 73, 83). The
[0027]
As described above, according to this embodiment, the read strobe signal (RDn) may be generated only when one of the FIFOs is full regardless of the number of reproduction rooms, and the write enable The signal (WEn) may be output by switching WE1 → WE2 → WE3 every time one block of data is transferred on the assumption that data of three blocks is always transferred. Therefore, the hardware configuration can be simplified. On the other hand, in the case of the first embodiment described above, it is necessary for the
[0028]
In each of the above-described embodiments, the reproduction of music data has been described. However, in the case of recording, the same configuration can be achieved only by changing the data flow direction.
For example, in FIG. 1, only a single
Alternatively, similarly to the second embodiment described above, data for a plurality of recording channels may be collectively transferred to the memory regardless of whether or not recording is actually performed.
As shown in FIG. 1, in a system where recording and playback coexist, a DMAC and a FIFO control unit used in common may be provided on the recording side and the playback side, respectively.
[0029]
Further, in each of the above-described embodiments, the data transfer from the
Furthermore, in each of the above-described embodiments, the song data stored in the
[0030]
【The invention's effect】
As described above, according to the recording / reproducing apparatus of the present invention, it is possible to control transfer of music data to a plurality of FIFOs by using a small number, typically one DMAC. It is possible to configure the recording / reproducing apparatus having a small number of parts.
Further, since the plurality of FIFOs are operated in synchronization, the timing at which the FIFO reaches TH is synchronized. Therefore, DMAC setting for a plurality of FIFOs can be performed by one CPU interrupt, and the load on the CPU can be reduced.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an embodiment of a recording / reproducing apparatus of the present invention.
FIG. 2 is a time chart for explaining the operation of the first embodiment of the recording / reproducing apparatus of the present invention;
FIG. 3 is a diagram showing a state in which song data is stored in the HDD.
FIG. 4 is a diagram illustrating a state in which music data is buffered in a
FIG. 5 is a flowchart for explaining a DMA transfer process in the first embodiment;
FIG. 6 is a time chart for explaining the operation of the second embodiment of the recording / reproducing apparatus of the present invention;
FIG. 7 is a diagram illustrating a state in which music data is buffered in the
FIG. 8 is a flowchart for explaining DMA transfer processing in the second embodiment;
FIG. 9 is a block diagram showing a configuration of a conventional recording / reproducing apparatus.
FIG. 10 is a diagram showing an example of a memory map of a buffer area in a conventional recording / reproducing apparatus.
FIG. 11 is a flowchart of DMA transfer processing in a conventional recording / reproducing apparatus.
FIG. 12 is a diagram for explaining a FIFO in a conventional recording / reproducing apparatus.
[Explanation of symbols]
1: CPU, 2: Memory, 3: Bus Arbiter, 4: ATAPI Interface Circuit, 5: Hard Disk Device, 6-9: Audio Output Unit, 10: Data Bus, 61: DMAC, 62: FIFO Control Unit, 63, 73 83, 93: FIFO buffer, 64, 74, 84, 94: DAC interface circuit, 65, 75, 85, 95: DAC, 11: audio input unit, 111: ADC, 112: ADC interface circuit, 113: FIFO buffer 114: FIFO control unit, 115: DMAC
Claims (4)
制御部と、
前記複数の再生チャンネルにそれぞれ対応して設けられ、互いに同期して読み出しが行われる複数のFIFOバッファと、
前記複数の再生チャンネルのうちのデータの再生が行われる再生チャンネルに対応するFIFOバッファに転送するデータを、再生が行われる再生チャンネルごとに所定量ずつ順次記憶するメモリと、
DMAコントローラと、
前記複数のFIFOバッファを制御するFIFO制御部とを有し、
前記制御部は、データの再生が行われる再生チャンネル数を判定して、データの再生が行われる再生チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を実行するものであり、
前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記メモリから前記データの再生が行われる再生チャンネルそれぞれに対する前記所定量ずつのデータをデータバスに順次読み出すものであり、
前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値を下回るときに前記DMAコントローラによるDMA転送を要求する処理と、前記DMAコントローラにより前記メモリから前記データバスに順次読み出されたデータの再生が行われる再生チャンネルそれぞれに対する前記所定量ずつのデータを順次それぞれ対応するFIFOバッファに書き込む処理を行うものである
ことを特徴とする記録再生装置。A recording / reproducing apparatus having a plurality of reproduction channels,
A control unit;
A plurality of FIFO buffers provided corresponding to the plurality of reproduction channels, respectively, and reading out in synchronization with each other ;
A memory for sequentially storing a predetermined amount of data to be transferred to a FIFO buffer corresponding to a reproduction channel in which data is reproduced among the plurality of reproduction channels, for each reproduction channel to be reproduced ;
A DMA controller;
A FIFO control unit that controls the plurality of FIFO buffers;
The controller is operable to determine the number of reproduction channels on which data is reproduced and set the data transfer amount corresponding to the number of reproduction channels on which data is reproduced to the DMA controller to operate the DMA controller. The process to set to the state is executed,
The DMA controller, in response to the DMA transfer request from the FIFO control unit, once the DMA transfer, data data of each said predetermined amount for each playback channel playback before Kide over data is performed from the memory Read sequentially to the bus ,
The FIFO controller is configured to request DMA transfer by the DMA controller when the amount of data stored in the FIFO buffer falls below a predetermined value, and to be sequentially read from the memory to the data bus by the DMA controller. A recording / reproducing apparatus for performing a process of sequentially writing the predetermined amount of data to each corresponding FIFO buffer for each reproduction channel on which data is reproduced.
制御部と、
前記複数の再生チャンネルにそれぞれ対応して設けられ、互いに同期して読み出しが行われる複数のFIFOバッファと、
前記複数のFIFOバッファに転送するデータを各再生チャンネル対応に所定量ずつ順次記憶するメモリであって、前記複数の再生チャンネルのうちのデータの再生が行われる再生チャンネルに対応するFIFOバッファに対しては再生するデータを記憶し、前記複数の再生チャンネルのうちのデータの再生が行われない再生チャンネルに対応するFIFOバッファに対してはヌルデータを記憶するメモリと、
DMAコントローラと、
前記複数のFIFOバッファを制御するFIFO制御部とを有し、
前記制御部は、前記複数の再生チャンネルのうちのデータの再生が行われる再生チャンネルの数にかかわらず、前記複数の再生チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を実行するものであり、
前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記メモリから前記複数の再生チャンネルそれぞれに対する前記所定量ずつのデータをデータバスに順次読み出すものであり、
前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値を下回るときに前記DMAコントローラによるDMA転送を要求する処理と、前記DMAコントローラにより前記メモリから前記データバスに順次読み出された前記複数の再生チャンネルそれぞれに対する前記所定量ずつのデータを順次それぞれ対応するFIFOバッファに書き込む処理を行うものである
ことを特徴とする記録再生装置。A recording / reproducing apparatus having a plurality of reproduction channels,
A control unit;
A plurality of FIFO buffers provided corresponding to the plurality of reproduction channels, respectively, and reading out in synchronization with each other ;
A memory for sequentially storing a predetermined amount of data to be transferred to the plurality of FIFO buffers in correspondence with each reproduction channel , the FIFO buffer corresponding to the reproduction channel in which data is reproduced from the plurality of reproduction channels. a memory for storing null data for the FIFO buffer storing data to be reproduced, corresponding to the reproduction channel reproduction of data of the plurality of reproduction channels is not performed,
A DMA controller;
A FIFO control unit that controls the plurality of FIFO buffers;
The control unit sets a data transfer amount corresponding to the number of the plurality of reproduction channels in the DMA controller regardless of the number of the reproduction channels in which data is reproduced from among the plurality of reproduction channels. The process to set the controller to an operable state is executed.
The DMA controller sequentially reads the predetermined amount of data for each of the plurality of reproduction channels from the memory to a data bus in one DMA transfer in response to a DMA transfer request from the FIFO control unit . ,
The FIFO controller is configured to request DMA transfer by the DMA controller when the amount of data stored in the FIFO buffer falls below a predetermined value, and to be sequentially read from the memory to the data bus by the DMA controller. The recording / reproducing apparatus, wherein the predetermined amount of data for each of the plurality of reproduction channels is sequentially written into a corresponding FIFO buffer.
制御部と、
前記複数の録音チャンネルにそれぞれ対応して設けられ、互いに同期して書き込みが行われる複数のFIFOバッファと、
前記複数の録音チャンネルのうちのデータの録音が行われる録音チャンネルに対応するFIFOバッファから転送されるデータを、録音が行われる録音チャンネルごとに所定量ずつ順次記憶するメモリと、
DMAコントローラと、
前記複数のFIFOバッファを制御するFIFO制御部とを有し、
前記制御部は、データの録音が行われる録音チャンネル数を判定して、データの録音が行われる録音チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を実行するものであり、
前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記FIFO制御部により前記複数の録音チャンネルのうちのデータの録音が行われる録音チャンネルに対応するFIFOバッファから所定量ずつデータバスに順次読み出されたデータを前記メモリに順次書き込むものであり、
前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値となると前記DMAコントローラによるDMA転送を要求する処理と、前記データの録音が行われる録音チャンネルに対応するFIFOバッファに蓄積されているデータを所定量ずつ前記データバスに順次読み出す処理を行うものである
ことを特徴とする記録再生装置。A recording / reproducing apparatus having a plurality of recording channels,
A control unit;
A plurality of FIFO buffers provided corresponding to each of the plurality of recording channels and written in synchronization with each other ;
A memory for sequentially storing a predetermined amount of data transferred from a FIFO buffer corresponding to a recording channel in which data is recorded among the plurality of recording channels, for each recording channel in which recording is performed;
A DMA controller;
A FIFO control unit that controls the plurality of FIFO buffers;
The controller is operable to determine the number of recording channels on which data is recorded and to set the data transfer amount corresponding to the number of recording channels on which data is recorded in the DMA controller to operate the DMA controller. The process to set to the state is executed,
In response to a DMA transfer request from the FIFO control unit , the DMA controller is a FIFO corresponding to a recording channel in which data recording of the plurality of recording channels is performed by the FIFO control unit in one DMA transfer. The data sequentially read from the buffer to the data bus by a predetermined amount is sequentially written to the memory,
When the amount of data stored in the FIFO buffer reaches a predetermined value, the FIFO control unit stores data in the FIFO buffer corresponding to the recording channel on which the DMA transfer is requested by the DMA controller and the data is recorded. The recording / reproducing apparatus is characterized in that it performs a process of sequentially reading out a predetermined amount of data to the data bus .
制御部と、
前記複数の録音チャンネルにそれぞれ対応して設けられ、互いに同期して書き込みが行われる複数のFIFOバッファと、
前記複数のFIFOバッファから転送されるデータを各録音チャンネルごとに所定量ずつ順次記憶するメモリと、
DMAコントローラと、
前記複数のFIFOバッファを制御するFIFO制御部とを有し、
前記制御部は、前記複数の録音チャンネルのうちのデータの録音が行われる録音チャンネルの数にかかわらず、前記複数の録音チャンネルの数に対応するデータ転送量を前記DMAコントローラに設定して前記DMAコントローラを動作可能な状態に設定する処理を行うものであり、
前記DMAコントローラは、前記FIFO制御部からのDMA転送要求に応じて、1回のDMA転送で、前記FIFO制御部により前記複数のFIFOバッファからそれぞれ所定量ずつデータバスに順次読み出されるデータを前記メモリに順次書き込むものであり、
前記FIFO制御部は、前記FIFOバッファに蓄積されているデータ量が所定値となると前記DMAコントローラによるDMA転送を要求する処理と、前記複数のFIFOバッファに蓄積されているデータを、当該FIFOバッファがデータの録音が行われる録音チャンネルに対応するFIFOバッファであるか否かにかかわらず、所定量ずつ前記データバスに順次読み出す処理を行うものである
ことを特徴とする記録再生装置。A recording / reproducing apparatus having a plurality of recording channels,
A control unit;
A plurality of FIFO buffers provided corresponding to each of the plurality of recording channels and written in synchronization with each other ;
A memory for sequentially storing a predetermined amount of data transferred from the plurality of FIFO buffers for each recording channel ;
A DMA controller;
A FIFO control unit that controls the plurality of FIFO buffers;
The controller sets a data transfer amount corresponding to the number of the plurality of recording channels in the DMA controller regardless of the number of recording channels in which the data is recorded among the plurality of recording channels. It performs processing to set the controller to an operable state,
The DMA controller, in response to the DMA transfer request from the FIFO control unit, a single DMA transfer, the data are sequentially read to the data bus by a predetermined amount each of the plurality of FIFO buffer to the by the FIFO control unit It writes sequentially to the memory,
The FIFO control unit includes a processing amount data stored in the FIFO buffer requests a DMA transfer by the DMA controller and the predetermined value, the data stored in the plurality of FIFO buffers, the FIFO buffer A recording / reproducing apparatus for performing a process of sequentially reading a predetermined amount to the data bus regardless of whether or not the FIFO buffer corresponds to a recording channel on which data is recorded.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003038011A JP4023332B2 (en) | 2003-02-17 | 2003-02-17 | Recording / playback device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2003038011A JP4023332B2 (en) | 2003-02-17 | 2003-02-17 | Recording / playback device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2004247008A JP2004247008A (en) | 2004-09-02 |
| JP4023332B2 true JP4023332B2 (en) | 2007-12-19 |
Family
ID=33022647
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2003038011A Expired - Fee Related JP4023332B2 (en) | 2003-02-17 | 2003-02-17 | Recording / playback device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4023332B2 (en) |
-
2003
- 2003-02-17 JP JP2003038011A patent/JP4023332B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2004247008A (en) | 2004-09-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5581530A (en) | Digital recorder for processing of parallel data stored in multiple tracks and using cross-fade processing | |
| US5974015A (en) | Digital recorder | |
| US6292878B1 (en) | Data recorder and method of access to data recorder | |
| JPH05173932A (en) | Data transfer device | |
| JP2000315186A (en) | Semiconductor device | |
| KR100653569B1 (en) | Data transmission device, data transmission system, and data transmission method using double buffering | |
| JP2007249938A (en) | USB host system, AV data reproducing apparatus and AV data recording apparatus | |
| JP3520032B2 (en) | Data processing device | |
| JP4023332B2 (en) | Recording / playback device | |
| JP5244909B2 (en) | Mass storage system with improved buffer capacity utilization | |
| EP0510639B1 (en) | Digital recorder | |
| US7861012B2 (en) | Data transmitting device and data transmitting method | |
| US6449668B1 (en) | AV data input/output device | |
| JP5037814B2 (en) | Memory control device and memory control method | |
| JP2004086439A (en) | Data recording / reproducing apparatus and data read / write control method for hard disk drive | |
| JP3569592B2 (en) | Codec | |
| JP4323476B2 (en) | Memory card controller, memory card drive device, and program | |
| JPH10172232A (en) | Information reproducing apparatus | |
| JP2005063358A (en) | Command supply control device and semiconductor device | |
| JPH11119922A (en) | Data storage system and redundant data write control method | |
| JP4379948B2 (en) | Disk drive interface device | |
| JP2004220695A (en) | Device and method for recording and reproducing | |
| CN115720314A (en) | Data processing method, storage device and digital power amplifier chip | |
| JP3081492B2 (en) | Memory read / write control circuit | |
| CN100480978C (en) | HDD control apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050927 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20070312 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070320 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070518 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20070619 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20070810 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20070911 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070924 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101012 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101012 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111012 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111012 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121012 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121012 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131012 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |