The method that a kind of TV channel presets
Technical field
The present invention relates to TV technology, particularly relate to the method that a kind of TV channel presets.
Background technology
Television set is one of household appliances of the most normal use in people's daily life, people can understand national affairs, topical news by the channel correlation of TV, pay close attention to international situation, world peace, share the economic construction achievement of China, as the construction of Three Gorges Dam, the lift-off of manned spaceship etc.; Can also understand, grasp various general knowledge such as economy, law, life by TV, understand, grasp modern science and technology knowledge, link up the information of getting rich; Can also watch programs such as movie and television play, music, Chinese folk art forms, physical culture by TV, TV has greatly enriched people's life, we can say, TV has become and one of closely bound up and indispensable articles for use of daily life.
The significantly raising with people's living standard of further developing along with TV tech, television channel number also is more and more, develop into five, 60 present channels from two, three early stage channels, the frequency channel preset of existing television set, mostly be to adopt programme controlled mode, begin to advance to high frequency points from the low side Frequency point, seek one always and satisfy the locking of (1) audio video synchronization according to certain platform algorithm of seeking; (2) AFC (automatic frequency control signal) voltage is about 2.5V, and such Frequency point is one " platform " that signal is arranged; When television set is placed in the automatic channel search state, its MCU sends instruction, tuner enters the high-velocity scanning state, simultaneously, MCU monitors synchronous signal input end, synchronizing separator circuit is delivered to MCU with synchronizing signal, after MCU receives synchronizing signal, make system enter the slow scanning state, MCU turned to the AFC input was monitored this moment, when AFC reaches the voltage that presets, signal receives and reaches optimum state, MCU will operate holder this moment, and at that time tuning data (tuning voltage, parameters such as frequency range state of a control) is deposited in electric erasable programmable memory device E
2The appropriate address of PROM, and carry out E simultaneously
2PROM holder address code adds one, and corresponding random asccess memory MCU RAM channel memory location number also adds one, repeats said process then, till the complete frequency range of scanning; Will finish according to the method and preset a kind of like this process from 48MHZ to 870MHZ full frequency band automatic channel and just must spend significant period of time, quite a few user is owing to the platform of seeking that can't stand is so long had many complaints.Moreover, such platform method of seeking also can't sort to channel according to the order of individual habit of user, and this has brought inconvenience with regard to the use of giving the user.
Summary of the invention
The objective of the invention is to overcome the deficiency of prior art, the method that provides a kind of TV channel to preset, both can make the user carry out frequency channel preset faster and betterly, and be convenient to again channel be sorted, bring result of use preferably to the user according to the order of individual habit of user.
The technical solution adopted for the present invention to solve the technical problems is: the method that a kind of TV channel presets, it comprises the steps:
A. in the menu operation interface, set up the menu item of optional channel memory location number following incoming frequency point;
B. the display frequency individual event hurdle of ordering dishes is accepted selected channel memory location Frequency point numerical value number down and is imported;
C.MCU accepts the Frequency point signal that number keys of remote controller sends, and with described Frequency point value storage in random asccess memory MCU RAM;
D. the Frequency point numerical value among the random asccess memory MCU RAM is converted to high-frequency tuner acceptable frequency data according to algorithmic formula and is stored in the frequency data memory cell of random asccess memory MCU RAM, described frequency data memory cell includes high byte unit, low byte unit, frequency range control byte unit and other control byte unit;
The frequency data that e. will be stored in MCU RAM are according to the I between MCU and the high-frequency tuner
2The C agreement, and be transferred to high-frequency tuner by SDA (data), SCL (clock) transmission channel;
F. high-frequency tuner is sent video image signal and is given image processing unit, and to MCU output AFC voltage.
G.MCU monitors the AFC input of high-frequency tuner, and the continuous frequency data of adjusting to high-frequency tuner output, when AFC reached the voltage that presets and makes signal be received as optimum state, MCU deposited the frequency data among the random asccess memory MCU RAM in electric erasable programmable memory device E
2Among the PROM;
H. the data of refresh RAM MCU RAM medium frequency data storage cell, repeating step b accepts next Frequency point numerical value input or finishes to preset.
Described algorithmic formula is: frequency data=(incoming frequency value+38) * 20.
High 7 bit bytes of described high byte unit write frequency data.
The least-significant byte byte of described low byte unit write frequency data.
The described data that write frequency range control byte unit are produced by the following step:
A. the Frequency point numerical value of input is compared with the peak frequency number of very high frequency(VHF) low-frequency range VHFL, if the Frequency point numerical value of input then enters next step greater than the peak frequency number of very high frequency(VHF) low-frequency range VHFL; Otherwise, the VHFL control data is write frequency range control byte unit;
B. the Frequency point numerical value of input is compared with the peak frequency number of very high frequency(VHF) high band VHFH, if the Frequency point numerical value of input then enters next step greater than the peak frequency number of very high frequency(VHF) high band VHFH; Otherwise, the VHFH control data is write frequency range control byte unit;
C. hyperfrequency UHF control data is write frequency range control byte unit.
Described intermediate frequency amplification module comprises demodulation circuit of intermediate frequency and AFC voltage generation circuit.
Described electric erasable programmable memory device E
2PROM comprises channel data memory block and I
2C data bus interface circuit.
Above-mentioned frequency channel preset has comprised random asccess memory MCU RAM, I by finishing between MCU and the high-frequency tuner among the MCU
2C data bus interface circuit, A/D change-over circuit, read-only memory MCU ROM; High-frequency tuner has comprised I
2C data bus interface circuit, IF intermediate frequency amplification module, control data change-over circuit and demodulation output circuit; Wherein IF intermediate frequency amplification module comprises a demodulation circuit of intermediate frequency and an AFC voltage generation circuit.
High-frequency tuner Tuner has the PHILIPS I of standard
2C interface and MCU realize data communication, and the MCU write data is all followed the PHILIPS I of standard
2The C agreement.Follow I by SDA (data), SCL (clock) between MCU and the high-frequency tuner Tuner
2The C agreement is carried out communication.High-frequency tuner Tuner gives MCU corresponding AFC voltage signal, the basis for estimation that whether locks as vision signal (generally speaking AFC voltage near 2.5V, the vision signal locking, when being higher than 2.5V, it is too low to illustrate that MCU gives the frequency data of Tuner; When being lower than 2.5V, it is too high to illustrate that MCU gives the data frequency of high-frequency tuner Tuner).According to this point, occur when this method of employing " frequently floating "---during the Frequency point drift, still can be locked in optimum state to vision signal,, then increase the frequency data of giving high-frequency tuner Tuner if promptly MCU finds that AFC voltage is too high; If AFC voltage is too low, then reduce the frequency data of giving high-frequency tuner Tuner.
During use, enter menu interface, the selected frequencies individual event of ordering dishes, with 0~9 digital keys incoming frequency point on the remote controller, the Frequency point of input (being made as PLL-INPUT) numerical value is deposited among the random asccess memory MCU RAM of MCU then, and adopts formula to be:
Frequency write data PLL-WRITE=(incoming frequency value PLL-INPUT+38) * 20
Formula convert Frequency point numerical value to high-frequency tuner Tuner acceptable data mode, the acceptable Frequency point data mode of Tuner is:
PLL HIGH BYTE(7bits) |
PLL LOW BYTE(8bits) |
BAND CONTROL BYTE |
OTHER CONTROL BYTE |
This data mode has comprised high byte unit PLL HIGH BYTE, low byte unit PLL LOWBYTE, frequency range control byte unit B AND CONTROL BYTE and other control byte unit OTHER CONTROL BYTE; Wherein high 7 of Frequency point data PLL-DATA write high byte unit PLL HIGH BYTE, and the least-significant byte of Frequency point data PLL-DATA writes in the low byte unit PLL LOWBYTE.In MCU, judge the data that write frequency range control byte unit B AND CONTROL BYTE simultaneously.Deposit the I of the frequency data of read-only memory MCU ram cell by MCU
2The I of C data bus interface circuit and high-frequency tuner
2C data bus interface circuit passes to Tuner control data change-over circuit and IF intermediate frequency amplification module.Be sent to demodulation output circuit after the intermediate-freuqncy signal demodulation that demodulation circuit of intermediate frequency in the IF module produces, and export to image processing unit thus.
The invention has the beneficial effects as follows, carry out frequency channel preset owing to adopted in menu item mode with incoming frequency point, promptly by among the MCU frequency numerical value of input being converted to high-frequency tuner acceptable frequency data and being stored in the frequency data memory cell of random asccess memory MCU RAM, and pass through I
2C data bus interface circuit writes the high-frequency tuner unit with data, thereby startup image processing unit, as long as make the user know the working channel of local cable TV, draw " channel-frequency table of comparisons ", or " the frequency meter card " of a local cable TV that obtains by other approach, enter TV user menu operation interface then and under selected channel memory location number, import the Frequency point at each channel place according to the order of personal habits successively, can finish all channel frequency that is broadcasting points in the short period of time and preset, and can channel be sorted according to the order of individual habit of user fully; It not only can solve effectively seeks long problem of platform time, and easy and simple to handle, is easy to be accepted by users.
Description of drawings
Below in conjunction with drawings and Examples the present invention is described in further detail; But the method that a kind of TV channel of the present invention presets is not limited to embodiment.
Fig. 1 is the structural representation of frequency channel preset device of the present invention;
Fig. 2 is the flow chart of Frequency point data transaction of the present invention.
Embodiment
Shown in accompanying drawing, the method that a kind of TV channel of the present invention presets, it comprises the steps:
Step a: the menu item of in the menu operation interface, setting up optional channel memory location number following incoming frequency point;
Step b: the display frequency individual event hurdle of ordering dishes, accept selected channel memory location Frequency point numerical value number down and import;
Step c:MCU accepts the Frequency point signal that number keys of remote controller sends, and with described Frequency point value storage in random asccess memory MCU RAM;
Steps d: the Frequency point numerical value among the random asccess memory MCU RAM is converted to high-frequency tuner acceptable frequency data according to algorithmic formula and is stored in the frequency data memory cell of random asccess memory MCU RAM, described frequency data memory cell includes high byte unit, low byte unit, frequency range control byte unit and other control byte unit;
Wherein, described algorithmic formula is: frequency data=(incoming frequency value+38) * 20; High 7 bit bytes of write frequency data in the high byte unit; The least-significant byte byte of write frequency data in the low byte unit.
The data that write frequency range control byte unit are then produced by the following step:
A. the Frequency point numerical value of input is compared with the peak frequency number of very high frequency(VHF) low-frequency range VHFL, if the Frequency point numerical value of input then enters next step greater than the peak frequency number of very high frequency(VHF) low-frequency range VHFL; Otherwise, the VHFL control data is write frequency range control byte unit;
B. the Frequency point numerical value of input is compared with the peak frequency number of very high frequency(VHF) high band VHFH, if the Frequency point numerical value of input then enters next step greater than the peak frequency number of very high frequency(VHF) high band VHFH; Otherwise, the VHFH control data is write frequency range control byte unit;
C. hyperfrequency UHF control data is write frequency range control byte unit.
Step e: the frequency data that will be stored in MCU RAM are according to the I between MCU and the high-frequency tuner
2The C agreement, and be transferred to high-frequency tuner by SDA (data), SCL (clock) transmission channel;
Step f: high-frequency tuner is sent video image signal and is given image processing unit, and to MCU output AFC voltage.
Step g: MCU monitors the AFC input of high-frequency tuner, and the continuous frequency data of adjusting to high-frequency tuner output, when AFC reached the voltage that presets and makes signal be received as optimum state, MCU deposited the frequency data among the random asccess memory MCU RAM in electric erasable programmable memory device E
2Among the PROM;
Step h: the data of refresh RAM MCU RAM medium frequency data storage cell, repeating step b accepts next Frequency point numerical value input or finishes to preset.
Wherein, intermediate frequency amplification module 16 comprises demodulation circuit of intermediate frequency and AFC voltage generation circuit; Electric erasable programmable memory device 19 comprises channel data memory block and I
2C data bus interface circuit, the frequency data that deposited in electric erasable programmable memory device 19 by MCU are to follow I
2The C agreement is carried out communication.
The frequency channel preset process has comprised random asccess memory 11, I by finishing between MCU and the high-frequency tuner among the MCU
2C data bus interface circuit 12, A/D change-over circuit 13, read-only memory 14; High-frequency tuner has comprised I
2C data bus interface circuit 15, IF intermediate frequency amplification module 16, control data change-over circuit 17 and demodulation output circuit 18; Wherein IF intermediate frequency amplification module 16 comprises a demodulation circuit of intermediate frequency and an AFC voltage generation circuit.
High-frequency tuner Tuner has the PHILIPS I of standard
2C interface and MCU realize data communication, and the MCU write data is all followed the PHILIPS I of standard
2The C agreement.Follow I by SDA (data), SCL (clock) between MCU and the high-frequency tuner Tuner
2The C agreement is carried out communication.High-frequency tuner Tuner gives MCU corresponding AFC voltage signal, the basis for estimation that whether locks as vision signal (generally speaking AFC voltage near 2.5V, the vision signal locking, when being higher than 2.5V, it is too low to illustrate that MCU gives the frequency data of Tuner; When being lower than 2.5V, it is too high to illustrate that MCU gives the data frequency of high-frequency tuner Tuner).According to this point, occur when this method of employing " frequently floating "---during the Frequency point drift, still can be locked in optimum state to vision signal,, then increase the frequency data of giving high-frequency tuner Tuner if promptly MCU finds that AFC voltage is too high; If AFC voltage is too low, then reduce the frequency data of giving high-frequency tuner Tuner.
During use, as shown in Figure 2, step 21 is an initial actuating, the menu interface of starting shooting, the selected frequencies individual event of ordering dishes; Last 0~9 digital keys incoming frequency point, i.e. step 22 then uses a teleswitch; The Frequency point of input is made as PLL-INPUT numerical value and is deposited in the random asccess memory 11 of MCU, and then this numerical value deposits in the random asccess memory 11 of MCU according to certain algorithm by I2C data bus interface circuit 12, and the formula that above-mentioned algorithm adopted is:
Frequency write data PLL-WRITE=(incoming frequency value PLL-INPUT+38) * 20
Convert the acceptable data mode of Tuner thus to, the acceptable Frequency point data mode of Tuner is:
PLL HIGH BYTE(7bits) |
PLL LOW BYTE(8bits) |
BAND CONTROL BYTE |
OTHER CONTROL BYTE |
High byte unit PLL HIGH BYTE, low byte unit PLL LOW BYTE, frequency range control byte unit B AND CONTROL BYTE and other control byte unit OTHERCONTROL BYTE have promptly been comprised; Wherein high 7 of Frequency point data PLL-DATA write high byte unit PLLHIGH BYTE, and the least-significant byte of Frequency point data PLL-DATA writes in the low byte unit PLL LOW BYTE, sees step 23; In read-only memory 14, judge the data that write frequency range control byte unit B ANDCONTROL BYTE simultaneously,
In step 24, the peak frequency number of establishing very high frequency(VHF) low-frequency range VHFL is:
VHFL-PLL-DATA-MAX, the Frequency point numerical value PLL-INPUT that imports is counted VHFL-PLL-DATA-MAX with the peak frequency of very high frequency(VHF) low-frequency range VHFL to compare, if the Frequency point numerical value PLL-INPUT of input counts VHFL-PLL-DATA-MAX greater than the peak frequency of very high frequency(VHF) low-frequency range VHFL, then enter step 26; Otherwise, enter step 25, the VHFL control data is write frequency range control byte unit B AND CONTROLBYTE; In step 26, the peak frequency number of establishing very high frequency(VHF) high band VHFH is:
VHFH-PLL-DATA-MAX, the Frequency point numerical value PLL-INPUT that imports is counted VHFH-PLL-DATA-MAX with the peak frequency of very high frequency(VHF) high band VHFH to compare, if the Frequency point numerical value PLL-INPUT of input counts VHFH-PLL-DATA-MAX greater than the peak frequency of very high frequency(VHF) high band VHFH, then enter step 28; Otherwise, enter step 27, the VHFH control data is write frequency range control byte unit B AND CONTROLBYTE; In step 28, the UHF control data is write frequency range control byte unit B AND CONTROLBYTE unit; Step 29 refreshes the value of other control byte unit OTHER CONTROL BYTE for finishing.Deposit the I of the data of random asccess memory MCU ram cell by MCU
2The I of C data bus interface circuit and high-frequency tuner
2C data bus interface circuit passes to Tuner control data change-over circuit and IF intermediate frequency amplification module.Pass through I after the intermediate-freuqncy signal demodulation that demodulation circuit of intermediate frequency in the IF module produces
2C data bus interface circuit is sent to demodulation output circuit, and exports to image processing unit thus.
Owing to adopted in menu item mode to carry out frequency channel preset,, and pass through I promptly by among the MCU frequency numerical value of importing being converted to high-frequency tuner acceptable frequency data and being stored in the frequency data memory cell of read-only memory 11 with incoming frequency point
2C data bus interface circuit 12,15 write the high-frequency tuner unit with data, thereby startup image processing unit, as long as make the user know the working channel of local cable TV, draw " channel-frequency table of comparisons ", or " the frequency meter card " of a local cable TV that obtains by other approach, enter TV user menu operation interface then and under selected channel memory location number, import the Frequency point at each channel place according to the order of personal habits successively, can finish all channel frequency that is broadcasting points in the short period of time and preset, and can channel be sorted according to the order of individual habit of user fully; It not only can solve effectively seeks long problem of platform time, and easy and simple to handle, is easy to be accepted by users.