CN1831797A - Audio processor and its control method - Google Patents

Audio processor and its control method Download PDF

Info

Publication number
CN1831797A
CN1831797A CN 200510132223 CN200510132223A CN1831797A CN 1831797 A CN1831797 A CN 1831797A CN 200510132223 CN200510132223 CN 200510132223 CN 200510132223 A CN200510132223 A CN 200510132223A CN 1831797 A CN1831797 A CN 1831797A
Authority
CN
China
Prior art keywords
sheet
master controller
data
bunch
audio
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.)
Granted
Application number
CN 200510132223
Other languages
Chinese (zh)
Other versions
CN100378696C (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.)
Vimicro Corp
Original Assignee
Vimicro Corp
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 Vimicro Corp filed Critical Vimicro Corp
Priority to CNB2005101322234A priority Critical patent/CN100378696C/en
Publication of CN1831797A publication Critical patent/CN1831797A/en
Application granted granted Critical
Publication of CN100378696C publication Critical patent/CN100378696C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

An audio processor consists of bus interface module of out - chip main controller, in - chip main controller, communication module of processor, controller interface of storing media, accelerator of file distribution list, temporary storage of logic address, access controller and its bus of direct storage, music displayer, D / A converter, A / D converter, digital mixer of sound processor of sound effect, audio compression module, buffer area of out - chip main controller, USB interface, I 2S interface and either - or module.

Description

