Summary of the invention
The object of the present invention is to provide a kind of method of supporting that mobile phone is realized TV and function of radio receiver, the inventive method is to use existing resource, combines with demodulation chip is flexible, makes the integrated scheme of high performance-price ratio.The inventive method can realize free satellite broadcast signal receiving demodulation, is controlled by mobile phone base band chip, carries out the mobile TV/radio reception solution of image and speech processes by video and Audio Processing chip.
The specific implementation of the inventive method, need finish the software/hardware treatment step of following five aspects:
(1) control of the function of cell phone platform and interface are set up;
(2) reception/demodulation of satellite broadcast signal;
(3) gain controlling and the transmission of TV/radio reception audio signal;
(4) processing of television video frequency signal and transmission;
(5) conversion of vision signal and in the demonstration of LCM.
Below, the present invention will be described in detail above-mentioned 5 performing step.
Say that further a kind of method of supporting mobile phone to realize TV and function of radio receiver provided by the invention comprises the following steps:
(1) control of the function of cell phone platform and interface are set up
At first, under the multimedia menu of spreadtrum cell phone platform software, add entering the menu option of TV/radio reception, and create the processing menu of each auxiliary function block in corresponding interfaces windows and each assistant window;
(2) reception/demodulation of satellite television broadcasting signal
From the satellite TV signal that antenna receives, at first by input matching circuit, the signal of coupling carries out Frequency mixing processing through after the amplification of high frequency with local oscillator; Carry out intermediate frequency processing and amplifying and video detection afterwards, the vision signal that detects is carried out processing and amplifying, isolate video synchronization signal and audio signal; Video synchronization signal is through obtaining being used for the line synchronizing signal and the field sync signal of display synchronization after separating; Realize having shown or back end device such as DSP shows or the synchronizing signal of Video processing; Audio signal is amplified the back through demodulation and is exported or deliver to audio process and export from SPEAKER;
(3) gain controlling and the transmission of TV/radio reception audio signal
After television video frequency signal was delivered on the DSP with the form of YUV422, DSP got the data volume of 360*260 in the initial data and carries out matching treatment; Carry out corresponding data processing, to image carry out level and smooth and the rate of detecing synchronous; The go forward side by side SCALE of row image is shown to it on mobile phone screen of QVGA; Be transferred to the mobile phone end CODEC in the I2S mode from the TV decoding chip, utilize the data GAIN among the CODEC, this voice signal is gained amplify and the EQ processing; Convert analog signal at DAC transducer and export, realize the playback of sound from SPEAKER through CODEC;
(4) processing of television video frequency signal and transmission
Using integrated chip that satellite broadcast signal is received/demodulation, obtain the handling process that needs component, is to handle receiving broadcast singal from antenna, obtains its audio component and video component; Audio component is exported outward via the I2S passage of chip, broadcasts from SPK through after the demodulation process in the CODEC chip; And video component is isolated each component of YUV after treatment, and according to the parameter that configures in the early time video data is carried out cutting and component samples; From exporting from 8 video data line, then decoded in DSP/conversion at last with the form that meets the ITU601/656 suggestion, deliver to LCD and go up the output demonstration;
(5) conversion of vision signal and in the demonstration of LCM
The conversion of vision signal and realize by dsp chip in the demonstration of LCM, the yuv video signal that receives carries out decoding processing at DSP, and change into the form that can show at LCD according to the requirement of current display screen, at DSP with after data decode and converting, the past LCM of video data one every trade can be gone up and transmit, thereby on LCD, show.
The advantage that method provided by the invention is compared with prior art is to utilize the existing resource of cell phone platform, in conjunction with new technology, realizes the integrated of mobile TV/radio reception.It has had low cost, the advantage easily of transplanting on the homologous series project owing to be to finish on the basis of existing resource.
Method provided by the invention is used existing resource dexterously and has been used in combination up-to-date technology/chip, and each chip functions piece of uniting and adjustment on the basis of original multimedia function, has embedded the amusement function of TV and radio reception.And the present invention also is based on this, releases the free satellite broadcast signal receiving demodulation of a kind of realization, is controlled by mobile phone base band chip, carries out the mobile TV/radio reception solution of image and speech processes by DSPIC and CODEC IC.
Below, describe details and working condition in conjunction with the accompanying drawings and embodiments in detail according to the concrete grammar of the present invention's proposition.
Embodiment
A kind of method of supporting mobile phone to realize TV and function of radio receiver provided by the invention comprises the steps:
(1) control of the function of cell phone platform and interface are set up;
(2) reception/demodulation of satellite broadcast signal;
(3) gain controlling and the transmission of TV/radio reception audio signal;
(4) processing of television video frequency signal and transmission;
(5) conversion of vision signal and in the demonstration of LCD MODULE (LCM).
The invention provides a preferred embodiment comes the inventive method is described further, the embodiment of the invention is to carry out on the GSM of Spreadtrum Communications Inc.'s mobile phone baseband chip 6600D chip platform, and platform software is the application software that makes based on this 6600D platform.The CODEC chip that uses is the Audio Processing chip of the WM8991 model of WOLFSON microelectrinics company.The dsp chip that uses is the dsp chip of the V05029 model of VIMICRO company.The TV/FM demodulation chip that uses is the TV/FM chip of the TLG1000 model of TELEGENTSYSTEM company.
Simultaneously, if needs switch chips such as CODEC, as long as this CODEC chip has the I2S interface and can realize.
As shown in Figure 1, it is a design principle block diagram of realizing simulated television TV of the present invention and broadcasting FM function, it has summarized the function and the correlation of each functional block of the whole design of the inventive method, and order and the transmission relation of data flow between functional block.By last figure as can be seen, platform software need communicate control with each function IC based on baseband chip (B/B IC) work.Wherein, baseband chip and encoder chip (CODEC IC) and TV/fm demodulation chip (TV/FM IC) communicate by the I2C agreement, and platform carries out commands for controlling through this passage to these two chips.And base band and digital signal processing chip (DSP
IC) carry out the parallel communications of 16 bits between, same, communicating by letter between dsp chip and LCD display also is to carry out with 16 parallel-by-bits.Owing to the suggestion that meets ITU-601 from the video output data stream of TV/FM chip, in conjunction with the reception form of dsp chip, so video data stream has been to use the 8 bit data stream forms of YUV422 to transmit communication between the two.And for audio frequency output, in order to obtain the convenience of better tonequality and Audio Processing, the audio signal from the TV/FM chip to CODEC is carried out with I2S communication protocol.
Based on radio reception and TV is two kinds of independently amusement functions, so, need carry out different main control process flows.Following accompanying drawing 2 and accompanying drawing 3 are respectively the flow charts of these two kinds of master controls.
As shown in Figure 2, it is the control flow chart of radio reception playback, and it has illustrated to carry out the sequencing of functional block work of radio reception control and some chip enable/parameter configuration etc.In the main control process flow of realizing radio reception, when having created the master control window.First, need carry out function to the CODEC chip from baseband platform switches and the parameter setting, change the voice-frequency channel of CODEC into path that correspondence is accepted TV/FM chip side I2S audio format, open the function of CODEC end I2S, be set at the MASTER pattern, enable each pin of I2S, output corresponding clock signals, the audio data stream of wait TV/FM chip side.Regulate the gain size of each multiplier (-icator) in the path and guarantee that various effect devices are operated in normal condition.The second, after CODEC configures, the TV/FM chip is powered and hardware RESET from base band, after I2C communication is normal, the TV/FM chip is carried out the parameter setting of each basic function, open the external output audio signal of its I2S passage, setting this passage is the SLAVE pattern.And close the video correlation function, set the radio reception channel of acquiescence.Thus, the audio signal of the radio reception that receives at first is sent on the CODEC chip from the TV/FM chip with the form of I2S data flow, after of the decoding and digital-to-analogue conversion of CODEC chip to audio signal data, output on the loud speaker (SPK) by the form with simulated audio signal after certain gain, realize the broadcasting of radio reception.
As shown in Figure 3, it is the control flow chart of televising, and it has illustrated to carry out the sequencing of functional block work of TV control and some chip enable/parameter configuration etc.In realizing the main control process flow of televising, when having created the master control window.First, need carry out function to the CODEC chip from baseband platform equally switches and the parameter setting, change the voice-frequency channel of CODEC into path that correspondence is accepted TV/FM chip side I2S audio format, open the function of CODEC end I2S, be set at the MASTER pattern, enable each pin of I2S, output corresponding clock signals, the audio data stream of wait TV/FM chip side.Regulate the gain size of each multiplier (-icator) in the path and guarantee that various effect devices are operated in normal condition.Second, base band is switched the mode of operation of digital signal processing chip (DSPIC), dsp chip is shown LCD enable control, and dsp chip is mated configuration to the parameter of the vision signal of reception, the preview state that foundation is televised waits for that the vision signal of TV/FM chip is come.The 3rd, after CODEC chip and dsp chip configure, from baseband chip the TV/FM chip is powered and hardware RESET, after I2C communication is normal, the TV/FM chip is carried out the parameter setting of each basic function, open the external output audio signal of its I2S passage, setting this passage is the SLAVE pattern.And start the video correlation function, and set the channel of acquiescence, carry out the TV signal search, and the TV signal that receives is separated into audio ﹠ video exports respectively.Wherein audio signal is the same with FM, at first the form with the I2S data flow is sent on the CODEC chip from the TV/FM chip, after of the decoding and digital-to-analogue conversion of CODEC chip to audio signal data, output on the loud speaker (SPK) by the form with simulated audio signal after certain gain, realize the broadcasting of sound.And vision signal outputs on the dsp chip from 8 parallel-by-bit data wires with the form of YUV422.Dsp chip is after receiving this data flow, to its necessary processing such as decode, and convert the form that LCDs (LCD) can show when general (be RGB656) to, and will on LCDs (LCD), show with a Ching or a behavior unit, realize the broadcast of video.In conjunction with isochronous audio, realized the function of mobile TV to this.
(1) control of the function of cell phone platform and interface are set up
At first, the inventive method is added under the multimedia menu of spreadtrum cell phone platform software and is entered the menu option of TV/radio reception, and creates the processing menu of each auxiliary function block in corresponding interfaces windows and each assistant window.
(2) reception/demodulation of satellite television broadcasting signal
Find out that from accompanying drawing 4 it is a kind of signal frame diagram of satellite television broadcasting reception/demodulation, it has represented to carry out reception of satellite television broadcasting signal and demodulation, obtains the handling process that needs component.Be to receive broadcast singal from antenna to handle, obtain its audio component and video component.Concrete steps are that from the satellite TV signal that antenna receives, at first by input matching circuit, the signal of coupling carries out Frequency mixing processing through after the amplification of high frequency with local oscillator.Carry out intermediate frequency processing and amplifying and video detection afterwards, the vision signal that detects is carried out processing and amplifying,, isolate video synchronization signal and audio signal here.Video synchronization signal is through obtaining being used for the line synchronizing signal and the field sync signal of display synchronization after separating.Realize having shown or back end device such as DSP shows or the synchronizing signal of Video processing.Audio signal is amplified the back through demodulation and is exported or deliver to audio process and export from SPEAKER.
(3) gain controlling and the transmission of TV/radio reception audio signal
After television video frequency signal was delivered on the DSP with the form of YUV422, DSP got the data volume of 360*260 in the initial data and carries out matching treatment.Carry out corresponding data processing, to image carry out level and smooth and the rate of detecing synchronous.The go forward side by side SCALE of row image is shown to it on mobile phone screen of QVGA.Be transferred to the mobile phone end CODEC in the I2S mode from the TV decoding chip, utilize the data GAIN among the CODEC, this voice signal is gained amplify and the EQ processing.Convert analog signal at DAC transducer and export, realize the playback of sound from SPEAKER through CODEC.
(4) processing of television video frequency signal and transmission
Play owing to need on mobile phone, realize the satellite broadcasting television of general family expenses,, use general demodulation method not realize that the present invention has selected integrated chip solution for use, has saved the space, realize the mobile phoneization of TV so need integrated level very high.In this integrated chip that uses, it is to the reception/demodulation of satellite broadcast signal, can from accompanying drawing 4, find out, it is a kind of signal frame diagram of satellite broadcasting reception/demodulation, it has been represented to carry out the satellite television broadcasting signal and has received and demodulation, obtaining the handling process that needs component, is to handle receiving broadcast singal from antenna, obtains its audio component and video component.Audio component is exported outward via the I2S passage of chip, broadcasts from SPK through after the demodulation process in the CODEC chip.And video component is isolated each component of YUV after treatment, and according to the parameter that configures in the early time video data is carried out cutting and component samples.From exporting from 8 video data line, then decoded in DSP/conversion at last with the form that meets the ITU601/656 suggestion, deliver to LCD and go up the output demonstration.
(5) conversion of vision signal and in the demonstration of LCM
The conversion of vision signal of the present invention and realize by dsp chip in the demonstration of LCM, the yuv video signal that receives carries out decoding processing at DSP, and change into the form that can show at LCD according to the requirement of current display screen, generally for the LCD of 16BITS, use be the display format of RGB656., the past LCM of video data one every trade can be gone up and transmit, thereby on LCD, show after data decode and converting at DSP.
The present invention provides description as example to this method, but should not limit protection scope of the present invention with this.