Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of power supply switch control system of communicating terminal, and ability orderly close-down radio-frequency power supply and base band power supply make communicating terminal get into the low-power consumption operating state.
In order to achieve the above object, the technical scheme of the present invention's proposition is:
A kind of power supply switch control system comprises control module, detects module, handover module, basic band microprocessor, radio-frequency module, is connected to the base band power supply of basic band microprocessor and is connected to the radio-frequency power supply of radio-frequency module through handover module; Wherein,
Control module is used for after receiving the low-power consumption work state information of communicating terminal, and the power on-off control bit that handover module is set is effectively, and the shutoff count value of handover module is set;
Detect module, whether the power on-off control bit that is used to detect handover module is effective, if effectively, then sends time-delay command for the first time to handover module;
Handover module, be used to receive control module to power on-off control bit effectively with the setting of turn-offing count value; Receive first time behind the time-delay command of detecting that module sends, send the low power consumption control signal to the basic band microprocessor time-delay; According to the time-delay command second time that sends from the input clock signal and the basic band microprocessor of this power supply switch control system outside, the time delayed turn-off count value is turn-offed the base band power supply after the clock cycle;
Basic band microprocessor is used for behind the low power consumption control signal that receives the handover module transmission, sends radio-frequency power supply to radio-frequency module and turn-offs instruction, simultaneously, sends the time-delay command second time to handover module;
Radio-frequency module is used for after receiving the radio-frequency power supply shutoff instruction that basic band microprocessor is sent, turn-offing radio-frequency power supply.
In the such scheme, said system also comprises dejitterizer, be used for being under the low power mode of operation when radio-frequency module, and basic band microprocessor is in normal mode of operation following time, starts through Enable Pin.
In the such scheme, said handover module comprises real-time clock and pressurizer; Wherein
Said real-time clock, be used to receive control module to power on-off control bit effectively with the setting of turn-offing count value; In first time that receives that said detection module sends behind the time-delay command, send the low power consumption control signal to said basic band microprocessor time-delay; According to the time-delay command second time of input clock signal and the transmission of said basic band microprocessor, the time delayed turn-off count value is sent base band power remove information to pressurizer after the clock cycle;
Said pressurizer is used for after the base band power remove information that receives the real-time clock transmission, turn-offing the base band power supply that is connected with said pressurizer.
In the such scheme, said real-time clock comprises the power supply control register and first counter; Wherein,
Said power supply control register, be used to receive said control module to power on-off control bit effectively with the setting of the shutoff count value of turn-offing meter digital; In first time that receives that said detection module sends behind the time-delay command, send the low power consumption control signal to said basic band microprocessor time-delay;
Said first counter is used for counting according to the time-delay command second time of input clock signal and the transmission of said basic band microprocessor, when the count value of said first counter equals to turn-off count value, sends base band power remove information to said pressurizer.
In the such scheme, the significant level value of said power on-off control bit is 1 or 0.
In the such scheme, the level value of said base band power remove information is 1 or 0.
In the such scheme, said real-time clock also comprises second counter and the 3rd counter; Said control module also is used to be provided with the power on reset count value N of the power on count value and the control bit that resets of control bit of power supply control register, and N is the natural number greater than 2; Wherein,
Said second counter is used for cycle count, when the count value of said second counter self equals to power on count value; Send base band power connection information to said pressurizer; Simultaneously, send reset signal, send triggering signal to the 3rd counter to said basic band microprocessor and radio-frequency module;
Said the 3rd counter is used for counting according to the triggering signal that second counter sends, and when the count value of said the 3rd counter self equals N, sends the completion signal that resets to said basic band microprocessor;
Said pressurizer also is used for after the base band power connection information that receives the transmission of second counter, connecting the base band power supply that is connected with said pressurizer;
Said basic band microprocessor also is used for after the reset signal that receives the transmission of second counter, resetting, and recovers normal operating conditions; After receiving the completion signal that resets of the 3rd counter transmission, send radio-frequency power supply to said radio-frequency module and go code;
Said radio-frequency module also is used for after the reset signal that receives the transmission of second counter, resetting, and recovers normal operating conditions; After the radio-frequency power supply that receives said basic band microprocessor transmission goes code, connect radio-frequency power supply.
In the such scheme, said handover module also comprises second counter, and said real-time clock also comprises the 3rd counter; Said control module also is used to be provided with the power on reset count value N of the power on count value and the control bit that resets of control bit of power supply control register, and N is the natural number greater than 2; Wherein,
Said second counter is used for cycle count, when the count value of said second counter self equals to power on count value; Send base band power connection information to said pressurizer; Simultaneously, send reset signal, send triggering signal to the 3rd counter to said basic band microprocessor and radio-frequency module;
Said the 3rd counter is used for counting according to the triggering signal that second counter sends, and when the count value of said the 3rd counter equals N, sends the completion signal that resets to said basic band microprocessor;
Said pressurizer after also being used to receive the base band power connection information of second counter transmission, is connected the base band power supply that connects said pressurizer;
Said basic band microprocessor also is used for after the reset signal that receives the transmission of second counter, resetting, and recovers normal operating conditions; After receiving the completion signal that resets of the 3rd counter transmission, send radio-frequency power supply to said radio-frequency module and go code;
Said radio-frequency module also is used for after the reset signal that receives the transmission of second counter, resetting, and recovers normal operating conditions; After the radio-frequency power supply that receives said basic band microprocessor transmission goes code, connect radio-frequency power supply.
In the such scheme, said pressurizer is a low pressure difference linear voltage regulator.
In the such scheme, said second counter is the counter with 40 bits.
In sum, the power supply switch control system of the communicating terminal that the present invention proposes successively turn-offs the radio-frequency power supply and the base band power supply of communicating terminal through delaying time, and makes following situation no longer to occur: the base band power remove gets into the low-power consumption operating state; And radio-frequency module is still in running order, can't turn-off.In like manner, successively connect the base band power supply and the radio-frequency power supply of radio communication receiving system through delaying time, overcome following situation: the base band power connection is in normal operating conditions; And radio-frequency module still is in low power consumpting state, causes the baseband portion error rate higher.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, will combine accompanying drawing and specific embodiment that the present invention is done to describe in detail further below.
Fig. 1 forms structural representation for the power supply switch control system of communicating terminal of the present invention.As shown in Figure 1, power supply switch control system according to the invention comprises control module 1, detection module 2, handover module 3, basic band microprocessor 4, radio-frequency module 5, base band power supply 6 and is connected to the radio-frequency power supply 7 of radio-frequency module; Base band power supply 6 is connected to basic band microprocessor 4 through handover module 3; Wherein,
Control module 1 is used for after receiving the low-power consumption work state information of communicating terminal, and the power on-off control bit that handover module 3 is set is effectively, and the shutoff count value of handover module 3 is set;
Detect module 2, whether the power on-off control bit that is used to detect handover module 3 is effective, if effectively, then sends time-delay commands for the first time to handover module 3;
Handover module 3, be used to receive 1 pair of power on-off control bit of control module effectively with the setting of turn-offing count value; Receive first time behind the time-delay command of detecting that module 2 sends, send the low power consumption control signals to basic band microprocessor 4 time-delays; According to the time-delay command second time that input clock signal and basic band microprocessor 4 sent, the time delayed turn-off count value is after the clock cycle, turn-offs the base band power supply 6 of connection handover module 3 self;
Basic band microprocessor 4 is used for behind the low power consumption control signal that receives handover module 3 transmissions, sends radio-frequency power supplies to radio-frequency module 5 and turn-offs instruction, simultaneously, sends the time-delay command second time to handover module 3;
Radio-frequency module 5 is used for after receiving the radio-frequency power supply shutoff instruction that basic band microprocessor 4 is sent, turn-offing radio-frequency power supply 7.
In the practical application; Base band power supply 6 is through handover module 3; Except being basic band microprocessor 4 power supply; Also for detecting peripheral serial line interface, UART Universal Asynchronous Receiver Transmitter (UART, Universal Asynchronous Receiver and Transmitter) and the general peripheral input/output interface power supplies such as (GPIO, General Peripheral Input and Output) of module 2, handover module 3, communicating terminal baseband portion.
In the practical application; The power supply switch control system of communicating terminal according to the invention also comprises dejitterizer; Be used for radio-frequency module 5 is closed after the direct clock signal of sending of having no progeny converts stable state into by labile state at radio-frequency power supply, be sent to basic band microprocessor 4.
In the practical application, when communicating terminal is operated in normal mode of operation following time, radio-frequency module 5 provides direct clock signal to basic band microprocessor 4.When radio-frequency module 5 is under the low power mode of operation; And basic band microprocessor 4 is in normal mode of operation following time; Because the direct clock signal of radio-frequency module 5 outputs is unsettled X attitude; If the direct clock signal of this X attitude is offered basic band microprocessor 4, can cause basic band microprocessor 4 to be made mistakes.For this reason; The present invention also is provided with dejitterizer, and when radio-frequency module 5 is under the low power mode of operation, and basic band microprocessor 4 is in normal mode of operation following time; Through Enable Pin enabling signal stabilizer; After converting the unsettled direct clock signal of radio-frequency module 5 output into stable standby clock signal by dejitterizer, standby clock signal is offered basic band microprocessor 4, guarantee the operate as normal of basic band microprocessor 4.The level value of standby clock signal is steady state value 0 or 1.
In the practical application, the significant level value of power on-off control bit is high level 1 or low level 0, and the user can set up on their own according to actual needs.
In the practical application, the level value of base band power remove information is high level 1 or low level 0.
In the practical application, detecting module 2 can be the composition module of the baseband portion of communicating terminal with handover module 3, also can be the composition module that communicating terminal is provided with separately.
In the practical application, basic band microprocessor 4 is sent radio-frequency power supply through control interface to radio-frequency module 5 and is turn-offed instruction.
In the practical application; Control module 1 can also get into low power consumpting state through automatic monitoring means control radio communication receiver; Such as, do not receive satellite-signal or satellite-signal when extremely weak when what control module 1 monitored communicating terminal, control this communicating terminal and get into low power consumpting state.
Fig. 2 is the composition structural representation of handover module of the present invention.As shown in Figure 2, handover module 3 comprises real-time clock (RTC, Real Time Clock) 31 and pressurizer 32; Wherein
Real-time clock 31, be used to receive 1 pair of power on-off control bit of control module effectively with the setting of turn-offing count value; Receiving first time behind the time-delay command of detecting that module 2 sends, send the low power consumption control signals to basic band microprocessor 4 time-delays; According to the time-delay command second time of input clock signal and basic band microprocessor 4 transmissions, the time delayed turn-off count value is sent base band power remove information to pressurizer 32 after the clock cycle;
Pressurizer 32 is used for after the base band power remove information that receives real-time clock 31 transmissions, turn-offing the base band power supply 6 that is connected with pressurizer 32.
In the practical application, pressurizer 32 can preferred lower pressure difference linear constant voltage regulator (LDO, Low DropoutRegulator).
Fig. 3 forms structural representation for real-time clock of the present invention.As shown in Figure 3, real-time clock 31 comprises the power supply control register 311 and first counter 312; Wherein,
Power supply control register 311, be used to receive 1 pair of power on-off control bit of control module effectively with the setting of the shutoff count value of turn-offing meter digital; Receiving first time behind the time-delay command of detecting that module 2 sends, send the low power consumption control signals to basic band microprocessor 4 time-delays;
First counter 312 is used for counting according to the time-delay command second time of input clock signal and basic band microprocessor 4 transmissions, when the count value of first counter 312 equals to turn-off count value, sends base band power remove information to pressurizer 32.
When communicating terminal was in normal mode of operation, radio-frequency module 5 provided direct clock signal to basic band microprocessor 4, and real-time clock 31 sends the base band power throughing signal to pressurizer 32, and this base band power throughing signal is in effective status always.The level value of base band power throughing signal can be high level, also can be low level.The level of base band power remove signal is opposite with the level of base band power throughing signal.In the practical application, confirm the level value of base band power throughing signal according to actual needs.
Receive the low-power consumption work state information of communicating terminal when control module 1 after, the power on-off control bit of handover module 3 is changed to effectively, and the shutoff count value of handover module 3 is set; When to detect power on-off control bit that module 2 detects handover module 3 be effective, send time-delay commands for the first time, after handover module 3 carries out the time-delay of certain hour, send the low power consumption control signals to basic band microprocessor 4 to handover module 3; After basic band microprocessor 4 receives the low power consumption control signal, send radio-frequency power supply to radio-frequency module 5 and turn-off control command, control radio-frequency module 5 turn-offs radio-frequency power supply 7, and afterwards, radio-frequency module 5 at first gets into the low-power consumption operating state; When basic band microprocessor 4 is sent radio-frequency power supply shutoff control command to radio-frequency module 5; Send time-delay command for the second time to real-time clock 31; When the count value of first counter 312 equals to turn-off count value; Turn-off base band power supply 6 through pressurizer 32, baseband portion also gets into the low-power consumption operating state.
In the practical application, real-time clock 31 guarantees to turn-off earlier radio-frequency power supply 7 through the time lengthening that first counter 312 obtains, and turn-offs base band power supply 6 again.Prevented that like this situation that radio-frequency power supply 7 can't turn-off takes place under the situation of base band power supply 6 shutoff earlier.
For making communicating terminal return to normal operating conditions from the low-power consumption operating state, said real-time clock 31 also comprises second counter and the 3rd counter; Control module 1 also is used to be provided with the reset count value N of power on count value and reset count position of the meter digital that powers on of power supply control register, and N is the natural number greater than 2; Wherein,
Second counter is used for cycle count, when the count value of second counter self equals to power on count value; Send base band power connection information to pressurizer 32; Simultaneously, send reset signal, send triggering signal to the 3rd counter to basic band microprocessor 4 and radio-frequency module 5;
The 3rd counter is used for counting according to the triggering signal that second counter sends, and when the count value of the 3rd counter self equals N, sends the completion signal that resets to basic band microprocessor 4;
Pressurizer 32 also is used for after the base band power connection information that receives the transmission of second counter, connecting the base band power supply 6 that is connected with pressurizer 32;
Basic band microprocessor 4 also is used for after the reset signal that receives the transmission of second counter, resetting; After receiving the completion signal that resets of the 3rd counter transmission, send radio-frequency power supplies to radio-frequency module 5 and go code;
Radio-frequency module 5 also is used for after the reset signal that receives the transmission of second counter, resetting; After the radio-frequency power supply that receives basic band microprocessor 4 transmissions goes code, connect radio-frequency power supply 7.
In the practical application, return to normal operating conditions for making communicating terminal from the low-power consumption operating state, real-time clock 31 can not comprise second counter, but comprises the 3rd counter, and handover module 3 comprises second counter; Control module 1 also is used to be provided with the reset count value N of power on count value and reset count position of the meter digital that powers on of power supply control register, and N is the natural number greater than 2; Wherein,
Second counter is used for cycle count, when the count value of second counter self equals to power on count value; Send base band power connection information to pressurizer 32; Simultaneously, send reset signal, send triggering signal to the 3rd counter to basic band microprocessor 4 and radio-frequency module 5;
The 3rd counter is used for counting according to the triggering signal that second counter sends, and when the count value of the 3rd counter equals N, sends the completion signal that resets to basic band microprocessor 4;
Pressurizer 32 after also being used to receive the base band power connection information of second counter transmission, is connected the base band power supply 6 that connects pressurizer 32;
Basic band microprocessor 4 also is used for after the reset signal that receives the transmission of second counter, resetting; After receiving the completion signal that resets of the 3rd counter transmission, send radio-frequency power supplies to radio-frequency module 5 and go code;
Radio-frequency module 5 also is used for after the reset signal that receives the transmission of second counter, resetting; After the radio-frequency power supply that receives basic band microprocessor 4 transmissions goes code, connect radio-frequency power supply 7.
In the practical application, when the count value of the 3rd counter equaled (N-2), control radio-frequency module 5 shutdown signal stabilizers made standby clock signal invalid; Simultaneously, control radio-frequency module 5 is connected direct clock signal.
Embodiment
The power supply switch control system of the said communicating terminal of present embodiment comprises control module, detects module, real-time clock, low pressure difference linear voltage regulator, basic band microprocessor, radio-frequency module, base band power supply, radio-frequency power supply and dejitterizer; The base band power supply is connected to basic band microprocessor through handover module; Radio-frequency power supply is connected to radio-frequency module, and real-time clock comprises power supply control register, first counter, second counter and the 3rd counter; Wherein, the input clock of real-time clock is 32.768KHz, and the level of base band power remove information is a low level, and the level of base band power connection information is a high level, and the power on-off control bit effective value is 1.
When communicating terminal was in normal mode of operation, radio-frequency module provided direct clock signal to basic band microprocessor, and real-time clock sends the base band power throughing signal to low pressure difference linear voltage regulator, and promptly the level of this signal is a high level.
Control module receives or when monitoring the low-power consumption work state information of communicating terminal automatically; Power on-off control bit in the power supply control register is set to 1; The shutoff count value of turn-offing meter digital, the reset count value of reset count position are set to 256,15 respectively, and the count value that powers on of the meter digital that powers on is set.
When detecting module and detect power on-off control bit in the power supply control register and be 1, send first time-delay command to handover module, behind the handover module time-delay one-period, send the low power consumption control signal to basic band microprocessor; After basic band microprocessor receives the low power consumption control signal, send radio-frequency power supply to radio-frequency module and turn-off instruction, turn-off radio-frequency power supply, make radio-frequency module at first get into low power consumpting state.
When basic band microprocessor is sent radio-frequency power supply shutoff instruction to radio-frequency module, send time-delay command for the second time, trigger first rolling counters forward to handover module; When the first rolling counters forward value was 256, first counter sent base band power remove information to low pressure difference linear voltage regulator; After low pressure difference linear voltage regulator receives base band power remove information, turn-off the base band power supply, the baseband portion of communicating terminal also gets into the low-power consumption operating state.
In the present embodiment, second counter is a counter with 40bit meter digital, can realize cycle count,, is in normal operating conditions following time at communicating terminal that is, and the full 40bit of the second counter meter afterwards, continues repeat count with regard to zero clearing.
When the second rolling counters forward value equaled to power on count value, second counter sent base band power connection information to low pressure difference linear voltage regulator, connects the base band power supply; Simultaneously, second counter sends reset signal to basic band microprocessor and radio-frequency module, sends triggering signal to the 3rd counter.The 3rd counter begins counting according to triggering signal; When the 3rd rolling counters forward value equals 15, the baseband portion of radio communication receiver and radio-frequency module active homing, baseband portion is recovered normal operating conditions; Simultaneously; Basic band microprocessor is sent the instruction of radio-frequency module power connection to radio-frequency module, connects radio-frequency power supply, and communicating terminal returns to normal operating conditions from the low-power consumption operating state.
In the practical application, when the count value of the 3rd counter was 13, radio-frequency module was closed the transmission path of standby clock signal through Enable Pin, simultaneously, opens the direct clock signal transmission path of self.
Based on the foregoing description, can know, when communicating terminal gets into the low-power consumption operating state; At first turn-off the radio-frequency module power supply; Make radio-frequency module get into the low-power consumption operating state,, turn-off the base band power supply through after the certain time-delay; Make baseband portion also get into the low-power consumption operating state, so just can not occur owing to turn-offing the situation that sequence error causes radio-frequency power supply to turn-off.In like manner, when communicating terminal returns to normal operating conditions from the low-power consumption operating state, start the base band power supply earlier, restart radio-frequency power supply, reduced the error rate of baseband portion.
In sum, more than being merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.