Audio process and control method thereof
Technical field
The present invention relates to a kind of audio process and control method thereof, relate in particular to a kind of be applicable to multiple audio format, have multi-functional audio process and a control method thereof.
Background technology
Present audio process can support the music player of format to realize the music playback of the voice data of corresponding form by certain greatly.Although popular audio format comprises that substantially MP3 (Moving Picture Experts Group Audio Layer III), WMA (Windows MediaAudio), MIDI (Musical Instrument Digital Interface), WAVE etc. are multiple at present, but if on an audio process, support the playback of numerous music formats, then also have any problem particularly then more difficult realization on mobile hand-held device.
Existing audio process, it generally is order by the outer master controller of sheet, to be stored in sheet outer controller system, or the voice data of certain specific format on the sheet outer storage medium is delivered in the player of the corresponding form in the audio process and is play, but this broadcast mode, the data volume that exchanges between sheet outer controller and the audio process is very big, causes the outer very big burden of master controller of sheet, and overall performance is not high.
In addition, existing audio process is not enough to the support of various interface and various music formats, if realize that the music of different-format is play simultaneously, carry out business such as recording and usb host and sheet outdoor main unit controller access chip external memory the time, the support of powerful CPU and the buffer zone that many bigger than the present buffer zone of using always must to be arranged then.
Therefore, at the outer master controller visit of music, recording, usb host and the sheet of realizing multiple form sheet outer storage medium, and usb host is when comprehensive function such as communicating by letter with the outer master controller of sheet, and existing audio process is difficult to support.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of multi-functional audio process, realization is to the broadcast of the different audio format files of multiple separate sources, the support of recording, simultaneously, the data that also can satisfy between the outer master controller of sheet, usb host, the sheet outer storage medium are carried out non-interfering exchange simultaneously.
The invention provides a kind of audio process, outside sheet, carry out Audio Processing under the control of master controller system, comprising:
The outer master controller bus interface module of sheet is used to described outer master controller that the interface of controlling bus with the sheet that is positioned at sheet outward is provided;
Master controller system in the sheet comprises: master controller data buffer in master controller, the sheet in the sheet, be connected in the sheet inner control bus controller of sheet inner control bus, be used for the corresponding Audio Processing of command execution according to the outer master controller of sheet;
The processor communication module is used to provide the data communication between interior master controller system of sheet and the outer master controller system of sheet;
The memory medium controller interface is used to provide the visit to the sheet outer storage medium that stores voice data;
The file allocation table accelerator, be used for order according to master controller in the sheet, by described memory medium controller interface, the file allocation table that is stored in the data file on the sheet outer storage medium is conducted interviews, with bunch chain structure of specified data file in storage medium;
The logical address working storage is used for the logical address of the temporary data file that is read by the file allocation table accelerator;
Direct store access controller and bus thereof, be used for setting up direct memory access passage under the control of master controller in sheet, according to determined bunch of chain structure information of file allocation table accelerator, by described memory medium controller interface, control is to the exchanges data of sheet outer storage medium;
Music player is used for outside described in the master controller and sheet according to the voice data that reads via direct store access controller, providing the music playback of at least a audio format under the control of master controller;
Digital to analog converter is used for the digital audio and video signals of playback is converted to simulating signal output.
Described audio process may further include the outer interrupt request bus of the sheet that is positioned at sheet, links to each other by the outer master controller of described outer master controller bus interface module and sheet;
Described interior master controller system also comprises interrupt request controller in the sheet that is connected in interrupt request bus in the sheet.
Wherein, described music player can comprise: MIDI player, MP3 player, WMA player, Wave player, or the combination of described all types of players.
Wherein, described direct store access controller can be serving each passage by the time-multiplexed mode of piece, and according to the priority bandwidth on demand of business.
Wherein, described audio process can also comprise:
Analog to digital converter is used for simulated audio signal is converted to the digital signal input.
Wherein, described audio process can also comprise:
Digital mixer is used for digital mode the music of playback being mixed with signal after the digitizing;
Sound effect processor is used for sound signal is carried out special effect processing;
The audio compression module, the sound signal that is used for being input to this module is converted to specific compressed format.
Wherein, described audio process can also comprise:
The outer master controller buffer zone of sheet is used for the outer master controller of interim buffer memory sheet and is written to the sheet outer storage medium, or the data of reading from the sheet outer storage medium.
Wherein, described audio process can also comprise:
USB interface comprises the data buffer, is used to provide the exchanges data with usb host, thereby control by master controller in the sheet, make usb host and sheet outer storage medium swap data, also can make the outer master controller swap data of usb host and sheet by the control of the outer master controller of sheet.
Wherein, described audio process can also comprise:
The I2S interface is used to provide the audio input signal that meets the I2S agreement;
Alternative module, the input source that is used for digital-to-analog conversion are to come from the I2S interface, still come from the sheet.
Also a kind of method of utilizing described audio process to carry out music of the present invention is used for playing the music data that is stored in the sheet outer storage medium, comprises the steps:
(1) the outer master controller of sheet sends a message that requires playing back music to master controller in the sheet, comprises the form and the positional information that is stored in the sheet outer storage medium of audio data file in this message;
(2) positional information in the master controller basis message that receives in the sheet, send a file allocation table reading order to the file allocation table accelerator, comprise in this order: starting cluster chain structure information, bunch chain structure are stored in first address and the size in the logical address working storage;
(3) the file allocation table accelerator is according to described file allocation table reading order, read bunch chain structure of the audio data file in the storage medium, the size of sense data is within the magnitude range of described logical address working storage, and bunch chain structure information stores that will read appointed positions in the logical address working storage;
(4) the interior master controller of sheet is determined bunch chain information parameter of audio data file according to described bunch chain structure of reading;
(5) bunch chain information parameter of the audio data file that the master controller basis is determined in the sheet, send a file reading order to described direct store access controller, requirement will be stored in the storage medium reads in the buffer zone of master controller system in the sheet with the corresponding voice data of bunch chain structure that read;
(6) directly store access controller is set up a direct memory access passage according to the order that receives, with reference to bunch chain structure information in the logical address working storage, calculate the logical address and the length of the voice data that will read, send to the memory medium controller interface, voice data is delivered in the sheet in the master controller system buffer;
(7) the master controller system converts voice data in the message buffer of music player that message sends to corresponding form in the sheet, by this player playback of music, and converts simulating signal output to through digital to analog converter.
Wherein, can further include following steps:
(8) when the data consumes in the music player message buffer arrives certain threshold value, request master controller request in sheet sends new message;
(9) the master controller system asks according to this in the sheet, the position of the new data that judge to need continue sends whether still in the logical address working storage bunch chain structure correspondence bunch in, if then begin to re-execute from described step (5), otherwise, begin to carry out from described step (2).
Wherein, after described step (6), further comprise the steps:
Analyze the play parameter of this audio data format correspondence by master controller in the sheet, and this parameter information is sent to the music player of corresponding form by message.
Wherein, described music player comprises: MIDI player, MP3 player, WMA player, Wave player, or the combination of described all types of players.
The present invention also provides a kind of method of utilizing described audio process to carry out music, is used for playing the music data that is stored in the outer master controller of sheet, comprises the steps:
The sheet outer controller converts voice data in the message buffer of music player that message is sent to corresponding form to, by this player playback of music, and converts simulating signal output to through digital to analog converter;
When the data consumes in the player message buffer arrives certain threshold value, produce interruption master controller request outside sheet and send new message to the player playback, until finishing playing.
The present invention also provides a kind of and utilizes described audio process to carry out the method that music is recorded, and comprises the steps:
The outer master controller of sheet sends an audio recording message and requires recording to master controller in the sheet;
Master controller sends a blank bunch order of search to described file allocation table accelerator according to the message that receives in the sheet, and this order comprises: starting cluster chain structure information, bunch chain structure are stored in first address and the size in the logical address working storage;
The file allocation table accelerator is sought blank bunch according to this order in storage medium, and bunch chain structure information stores of the blank that will search out bunch appointed positions in the logical address working storage;
Master controller is determined blank number of clusters amount according to described blank of reading a bunch bunch chain structure in the sheet;
Master controller sends an order and sets up a direct memory access passage to direct store access controller in the sheet,, with reference to bunch bunch chain information of the blank in the logical address working storage music of player playback or the voice data of importing through analog to digital converter are write in the storage medium by direct store access controller.
Wherein, said method can also comprise the steps:
Master controller sends the file allocation table update command and gives the file allocation table accelerator in the sheet, with run out of bunch a bunch chain structure be updated in the storage medium corresponding file and distribute the list area, again send the blank bunch order of search to the file allocation table accelerator then, and control is continued into data to a blank bunch relaying.
The present invention also provides the method for the outer master controller access storage media of a kind of audio player control strip,, comprise the steps:
The outer master controller of sheet sends a file access message informing to master controller in the sheet, and this message comprises reads file command or written document order, and the positional information of file;
Master controller is read in the logical address working storage according to bunch chain structure of this information order file allocation table accelerator with this document in the sheet;
It is that the outer master controller access storage media of sheet is set up a direct memory access passage that the interior master controller of sheet initiates a message to direct store access controller;
If read file, the data on the storage medium are read from storage medium with reference to a bunch chain structure by direct store access controller, and deliver in the outer master controller buffer zone of sheet, are read away by the outer master controller of sheet then;
If written document, the outer master controller of sheet writes data in the outer master controller buffer zone of sheet, by direct store access controller reference bunch chain structure, data is delivered in the storage medium then.
The present invention also provides a kind of method of audio player control usb host access storage media, comprises the steps:
Usb host sends a message to master controller in the sheet by described USB interface, and this message comprises reads file command or written document order, and the direct store access controller bunch chain information of data in storage medium that promptly will transmit;
Master controller is analyzed this order in the sheet, and a bunch chain information is write in the logical address working storage;
Master controller initiates a message to direct store access controller in the sheet, requires to set up a direct memory access passage for the usb host access storage media;
If read file, the data on the storage medium are read from storage medium with reference to a bunch chain structure by direct store access controller, and deliver in the USB interface buffer zone, data are read away from interface buffer by usb host then;
If write, usb host writes data in the interface buffer, by direct store access controller reference bunch chain structure, data is delivered in the storage medium then.
The present invention also provides the method for a kind of audio player control usb host and the outer master controller swap data of sheet, comprises the steps:
If the exchanges data direction is an outer master controller from the usb host to the sheet, then usb host is delivered to data in the USB interface buffer zone earlier, and the outer master controller of USB interface notice sheet is read away data then;
If the exchanges data direction is that master controller is to usb host outside sheet, then the outer master controller of sheet is delivered to data in the USB interface buffer zone earlier, and usb host is read away data from USB interface then.
The present invention is owing to used master controller in the sheet, reduced the data volume that exchanges between outer master controller of sheet and the audio process thus, reduced the burden of the outer master controller of sheet, improved overall performance, and, used the file allocation table accelerator to improve access speed to file allocation table, reduced the burden of master controller in the sheet, and by using direct store access controller to serve each passage in time-multiplexed mode, make the music player of various forms in the sheet, USB interface and audio compression unit be access storage media at any time, and further realized the support different-format, the music file of separate sources is play, recording, the outer master controller visit of usb host and sheet sheet outer storage medium, and usb host comprehensive function such as communicate by letter with the outer master controller of sheet.
Description of drawings
Fig. 1 is one embodiment of the present of invention structural representation;
Fig. 2 is a DMAC controller architecture synoptic diagram according to an embodiment of the invention;
Fig. 3 is a FAT accelerator fundamental diagram according to an embodiment of the invention;
Fig. 4 carries out the accelerated method process flow diagram of read access to file allocation table for FAT accelerator according to an embodiment of the invention;
Fig. 5 searches for the accelerated method process flow diagram of blank bunch visit to file allocation table for FAT accelerator according to an embodiment of the invention;
Fig. 6 carries out the accelerated method process flow diagram of write-access to file allocation table for FAT accelerator according to an embodiment of the invention;
Fig. 7 deletes the accelerated method process flow diagram of visit for FAT accelerator according to an embodiment of the invention to file allocation table;
Fig. 8 is the digital audio file playing flow figure of the according to an embodiment of the invention direct control store of outer master controller intrasystem midi format of master controller outside sheet;
Fig. 9 is the digital audio file playing flow figure of the according to an embodiment of the invention direct control store of outer master controller intrasystem non-midi format of master controller outside sheet;
Figure 10 is the digital audio file playing flow figure of the midi format of the according to an embodiment of the invention direct control store of interior master controller in the sheet outer storage medium;
Figure 11 is the digital audio file playing flow figure of the non-midi format of the according to an embodiment of the invention direct control store of interior master controller in the sheet outer storage medium;
Figure 12 is a recording control method process flow diagram according to an embodiment of the invention;
Figure 13 is the control method process flow diagram of according to an embodiment of the invention outer master controller visit sheet outer storage medium;
Figure 14 is the control method process flow diagram of usb host visit sheet outer storage medium according to an embodiment of the invention;
Figure 15 is the method flow diagram of the outer master controller of usb host visit sheet according to an embodiment of the invention.
Embodiment
Now in conjunction with the accompanying drawings structure of the present invention and principle of work are described further:
Shown in Figure of description 1, one embodiment of the present of invention structural representation.Wherein, the outer master controller system of sheet comprises the outer master controller 4 of sheet, the outer master controller system bus interface 401 of sheet, the outer master controller system bus 402 of sheet, the outer master controller system interrupt request bus 403 of sheet, the outer master controller buffer zone 16 of sheet and data storage medium (not shown); Described outer master controller 4 is used to control inner each the module work of the present invention; Described outer master controller system bus interface 401 be used to provide the outer master controller 4 of sheet and the outer master controller system bus 402 of sheet and and the outer master controller system interrupt request bus 403 of sheet between interface; Described outer master controller buffer zone 16 is used for the data that the outer master controller 4 of interim buffer memory sheet is written to sheet outer storage medium 5 or reads from sheet outer storage medium 5; Described data storage medium is used to store Various types of data;
Master controller system 20 in the sheet, comprise: master controller (not shown), the interior master controller data buffer of sheet (not shown), the interior interrupt bus controller (not shown) of sheet that is connected in sheet internal controller interrupt request bus 202 and the sheet inner control bus controller (not shown) that is connected in sheet inner control bus 201 in the sheet are used for the corresponding Audio Processing of command execution according to the outer master controller of sheet.
Processor communication module 7, be used to provide the passage of the interior master controller system of sheet and outer master controller systems exchange data of sheet and order, make in the sheet the outer master controller system bus 402 of master controller system bus 201 and sheet realize that data and order transmit by this module, and this module can be respectively to sheet outside master controller system interrupt request bus 202 transmission interrupt request in master controller system interrupt request bus 403 and the sheet;
Analog to digital converter 8, being used for being input to sheet in the present invention simulates sound signal outward and converts digital audio and video signals to, its signal output part links to each other with digital mixer 13 input ends, simultaneously this analog to digital converter 8 also with the outer master controller system bus 402 of sheet, sheet in master controller system bus 201 and the outer master controller interrupt request bus 403 of sheet, the sheet master controller interrupt request bus 202 link to each other;
Digital to analog converter 9 is used for converting the digital audio and video signals in the present invention to simulated audio signal 2 and exports to outside the sheet, and its input termination alternative module 10 links to each other with the outer master controller system bus 402 of sheet simultaneously;
Alternative module 10, the digital audio and video signals that is used to select to export to digital to analog converter derives from I2S interface 11 and still comes from other module in the present invention, as derive from sound effect processor 12, or derive from other digital audio and video signals that the outer master controller system bus 402 of sheet transmits that passes through in the sheet;
I2S interface module 11 is used to receive the sound signal that satisfies the I2S agreement 3 that comes from outside of the present invention, and exports signal to alternative module 10;
MIDI player 14, inside comprises processing unit and data buffer, this module links to each other with master controller system bus 201 in outer master controller system bus 402 of sheet and the sheet, and this module can be respectively outside sheet in master controller system interrupt request bus 403 and the sheet master controller system interrupt request bus 202 send interrupt request, its output terminal inserts digital mixer 13, is used to play the digital audio file of midi format;
Non-MIDI player, inside comprises processing unit and data buffer, this module links to each other with master controller system bus 201 in outer master controller system bus 402 of sheet and the sheet, and this module can be respectively outside sheet in master controller system interrupt request bus 403 and the sheet master controller system interrupt request bus 202 send interrupt request, its output terminal inserts digital mixer 13, is used to play the digital audio file of non-midi format;
Described non-MIDI player comprises MP3 player 21 or WMA player 22 or WAVE player 23 or wherein several combination in any;
MP3 player 21, inside comprises processing unit and data buffer, this module links to each other with master controller system bus 201 in outer master controller system bus 402 of sheet and the sheet, and this module can be respectively outside sheet in master controller system interrupt request bus 403 and the sheet master controller system interrupt request bus 202 send interrupt request, its output terminal inserts digital mixer 13, is used to play the digital audio file of MP3 format;
WMA player 22, inside comprises processing unit and data buffer, this module links to each other with master controller system bus 201 in outer master controller system bus 402 of sheet and the sheet, and this module can be respectively outside sheet in master controller system interrupt request bus 403 and the sheet master controller system interrupt request bus 202 send interrupt request, its output terminal inserts digital mixer 13, is used to play the digital audio file of WM form;
WAVE player 23, inside comprises processing unit and data buffer, this module links to each other with master controller system bus 201 in outer master controller system bus 402 of sheet and the sheet, and this module can be respectively outside sheet in master controller system interrupt request bus 403 and the sheet master controller system interrupt request bus 202 send interrupt request, its output terminal inserts digital mixer 13, is used to play the digital audio file of WAVE form;
Digital mixer 13, be used for the digital audio and video signals of analog to digital converter 8 outputs is mixed with the music signal of above-mentioned each audio player plays, and can realize audio mixing between the digital audio and video signals of different playing modules output, its result may be output to audio compression module 15, also may be output to sound effect processor 12, this module also links to each other with the outer master controller system bus 402 of sheet simultaneously;
Sound effect processor 12 is used for the sound signal that comes from digital mixer 13 is carried out special effect processing, makes the sound of final broadcast have special effect, as the effect of jazz, allusion, heavy metal or user oneself definition; The described audio signal output that has special-effect after treatment is to audio compression module 15 or alternative module 10, and this module also links to each other with the outer master controller system bus 402 of sheet simultaneously;
Audio compression module 15, the sound signal that is used for coming from sound effect processor 12 and digital mixer 13 converts the form of being convenient to store to, as MP3, ADPCM etc., this module also links to each other with master controller system bus 201 in the sheet with the outer master controller system bus 402 of sheet simultaneously;
Usb interface module 6011, comprise the USB interface buffer zone, be used to provide the interface of usb host and swap data of the present invention, simultaneously this module also with dma bus 191, the outer master controller system bus 402 of sheet, the outer master controller system interrupt request bus 403 of sheet, sheet in the master controller system bus 201, sheet master controller system interrupt request bus 202 link to each other;
Memory medium controller interface 501, be used to provide the interface of outside various types of storage media of the present invention and swap data of the present invention, simultaneously this module also with sheet in the master controller system bus 201, sheet master controller system interrupt request bus 202 link to each other, exterior storage medium can be hard disk, micro harddisk, safe digital card, miniature multimedia card and various flash memories etc.;
Logical address working storage 18, be used for keeping in the logical address of the data file that reads by file allocation table accelerator 17, i.e. bunch chain structure information, they can be by master controller system 20, FAT accelerator 17,19 visits of DMAC controller in the sheet, and described bunch of chain structure write by master controller system 20 in FAT accelerator 17 or the sheet;
DMAC controller 19, be direct memory access path controller (Direct Memory AccessChannel, hereinafter to be referred as DMAC), be meant under the situation that does not have primary processor to intervene passage at the equipment room swap data, be used to make direct and sheet outer storage medium 5 swap datas of inner module in the present invention, and share dma bus 191 by time-multiplexed mode;
Described DMAC controller 19 both can use existing DMAC controller, also can use a kind of DMAC controller with right of priority allocated bandwidth strategy, with the shared storage readwrite bandwidth, to the demanding business module of those real-times, as music player, the priority allocation bandwidth; To the less demanding business module of those real-times,, distribute remaining bandwidth as usb interface module.
As shown in Figure 2, the DMAC controller 19 of above-mentioned band right of priority allocated bandwidth strategy can comprise that main control unit 1908, interruptable controller 1906, registers group 1912, category-A type node interface 1902, category-B type node interface 1900, cutting unit 1910, logical address working storage interface 1904 and non-volatile type memorizer interface 1914 constitute.
Wherein, corresponding the above embodiment of the present invention, the FAT accelerator belongs to the category-A node, miscellaneous equipment, for example various audio players all belong to the category-B node.If node need carry out the DMA transmission, this node proposes the DMA request and gives primary processor or DMAC controller.
Wherein, the logical address working storage of logical address working storage interface 1904 correspondences can be the logical address working storage 18 described in the above embodiment of the present invention.
Wherein, the major function of interruptable controller 1906 is to determine that according to the transmission interrupt request and the interrupt response strategy of the band priority of passage proposition which passage is serviced, and when decision proposes interrupt request to master controller.Its interrupt strategy is:
1) different priorities is asked high priority service earlier simultaneously;
2) it is multiplexing that the interrupt request of same priority adopts the method for poll, the method of poll is divided into two kinds, a kind of is the DMA channel transfer that each piece end of transmission (EOT) begins to serve next same priority, after another kind is the task termination of DMA channel transfer, serves the DMA channel transfer of next same priority.
3) service of low priority is by the service disruption of high priority.
Wherein each priority of interrupt is disposed in this DMA transmission initialization the time by primary processor.Interrupt source can come in the hard interruption of node, also can come in the soft interruption of primary processor.Whether the interruption of each DMA allows to respond should each enable signal that interrupts also be to dispose when DMA transmission initialization both.
The major function of cutting unit 1910 is that long DMA transmission is divided into a plurality of short DMA transmission.The principle of cutting apart is that address space must continuously when visiting non-volatile type memorizer at every turn, piece alignment and maximum piece number be restricted for non-volatile type memory interface.
Cut apart by following conditional decision: the logical address of the piece number that the maximum of the length that this DMA passage need transmit, each transmission allows, the each DMA transmission after cutting apart must be continuously at every turn.The maximum number of transport blocks that allows of each DMA passage can dispose when this DMA transmission initialization.
DMA transmission dividing method for the category-A node is as follows:
The piece number that the data of transmission stride across if the category-A node claims allows number of transport blocks greater than maximum, then current DMA transmission length is made as the maximum number of transport blocks that allows.
The piece number that the data of transmission stride across if the category-A node claims is not more than the maximum number of transport blocks that allows, and then current DMA transmission length is made as the piece number that data stride across.
DMA transmission dividing method for the category-B node is as follows:
Master controller provides the side-play amount of the first LBA (Logical Block Addressing) of the address of transmission length, logical address working storage of the current DMA transmission of this DMA passage and current DMA transmission with respect to the content of the address of this address register.
Obtain two parameters after this is cut apart, one is the first LBA (Logical Block Addressing) and the number of transport blocks of current DMA transmission.
First LBA (Logical Block Addressing) obtains by following principle:
1) respective items (" item " is meant and stores continuous section in bunch chain structure) is read from address register according to the address of address register, this comprises first LBA (Logical Block Addressing) and data storage continuous length.
2) if the continuous length of data storage greater than side-play amount, then first LBA (Logical Block Addressing) is exactly the address of the logical block at first address place.If the continuous length of data storage then deducts continuous length with the address offset amount less than side-play amount, the address register address is jumped to the next item down and is repeated.
Wherein, the notion of side-play amount described in the embodiment of the invention is because in the application of reality, plays as MP3, and may need to begin to another from some bytes is the end of address (EOA) of unit with the byte.Therefore, need to introduce the side-play amount of first bunch and the parameter of transmission length sometimes.For example the data in the address indication buffer zone are expressed as initial sector: 2, and finishing the sector is 3, if according to the calculating of 512 bytes/sector, be exactly 1024 bytes so.But the 500-700 byte of required data between 2 and 3 sectors so just need be set to 500 first bunch side-play amount, and transmission length is 200, obtains the data between this, but not the total data of sector 2 and 3.
After finding first LBA (Logical Block Addressing), determine number of transport blocks by following principle:
1) if DMA requires piece number that the data of transmission stride across greater than maximum transmitted piece number, and the address of maximum transmitted piece is in the represented address space of currentitem, and then number of transport blocks is exactly the maximum transmitted piece number of current DMA.
2) if DMA requires piece number that the data of transmission stride across greater than maximum transmitted piece number, and the address of maximum transmitted piece exceeds in the represented address space of currentitem, and then number of transport blocks is exactly the piece number that piece maximum in the represented address space of first logical block currentitem is crossed over.
3) if the piece number that DMA requires the data of transmission to stride across is not more than maximum transmitted piece number, and the address of maximum transmitted piece is in the represented address space of currentitem, and then number of transport blocks is exactly the piece number that current DMA requires the data of transmission to stride across.
4) if the piece number that DMA requires the data of transmission to stride across is not more than maximum transmitted piece number, and the address of maximum transmitted piece exceeds in the represented address space of currentitem, and then number of transport blocks is exactly the piece number that piece maximum in the represented address space of first logical block currentitem is crossed over.
The major function of registers group 1912 provides a software interface of communicating by letter with primary processor.Registers group can be divided into command register, status register, parameter register.The major function of command register is that the order that processor sends is lived in storage.Status register mainly be the storage some state variables, primary processor can be known the DMA state of a control by reading these variablees.Parameter register is mainly stored some parameters of DMA passage, as start address, first byte side-play amount, transmission length and transmission direction etc. in the address register.
The major function of logical address working storage interface 1904 is bunch chain structures of reading this DMA passage under the control of cutting unit 1910 from the logical address working storage.
The major function of category-A node interface 1902 is agreements of processing and category-A inter-node communication, comprises the DMA channel request, logical address and the transmission length that receive a certain node.Under the control of master controller, provide the serviced signal of this DMA passage, and read or write data to this equipment from this equipment.
The major function of category-B node interface 1900 is agreements of handling with category-B inter-node communication, comprises the DMA channel request that receives a certain node, provides the serviced signal of this DMA passage under the control of master controller, and reads or write data to this equipment from this equipment.
The major function of non-volatile type memorizer interface 1914 is to handle the agreement that communicates with non-volatile type memorizer, comprises to non-volatile type memorizer and sends the request of reading or writing, and read or write data to the non-volatile type memorizer interface from non-volatile type memorizer.
The major function of main control unit 1908 is control and coordinates each module work, and produces interruption or indicator signal.
Wherein, the state machine of main control unit 1908 is made of IDLE, LOAD, Pr_RD, RD, RD_J, RD_WT, RD_E, Pr_WR, WR1, WR2, WR_J, WR_WT and WR_E state as shown in Figure 3:
IDLE: this state representation is in idle condition.When receiving an interruption, carry out the LOAD state from interruptable controller.
LOAD:,, in the process of cutting apart, may revise side-play amount to cutting apart to DMA at the LOAD state.If read, NextState is Pr_RD, if write, then next state is Pr_WR.
Pr_RD: propose read request to the non-volatile type memorizer interface.When the non-volatile type memorizer interface provides the read request response signal is to enter RD.
RD: main function is transmitted data from control non-volatile type memorizer interface to the node device interface.But this piece end of transmission (EOT) enters RD_J.
RD_J: major function is to judge whether next current DMA request finishes.If then enter RD_E, otherwise enter RD_WT.
RD_WT: major function is to wait for non-volatile type memorizer interface data useful signal and node device buffer zone useful signal.When this two each equipment is effective simultaneously, enter RD.
RD_E: finish some end operations, as the update mode register.
Pr_WR: propose write request to the non-volatile type memorizer interface.When the non-volatile type memorizer interface provides the write request response signal is to enter WR1.
WR1: the data that main function control non-volatile type memorizer interface receiving node equipment interface transmission comes.But this piece end of transmission (EOT) enters WR2.
WR2: the data that the non-volatile type memorizer interface will rigidly connect receipts when this state write storage medium, when data have been write, carry out WR_J.
WR_J: major function is to judge whether next current DMA request finishes.If then enter WR_E, otherwise enter WR_WT.
WR_WT: major function is to wait for non-volatile type memorizer interface buffer useful signal and node device data useful signal.When this two each equipment is effective simultaneously, enter WR1.
WR_E: finish some end operations, as the update mode register
Wherein, the sequential about interrupt response is:
To the interruption of higher priority, need carry out immediately, when state machine was in any one state of read operation, then NextState was RD_E, when state machine was in any one state of write operation, then NextState was WR_E.
To with the interruption of same priority, need press the piece time-division during shared bus bandwidth, when state machine is in read operation, when RD_J, NextState is RD_E, when state machine is in write operation, when WR_J, NextState is WR_E.
For the interruption of low priority, can only arbitration under the IDLE state.
FAT accelerator 17, be file allocation table (file allocation table, hereinafter to be referred as FAT) accelerator, the order that is used for sending according to master controller system 20 in the sheet is operated the FAT table of sheet outer storage medium 5, comprise bunch chain structure of seeking a file, and be stored to logical address working storage 18, and seek some skies bunch, and will bunch be configured to a bunch of chain structure and store in the logical address working storage 18; So-called bunch, it is one section continuous physically storage space, it also is storage unit basic in the FAT file system, each file is formed by one or more bunches, these bunches are continuous or discontinuous physically, FAT is a kind of lists of links, points to the other side in the lists of links between the relative recording mutually.
Described FAT accelerator 17, can use the existing accelerator that is used to read the FAT table, also can use a kind of accelerator as shown in Figure 3 to read the FAT table, comprise that main control module 301, FAT table sector computing module 302, FAT table sector module for reading and writing 303, bunch chain structure buffer zone 304, buffer data module for reading and writing 305 and result preserve module 306;
Described main control module 301 is used for obtaining bunch call number that needs visit according to the access type of file allocation table, and and then finish accessing operation according to described bunch of call number control;
Described FAT table sector computing module 302 is used for bunch call number obtained according to described main control module 301, calculates the FAT table sector number that comprises the unit corresponding with this bunch in the FAT table;
Described FAT table sector module for reading and writing 303, be used for showing sector number according to the FAT that described FAT table sector computing module 302 calculates, from sheet outer storage medium 5, read the sector data of appointment, and it is saved in the buffer zone, or sector data in the buffer zone is write in the sector of appointment;
Bunch chain structure buffer zone 304 links to each other with described FAT table sector data module for reading and writing 303, and be used for storing reading maybe needs the sector data that writes temporarily;
Described buffer data module for reading and writing 305 is used for reading sector data successively from described bunch of chain structure buffer zone 304, perhaps writes sector data successively to described bunch of chain structure buffer zone 304;
Described result preserves module 306, is used for the action type according to described main control module 301 execution, and preservation is read from described buffer data module for reading and writing 305, perhaps needs the data that write to described buffer data module for reading and writing 305;
In conjunction with embodiments of the invention, can preserve module 306 by described result data are write in the logical address working storage 18.
Described main control module 301 can only comprise reading submodule 3011 again, or only comprises newly-built submodule 3012 or only comprise modification submodule 3013, or only comprises deletion submodule 3014, or the combination in any of above-mentioned these submodules;
Described reading submodule 3011 is used for according to read access operations, obtains bunch call number that needs visit, and then control is to the read access of file allocation table;
Described newly-built submodule 3012 is used for according to newly-built accessing operation, obtains bunch call number that needs visit, and then control is to the newly-built visit of file allocation table;
Described modification submodule 3013 be used for obtaining bunch call number that needs visit according to revising accessing operation, and then control is to the modification visit of file allocation table;
Described deletion submodule 3014 be used for obtaining bunch call number that needs visit according to the deletion accessing operation, and then control is to the deletion visit of file allocation table.
When utilizing above-mentioned FAT accelerator that file allocation table is carried out read access, as shown in Figure 4, comprise that step is as follows:
Main control module 301 master controller in the sheet obtains first bunch call number that need read, and sends it to FAT table sector computing module 302 (steps 601);
Described FAT table sector computing module 302 calculates the FAT table sector number that comprises the FAT table unit corresponding with this bunch according to described bunch of call number, and sends it to FAT table sector module for reading and writing 303 (steps 602);
Described FAT table sector module for reading and writing 303 reads the record of designated sector, and sends it to a bunch chain structure buffer zone 304 (step 603) according to described FAT table sector number the storage media 5 outside depositing sheet;
Buffer data module for reading and writing 305 is read the data content (step 604) of every bunch of correspondence successively from described bunch of chain structure buffer zone 304;
Described main control module 301 is judged the data that form bunch chain relation with described first bunch call number according to this data content of reading, and it is preserved module 306 through the result preserve (step 605);
Described main control module 301 as next bunch call number, repeats above-mentioned steps, until judging this bunch end of chain (EOC) (step 606) with the data of described that judge and first bunch formation bunch chain relation.
When utilizing above-mentioned FAT accelerator that file allocation table is searched for blank bunch of visit, as shown in Figure 5, comprise that step is as follows:
Main control module 301 master controller in the sheet obtains first bunch call number that need read, or determines described first bunch call number at random, and sends it to FAT table sector computing module 302 (steps 701);
Described FAT table sector computing module 302 calculates the FAT table sector number that comprises the FAT table unit corresponding with this bunch according to described bunch of call number, and sends it to FAT table sector module for reading and writing 303 (steps 702);
Described FAT table sector module for reading and writing 303 reads the record of designated sector, and sends it to a bunch chain structure buffer zone 304 (step 703) according to described FAT table sector number from sheet outer storage medium 5;
Buffer data module for reading and writing 305 is read the data content (step 704) of every bunch of correspondence successively from described bunch of chain structure buffer zone 304;
Described main control module 301 is according to this data content of reading, and judges whether this correspondence bunch is blank bunch, if blank bunch, then these data are preserved module 306 through the result and preserve (step 705);
Described main control module 301 increases progressively described first bunch call number at certain intervals, as next bunch call number, repeats above-mentioned steps, reaches requirement (step 706) until a blank bunch number of preserving.
When utilizing above-mentioned FAT accelerator that file allocation table is carried out write-access, as shown in Figure 6, comprise that step is as follows:
Main control module 301 obtains first bunch call number that will write according to bunch chain structure relation that will write, and sends it to FAT table sector computing module 302 and buffer data module for reading and writing 305 (step 801);
Described FAT table sector computing module 302 calculates the FAT table sector number that comprises the FAT table unit corresponding with this bunch according to described bunch of call number, and sends it to FAT table sector module for reading and writing 303 (steps 802);
Described FAT table sector module for reading and writing 303 reads the designated sector record, and sends it to a bunch chain structure buffer zone 304 (step 803) according to given sector number from sheet outer storage medium 5;
Described buffer data module for reading and writing 305 according to the sector data that receives to the data in the described bunch of chain structure buffer zone 304 make amendment (step 804);
After described bunch of chain structure buffer zone 304 interior data processes are revised,, write back described outer storage medium 5 (step 805) through described FAT table sector module for reading and writing 303;
Described main control module 301 obtains the next one bunch call number that will write according to the described bunch chain relation that will write, and repeats above-mentioned steps, until writing a bunch end of chain (EOC) (step 806).
When utilizing above-mentioned FAT accelerator that file allocation table is deleted visit, as shown in Figure 7, comprise that step is as follows:
Main control module 301 master controller in the sheet obtains first bunch call number that need read, and sends it to FAT table sector computing module 302 (steps 901);
Described FAT table sector computing module 302 calculates the FAT table sector number that comprises the FAT table unit corresponding with this bunch according to described bunch of call number, and sends it to FAT table sector module for reading and writing 303 (steps 902);
Described FAT table sector module for reading and writing 303 reads the record of designated sector, and sends it to a bunch chain structure buffer zone 304 (step 903) according to described FAT table sector number from sheet outer storage medium 5;
Buffer data module for reading and writing 305 is read the data content (step 904) of every bunch of correspondence successively from described bunch of chain structure buffer zone 304;
Described main control module 301 is according to this data content of reading, judge the data that form bunch chain relation with described first bunch call number, and it is revised as blank bunch sign, and, write back described outer storage medium 5 (step 905) by described FAT table sector module for reading and writing 303 through bunch chain structure buffer zone 304;
Described main control module 301 as next bunch call number, repeats above-mentioned steps, until judging this bunch end of chain (EOC) (step 906) with the data of described that judge and first bunch formation bunch chain relation.
Utilize embodiments of the invention, the process of carrying out Play Control is as follows:
The digital audio file of the outer master controller 4 direct control stores intrasystem midi format of master controller outside sheet of sheet is play, and shown in Figure of description 8, step comprises:
The outer master controller 4 of sheet converts the MIDI music data to message and is sent to MIDI player 14 message buffers (step 1101);
MIDI player 14 reads the data-message in the message buffer, and the loopback music outputs to digital to analog converter 9 and converts simulating signal to, thereby play back (step 1102) by loudspeaker through digital mixer 13, sound effect processor 12, alternative module 10;
When the data message in MIDI player 14 message buffers is depleted to a threshold value, promptly produce and interrupt, and master controller 4 requests sends new message (step 1103) outside sheet;
Repeat as above step 1101,1102,1103, till the MIDI music data finishes (step 1104).
The digital audio file of the outer master controller 4 direct control stores intrasystem non-midi format of master controller outside sheet of sheet is play, and shown in Figure of description 9, step comprises:
The outer master controller 4 of sheet is at first analyzed the format information of this music, by message this format information is sent to corresponding music player then, for example belongs to the audio file of MP3 format, then this format information is sent to MP3 player 21 (step 1201);
The outer master controller 4 of sheet sends to music data in the buffer zone of corresponding music player, for example still belongs to the audio file of above-mentioned MP3 format, then music data is sent in the buffer zone of MP3 player 21 (step 1202);
Corresponding music player playing back music data for example still belong to the audio file of above-mentioned MP3 format, then play (step 1202) by MP3 player 21;
When the music data in the music player buffer zone is depleted to a threshold value, promptly produce and interrupt, and master controller 4 requests sends new data (step 1204) outside sheet;
Repeat as above step 1202,1202,1204, till non-MIDI music data finishes (step 1205).
To sum up can draw, the digital audio file of the outer master controller 4 direct control stores intrasystem non-midi format of master controller outside sheet of sheet is play, the digital audio file of non-midi format also can be WMA, WAVE or other, the player that only needs to add correspondingly in the present invention gets final product, and its connected mode and player method are all identical.
And when the MIDI music data was stored in the sheet outer storage medium, main controller controls was stored in the digital audio file broadcast of the midi format in the sheet outer storage medium 5 in the sheet, and shown in Figure of description 10, step comprises:
The outer master controller 4 of sheet sends a message and requires to play the MIDI music to master controller in the sheet, and this message comprises the positional information of this MIDI voice data in sheet outer storage medium 5, and master controller prepares to play MIDI music (step 1301) in the sheet afterwards;
Master controller is according to the positional information in the message of the outer master controller 4 of the sheet that receives in the sheet, send out the read command of a FAT table and give FAT accelerator 17, this order comprises: starting cluster chain structure information, bunch chain structure are stored in first address and the size (step 1302) in the logical address working storage 18;
FAT accelerator 17 is read bunch chain structure of this document according to the FAT read command, stores appointed positions in the logical address working storage 18 into by specific form, sends master controller (step 1303) in the interrupt notification sheet then;
In the sheet master controller receive FAT accelerator 17 in have no progeny, carry out an interrupt routine, this interrupt routine some registers from FAT accelerator 17 are read some parameters, this parameter comprises having sought what individual bunch just now, whether last bunch is last bunch of this document in the logical address working storage 18, and the content (step 1304) of last bunch in the logical address working storage 18;
Master controller sends an order to DMAC controller 19 in the sheet, and a certain section MIDI data that requirement will be stored on the sheet outer storage medium 5 are read in the interior master control system buffer zone of sheet (step 1305);
DMAC controller 19 is according to the order that receives, with reference in the logical address working storage 18 bunch of chain structure, calculate logical address and the length that will read the MIDI data and send to memory medium controller interface 501, the MIDI voice data is placed in the interior master controller buffer zone of sheet (step 1306);
Master controller becomes message to be sent to MIDI player (step 1307) master controller buffer zone sound intermediate frequency data-switching in the sheet in the sheet;
The MIDI player reads message and broadcast (step 1308) in the message buffer;
When the data message in the MIDI player message buffer is depleted to a threshold value, promptly produce and interrupt, and the master controller request sends new message (step 1309) in sheet;
Master controller need be read the MIDI data again from sheet outer storage medium 5 in the sheet, as the position of new data still in logical address working storage 18 bunch chain structure correspondence bunch in, then execution in step 1305, otherwise, execution in step 1302 (step 1310) then;
When music finished, master controller sent end to MIDI player (step 1311) in the sheet.
The digital audio file of the non-midi format of the direct control store of master controller in sheet outer storage medium 5 is play in the sheet, and shown in Figure of description 11, step comprises:
The outer master controller 4 of sheet sends a message and requires to play non-MIDI music to master controller in the sheet, and this message comprises the positional information of this non-MIDI voice data in sheet outer storage medium 5, and master controller prepares to play non-MIDI music (step 1401) in the sheet afterwards;
Master controller is according to the positional information in the message of the outer master controller 4 of the sheet that receives in the sheet, send out the read command of a FAT table and give FAT accelerator 17, this order comprises: starting cluster chain structure information, bunch chain structure are stored in first address and the size (step 1402) in the logical address working storage;
FAT accelerator 17 is read bunch chain structure of this document according to the FAT read command, stores appointed positions in the logical address working storage 18 into by specific form, sends master controller (step 1403) in the interrupt notification sheet then;
In the sheet master controller receive FAT accelerator 17 in have no progeny, carry out an interrupt routine, this interrupt routine some registers from FAT accelerator 17 are read some parameters, this parameter comprises having sought what individual bunch just now, whether last bunch is last bunch of this document in the logical address working storage 18, and the content (step 1404) of last bunch in the logical address working storage 18;
Master controller sends an order to DMAC controller 19 in the sheet, and requirement will be stored in the play parameter message of a certain section non-MIDI music data on the sheet outer storage medium 5 and read in the interior master control system buffer zone of sheet (step 1405);
DMAC controller 19 is according to the order that receives, with reference in the logical address working storage 18 bunch of chain structure, the logical address and the length that calculate the data that will read play parameter send to memory medium controller interface 501, and play parameter is sent in the interior master control system buffer zone of sheet (step 1406);
Master controller is at first analyzed the play parameter of this music in the sheet, by message this parameter is sent to the music player of corresponding form then, for example belongs to the audio file of MP3 format, then this format information is sent to MP3 player 21 (step 1407);
Master controller sends an order to DMAC controller 19 in the sheet, the a certain section non-MIDI music data that requirement will be stored on the sheet outer storage medium 5 read in the buffer zone of corresponding music player, the audio file that for example still belongs to above-mentioned MP3 format then sends to music data in the buffer zone of MP3 player 21 (step 1408);
Corresponding music player playing back music data for example still belong to the audio file of above-mentioned MP3 format, then play (step 1409) by MP3 player 21;
When the music data in the music player buffer zone is depleted to a threshold value, promptly produce and interrupt, and the master controller request sends new data (step 1410) in sheet;
The master controller system need read non-MIDI data again in the sheet from sheet outer storage medium 5, as the position of new data still in logical address working storage 18 bunch chain structure correspondence bunch in, then execution in step 1408, otherwise, then execution in step 1402, but answer skips steps 1405,1406,1407 (step 1411);
When music finished, master controller sent the player (step 1412) of end to correspondence in the sheet.
To sum up can draw, the digital audio file of the non-midi format of the direct control store of master controller in sheet outer storage medium 5 is play in the sheet, the digital audio file of non-midi format also can be WMA, WAVE or other, the player that only needs to add correspondingly in the present invention gets final product, and its connected mode and player method are all identical.
Recording control method, shown in Figure of description 12, step comprises:
The outer master controller 4 of sheet sends a message and requires recording (step 1501) to master controller in the sheet;
Master controller is sent out a sky bunch read command and is given FAT accelerator 17 according to the message of master controller 4 outside sheet in the sheet, and this order comprises the position of a search starting cluster, the first address and the size (step 1502) that are used to store this logical address working storage 18;
FAT accelerator 17 is sought empty bunch according to this order by certain principle, stores appointed positions in the logical address working storage 18 into by specific form, sends master controller (step 1503) in the interrupt notification sheet then;
In the sheet master controller receive FAT accelerator 17 in have no progeny, carries out an interrupt routine, this interrupt routine some registers from FAT accelerator 17 are read some parameters, this parameter comprises having sought what skies bunch (steps 1504) just now;
Master controller sends an order to DMAC controller 19 in the sheet, requires recording DMAC initialization (step 1505);
Audio compression module 15 receives digital mixer 13 and handles the back audio-frequency information, or reception sound effect processor 12 is handled the back audio-frequency informations, or receive the audio-frequency information that comes from interior master controller system bus 201 of sheet and the outer master controller system bus 402 of sheet, be positioned over after compression in its data buffer (step 1506);
When data in the data buffer of audio compression module 15 are full, then described information is write in the sky bunch of sheet outer storage medium 5 (step 1507) by DMAC;
As not needing to seek more sky bunch, then repeating step 1507, otherwise, then master controller sends FAT table update command and gives FAT accelerator 17 in the sheet, with run out of bunch bunch chain structure be updated to the corresponding FAT district of new sheet outer storage medium 5, execution in step 1502,1503,1504,1505,1507 (step 1508) then;
During End of Tape, need to carry out End of Tape program (step 1509).
The control method of the outer master controller 4 visit sheet outer storage mediums 5 of sheet, shown in Figure of description 13, step comprises:
The outer master controller 4 of sheet sends message master controller to the sheet, and this message comprises reads the file or the positional information (step 1601) of written document and file;
Master controller initiates a message to FAT accelerator 17 according to the notice of the outer master controller 4 of sheet in the sheet, and bunch chain structure of file destination is written in the logical address working storage 18 (step 1602);
Master controller initiates a message and sets up a DMAC (step 1603) to DMAC controller 19 for the outer master controller 4 visit sheet outer storage mediums 5 of sheet in the sheet;
Master controller is read file in this way according to the type of message in the sheet, then the data in the sheet outer storage medium 5 is delivered in the outer master controller buffer zone of sheet, is read by the outer master controller 4 of sheet again; Written document then is written to data in the outer master controller 4 of sheet in the outer master controller buffer zone of sheet earlier in this way, is delivered in the sheet outer storage medium 5 (step 1604) by master controller in the sheet again;
As not needing to upgrade bunch chain structure, then execution in step 1604, otherwise, execution in step 1602,1603,1604 (step 1605) then;
When visit finishes, need to carry out termination routine (step 1606).
The control method of usb host 6 visit sheet outer storage mediums 5, shown in Figure of description 14, step comprises:
Usb host 6 sends SCSI (small computer system intefface by host interface, being small computer system interface) order is to master controller in the sheet, and this order comprises bunch information (step 1701) of data in sheet outer storage medium 5 that DMAC promptly will transmit;
Master controller is analyzed this order in the sheet, and a bunch chain structure is write in the logical address working storage 18 (step 1702);
It is that usb host 6 visit sheet outer storage mediums 5 are set up a DMAC (step 1703) that the interior master controller of sheet initiates a message to the DMAC controller;
Master controller is read file in this way according to the type of order in the sheet, then the data in the sheet outer storage medium 5 is delivered in the USB interface buffer zone, is read by usb host 6 again; Written document is then delivered to file in the usb host 6 in the USB interface buffer zone earlier in this way, writes in the sheet outer storage medium 5 (step 1704) again;
Repeating step 1704, all data transmission that require in this scsi command are finished (step 1705).
The method of the outer master controller 4 of usb host 6 visit sheets, shown in Figure of description 15, step comprises:
Usb host 6 sends visit order (step 1801) by USB interface master controller 4 outside sheet;
The outer master controller 4 of sheet, is read by usb host 6 if data direction is that master controller 4 is then delivered to data in the USB interface buffer zone to usb host 6 outside sheet according to the type of order again; If data direction is from usb host 6 master controller 4 outside sheet, then earlier file in the usb host 6 is delivered in the USB interface buffer zone, reinform outer master controller 4 reading of data (step 1802) of sheet;
Visit finish (step 1803).
Although embodiment of the present invention are open as above, but it is not restricted to listed utilization in instructions and the embodiment, it can be applied to various suitable the field of the invention fully, for those skilled in the art, can easily realize other modification, for example, embodiments of the invention be by the interrupt control mode realize ordering mutual, those skilled in the art should know also and can be undertaken by other modes, for example modes such as wait, poll.Therefore under the universal that does not deviate from claim and equivalency range and limited, the legend that the present invention is not limited to specific details and illustrates here and describe.

