CN102156417A - Startup/shutoff control system and starting/shutoff control method - Google Patents

Startup/shutoff control system and starting/shutoff control method Download PDF

Info

Publication number
CN102156417A
CN102156417A CN 201110111186 CN201110111186A CN102156417A CN 102156417 A CN102156417 A CN 102156417A CN 201110111186 CN201110111186 CN 201110111186 CN 201110111186 A CN201110111186 A CN 201110111186A CN 102156417 A CN102156417 A CN 102156417A
Authority
CN
China
Prior art keywords
counter
state machine
finite state
startup
start level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 201110111186
Other languages
Chinese (zh)
Other versions
CN102156417B (en
Inventor
杜文杰
魏家明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou OED Technologies Co Ltd
Original Assignee
AVATAR SEMICONDUCTOR Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by AVATAR SEMICONDUCTOR Co Ltd filed Critical AVATAR SEMICONDUCTOR Co Ltd
Priority to CN201110111186A priority Critical patent/CN102156417B/en
Publication of CN102156417A publication Critical patent/CN102156417A/en
Application granted granted Critical
Publication of CN102156417B publication Critical patent/CN102156417B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a startup/shutoff control system and a startup/shutoff control method. The system comprises a counter, a comparator and a finite state machine, wherein the counter can count number under the control of a clock signal when the key is effective; the comparator can receive the counting results that are output by the counter and compare the counting results with the threshold; the finite state machine receives the comparison results of the comparator, outputs the startup level signal according to the comparison results and the comparison state, and resets the counter. The method comprises the following steps under the condition that the key is effective: counting numbers under the control of the clock signal; outputting the startup level signal by the finite state machine when the counting value achieves the threshold; simultaneously resetting the counter so as to re-count number by the counter; re-counting number by the counter when the start-up level signal is not used for startup; and outputting the reversed startup level and locking and storing the reversed startup level value when the counting value achieves the threshold again and the system can not be started up normally. When being used in practical application, the startup/shutoff control system can be matched with power management controllers with any level requirements.

Description

A kind of on-and-off control system and method
Technical field
The present invention relates to integrated circuit (IC) design, relate in particular to a kind of on-and-off control system and method.
Background technology
Along with the progress of science and technology, intelligent degree such as consumer electronics product such as mobile phone, MP3, MP4 and PDA are more and more higher, power consumption is more and more lower, and price is also more and more cheap.Trend is exactly the power management scheme intellectuality and the simplicity more of this series products accordingly therewith.
Switching on and shutting down control in applied electronic product of embedded system level chip (SoC) such as smart mobile phone realizes by being integrated in the independently-powered switching on and shutting down switch control unit of master control SoC chip internal (hereinafter to be referred as switching on and shutting down control module or PSU-Power Switch Unit).When intelligent mobile phone shutdown, except that this switching on and shutting down control module, other power supply and all peripherals such as power supplies such as storer, display all are cut off on the main control chip.Behind intelligent mobile phone shutdown, the switching on and shutting down control module keeps operation with extremely low power consumption, at any time the switch switch that may press is detected, when detecting start key time of continuing to press when reaching predetermined threshold, judge that then " boot action " is effective, thereby start the start control program, finally export correct control level and control external power source Management Controller (PMC) and open power supply valve (Power Gate) and power on for mobile phone integral body.
A key point that realizes above-mentioned start process in mobile phone printed panel (PCB) design is to guarantee that the start level signal that switching on and shutting down control module (PSU) exported is consistent with the desired start level signal of power source management controller (PMC).
Early stage cellular phone power supplies Management Controller (PMC) includes only simple power supply and opens/closing function, realize by the control circuit and the power management chip that are independent of on the mobile phone printed panel (PCB) outside the main control chip, wherein the basic function of power management chip is the univoltage of battery of mobile phone input (voltage of cellular li-ion battery is 3.6V) to be converted to multiplex circuit voltage export to PCB and go up each parts power supply (what have needs 3.3V, what have needs 1.8V, and every kind of required way of voltage does not wait).The shortcoming of this kind power management is that cost is higher, controls dumbly, as is difficult to different voltages output and controls respectively.
Smart mobile phone of today all is integrated into the power control part branch main control chip inside as switching on and shutting down control module (PSU) and Power Management Unit (PMU), its advantage is to save cost, with can realize flexibly power supply control: comprise each road power supply output of flexible control and turn-off, (operating voltage such as synchronous dynamic random access memory SDRAM is 3.3V to the voltage of each road power supply output of flexible, application program can not need the time period of SDRAM work, the PMU by main control chip inside control voltage that outside PMC will export to SDRAM drop to 2.7V with the power consumption that reduces SDRAM and keep its content not lose).Existing the start level signal of detailed problem: a PSU output to fix in smart mobile phone main control chip switch inside machine control module (PSU), perhaps is that high level is effective, perhaps is that low level is effective; If the desired start level signal of this significant level and power source management controller (PMC) is inconsistent, then need go up at mobile phone printed panel (PCB) increases phase inverter.
Summary of the invention
The purpose of this invention is to provide a kind of on-and-off control system that can dynamically change the start level signal of switching on and shutting down control module (PSU) output.
For achieving the above object, one aspect of the present invention provides a kind of opening control system, it is characterized in that being included in the counter of counting under the control of clock signal under the effective situation of button; Receive the count results of described counter output and with itself and threshold ratio comparer; Finite state machine receives the comparative result of described comparer, according to comparative result and state output start level signal and reset counter.
A kind of on-off control method is provided on the other hand, has been included in the following steps of carrying out under the effective situation of button: under the control of clock signal, count; When count value reached threshold value, finite state machine output start level signal reset counter simultaneously made it to restart counting (as long as button is remained valid); When Counter Value reach threshold value once more and system reset when not losing efficacy yet finite state machine will start shooting the level negate latch and export negate after the start level.
The invention solves the problem that switching on and shutting down control module start level signal can not dynamically change in the existing chip, the power source management controller of any level demand of can arranging in pairs or groups in actual applications.The present invention also can be used for the design of switching on and shutting down control module in the integrated circuit (IC) design.
Description of drawings
Exemplary embodiment of the present invention will be understood from the accompanying drawing of the detailed description that hereinafter provides and different embodiments of the invention more completely, however this should not be regarded as the present invention is limited to specific embodiment, and should be just in order to explain and to understand.
Fig. 1 is the on-and-off control system structural representation of one embodiment of the invention;
Fig. 2 is an on-and-off control system normal boot-strap process flow diagram flow chart;
Fig. 3 is the unusual start process process flow diagram of another kind of on-and-off control system;
Fig. 4 is the variation synoptic diagram of finite state machine.
Embodiment
Those of ordinary skill in the art will recognize that the following detailed description of described exemplary embodiment only is illustrative, and not be to be intended to be limited by any way.
Fig. 1 is the switching on and shutting down control module structural representation of one embodiment of the invention.
Fig. 1 schematically shows the primary structure of switching on and shutting down switch control unit (PSU), comprise finite state machine (FSM) 101, counter 102, comparer 103, first register 104, second register 105 and the input/output interface, input interface comprises switch switch (KEY) input interface, real-time clock (CLK) interface and system reset input (RST) interface; Output interface includes switching on and shutting down and enables output (PSW) interface.
The input signal that counter 102 receives from KEY interface and CLK interface, and its output terminal is connected with the first input end of comparer 103.Effective when the KEY signal, when promptly this KEY key was pressed, counter 102 began to calculate the clk cycle number, and every a clk cycle number, Counter Value adds 1, in case the invalid KEY of the being key of this KEY key signals is released counter clear 0.The output terminal of first register 104 is connected with second input end of comparer 103, is used to deposit a threshold value, indication clk cycle number.First register 104 can write suitable threshold to determine rational clk cycle number by software, after the battery of mobile phone power down or pulling out, threshold value in first register 104 can be lost, at this moment comparer can use a minimum threshold automatically, for example 1 second, this minimum threshold was greater than last electric delay (being generally less than 200ms) and reset delay (about 200ms) sum.The output terminal of comparer 103 is connected with the first input end of FSM, and the threshold value that comparer 103 all sets in advance counter 102 values and first register 104 when clk cycle of counter 102 every increases is counted compares, and the result is sent to FSM.The output terminal of second register 105 is connected with second input end of FSM, is used to deposit the start level signal of output, and level signal is sent to FSM.The correct start level signal of second register, 105 outputs is write automatically by hardware.FSM controls PSW output start level signal according to the comparative result of comparer 103.
Fig. 2 is an on-and-off control system normal boot-strap process flow diagram flow chart.
In the start control procedure, system is in off-mode under the original state, except that PSU, CLK still maintain the electricity, other module all is in power-down state, the KEY key is in disarmed state under situation about not being pressed, the system reset input is in the reset signal effective status when power-down state, through a reset delay, reset signal becomes invalid (the reset signal inefficacy is the sign of success that powers on) after powering on.PSW exports high resistant, draws (low level is start, and high level is shutdown) or drop-down (high level is start, and low level is shutdown) on the printed panel PCB PSW being carried out, and the system of assurance is under the off-mode and can unexpectedly power on automatically.
In the normal boot-strap process, at first continue to press the KEY key by the user, counter 102 begins counting, and every a clk cycle, counter 102 values add 1; 103 of comparers compare in the fixed value that each clk cycle all sets in advance counter 102 values and first register 104, and comparative result is sent to FSM; When FSM receives the signal that comparer 103 equates, FSM enters " start is attempted " state, the start level signal that PSW exports 105 storages of second register under " start attempt " state is used to control PMC to be opened upper electrical switch and powers to mobile phone, and reset counter makes it beginning counting again simultaneously.Under normal circumstances, " start is attempted " beginning back mobile phone normally powers on, and the system reset input signal is invalid from effectively becoming, and FSM enters " starting shooting successfully " state (after this comparative result of comparer is left in the basket).
Fig. 3 is the unusual start process process flow diagram of on-and-off control system.
Use or mobile phone the power down of battery takes place in using or when pulling out in that mobile phone is first, the fixed value that first register 104 is deposited is lost, the start level signal that second register 105 is deposited lost efficacy, the comparer 103 of this moment is carrying out can using a minimum threshold when counter 102 and first register 104 compare, for example 1 second, substitute the fixed value that first register 104 is deposited, this minimum threshold is greater than last electric delay (being generally less than 200ms) and reset delay (about 200ms) sum.
Use or mobile phone the power down of battery takes place in using or start process when pulling out in that mobile phone is first: at first continue to press the KEY key by the user, counter 102 begins counting, and every a clk cycle, counter 102 values add 1; 103 of comparers all compare counter 102 values and comparer 103 employed minimum thresholds at each clk cycle, and comparative result is sent to FSM; When FSM receives the signal that comparer 103 equates, FSM enters " start is attempted " state, PSW exports the level signal that second register 105 latchs, reset counter 102 makes it to restart counting simultaneously, when the clk cycle number of counter 102 reaches comparer 103 employed minimum thresholds once more, the time of promptly pushing the KEY key just sends the signal that relatively equates to FSM when reaching 2 times of minimum thresholds once more.Since the minimum threshold that when comparing, adopted of comparer 103 greater than on electric delay and reset delay sum (less than 400ms), so when counter 102 values reach minimum threshold and system reset input signal when not losing efficacy once more, circuit judges that before this start level signal of PSW output under " start is attempted " state is opposite with the level signal that PMC requires, mate the desired level signal of PMC and open upper electrical switch and power thereby export level signal after 105 negates of second register by PSW this moment, inverted value is latched into second register 105 simultaneously to mobile phone.It is invalid that the input that resets after mobile phone normally powers on becomes, and FSM enters " starting shooting successfully " state.
Fig. 4 is the variation synoptic diagram of finite state machine.
Finite state machine is divided into " start attempt " state and " level negate " two states, and it is identical that a kind of situation powers under " start is attempted " state that level requires with PMC, enters into " start shooting successfully " state this moment, and inefficacy is imported in system reset.Another kind is a reset counter when entering " start is attempted " state at finite state machine, on time is carried out record, because the minimum threshold of button time is greater than last electric delay and reset delay sum, when counter reaches the button time threshold and system reset input signal when not losing efficacy for the second time, it is opposite that decidable power on level and PMC before this requires, thereby the level signal after by finite state machine output negate was mated the desired level signal of PMC and opened upper electrical switch and power to mobile phone this moment.It is invalid that the input that resets after mobile phone normally powers on becomes, and FSM enters " starting shooting successfully " state.
Obviously, under the prerequisite of true spirit that does not depart from patent of the present invention and scope, patent of the present invention described here can have many variations.Therefore, the change that all it will be apparent to those skilled in the art that all should be included within the scope that these claims contain.Patent of the present invention scope required for protection is only limited by described claims.

Claims (7)

1. an on-and-off control system is characterized in that being included in the counter of counting under the effective situation of button (102) under the control of clock signal; Receive the count results of described counter (102) output and with itself and threshold ratio comparer (103); Finite state machine (101) receives the comparative result of described comparer (103), according to comparative result and state output start level signal and reset counter.
2. system according to claim 1, it is characterized in that: when described counter (102) reaches threshold value for the first time, described comparer (102) makes finite state machine export the start level signal that second register latchs to the result that described finite state machine (101) output relatively equates; Reset counter makes it to restart counting simultaneously; If described counter (102) count once more reach threshold value and system fail the start (reset signal is still effective) situation under, described finite state machine is exported the start level value negate that second register latchs, and deposits inverted value (the start level that current system is correct) in second register.
3. system according to claim 1 is characterized in that: comprise first register, be used to provide threshold value.
4. system according to claim 1 is characterized in that: comprise second register, be used for storage start level signal.
5. want 1 described system according to right, it is characterized in that: described finite state machine (101) comprises using and draws or drop-down mode is connected to finite state machine (101) output terminal the input end of external power source Management Controller.
6. on-off control method is included in the following steps of carrying out under the effective situation of button:
Under the control of clock signal, count;
When count value reaches threshold value, finite state machine output start level signal, reset counter makes it to restart counting simultaneously;
Counter reaches threshold value and when powering on success once more, and start level value after the negate is exported and latched in the finite state machine level negate of will start shooting.
7. method as claimed in claim 6, wherein when count value reaches threshold value, the step of finite state machine output start level comprises that the start level successfully starts shooting.
CN201110111186A 2011-04-29 2011-04-29 Startup/shutoff control system and starting/shutoff control method Expired - Fee Related CN102156417B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110111186A CN102156417B (en) 2011-04-29 2011-04-29 Startup/shutoff control system and starting/shutoff control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110111186A CN102156417B (en) 2011-04-29 2011-04-29 Startup/shutoff control system and starting/shutoff control method

Publications (2)

Publication Number Publication Date
CN102156417A true CN102156417A (en) 2011-08-17
CN102156417B CN102156417B (en) 2012-08-29

Family

ID=44437959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110111186A Expired - Fee Related CN102156417B (en) 2011-04-29 2011-04-29 Startup/shutoff control system and starting/shutoff control method

Country Status (1)

Country Link
CN (1) CN102156417B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095266A (en) * 2011-10-28 2013-05-08 成都高新区尼玛电子产品外观设计工作室 Opening and closing machine circuit adopting reset chip
CN110618603A (en) * 2019-09-24 2019-12-27 中国人民解放军63698部队 Equipment starting timer
CN111404527A (en) * 2020-03-23 2020-07-10 上海钧正网络科技有限公司 Control circuit and method for automatically powering on and powering off system in abnormal state
EP4006562A1 (en) * 2020-11-30 2022-06-01 STMicroelectronics International N.V. Methods and devices for testing comparators

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1386324A (en) * 2000-07-17 2002-12-18 皇家菲利浦电子有限公司 Switching control circuit
CN201063115Y (en) * 2007-07-23 2008-05-21 海尔集团公司 Touch type switch of computer cabinet
CN101673136A (en) * 2009-10-27 2010-03-17 中兴通讯股份有限公司 Power control unit and on/off method
US7898830B1 (en) * 2008-06-24 2011-03-01 Maxim Integrated Products, Inc. System and method of controlling the soft start control voltage of switching regulator in response to output current sensing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1386324A (en) * 2000-07-17 2002-12-18 皇家菲利浦电子有限公司 Switching control circuit
CN201063115Y (en) * 2007-07-23 2008-05-21 海尔集团公司 Touch type switch of computer cabinet
US7898830B1 (en) * 2008-06-24 2011-03-01 Maxim Integrated Products, Inc. System and method of controlling the soft start control voltage of switching regulator in response to output current sensing
CN101673136A (en) * 2009-10-27 2010-03-17 中兴通讯股份有限公司 Power control unit and on/off method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095266A (en) * 2011-10-28 2013-05-08 成都高新区尼玛电子产品外观设计工作室 Opening and closing machine circuit adopting reset chip
CN110618603A (en) * 2019-09-24 2019-12-27 中国人民解放军63698部队 Equipment starting timer
CN110618603B (en) * 2019-09-24 2021-06-15 中国人民解放军63698部队 Equipment starting timer
CN111404527A (en) * 2020-03-23 2020-07-10 上海钧正网络科技有限公司 Control circuit and method for automatically powering on and powering off system in abnormal state
CN111404527B (en) * 2020-03-23 2023-08-18 上海钧正网络科技有限公司 Control circuit and method for automatic power-on and power-off of system abnormality
EP4006562A1 (en) * 2020-11-30 2022-06-01 STMicroelectronics International N.V. Methods and devices for testing comparators

Also Published As

Publication number Publication date
CN102156417B (en) 2012-08-29

Similar Documents

Publication Publication Date Title
US7876144B2 (en) Start-up circuit and start-up method
CN102150102B (en) There is the circuit of low-power mode
CN103066969B (en) A kind of electronic equipment with crash reset function
CN103226337B (en) On/off circuit
CN106020721B (en) Memory device and energy-saving control method thereof
CN102156417B (en) Startup/shutoff control system and starting/shutoff control method
CN103324545B (en) Power switch module, voltage generation circuit and power control method
CN109840006B (en) Main control chip power supply device
US9880610B2 (en) Power supplying method, power supplying system, and electronic device
CN101261532B (en) Electronic device energy supply control module and energy supply control method
CN201165611Y (en) Washing machine having power off resume function
CN103576816B (en) Switching on and shutting down control circuit
CN204009457U (en) On/off circuit based on PMU and electronic equipment
CN208110316U (en) Power-off sequential control circuit
CN202995614U (en) Electronic equipment
CN106292987B (en) A kind of processor power-off sequential control system and method
CN102136791A (en) Power supply control circuit
CN111124041A (en) Wearable device control device and method and wearable device
CN211653439U (en) Key awakening circuit and electronic equipment
JP3801247B2 (en) Electrical device restart circuit
TWI396072B (en) Control module for controlling electro phoretic display integrated circuit and method thereof
CN103107577B (en) Battery management circuit and terminal
CN203086434U (en) Key control circuit for single-battery power supply system
CN202025278U (en) CMOS (complementary metal oxide semiconductor) clear circuit of mainboard
CN213043666U (en) Low-power consumption standby electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
DD01 Delivery of document by public notice

Addressee: Zhu Wu

Document name: Notification that Application Deemed not to be Proposed

ASS Succession or assignment of patent right

Owner name: GUANGZHOU OED TECHNOLOGIES CO., LTD.

Free format text: FORMER OWNER: AVATAR SEMICONDUCTOR CO. LTD.

Effective date: 20131227

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100085 HAIDIAN, BEIJING TO: 511458 GUANGZHOU, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20131227

Address after: 511458, Guangdong, Guangzhou province Nansha District Industrial Zone West Wei Road, No. 3, B building on the first floor, the two floor

Patentee after: Guangzhou OED Technologies Co., Ltd.

Address before: 100085, room 313, A District, 12 information road, Beijing, Haidian District

Patentee before: Avatar Semiconductor Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120829

Termination date: 20190429

CF01 Termination of patent right due to non-payment of annual fee