Summary of the invention
The objective of the invention is to overcome above-mentioned weak point, the method for a kind of analogue television signal receiver automatic identification of standard to received signal is provided.
The technical solution adopted in the present invention is for achieving the above object: the method for a kind of analogue television signal receiver automatic identification of standard to received signal, it is characterized in that after system powers on, program is carried out the initialization and the self check of system parameters, enters system's major cycle after finishing; In major cycle, program will judge whether the signal input, mainly be to rely on whether to detect capable signal; After testing, if the no signal input then continues major cycle; Otherwise, will call the S-SYSTEM automatic identification procedure, export the variable of a reflection S-SYSTEM, this variable is the bxcolordetect value, the S-SYSTEM that different values is corresponding different;
Concrete implementation step is as follows:
At first, judge whether the signal field frequency is 50Hz, if, judge again whether signal is SECAM, the color modulation principle of SECAM is different with PAL.NTSC, and its two color difference signals are that the mode with frequency modulation is modulated on two different color sub-carriers, and delegation connects the sequential delivery of delegation; If detect is the SECAM modulation, and then this signal of decidable is SECAM 625i, makes bxcolordetect=2, and returns major cycle;
If be not the SECAM modulation after testing, judge the color sub-carrier frequency of signal again, and color sub-carrier frequency>4.2MHz is judged, when signal colouration subcarrier frequency>4.2MHz, be that the decidable S-SYSTEM is PAL BG/DK/H/I, make bxcolordetect=0, and return major cycle; On the contrary, promptly the decidable S-SYSTEM is PAL Nc, makes bxcolordetect=1, and returns major cycle;
Judge again whether the signal field frequency is 60Hz, if not, system returns major cycle; After testing, field frequency is 60Hz, judges whether signal is the SECAM modulation, is the SECAM modulation if detect, and then this signal of decidable is SECAM 525i, makes bxcolordetect=6; And return major cycle;
If be not the SECAM modulation after testing, judge the color sub-carrier frequency of signal again, and color sub-carrier frequency>4.2MHz is judged, when the signal colouration subcarrier frequency is not more than 4.2MHz, be that the decidable S-SYSTEM is NTSC M/PAL M, make bxcolordetect=5, and return major cycle;
On the contrary, when color sub-carrier frequency>4.2MHz, continue to judge whether Switch into PAL, PALSwitch is the bearing calibration that pal mode is used in order to solve phase error, be PALSwitch when detecting, be that the decidable S-SYSTEM is PAL 60, make bxcolordetect=3, and return major cycle; Otherwise promptly the decidable S-SYSTEM is NTSC 4.43, makes bxcolordetect=4, and returns major cycle.
The invention has the beneficial effects as follows: this method is designed the algorithm that can discern S-SYSTEM automatically, by utilizing the specific function piece or the specified register of signal processing chip, makes television receiver discern the S-SYSTEM of the signal that receives automatically.Be applicable to whole world television broadcasting system, because the S-SYSTEM difference of each earth signal makes TV-signal receiver must distinguish and handle various S-SYSTEMs.By this method, TV watching person can make TV-signal receiver have the S-SYSTEM function of identification automatically by setting this option, screen is remained show correct color image information.
Embodiment
Referring to Fig. 1, illustrated an anolog TV signals receiving system composition frame chart of simplifying function at this.The simulated television radiofrequency signal is delivered to tuner by antenna.Antenna has included the connected mode that comprises aerial analog television broadcast and cable TV Cable, can receive anolog TV signals.Antenna can carry out manual adjustments, and signal is used for identification and tuning various anolog TV signals channel after delivering to tuner, and is in common knowledge as this area.
Tuner is transformed into the anolog TV signals of characteristic frequency on the intermediate frequency carrier under the control of microprocessor, after Surface Acoustic Wave Filter filtering, enters the intermediate frequency process chip then and carries out intermediate frequency process; The intermediate frequency process chip is transformed into this intermediate-freuqncy signal base band video again and enters the base band video process chip and carry out Base-Band Processing; Last conversion of signals is that rgb format enters display control chip, by display control chip display device is controlled, and forms image at last.Except other function of knowing altogether in the prior art, according to various aspects of the present invention, microprocessor provides the control and the realization of various software program/routine, and communicates with other various assemblies.
Should be appreciated that microprocessor, intermediate frequency process chip, base band video process chip are together formed and can be realized module of the present invention.This module can be fully independently, perhaps forms different complete machine entities with other various modules.
To narrate below and search platform, show the whole flow process of correct S-SYSTEM to the screen from the user
Learn about present S-SYSTEM in the world at first, earlier:
S-SYSTEM sees the following form:
Wherein,
Hor.Freq represents line-scanning frequency.(Horizontal Frequency)
Ver.Freq represents field-scanning period.(Vertical Frequency)
Fsc Freq represents the color sub-carrier frequency of S-SYSTEM.(Subsidiary Carrier Freqency) these three parameters play crucial effects to the identification of television receiver S-SYSTEM.
Table 1
|
PAL BG/DK /I/H |
PALNc |
PAL60 |
NTSCM |
NTSC 4.43 |
SECAM 625i |
SECAM 525i |
Hor Freq |
15.625 KHz |
15.625 KHz |
15.625 KHz |
15.734 KHz |
15.734 KHz |
15.625 KHz |
15.734 KHz |
Ver Freq |
50Hz |
50Hz |
60Hz |
60Hz |
60Hz |
50Hz |
60Hz |
Fsc Freq |
4.43 MHz |
3.58 MHz |
4.43M Hz |
3.58 MHz |
4.43 MHz |
4.25/4.4 0MHz |
4.25/4.40 MHz |
Referring to Fig. 2, the user chooses S-SYSTEM to discern automatically in menu and uses this function.
Referring to Fig. 3, after system powered on, program was carried out the initialization and the self check work of system parameters, enters system's major cycle after finishing.In major cycle, program will judge whether signal input, mainly be to rely on whether to detect H LOCK, promptly whether detect capable signal, and judgement herein is that everybody is in common knowledge.If after testing, the no signal input, then continue major cycle: otherwise, will call the S-SYSTEM automatic identification procedure, export a bxcolordetect value.Bxcolordetect is the variable that reflects S-SYSTEM that we define, the S-SYSTEM that different value is corresponding different.
Referring to Fig. 4, enter system's S-SYSTEM output program after, will judge that carry out the processing of corresponding standard then, we can be defined as follows table with the S-SYSTEM of corresponding bxcolordetect value: (representing with bx in the table) to the bxcolordetect value of input
Table 2
|
Bx=0 |
Bx=1 |
Bx=2 |
Bx=3 |
Bx=4 |
Bx=5 |
Bx=6 |
Color system |
PAL BG/DK/H/I | PALNc |
SECAM | 625i |
PAL60 |
NTSC 4.43 |
NTSC M/ PAL M | SECAM | 525i |
Referring to Fig. 5, be S-SYSTEM automatic identification algorithm flow chart, at first the user selects S-SYSTEM Auto pattern in custom menu, be that S-SYSTEM is discerned (Auto color detect) automatically, if signal input (judging in main program) is arranged, enter colored (Auto color detect) program of identification automatically, just describe the flow chart that program of the present invention realizes below in detail.
Television receiver system judges that S-SYSTEM mainly relies on the above-mentioned Several Parameters of mentioning, detection to these parameters, various TVs may be used diverse ways, perhaps the unlike signal process chip is with different registers, but we can find corresponding part to reflect these parameters, and this is that everybody is in common knowledge.
At first, judge whether the signal field frequency is 50Hz, if, judge again whether signal is SECAM, the color modulation principle of SECAM is different with PAL.NTSC, and its two color difference signals are that the mode with frequency modulation is modulated on two different color sub-carriers, and delegation connects the sequential delivery of delegation.If detect is the SECAM modulation, and then this signal of decidable is SECAM 625i, makes bxcolordetect=2; , and return major cycle;
If be not the SECAM modulation after testing, judge the color sub-carrier frequency of signal again, reference table 1, we judge color sub-carrier frequency>4.2MHz, when signal colouration subcarrier frequency>4.2MHz, be that the decidable S-SYSTEM is PAL BG/DK/H/I, make bxcolordetect=0, and return major cycle; On the contrary, promptly the decidable S-SYSTEM is PAL Nc, makes bxcolordetect=1, and returns major cycle;
So far, field frequency is that the judgement of 50Hz signal S-SYSTEM finishes.
Next, judge whether the signal field frequency is 60Hz, if not, system returns major cycle.
After testing, field frequency is 60Hz, judges whether signal is the SECAM modulation, is the SECAM modulation if detect, and then this signal of decidable is SECAM 525i, makes bxcolordetect=6; And return major cycle;
If be not the SECAM modulation after testing, judge the color sub-carrier frequency of signal again, reference table 1, we judge color sub-carrier frequency>4.2MHz, when the signal colouration subcarrier frequency is not more than 4.2MHz, be that the decidable S-SYSTEM is NTSC M/PAL M, make bxcolordetect=5, and return major cycle;
On the contrary, when color sub-carrier frequency>4.2MHz, continue to judge whether Switch into PAL, PALSwitch is the alignment technique that pal mode is used in order to solve phase error, be PALSwitch when detecting, be that the decidable S-SYSTEM is PAL 60, make bxcolordetect=3, and return major cycle; Otherwise promptly the decidable S-SYSTEM is NTSC 4.43, makes bxcolordetect=4, and returns major cycle.
So far, resolved realization S-SYSTEM automatic identification algorithm flow chart in detail.System can carry out the color processing process of corresponding standard according to the value of variable bxcolordetect, makes screen can show correct colour information all the time.
In existing analogue television signal receiver, the TV signal of various S-SYSTEMs generally can both be handled and show to receiver, is called the full system type pictorial TV-signal receiver.Accordingly, as the hardware that constitutes whole receiver system, as signal processing chip, various functional circuits etc. must have the function of handling various S-SYSTEM signals.The invention provides the computational methods that a kind of program is used, utilize the functional block or the specified register of signal processing chip, make television receiver discern the S-SYSTEM of the signal that receives automatically.By above-mentioned equipment and algorithm, system just can realize controlling ground by the user, and the TV signal S-SYSTEM is the function of identification automatically, will bring great convenience to the user.
Above-mentioned with reference to the detailed description of embodiment to the method for the analogue television signal receiver of the present invention automatic identification of standard to received signal, be illustrative rather than determinate; Therefore in the variation and the modification that do not break away under the general plotting of the present invention, should belong within protection scope of the present invention.