Claims (18)

1, a kind of audio process carries out Audio Processing under the control of master controller system outside sheet, it is characterized in that, comprising:
The outer master controller bus interface module of sheet is used to described outer master controller that the interface of controlling bus with the sheet that is positioned at sheet outward is provided;
Master controller system in the sheet comprises: master controller data buffer in master controller, the sheet in the sheet, be connected in the sheet inner control bus controller of sheet inner control bus, be used for the corresponding Audio Processing of command execution according to the outer master controller of sheet;
The processor communication module is used to provide the data communication between interior master controller system of sheet and the outer master controller system of sheet;
The memory medium controller interface is used to provide the visit to the sheet outer storage medium that stores voice data;
The file allocation table accelerator, be used for order according to master controller in the sheet, by described memory medium controller interface, the file allocation table that is stored in the data file on the sheet outer storage medium is conducted interviews, with bunch chain structure of specified data file in storage medium;
The logical address working storage is used for the logical address of the temporary data file that is read by the file allocation table accelerator;
Direct store access controller and bus thereof, be used for setting up direct memory access passage under the control of master controller in sheet, according to determined bunch of chain structure information of file allocation table accelerator, by described memory medium controller interface, control is to the exchanges data of sheet outer storage medium;
Music player is used for outside described in the master controller and sheet according to the voice data that reads via direct store access controller, providing the music playback of at least a audio format under the control of master controller;
Digital to analog converter is used for the digital audio and video signals of playback is converted to simulating signal output.
2, audio process as claimed in claim 1 is characterized in that, further comprises the outer interrupt request bus of the sheet that is positioned at sheet, links to each other by the outer master controller of described outer master controller bus interface module and sheet;
Described interior master controller system also comprises interrupt request controller in the sheet that is connected in interrupt request bus in the sheet.
3, audio process as claimed in claim 1 is characterized in that, described music player comprises: MIDI player, MP3 player, WMA player, Wave player, or the combination of described all types of players.
4, audio process as claimed in claim 1 is characterized in that, described direct store access controller is serving each passage by the time-multiplexed mode of piece, and according to the priority bandwidth on demand of business.
5, audio process as claimed in claim 1 is characterized in that, also comprises:
Analog to digital converter is used for simulated audio signal is converted to the digital signal input.
6, audio process as claimed in claim 1 is characterized in that, also comprises
Digital mixer is used for digital mode the music of playback being mixed with signal after the digitizing;
Sound effect processor is used for sound signal is carried out special effect processing;
The audio compression module, the sound signal that is used for being input to this module is converted to specific compressed format.
7, audio process as claimed in claim 1 is characterized in that, also comprises:
The outer master controller buffer zone of sheet is used for the outer master controller of interim buffer memory sheet and is written to the sheet outer storage medium, or the data of reading from the sheet outer storage medium.
8, audio process as claimed in claim 1 is characterized in that, also comprises:
USB interface comprises the data buffer, is used to provide the exchanges data with usb host, thereby control by master controller in the sheet, make usb host and sheet outer storage medium swap data, also can make the outer master controller swap data of usb host and sheet by the control of the outer master controller of sheet.
9, audio process as claimed in claim 1 is characterized in that, also comprises:
The I2S interface is used to provide the audio input signal that meets the I2S agreement;
Alternative module, the input source that is used for digital-to-analog conversion are to come from the I2S interface, still come from the sheet.
10, a kind of method of utilizing audio process as claimed in claim 1 to carry out music is used for playing the music data that is stored in the sheet outer storage medium, it is characterized in that, comprises the steps:
(1) the outer master controller of sheet sends a message that requires playing back music to master controller in the sheet, comprises the form and the positional information that is stored in the sheet outer storage medium of audio data file in this message;
(2) positional information in the master controller basis message that receives in the sheet, send a file allocation table reading order to the file allocation table accelerator, comprise in this order: starting cluster chain structure information, bunch chain structure are stored in first address and the size in the logical address working storage;
(3) the file allocation table accelerator is according to described file allocation table reading order, read bunch chain structure of the audio data file in the storage medium, the size of sense data is within the magnitude range of described logical address working storage, and bunch chain structure information stores that will read appointed positions in the logical address working storage;
(4) the interior master controller of sheet is determined bunch chain information parameter of audio data file according to described bunch chain structure of reading;
(5) bunch chain information parameter of the audio data file that the master controller basis is determined in the sheet, send a file reading order to described direct store access controller, requirement will be stored in the storage medium reads in the buffer zone of master controller system in the sheet with the corresponding voice data of bunch chain structure that read;
(6) directly store access controller is set up a direct memory access passage according to the order that receives, with reference to bunch chain structure information in the logical address working storage, calculate the logical address and the length of the voice data that will read, send to the memory medium controller interface, voice data is delivered in the sheet in the master controller system buffer;
(7) the master controller system converts voice data in the message buffer of music player that message sends to corresponding form in the sheet, by this player playback of music, and converts simulating signal output to through digital to analog converter.
11, method as claimed in claim 10 is characterized in that, further comprises the steps:
(8) when the data consumes in the music player message buffer arrives certain threshold value, request master controller request in sheet sends new message;
(9) the master controller system asks according to this in the sheet, the position of the new data that judge to need continue sends whether still in the logical address working storage bunch chain structure correspondence bunch in, if then begin to re-execute from described step (5), otherwise, begin to carry out from described step (2).
12, method as claimed in claim 10 is characterized in that, after described step (6), further comprises the steps:
Analyze the play parameter of this audio data format correspondence by master controller in the sheet, and this parameter information is sent to the music player of corresponding form by message.
13, a kind of method of utilizing audio process as claimed in claim 1 to carry out music is used for playing the music data that is stored in the outer master controller of sheet, it is characterized in that, comprises the steps:
The sheet outer controller converts voice data in the message buffer of music player that message is sent to corresponding form to, by this player playback of music, and converts simulating signal output to through digital to analog converter;
When the data consumes in the player message buffer arrived certain threshold value, the master controller request sent new message to the player playback, until finishing playing outside sheet.
14, a kind ofly utilize audio process as claimed in claim 4 to carry out the method that music is recorded, it is characterized in that, comprise the steps:
The outer master controller of sheet sends an audio recording message and requires recording to master controller in the sheet;
Master controller sends a blank bunch order of search to described file allocation table accelerator according to the message that receives in the sheet, and this order comprises: starting cluster chain structure information, bunch chain structure are stored in first address and the size in the logical address working storage;
The file allocation table accelerator is sought blank bunch according to this order in storage medium, and bunch chain structure information stores of the blank that will search out bunch appointed positions in the logical address working storage;
Master controller is determined blank number of clusters amount according to described blank of reading a bunch bunch chain structure in the sheet;
Master controller sends an order and sets up a direct memory access passage to direct store access controller in the sheet,, with reference to bunch bunch chain information of the blank in the logical address working storage music of player playback or the voice data of importing through analog to digital converter are write in the storage medium by direct store access controller.
15, method as claimed in claim 14 is characterized in that, also comprises the steps:
Master controller sends the file allocation table update command and gives the file allocation table accelerator in the sheet, with run out of bunch a bunch chain structure be updated in the storage medium corresponding file and distribute the list area, again send the blank bunch order of search to the file allocation table accelerator then, and control is continued into data to a blank bunch relaying.
16, a kind of method of utilizing the outer master controller access storage media of audio player control strip as claimed in claim 7 is characterized in that, comprises the steps:
The outer master controller of sheet sends a file access message informing to master controller in the sheet, and this message comprises reads file command or written document order, and the positional information of file;
Master controller is read in the logical address working storage according to bunch chain structure of this information order file allocation table accelerator with this document in the sheet;
It is that the outer master controller access storage media of sheet is set up a direct memory access passage that the interior master controller of sheet initiates a message to direct store access controller;
If read file, the data on the storage medium are read from storage medium with reference to a bunch chain structure by direct store access controller, and deliver in the outer master controller buffer zone of sheet, are read away by the outer master controller of sheet then;
If written document, the outer master controller of sheet writes data in the outer master controller buffer zone of sheet, by direct store access controller reference bunch chain structure, data is delivered in the storage medium then.
17, a kind of method of utilizing audio player control usb host access storage media as claimed in claim 8 is characterized in that, comprises the steps:
Usb host sends a message to master controller in the sheet by described USB interface, and this message comprises reads file command or written document order, and the direct store access controller bunch chain information of data in storage medium that promptly will transmit;
Master controller is analyzed this order in the sheet, and a bunch chain information is write in the logical address working storage;
Master controller initiates a message to direct store access controller in the sheet, requires to set up a direct memory access passage for the usb host access storage media;
If read file, the data on the storage medium are read from storage medium with reference to a bunch chain structure by direct store access controller, and deliver in the USB interface buffer zone, data are read away from interface buffer by usb host then;
If write, usb host writes data in the interface buffer, by direct store access controller reference bunch chain structure, data is delivered in the storage medium then.
18, a kind of method of utilizing audio player control usb host as claimed in claim 8 and the outer master controller swap data of sheet is characterized in that, comprises the steps:
If the exchanges data direction is an outer master controller from the usb host to the sheet, then usb host is delivered to data in the USB interface buffer zone earlier, and the outer master controller of USB interface notice sheet is read away data then;
If the exchanges data direction is that master controller is to usb host outside sheet, then the outer master controller of sheet is delivered to data in the USB interface buffer zone earlier, and usb host is read away data from USB interface then.
CNB2005101322234A 2005-12-22 2005-12-22 Audio processor and its control method Expired - Fee Related CN100378696C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101322234A CN100378696C (en) 2005-12-22 2005-12-22 Audio processor and its control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101322234A CN100378696C (en) 2005-12-22 2005-12-22 Audio processor and its control method

