Embodiment
The embodiment of the invention provides a kind of DMA and conversion method, is used for finishing easily the switching of portable audio video player to HDMI equipment.
See also Fig. 1, DMA embodiment comprises in the embodiment of the invention:
Medium activated module 101, audio conversion module 102, image conversion module 103, output modular converter 104 and control module 105;
Medium activated module 101 is used for sending an authentication instruction to media termination, makes this media termination send simulated audio signal and analog picture signal to audio conversion module 102 and image conversion module 103 respectively;
Audio conversion module 102 is used for obtaining the simulated audio signal that this media termination sends by medium activated module 101, and simulated audio signal is converted to digital audio and video signals, and to output modular converter 104 these digital audio and video signals of output;
Image conversion module 103 is used for obtaining the analog picture signal that this media termination sends by medium activated module 101, and analog picture signal is converted to data image signal, and to output modular converter 104 these data image signals of output;
Digital audio and video signals and data image signal unification that output modular converter 104 is used for getting access to convert digital video signal to, and export this digital video signal, this digital video signal can be transition minimized differential signaling (TMDS, Transition Minimized Differential Signaling);
Control module 105 is used for respectively to audio conversion module 102, image conversion module 103 and output modular converter 104 sending controling instructions, control module 105 is by the whole process of instruction and the conversion of clock circuit control signal, comprise: the speed of control transformation makes the conversion synchronization of Voice ﹠ Video; The buffer memory of control signal is adjusted buffer memory output; The beginning of control signal conversion and end etc.
The concrete reciprocal process in each unit of DMA is as follows in the embodiment of the invention:
After media termination inserts DMA, medium activated module 101 judge and media termination between whether conducting of circuit, if, then send an authentication instruction to media termination, open the medium output port of media termination, make media termination send simulated audio signal and analog picture signal to audio conversion module and image conversion module respectively.This authentication instruction is used to activate the central processing unit (CPU, Central Processing Unit) of media termination, as: if this media termination is the iphone mobile phone, then should the authentication instruction be annex test macro (ATS, Accessory Test System) instruction.
Because in the transmission of analog signal, the audio signal and the picture signal of media data are separated, therefore, after the medium output port of media termination is opened, control module 105 can be respectively to audio conversion module 102 and image conversion module 103 sending controling instructions, make audio conversion module 102 and image conversion module 103 obtain simulated audio signal and analog picture signal that media termination sends respectively, and to simulated audio signal and analog picture signal are converted to digital audio and video signals and data image signal.This analog picture signal can be RGB picture signal and composite video signal (YPbPr), and this data image signal can be the YUV digital signal.
When media termination during to audio conversion module 102 and image conversion module 103 transmission of analogue signal, control module 105 is obtained the information (as the size of entire media file) of this analog signal to medium activated module 101, trigger these two modules to audio conversion module 102 and image conversion module 103 sending controling instructions respectively and begin to carry out conversion of signals, and according to the indication of the size of media file: when finishing which frame signal conversion, the end signal conversion.The clock frequency of audio conversion module 102 and image conversion module 103 converting analogue signals also is by control module 105 decisions.
After the signal after audio conversion module 102 and image conversion module 103 conversions is input to output modular converter 104, output modular converter 104 is to control module 105 feedback current states, control module 105 is to the control command of output modular converter 104 transmission format conversion, and the broadcast code check and the resolution of modular converter 104 vision signals conversion is exported in indication.Because the present invention need be to HMDI equipment output medium signal, so export modular converter 104 before HMDI equipment output medium signal, unification is converted into the TMDS signal with digital audio and video signals and data image signal.
After output modular converter 104 converts digital video signal, then this digital video signal can be outputed in the HDMI equipment by the HDMI port and play.
Medium activated module that DMA of the present invention is integrated, image conversion module, audio conversion module, output modular converter and control module, after medium activated module has activated media termination, by the unified control of control module image conversion module, audio conversion module and output modular converter, make image conversion module and audio conversion module respectively analog picture signal and the simulated audio signal that gets access to is converted to data image signal and digital audio and video signals, export then modular converter again with data image signal and digital audio and video signals unified be converted to digital video signal, and export this digital video signal to HDMI equipment.After media termination directly inserted DMA of the present invention, the process of whole media conversion is integrated to be finished, very convenient and quick.
For the ease of understanding, with a specific embodiment DMA of the present invention is described in detail again below, please refer to Fig. 2, be specially:
DMA in the embodiment of the invention can also comprise:
Remote controller 201 and power supply output module 202;
Medium activated module 203 of the present invention can also outer connect the infrared signal receiver module, when remote controller by infrared signal during to medium activated module 203 transmit operations instruction, medium activated module 203 is operated accordingly according to this operational order; Remote controller of the present invention mainly is to trigger medium activated module 203 to send an authentication instruction to media termination, and controls the transmission of the audio and video analog signal of media termination indirectly.
Above-mentioned remote controller 201 can be that physical circuit is connected with the communications conduit of medium activated module 203, can transmit by infrared light, and also can be the transmitting-receiving channel of other electromagnetic wave signal, specifically do not limit herein.
Medium activated module 203 is a kind of integrated micro-control unit (MCU, Micro ControllerUnit), after medium activated module 203 has activated media termination, media termination is by the analog signal of this MCU to audio conversion module 204 and image conversion module 205 transmission medium files, can the external clock circuit on this MCU, chip external memory, be responsible for transmission and this analog signal of buffer memory between media termination and audio conversion module 204 or image conversion module 205; This MCU can also external reset circuit, when the transmission of analog signal makes a mistake, and can be automatically or passive reset.
After media termination was activated, power supply output module 202 to output current, was the media termination charging by the data connectivity port between media termination and the DMA of the present invention.Voltage output module 202 can comprise the voltage adaptation circuit, will be the rated current of this media termination to the Current Regulation of media termination output.
Control unit 207 also is a kind of MCU; The present invention can change the pattern that audio frequency and picture signal depend on 3 kinds of work periods simultaneously: 1, control cycle, be used for the transmission of guidance information, and simultaneously also synchronous with the character of signal output part; 2, video cycle is used to send the capable pixel of effective video; 3, cycle data is used for transmitting audio signal.Control unit 207 is finished the control procedure of these 3 kinds of work periods by sending controling instruction.
When media termination after audio conversion module 204 and image conversion module 205 transmission of analogue signal, control module 207 triggers these two modules to audio conversion module 204 and image conversion module 205 sending controling instructions respectively and begins to carry out conversion of signals.
Audio conversion module 204 can use pulse-code modulation (PCM, Pulse Code Modulation) method is quantified as digital audio and video signals with simulated audio signal, promptly allow the different amplitudes of simulated audio signal distinguish corresponding different binary numbers, for example adopt 8 codings simulated audio signal can be quantified as the individual magnitude of 256 (2 8 powers), often take 24 or 30 codings in the practicality.
Image conversion module 205 can be selected integrated chip AD9880 for use, and AD9880 can handle RGB image and these two kinds of analog picture signals of composite video (YPbPr), has the code rate of 150MSPS and the bandwidth of 330MHz.The inside of AD9880 is integrated all input signal buffer memorys, DC component is replied, biasing and gain adjusting circuit, pixel clock generative circuit and dateout form.Because AD9880 is built-in color space converting circuit can be imported the color space of arbitrary format, can export the color space of any form too; In embodiments of the present invention, AD9880 changes into Low Voltage Differential Signal (LVDS, Low-Voltage Differential Signaling) signal with the YPbPr analog signal earlier, by coding, the LVDS conversion of signals is become digital YUV signal again.
Control circuit among the AD9880 can be connected with control module 105 by the serial ports of 2-line.AD9880 has R, G, the B input channel of 6 high impedances.The analog signal voltage scope that adapts to is: 0.5-1.0V.Because the impedance of AD9880 input pin is 75 Europe, so when wiring, medium activated as far as possible module 101 is near connecting.In the configuration of real system, the impedance of each parts is mated as far as possible, so that obtain more performance in wideer signal bandwidth scope.
Digital audio and video signals that converts and YUV signal are input to output modular converter 206, and control unit 207 is exported modular converter 206 by the control command notice: the broadcast code check and the resolution of vision signal conversion.206 pairs of digital audio and video signals of modular converter and YUV signal unification are converted to needed TMDS signal, and modular converter 206 can be AD9889 model TMDS conversion of signals chip.
After output modular converter 206 is finished conversion of signals, just this TMDS signal can be outputed in the HDMI equipment by the HDMI port and play.
Above-mentioned medium activated module, audio conversion module, image conversion module, 5 modules such as output modular converter and control module can be welded on a printed circuit board (PCB) (PCB, Printed CircuitBoard) on, arrange power supply circuits and data transmission circuit again on this pcb board, the electronic structure configuration of the DMA in the embodiment of the invention is finished.Because each functional module height of DMA of the present invention is integrated, so the volume of DMA of the present invention is small and exquisite relatively, be easy to carry, as long as the place of HDMI equipment is arranged, just can carry out media conversion at any time with going up user's DMA of the present invention, improve user experience.
The main body cover of DMA adopts direct insertion understructure in the embodiment of the invention, concrete structure please refer to Fig. 3, and a thermovent is arranged at the bottom of this direct insertion base, and there are an outlet and HDMI port in the side of this direct insertion base, design is succinct, and is simple to operate.
Media termination (as: iphone mobile phone) can directly insert base of the present invention, please refer to Fig. 4, need not auxiliary data line and connects, very convenient.Even if may there be inappropriate situation in the size of media termination, the present invention also can be equipped with a switching data wire, this switching data wire and AVcable of the prior art are different, the interconnecting device end of AV cable divides audio frequency end and image end, and image end also may be divided into " R ", " G ", " B " three ends, the audio frequency end also may divide left and right acoustic channels, when wiring, bother very much, and the interconnecting device end of a switching data wire of the present invention socket of corresponding DMA of the present invention only is easy to connect.
Embodiment to the Digital Media conversion method of the above-mentioned DMA of correspondence describes below, please refer to Fig. 5, and the Digital Media conversion method embodiment comprises in the embodiment of the invention:
501, send the authentication instruction to media termination;
When media termination with after DMA of the present invention is connected, DMA sends an authentication instruction to media termination, open the medium output port of media termination, make media termination can send the analog signal of media file to DMA.
This authentication instruction is used to activate the CPU of media termination, makes media termination open the medium output port.If this media termination is the iphone mobile phone, then should the authentication instruction be the ATS instruction.
502, obtain analog signal respectively;
After the medium output port of media termination was opened, when media termination during at local playing media, the medium output port of media termination will be exported the analog signal of respective media.This analog signal comprises: simulated audio signal and analog picture signal.
Because in the transmission of analog signal, the audio signal and the picture signal of media data are separated, therefore, DMA obtains this simulated audio signal and analog picture signal respectively by two modules of inside.
503, carry out the conversion of digital signal respectively;
DMA carries out the conversion of digital signal to simulated audio signal and the analog picture signal that gets access to respectively, is converted to digital audio and video signals and data image signal respectively; This analog picture signal can be RGB picture signal and composite video signal (YPbPr), and this data image signal can be the YUV digital signal.
The transfer process of data image signal can by coding, become digital YUV signal with the LVDS conversion of signals again for earlier the YPbPr analog signal being changed into Low Voltage Differential Signal LVDS signal.
This analog signal revolution word signal can use pulse-code modulation (PCM, Pulse Code Modulation) method, analog signal is quantified as digital signal, promptly allow the different amplitudes of analog signal distinguish corresponding different binary numbers, for example adopt 8 codings analog signal can be quantified as the individual magnitude of 256 (2 8 powers), often take 24 or 30 codings in the practicality.
504, carry out the conversion of digital video signal;
After simulated audio signal and analog picture signal were converted into digital audio and video signals and data image signal respectively, DMA merged this digital audio and video signals and data image signal, the unified digital video signal that is converted to.This digital video signal can be the TMDS signal.
505, output digital video signal.
DMA will be changed good digital video signal and pass through the HDMI port to the HDMI device transmission.
Whole transfer process of the present invention is all controlled by instruction by the control unit of DMA, control unit is according to the Frame transmission of clock circuit monitoring Voice ﹠ Video signal and the situation of conversion, real-time buffer memory and transmission data, adjust the speed of conversion of signals, make from analog signal revolution word signal, audio frequency and picture signal to numeral are changeed vision signal, each work period to the output of digital video signal obtains coordinating the signal Synchronization of exporting with DMA when making HDMI device plays media data again.
Digital Media of the present invention conversion method send the authentication instruction to media termination before, the step that can also remote controller triggers:
The remote controller of DMA triggers the step that sends the authentication instruction to media termination to the medium activated module transmit operation instruction of DMA.The communications conduit of this remote controller transmit operation instruction can be that physical circuit connects, can transmit by infrared light, and also can be the transmitting-receiving channel of other electromagnetic wave signal, specifically do not limit herein.
Digital Media of the present invention conversion method at DMA after media termination sends the authentication instruction, but the power supply output module of triggered digital media filter charges to this media termination to this media termination output current.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than a kind of DMA provided by the present invention and conversion method are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.