Summary of the invention
Technical assignment of the present invention is for above weak point; provide a kind of to LNB power supply circuits overcurrent or short-circuit condition detects and interrupt voltage protection in time, prevent the detection guard method of LNB power supply circuits in a kind of satellite television Set Top Box that the LNB power supply circuits of satellite television Set Top Box are burnt because of short circuit or the increase of electric current moment.
The technical solution adopted for the present invention to solve the technical problems is: adopt sample circuit to carry out overcurrent, short-circuit detecting to LNB power supply circuits, and the interrupt signal that sample circuit is produced outputs to the interrupt pin of the CPU of satellite television Set Top Box, triggering interrupt service routine by level shifting circuit; Sample circuit is mainly added sampling resistor and is formed by sampling triode, the level shifting circuit of LNB power supply circuits to CPU IO mouth is set after sampling triode, and level shifting circuit is mainly biased resistance by a triode and forms; Comprise the steps:
(1), the operating current of LNB power supply circuits flows through the voltage that sampling resistor produces, the break-make of control sampling triode;
(2), in the time that LNB power supply circuits are normally worked, sampling triode be operated in cut-off region;
(3), in the time that LNB power supply circuits are abnormal, sampling triode enter saturation region, sampling triode produce interrupt signal;
(4), interrupt signal outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit, trigger interrupt service routine;
(5), enter interrupt service routine after, first CPU closes LNB power supply circuits by IO mouth;
(6), in the UI of satellite television Set Top Box interface display fault information, prompting user LNB power supply circuits are abnormal, ask user to investigate fault.
When LNB power supply circuits are normally worked, operating current is less than 100mA, the voltage < 0.7V that now sampling resistor produces, and sampling triode is operated in cut-off region; When LNB power supply circuits occur extremely, when operating current increases suddenly, producing the voltage of > 0.7V on sampling resistor, sampling triode enters saturation region, and the collector electrode of sampling triode forms a rising edge voltage; This rising edge voltage outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit as interrupt signal.
Interrupt service routine was opened LNB power supply circuits and exits interrupt service routine every 5 seconds; If LNB power supply circuits abnormal failure is eliminated, remove the fault information in the UI interface of satellite television Set Top Box, satellite television Set Top Box is normally worked again; If LNB power supply circuits abnormal failure still exists, sample circuit can send the interrupt pin of interrupt signal to the CPU of satellite television Set Top Box again, and satellite television set-top-box system enters interrupt service routine again.
Adopting the sampling resistor of sample circuit is resistance R S1, resistance R S2, tri-parallel resistances of resistance R S3, and above-mentioned three parallel resistance circuit are connected between the base stage and emitter of sampling triode QN2; Level shifting circuit comprises triode QN4 and biasing resistor R4, and the collector electrode of sampling triode QN2 is connected to the base stage of triode QN4, and the collector electrode of triode QN4 is connected to the interrupt pin of CPU; Biasing resistor R4 is connected to the prime output of LNB power supply circuits.
In a kind of satellite television Set Top Box of the present invention, compared to the prior art the detection guard method of LNB power supply circuits, has the following advantages:
1, sample circuit carries out overcurrent, short-circuit detecting to LNB power supply circuits, and the interrupt signal that sample circuit is produced outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit, trigger interrupt service routine, effectively prevent that the LNB power supply circuits of satellite television Set Top Box from being burnt because short circuit or electric current moment increase;
2, interrupt service routine was opened LNB power supply circuits and exits interrupt service routine every 5 seconds; This step can make the overcurrent that the interference of moment causes, the transient fault of short circuit, and after instantaneous eliminating, satellite television set-top-box system is restored in time;
3, simple in structure, the low cost of manufacture, practical of sample circuit and level shifting circuit.
Embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
Embodiment 1:
The detection guard method of LNB power supply circuits in a kind of satellite television Set Top Box of the present invention, adopt sample circuit to carry out overcurrent, short-circuit detecting to LNB power supply circuits, and the interrupt signal that sample circuit is produced outputs to the interrupt pin of the CPU of satellite television Set Top Box, triggering interrupt service routine by level shifting circuit; Sample circuit is mainly added sampling resistor and is formed by sampling triode, the level shifting circuit of LNB power supply circuits to CPU IO mouth is set after sampling triode, and level shifting circuit is mainly biased resistance by a triode and forms; Comprise the steps:
(1), the operating current of LNB power supply circuits flows through the voltage that sampling resistor produces, the break-make of control sampling triode;
(2), in the time that LNB power supply circuits are normally worked, sampling triode be operated in cut-off region;
(3), in the time that LNB power supply circuits are abnormal, sampling triode enter saturation region, sampling triode produce interrupt signal;
(4), interrupt signal outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit, trigger interrupt service routine;
(5), enter interrupt service routine after, first CPU closes LNB power supply circuits by IO mouth;
(6), in the UI of satellite television Set Top Box interface display fault information, prompting user LNB power supply circuits are abnormal.
Embodiment 2:
The detection guard method of LNB power supply circuits in a kind of satellite television Set Top Box of the present invention, adopt sample circuit to carry out overcurrent, short-circuit detecting to LNB power supply circuits, and the interrupt signal that sample circuit is produced outputs to the interrupt pin of the CPU of satellite television Set Top Box, triggering interrupt service routine by level shifting circuit; Sample circuit is mainly added sampling resistor and is formed by sampling triode, the level shifting circuit of LNB power supply circuits to CPU IO mouth is set after sampling triode, and level shifting circuit is mainly biased resistance by a triode and forms; Comprise the steps:
(1), the operating current of LNB power supply circuits flows through the voltage that sampling resistor produces, the break-make of control sampling triode;
(2), in the time that LNB power supply circuits are normally worked, sampling triode be operated in cut-off region;
(3), in the time that LNB power supply circuits are abnormal, sampling triode enter saturation region, sampling triode produce interrupt signal;
(4), interrupt signal outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit, trigger interrupt service routine;
(5), enter interrupt service routine after, first CPU closes LNB power supply circuits by IO mouth;
(6), in the UI of satellite television Set Top Box interface display fault information, prompting user LNB power supply circuits are abnormal.
When LNB power supply circuits are normally worked, operating current is less than 100mA, the voltage < 0.7V that now sampling resistor produces, and sampling triode is operated in cut-off region; When LNB power supply circuits occur extremely, when operating current increases suddenly, producing the voltage of > 0.7V on sampling resistor, sampling triode enters saturation region, and the collector electrode of sampling triode forms a rising edge voltage; This rising edge voltage outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit as interrupt signal.
Interrupt service routine was opened LNB power supply circuits and exits interrupt service routine every 5 seconds; If LNB power supply circuits abnormal failure is eliminated, remove the fault information in the UI interface of satellite television Set Top Box, satellite television Set Top Box is normally worked again; If LNB power supply circuits abnormal failure still exists, sample circuit can send the interrupt pin of interrupt signal to the CPU of satellite television Set Top Box again, and satellite television set-top-box system enters interrupt service routine again.
Embodiment 3:
The detection guard method of LNB power supply circuits in a kind of satellite television Set Top Box of the present invention, adopt sample circuit to carry out overcurrent, short-circuit detecting to LNB power supply circuits, and the interrupt signal that sample circuit is produced outputs to the interrupt pin of the CPU of satellite television Set Top Box, triggering interrupt service routine by level shifting circuit; Sample circuit is mainly added sampling resistor and is formed by sampling triode, the level shifting circuit of LNB power supply circuits to CPU IO mouth is set after sampling triode, and level shifting circuit is mainly biased resistance by a triode and forms; Comprise the steps:
(1), the operating current of LNB power supply circuits flows through the voltage that sampling resistor produces, the break-make of control sampling triode;
(2), in the time that LNB power supply circuits are normally worked, sampling triode be operated in cut-off region;
(3), in the time that LNB power supply circuits are abnormal, sampling triode enter saturation region, sampling triode produce interrupt signal;
(4), interrupt signal outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit, trigger interrupt service routine;
(5), enter interrupt service routine after, first CPU closes LNB power supply circuits by IO mouth;
(6), in the UI of satellite television Set Top Box interface display fault information, prompting user LNB power supply circuits are abnormal.
When LNB power supply circuits are normally worked, operating current is less than 100mA, the voltage < 0.7V that now sampling resistor produces, and sampling triode is operated in cut-off region; When LNB power supply circuits occur extremely, when operating current increases suddenly, producing the voltage of > 0.7V on sampling resistor, sampling triode enters saturation region, and the collector electrode of sampling triode forms a rising edge voltage; This rising edge voltage outputs to the interrupt pin of the CPU of satellite television Set Top Box by level shifting circuit as interrupt signal.
Interrupt service routine was opened LNB power supply circuits and exits interrupt service routine every 5 seconds; If LNB power supply circuits abnormal failure is eliminated, remove the fault information in the UI interface of satellite television Set Top Box, satellite television Set Top Box is normally worked again; If LNB power supply circuits abnormal failure still exists, sample circuit can send the interrupt pin of interrupt signal to the CPU of satellite television Set Top Box again, and satellite television set-top-box system enters interrupt service routine again.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; in any a kind of satellite television Set Top Box according to the invention, suitable variation or the replacements claims and that any person of an ordinary skill in the technical field does it of the detection guard method of LNB power supply circuits, all should fall into scope of patent protection of the present invention.
As shown in Figure 2, adopting the sampling resistor of sample circuit is resistance R S1, resistance R S2, tri-parallel resistances of resistance R S3, and above-mentioned three parallel resistance circuit are connected between the base stage and emitter of sampling triode QN2; Level shifting circuit comprises triode QN4 and biasing resistor R4, and the collector electrode of sampling triode QN2 is connected to the base stage of triode QN4, and the collector electrode of triode QN4 is connected to the interrupt pin of CPU; Biasing resistor R4 is connected to the prime output of LNB power supply circuits.
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to 3 kinds of above-mentioned embodiments.On the basis of disclosed execution mode, described those skilled in the art can the different technical characterictic of combination in any, thereby realizes different technical schemes.