Publications (2)

Publication Number Publication Date
CN1831797A true CN1831797A (en) 2006-09-13
CN100378696C CN100378696C (en) 2008-04-02

Family

ID=36994106

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101322234A Expired - Fee Related CN100378696C (en) 2005-12-22 2005-12-22 Audio processor and its control method

Country Status (1)

Country Link
CN (1) CN100378696C (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477822A (en) * 2009-01-15 2009-07-08 凯瑞德电子(深圳)有限公司 Playing/recording combined acoustic apparatus capable of file format mutually conversion
CN102036069A (en) * 2009-09-30 2011-04-27 夏普株式会社 Image processing apparatus
CN101227763B (en) * 2007-01-15 2013-01-23 昆山杰得微电子有限公司 Method and device for processing sound effect
CN108182930A (en) * 2017-12-18 2018-06-19 福建星网视易信息系统有限公司 Sound effect treatment method, equipment and audio/video on-demand system
CN108345430A (en) * 2017-12-27 2018-07-31 北京兆易创新科技股份有限公司 A kind of Nand flash elements and its progress control method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5519684A (en) * 1990-05-14 1996-05-21 Casio Computer Co., Ltd. Digital recorder for processing in parallel data stored in multiple tracks
JP3671120B2 (en) * 1999-06-16 2005-07-13 株式会社ソニー・コンピュータエンタテインメント Data transfer device, data transfer system, and data transfer method
US8001289B2 (en) * 2003-07-01 2011-08-16 Samsung Electronics Co., Ltd. Digital audio/video apparatus and method that can perform additional operations
CN1595393A (en) * 2003-12-22 2005-03-16 上海广电信息产业股份有限公司 Real-time pre-processing software-hardware system for audio encoder interface and method and uses
US20050266882A1 (en) * 2004-05-25 2005-12-01 Mahmut Ciftci Apparatus and method for implementing file recording in a resource-constrained digital radio
CN100349150C (en) * 2005-06-06 2007-11-14 北京中星微电子有限公司 System and method for accessing controller communication data through direct memory

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227763B (en) * 2007-01-15 2013-01-23 昆山杰得微电子有限公司 Method and device for processing sound effect
CN101477822A (en) * 2009-01-15 2009-07-08 凯瑞德电子(深圳)有限公司 Playing/recording combined acoustic apparatus capable of file format mutually conversion
CN102036069A (en) * 2009-09-30 2011-04-27 夏普株式会社 Image processing apparatus
CN108182930A (en) * 2017-12-18 2018-06-19 福建星网视易信息系统有限公司 Sound effect treatment method, equipment and audio/video on-demand system
CN108182930B (en) * 2017-12-18 2021-12-10 福建星网视易信息系统有限公司 Sound effect processing method and equipment and audio and video on demand system
CN108345430A (en) * 2017-12-27 2018-07-31 北京兆易创新科技股份有限公司 A kind of Nand flash elements and its progress control method and device
CN108345430B (en) * 2017-12-27 2021-08-10 北京兆易创新科技股份有限公司 Nand flash element and operation control method and device thereof

Also Published As

Publication number Publication date
CN100378696C (en) 2008-04-02

Similar Documents

Publication Publication Date Title
CN1119804C (en) Data recording and/or reproducing system and method thereof
CN1184805C (en) Data recording/reproducing apparatus and program recorded medium
CN1242376C (en) Sound recognition system, device, sound recognition method and sound recognition program
CN1517869A (en) Processor, arithmetic processing method and priority decision method
CN100351750C (en) Information-processing apparatus, information-processing method, recording medium, and program
CN1658184A (en) Network system, distributed processing method and information processing apparatus
CN1752947A (en) Memory storage, storage controlling method, and computer product
CN1161532A (en) Method of reproducing multimedia data and multimedia data server system
CN1241745A (en) Display controller and display controlling method
CN1175034A (en) Memory controller and memory control system
CN101064656A (en) Storage cluster system, data processing method, and program
CN1734438A (en) Information processing apparatus, information processing method, and program
CN1812548A (en) Recorder and method therefor, player and method therefor, program, and recording medium
CN1658665A (en) Memory management method, image processing apparatus, and memory management program
CN1942869A (en) Compound storage, data writing method and program
CN1203395A (en) File management device and method and medium for recording file management program
CN1932783A (en) Memory control apparatus
CN1831797A (en) Audio processor and its control method
CN1890624A (en) Electronic device, control method thereof, host device, and control method thereof
CN1167073C (en) Data recording apparatus and method
CN101065725A (en) Command supply device
CN1113347C (en) Information data recording and reproduction apparatus
CN1282925A (en) Data Processing device
CN1408085A (en) File managing method and data recorder using the same, data reproducing apparatus, data recording/reproducing apparatus, and disk recorded by the file managing method
CN1277267C (en) Information recording medium, information recording method, information apparatus, information reproducing method and information reproducing apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080402

Termination date: 20111222