WO2016061771A1 - Power-on circuit and electronic device - Google Patents

Power-on circuit and electronic device Download PDF

Info

Publication number
WO2016061771A1
WO2016061771A1 PCT/CN2014/089203 CN2014089203W WO2016061771A1 WO 2016061771 A1 WO2016061771 A1 WO 2016061771A1 CN 2014089203 W CN2014089203 W CN 2014089203W WO 2016061771 A1 WO2016061771 A1 WO 2016061771A1
Authority
WO
WIPO (PCT)
Prior art keywords
gate
nmos transistor
controller
power
resistor
Prior art date
Application number
PCT/CN2014/089203
Other languages
French (fr)
Chinese (zh)
Inventor
喻俊峰
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2014/089203 priority Critical patent/WO2016061771A1/en
Publication of WO2016061771A1 publication Critical patent/WO2016061771A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K17/00Electronic switching or gating, i.e. not by contact-making and –breaking
    • H03K17/51Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used
    • H03K17/56Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices
    • H03K17/687Electronic switching or gating, i.e. not by contact-making and –breaking characterised by the components used by the use, as active elements, of semiconductor devices the devices being field-effect transistors

Definitions

  • the embodiments of the present invention relate to the field of communications technologies, and in particular, to a booting circuit and an electronic device.
  • a power button which can be used to turn the electronic device on or off. Take the power button configured in the mobile phone as an example. When the mobile phone is in the off state, press and hold the power button to turn on the phone. When the phone is turned on, press and hold the power button to turn off the phone.
  • Embodiments of the present invention provide a booting circuit and an electronic device for enabling booting of an electronic device when the electronic device is in a power off state.
  • an embodiment of the present invention provides a booting circuit, which is applied to an electronic device, where the booting circuit includes: a first switch unit, a second switch unit, an AND gate, a first conversion unit, and a controller;
  • One end of the first switching unit is connected to an input end of the first conversion unit, an output end of the first conversion unit is connected to a first input end of the AND gate, and one end of the second switching unit is The second input end of the door is connected, the other end of the second switch unit is grounded, and the output end of the AND gate is connected to the controller;
  • the first converting unit When the state of the first switching unit changes, the first converting unit outputs a first signal to the AND gate, so that the AND gate outputs a power-on trigger signal to the control
  • the controller performs a booting operation according to the boot trigger signal
  • the AND gate When the state of the second switch unit changes, the AND gate outputs a power-on trigger signal to the controller, and the controller performs a power-on operation according to the power-on trigger signal.
  • the booting circuit further includes: a first power source; the first power source is connected to another end of the first switch unit;
  • the state change of the first switch unit is specifically: the first switch unit changes from an open state to a closed state.
  • the other end of the first switch unit is grounded
  • the state change of the first switch unit is specifically: the first switch unit changes from a closed state to an open state.
  • a third possible implementation manner of the first aspect is further provided, where the state change of the second switch unit is specifically: The two switching units are changed from the off state to the closed state.
  • the fourth possible implementation manner of the first aspect is further provided, where the power-on trigger signal is a low-level signal;
  • the signal is a low level signal.
  • the booting circuit further includes: an OR gate, where the OR gate is connected Between the first conversion unit and the AND gate;
  • An output end of the first conversion unit is connected to a first input end of the OR gate, and a first universal input output pin of the controller is connected to a second input end of the OR gate, the OR gate The output terminal is connected to the first input end of the AND gate; wherein, when the electronic device is in a shutdown state, the signal output by the first universal input/output pin of the controller is a low level signal.
  • a sixth possible implementation manner of the first aspect is further provided, where the booting circuit further includes: a second converting unit;
  • An input end of the second conversion unit is connected to a first universal input/output pin of the controller, and an output end of the second conversion unit is connected to a second input end of the OR gate; the second conversion The unit is configured to convert a signal output by the first universal input/output pin of the controller to a low level signal when the electronic device is in a power off state.
  • a seventh possible implementation manner of the first aspect is further provided, when the electronic device is in a power on state, the first universal input and output tube of the controller The signal output by the pin is a high level signal; the second conversion unit is configured to convert a signal output by the first universal input/output pin of the controller to a high level signal when the electronic device is in a power on state.
  • the eighth possible implementation manner of the first aspect is further provided, where the booting circuit further includes: a third converting unit, a third power source ;
  • a first input end of the third conversion unit is connected to an input end of the first conversion unit, a second input end of the third conversion unit is connected to the third power source, and an output of the third conversion unit The end is connected to the second universal input and output pin of the controller; the third converting unit is configured to output a control signal to the second universal input and output pin of the controller when the first switch unit is closed So that the controller performs a corresponding operation according to the control signal.
  • the ninth possible implementation manner of the first aspect is further provided, wherein the controller sends an alarm message according to the control signal, or issues positioning information.
  • a tenth possible implementation manner of the first aspect is further provided, where the first conversion unit includes a first NMOS transistor, a first resistor, and a second resistor;
  • the first power source is connected to the drain of the first NMOS transistor through a first resistor; the drain of the first NMOS transistor is further connected to a first input end of the OR gate, the first NMOS transistor a gate is connected to one end of the first switching unit, a source of the first NMOS transistor is grounded; one end of the second resistor is connected to a gate of the first NMOS transistor, and the other end of the second resistor is The source of the first NMOS transistor is connected.
  • the eleventh possible implementation manner of the first aspect is further provided, where the first conversion unit includes: a second power source, a first PMOS transistor, and a third resistor Fourth resistance;
  • the second power source is connected to a source of the first PMOS transistor, a gate of the first PMOS is connected to one end of the first switching unit, and a drain of the first PMOS transistor is opposite to the third One end of the resistor is connected, the drain of the first PMOS transistor is also connected to the first input end of the AND gate, and the other end of the third resistor is grounded; the fourth resistor One end is connected to the source of the first PMOS transistor, and the other end of the fourth resistor is connected to the gate of the first PMOS transistor.
  • a twelfth possible implementation manner of the first aspect is further provided, where the second conversion unit includes: a second NMOS transistor, a three NMOS transistor, a fifth resistor, a sixth resistor, and a seventh resistor;
  • the first power source is connected to the drain of the second NMOS transistor through the fifth resistor, and the gate of the second NMOS transistor is connected to the first universal input and output pin of the controller, The source of the two NMOS transistors is grounded; the first power source is connected to the drain of the third NMOS transistor through the sixth resistor, and the drain of the third NMOS transistor is further connected to the second input of the OR gate An end connection, a gate of the third NMOS transistor is connected to a drain of the second NMOS transistor, a source of the third NMOS transistor is grounded; and one end of the seventh resistor is opposite to the second NMOS transistor The gate is connected, and the other end of the seventh resistor is connected to the source of the second NMOS transistor.
  • the thirteenth possible implementation manner of the first aspect is further provided, where the second conversion unit includes: a fourth NMOS transistor, Two PMOS tubes and eighth resistors;
  • the first power source is connected to the drain of the fourth NMOS transistor through the eighth resistor, and the gate of the fourth NMOS transistor is connected to the first universal input and output pin of the controller, where the a source of the fourth NMOS transistor is grounded; a source of the second PMOS transistor is connected to the first power source, a gate of the second PMOS transistor is connected to a drain of the fourth NMOS transistor, and the second A drain of the PMOS transistor is coupled to a second input of the OR gate.
  • the fourteenth possible implementation manner of the first aspect is further provided, where the third conversion unit includes a fifth NMOS transistor and a ninth resistance;
  • a gate of the fifth NMOS transistor is connected to a gate of the first NMOS transistor, a drain of the fifth NMOS transistor is connected to the second power source, and a source of the fifth NMOS transistor is A second universal input/output pin of the controller is connected; one end of the ninth resistor is connected to a source of the fifth NMOS transistor, and the other end of the ninth resistor is grounded.
  • the fifteenth possible implementation manner of the first aspect is further provided, the first switch unit is a pull ring switch or used for Alarm switch.
  • an embodiment of the present invention provides an electronic device, including a display screen.
  • the processor, the memory, and the transceiver further comprising the booting circuit of the first aspect or any of the fifteen possible implementations of the first aspect.
  • the booting circuit provided by the embodiment of the present invention when the electronic device is in the off state, changes the state of the first switch unit or the second switch unit, so that the AND gate outputs a power-on trigger signal to the controller, and the controller according to the The power-on trigger signal is used to perform the power-on operation.
  • the power-on of the electronic device is implemented by using a long-pressing power button.
  • the embodiment of the present invention can implement the power-on of the electronic device in other manners.
  • FIG. 1 is a schematic diagram of a booting circuit according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of a booting circuit provided on the basis of FIG. 1 according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of the booting circuit shown in FIG. 2 according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of another booting circuit provided on the basis of FIG. 1 according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another booting circuit provided on the basis of FIG. 2 according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of the booting circuit shown in FIG. 5 according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another booting circuit provided on the basis of FIG. 5 according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a booting circuit shown in FIG. 7 according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of another boot circuit shown in FIG. 7 according to an embodiment of the present invention. schematic diagram
  • FIG. 10 is a schematic diagram of another booting circuit provided on the basis of FIG. 7 according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a booting circuit shown in FIG. 10 according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of an electronic device according to an embodiment of the present invention.
  • the embodiment of the invention provides a booting circuit, which is applied to an electronic device.
  • the booting circuit includes: a first switching unit 2, a first converting unit 3, a controller 4, a second switching unit 5, and an AND gate 6.
  • One end of the first switch unit 2 is connected to the input end of the first conversion unit 3, and the output end of the first conversion unit 3 is connected to the first input end of the AND gate 6.
  • One end of the two switch unit 5 is connected to the second input end of the AND gate 6, the other end of the second switch unit 5 is grounded, and the output end of the AND gate 6 is connected to the controller 4; for example, The output end of the gate 6 can be connected to the boot pin 41 of the controller 4;
  • the first converting unit 3 When the state of the first switching unit 2 changes, the first converting unit 3 outputs a first signal to the AND gate 6 to cause the AND gate 6 to output a power-on trigger signal to the controller 4, The controller 4 performs a power-on operation according to the power-on trigger signal;
  • the AND gate 6 When the state of the second switching unit 5 changes, the AND gate 6 outputs a power-on trigger signal to the controller 4, and the controller 4 performs a power-on operation according to the power-on trigger signal.
  • the states of the first switch unit 2 and the second switch unit 5 may be a closed state or an open state, and therefore, the state of the first switch unit 2 changes and
  • the state change of the second switching unit 5 is a change between a closed state and an open state.
  • the embodiment of the present invention can implement the booting of the electronic device by the state change of the first switch unit or the second switch unit.
  • the powering on of the electronic device is implemented by the state change of the first switch
  • the booting circuit further includes: a first power source 1; and the first power source 1 is connected to the other end of the first switch unit 2.
  • the first conversion unit 3 outputs a first signal to the AND gate 6 to cause the AND gate 6 to output a power-on trigger signal to the controller 4,
  • the controller 4 performs a power-on operation according to the power-on trigger signal;
  • the AND gate 6 outputs a power-on trigger signal to the controller 4, and the controller 4 according to the The power-on trigger signal performs a power-on operation.
  • the first switching unit 2 when the first switching unit 2 is closed, the first signal output by the first converting unit 3 is a low level signal, and the power-on trigger signal output by the AND gate 6 is a low level signal;
  • the second switching unit 5 When the second switching unit 5 is closed, the power-on trigger signal output by the AND gate 6 is a low level signal.
  • the first conversion unit 3 may include a first NMOS transistor 31 , a first resistor 32 and a second resistor 33 , wherein The first power source 1 (represented by VCC1 in FIG.
  • the gate and the first NMOS transistor 31 are When the power source VCC1 is connected, the first NMOS transistor 31 is turned on, and the drain voltage of the first NMOS transistor 31 is equivalent to the source voltage of the first NMOS transistor 31. Since the source of the first NMOS transistor 31 is connected to the ground, and The drain of an NMOS transistor 31 is connected to the first input terminal Y of the AND gate 6, and the signal input to the first input terminal Y of the AND gate 6 is a low level signal; according to the characteristics of the AND gate, only when input to and When the signal of the gate is a high level signal, the output of the AND gate is a high level signal, otherwise the output of the AND gate is a low level signal.
  • the input is The signal of the first input terminal Y of the AND gate 6 is a low level signal. Therefore, regardless of whether the second switching unit 5 is open or closed, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal. Further, The low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the controller 4 performs a power-on operation according to the low level signal.
  • the signal input to the second input terminal X of the first AND gate 6 is a low level signal; likewise, according to the AND gate Characteristic, the output of the AND gate is high only when the signal input to the AND gate is high level, otherwise the output of the AND gate is low level, then, according to the above description, when the second switching unit 5 is closed
  • the signal input to the second input terminal X of the AND gate 6 is a low level signal. Therefore, regardless of whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal.
  • the low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the controller 4 performs a power-on operation according to the low level signal.
  • the controller of the electronic device uses the same pin (the boot pin 41 as shown in FIG. 1 to FIG. 3).
  • Receiving a power-on trigger signal and a power-off trigger signal; in general, a pin for receiving a power-on trigger signal or a power-off trigger signal in a controller of the electronic device performs a power-on or power-off operation when receiving a low-level signal.
  • the controller 4 when the electronic device is in the power-off state, when the power-on pin 41 of the controller 4 receives the low-level signal, the controller 4 performs the power-on operation according to the level signal; when the electronic device is turned on, the controller 4 When the boot pin 41 receives the low level signal, the controller 4 performs a shutdown operation based on the level signal.
  • the switch pin of the electronic device performs the power-on or power-off operation when receiving the high-level signal, which also belongs to the scope to be protected by the embodiment of the present invention.
  • the embodiment of the present invention is described by taking an example of performing a power on or power off operation at a low level signal.
  • the boot circuit shown in FIG. 3 is taken as an example for description.
  • the first switching unit 2 and the second switching unit 5 are turned off.
  • the first NMOS transistor 31 is turned off, the signal of the first power source VCC1 input to the first input terminal Y of the AND gate 6 through the first resistor 32 is a high level signal, and is input to the second input terminal X of the AND gate 6.
  • the signal is also a high level signal; according to the characteristics of the AND gate, the signal output from the output of the AND gate 6 is a high level signal, and at the same time, the high level signal output from the AND gate 6 is input to the boot tube of the controller 4. Foot 41, the signal does not affect the power-on state of the electronic device.
  • the electronic device needs to be turned from the power-on state to the power-off state, when the first switch unit 2 is closed, the first NMOS transistor is turned on, and at this time, the signal input to the first input terminal Y of the AND gate 6 is low.
  • Flat signal If, according to the characteristics of the AND gate, whether the second switching unit 5 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output terminal Z of the AND gate 6
  • the output low level signal is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation based on the low level signal.
  • the electronic device needs to be turned from the power-on state to the power-off state, when the second switch unit 5 is closed, since one end of the second switch unit 5 is grounded, the signal input to the second input terminal X of the AND gate 6 is low. Flat signal; then, according to the characteristics of the AND gate, whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output terminal Z of the AND gate 6 The output low level signal is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation based on the low level signal.
  • the controller 4 may be a Micro Controller Unit (MCU), and the voltage of the first power source 1 is the battery voltage of the mobile phone.
  • MCU Micro Controller Unit
  • the mobile phone The battery voltage is between 3.2V and 4.35V, and the current maximum battery voltage is 4.2V.
  • the first conversion unit 3 includes a single NMOS transistor as an example, but is not limited thereto. Meanwhile, in FIG. 3, only the first resistor and the second resistor include one resistor as an example for description. The first resistor and the second resistor may also be a series or a parallel connection of a plurality of resistors.
  • Second type When the first switch unit 2 is changed from the closed state to the open state, the electronic device is turned on. See Figure 4 for details.
  • one end of the first switching unit 2 is connected to the gate of the first PMOS 34, and the other end of the first switching unit 2 is grounded.
  • the first conversion unit 3 may include: a first PMOS transistor 34, a third resistor 35, and a fourth resistor 36. a second power source; wherein the second power source (indicated by VCC2 in FIG. 4) is connected to a source of the first PMOS transistor 34, and a gate of the first PMOS 34 and one end of the first switching unit 2 Connecting, the drain of the first PMOS transistor 34 is connected to one end of the third resistor 35, and the drain of the first PMOS transistor 34 is also connected to the first input terminal Y of the AND gate 6.
  • the other end of the third resistor 35 is grounded; one end of the fourth resistor 36 is connected to the source of the first PMOS transistor 34, and the other end of the fourth resistor 36 is connected to the gate of the first PMOS transistor 34. connection.
  • the voltage of the gate and the source of the first PMOS transistor 34 is substantially the same by the pull-up of the fourth resistor 36, and the first PMOS transistor 34 is turned off, and the third resistor is passed through the third resistor.
  • the pull-down effect of 35, the signal input to the first input terminal Y of the AND gate 6 is a low level signal; according to the characteristics of the AND gate 6, at this time, regardless of whether the second switching unit 5 is open or closed, the AND gate 6
  • the signal outputted by the output terminal Z is a low level signal.
  • the low level signal outputted from the output terminal Z of the gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the control is performed.
  • the device 4 performs a power-on operation based on the low level signal.
  • the signal input to the second input terminal X of the AND gate 6 is a low level signal; likewise, according to the characteristics of the AND gate, Only when the signal input to the AND gate is high, the output of the AND gate is high, otherwise the output of the AND gate is low, then, according to the above description, when the second switching unit 5 is closed, the input The signal to the second input terminal X of the AND gate 6 is a low level signal.
  • the signal output from the output terminal Z of the AND gate 6 is a low level signal
  • the low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the controller 4 performs a power-on operation according to the low level signal.
  • the first switching unit 2 When the electronic device is in the on state, the first switching unit 2 is in the closed state, and the second switching unit 5 is in the off state. At this time, since the first switching unit 2 is closed, the first PMOS transistor is turned on, the signal input to the first input terminal Y of the AND gate 6 is a high level signal, and at the same time, since the second switching unit 5 is turned off, The signal input to the second input terminal X of the AND gate 6 is also a high level signal; according to the characteristics of the AND gate, the signal outputted from the output terminal of the AND gate 6 is a high level signal, and further, the output of the AND gate 6 is high. The level signal is input to the boot pin 41 of the controller 4, and the signal does not affect the power-on state of the electronic device.
  • the power-on and power-off pins are integrated into the same pin, and the boot pin 41 (or the switch pin) of the controller 4 in the electronic device performs booting when receiving the low-level signal. Or shut down the operation. Then, if the electronic device needs to be turned from the power-on state to the power-off state, when the first switch unit 2 is turned off, the first PMOS transistor is turned off, and at this time, the signal input to the first input terminal Y of the AND gate 6 is low. Signal; then, according to the characteristics of the AND gate, whether the second switching unit 5 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output Z of the AND gate 6 is output. The low level signal is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation based on the low level signal.
  • the electronic device needs to be turned from the power-on state to the power-off state, when the second switch unit 5 is closed, since one end of the second switch unit 5 is grounded, the signal input to the second input terminal X of the first AND gate 6 is a low level signal; then, according to the characteristics of the AND gate, whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output of the AND gate 6 The low level signal of the terminal Z output is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation according to the low level signal.
  • the first conversion unit 3 includes a single PMOS transistor as an example, but is not limited thereto.
  • the third resistor and the fourth resistor include a resistor as an example for description.
  • the third resistor and the fourth resistor may also be a series or a parallel of a plurality of resistors.
  • the booting circuit provided by the embodiment of the present invention when the electronic device is in the off state, changes the state of the first switch unit or the second switch unit, so that the AND gate outputs a power-on trigger signal to the controller, and the controller according to the The power-on trigger signal performs a power-on operation, and in the prior art, the electronic device is powered on only by long pressing the power button.
  • the embodiment of the present invention can implement booting of the electronic device by other means.
  • the embodiment of the present invention further provides a booting circuit based on the foregoing embodiments.
  • the booting circuit further includes: an OR gate; the OR gate is connected between the first converting unit and the AND gate. An output end of the first conversion unit is connected to a first input end of the OR gate, and a first universal input output pin of the controller is connected to a second input end of the OR gate, the OR gate The output terminal is connected to the first input end of the AND gate; wherein, when the electronic device is in a shutdown state, the signal output by the first universal input/output pin of the controller is a low level signal.
  • the booting circuit may further include: a second converting unit.
  • An input end of the second conversion unit is connected to a first universal input/output pin of the controller, and an output end of the second conversion unit is connected to a second input end of the OR gate; the second conversion The unit is configured to convert a signal output by the first universal input/output pin of the controller to a low level signal when the electronic device is in a power off state.
  • a signal output by the first universal input/output pin of the controller is a high level signal; and the second conversion unit is configured to be the first of the controller
  • the general-purpose input/output pin converts a signal outputted when the electronic device is turned on to a high level signal.
  • the booting circuit specifically includes: a first power source 1, a first switching unit 2, a first converting unit 3, a controller 4, a second switching unit 5, an AND gate 6, or an OR gate 7.
  • One end of the first switch unit 2 is connected to the first power source 1, and the other end of the first switch unit 2 is connected to an input end of the first conversion unit 3, the first conversion unit 3
  • the output terminal is connected to the first input end of the OR gate 7; the first general input input output (GPIO) 42 of the controller 4 and the second input end of the OR gate 7 Connecting, the output end of the OR gate 7 is connected to the first input end of the AND gate 6; one end of the second switch unit 5 is connected to the second input end of the AND gate 6, the AND gate 6
  • the output is connected to the boot pin 41 of the controller 4; wherein when the electronic device is off In the state of the machine, the signal output by the first universal input/output pin 42 of the controller 4 is a low level signal.
  • the OR gate 7 outputs a first signal to the AND gate 6.
  • the AND gate 6 After the AND gate 6 receives the first signal, the AND gate 6 outputs a power-on trigger signal.
  • the controller 4 performs a power-on operation according to the power-on trigger signal; when the second switch unit 5 is closed, the AND gate 6 outputs a power-on trigger signal to the controller, The controller 4 performs a power-on operation according to the power-on trigger signal.
  • the first signal is a low level signal
  • the power on trigger signal is a low level signal
  • the first conversion unit 3 in this embodiment adopts the same first conversion unit 3 as that in FIG. 3 of the first embodiment.
  • the specific connection manner of the first conversion unit 3 reference may be made. The description in the first embodiment will not be repeated here.
  • the signal input to the first input terminal B of the OR gate 7 is a low level signal
  • the signal output by the first general purpose input and output pin 42 of the controller 4 is Is a low level signal, which is the input signal of the second input terminal A of the OR gate 7, according to the characteristics of the OR gate, only when the signal input to the OR gate is a low level signal, the OR gate The output is a low level signal, otherwise the output of the
  • the input to the AND gate is The signal of the second input terminal X of 6 is a low level signal.
  • the output of the AND gate is high only when the signal input to the AND gate is high level, otherwise the output of the AND gate Is low level, then, according to the above description, when the second switching unit 5 is closed, the signal input to the second input terminal X of the AND gate 6 is a low level signal, and therefore, regardless of whether the first switching unit 2 is turned off or When closed, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal.
  • the low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal As a low level signal, the controller 4 performs a power on operation based on the low level signal.
  • the second switch unit 3 When the electronic device is in the power-on state, the second switch unit 3 is in the off state. Since the electronic device is in the power-on state, the signal output by the first input/output port 42 of the controller 4 is a high level signal, then the signal input to the second input terminal A of the OR gate 7 is a high level signal; In this case, regardless of any action (open or closed) on the first switching unit, depending on the characteristics of the OR gate, the signal output from the output terminal 7 of the OR gate is a high level signal, and at the same time, since the electronic device is turned on The second switch unit 5 is turned off, and the signal input to the second input terminal X of the AND gate 6 is a high level signal, then the signal output from the output terminal Z of the OR gate 6 is a high level signal, and the high level The signal is input to the boot pin 41 of the controller 4, and the high level signal does not affect the power-on state of the electronic device. That is to say, when the electronic device is in the power-on state and the second switch unit
  • the power-on and power-off pins are integrated into the same pin, and the boot pin 41 (or the switch pin) of the controller 4 in the electronic device receives a low-level signal. Perform a power on or power off operation. Then, when the electronic device needs to be from the power-on state to the power-off state, since the signal input by the first universal input/output pin 42 of the controller 4 is a high level, and the high level signal is an input signal of the OR gate 7, Therefore, the signal outputted from the output terminal C of the OR gate 7 is always a high level signal, which is an input signal of the AND gate 6; at this time, the second switching unit 5 is closed due to the second switching unit 5 One end is grounded, and the signal input to the second input terminal X of the AND gate 6 is a low level signal. According to the characteristics of the AND gate, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal, and the low level signal is input to The boot pin 41 of the controller 4, the controller performs
  • the booting circuit further includes: a second converting unit 8.
  • the input end of the second conversion unit 8 is connected to the first universal input/output pin 42 of the controller 4, and the output end of the second conversion unit 8 and the second input end of the OR gate 7
  • the second conversion unit 8 is configured to convert a signal output by the first universal input/output pin 42 of the controller 4 when the electronic device is in a power-off state to a low level signal.
  • the second conversion unit 8 may include: a second NMOS transistor 81, a third NMOS transistor 82, a fifth resistor 83, a sixth resistor 84, and a seventh resistor 85;
  • the first power source 1 (represented by VCC1 in FIG. 8) is connected to the drain of the second NMOS transistor 81 through the fifth resistor 83, the gate of the second NMOS transistor 81 and the controller 4
  • the first general-purpose input/output pin 42 is connected, the source of the second NMOS transistor 81 is grounded, and the first power source 1 is connected to the drain of the third NMOS transistor 82 through the sixth resistor 84.
  • the drain of the third NMOS transistor 82 is also connected to the second input terminal A of the OR gate 7, the gate of the third NMOS transistor 82 is connected to the drain of the second NMOS transistor 81, and the third NMOS transistor 82 is The source is grounded; one end of the seventh resistor 85 is connected to the gate of the second NMOS transistor 81, and the other end of the seventh resistor 85 is connected to the source of the second NMOS transistor 81.
  • the signal output by the first universal input/output pin 42 of the controller 4 is a low level signal.
  • the second NMOS transistor 81 is turned off and the second
  • the drain voltage of the third NMOS transistor 82 is equivalent to the source voltage of the third NMOS transistor 82, and the source of the third NMOS transistor 82 is grounded, and the drain of the third NMOS transistor 82 is Connected to the second input terminal A of the OR gate 7, the signal input to the second input terminal A of the OR gate 7 is a low level signal; when the electronic device is in the power on state, the first of the controller 4
  • the signal output from the general-purpose input/output pin 42 is a high-level signal.
  • the second NMOS transistor 81 is turned on and the third NMOS transistor 82 is turned off, and is input to the OR gate 7 by the pull-up action of the fourth resistor 84.
  • the signal at the two input terminals A is a high level signal.
  • the second converting unit 8 may be composed of other circuit components. As shown in FIG. 9, the second converting unit 8 may include: a fourth NMOS transistor 86, a second PMOS transistor 87, and an eighth resistor 88.
  • the first power source 1 (represented by VCC1 in FIG.
  • the booting circuit may also include an OR gate and a second converting unit.
  • the connection relationship between the OR gate and the second conversion unit and other units can be referred to as shown in FIG. 5 to FIG. 9.
  • FIG. 5 to FIG. 9 For the specific structure of the second conversion unit, reference may also be made to FIG. 5 to FIG. 9 , and details are not described herein again.
  • the booting circuit may further include: a third converting unit 9, a third power source 10; wherein the first input end of the third converting unit 9 Connected to the input end of the first conversion unit 3, the second input end of the third conversion unit 9 is connected to the third power source 10, the output end of the third conversion unit 11 and the controller 4
  • the second universal input/output pin 43 is connected; the third converting unit 9 is configured to output a control signal to the second universal input/output pin 42 of the controller 4 when the first switching unit 2 is closed, So that the controller 4 performs a corresponding operation in accordance with the control signal.
  • the controller 4 may issue an alarm message according to the control signal, or issue positioning information or the like.
  • the third conversion unit 11 may include a fifth NMOS transistor 91 and a ninth resistor 92; a gate of the fifth NMOS transistor 91 and a gate of the first NMOS transistor 31 Connecting, the drain of the fifth NMOS transistor 91 and the second power
  • the source 12 is connected, the source of the fifth NMOS transistor 91 is connected to the second universal input/output pin 43 of the controller 4; one end of the ninth resistor 92 and the source of the fifth NMOS transistor 91 Connected, the other end of the ninth resistor 92 is connected to the ground.
  • the fifth NMOS transistor when the first switching unit 2 is turned off, the fifth NMOS transistor is turned off; when the first switching unit 2 is closed, the fifth NMOS transistor 91 is turned on, and the current signal of the drain output of the fifth NMOS transistor 91 (ie, control)
  • the signal is given to the second universal input/output pin 43 of the controller 4, and the controller 4 can perform a corresponding operation according to the current signal, such as issuing an alarm or positioning information.
  • the first switch unit it is a pull-ring switch or a switch for alarming; for the above-mentioned controller 4, performing corresponding operations according to the current signal received by the second universal input/output pin 43,
  • the voltage supplied from the second power source 10 needs to coincide with the level of the second universal input/output pin 43 in the controller 4, so that the controller can perform the corresponding operation.
  • the voltage of the second power supply is 1.8V, 2.6V or 3.3V.
  • the booting circuit is further optimized on the basis of FIG. 3.
  • the booting circuit can be optimized on the basis of FIG. 4, which can be specifically referred to in the embodiment.
  • the embodiment of the invention provides a booting circuit, by closing the first switch unit or closing the second switch unit, so that the AND gate outputs a power-on trigger signal to the controller, and the controller performs a power-on operation according to the power-on trigger signal to implement the electronic device.
  • the electronic device is booted by using a long press of the power button.
  • the embodiment of the present invention can implement the booting of the electronic device by other means.
  • An embodiment of the present invention further provides an electronic device, including: a display screen, a processor, a memory, and a transceiver, and the booting circuit described in any of the above embodiments.
  • the electronic device can be, for example, a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), or the like.
  • the embodiment of the present invention is described by taking a mobile phone as an example.
  • FIG. 12 is a block diagram showing a part of the structure of the mobile phone 300 related to various embodiments of the present invention.
  • the mobile phone 300 may include components such as an RF (radio frequency) circuit 320, a memory 330, an input unit 340, a display unit 350, a gravity sensor 360, an audio circuit 370, a processor 380, and a power source 390.
  • RF radio frequency
  • the components of the mobile phone 300 will be specifically described below with reference to FIG. 12:
  • the RF circuit 320 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 380; in addition, transmitting the uplink data to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like.
  • RF circuitry 320 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (global system of mobile communication), GPRS (general packet radio service), CDMA (code division multiple access) , code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), e-mail, SMS (short messaging service), and the like.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • e-mail short messaging service
  • the memory 330 can be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone 300 by running software programs and modules stored in the memory 330.
  • the memory 330 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile phone 300 (such as audio data, image data, phone book, etc.) and the like.
  • memory 330 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 340 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 300.
  • the input unit 340 can include a touch screen 341 as well as other input devices 342.
  • the touch screen 341 may include two parts of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 380 is provided and can receive commands from the processor 380 and execute them.
  • the touch screen 341 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 340 may also include other input devices 342.
  • other input devices 342 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 350 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 300.
  • the display unit 350 may include a display panel 351.
  • the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch screen 341 can cover the display panel 351, and when the touch screen 341 detects a touch operation on or near it, transmits to the processor 380 to determine the type of the touch event, and then the processor 380 displays the panel according to the type of the touch event. A corresponding visual output is provided on the 351.
  • touch screen 341 and the display panel 351 are implemented as two separate components to implement the input and input functions of the mobile phone 300 in FIG. 12, in some embodiments, the touch screen 341 may be integrated with the display panel 351 to implement the mobile phone 300. Input and output functions.
  • Gravity sensor 360 can detect the acceleration of the mobile phone in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the handset 300 can also include other sensors, such as light sensors.
  • the light sensor can include an ambient light sensor and a proximity light sensor.
  • the ambient light sensor can adjust the brightness of the display panel 341 according to the brightness of the ambient light; the proximity light sensor can detect whether an object approaches or contacts the mobile phone, and can close the display panel 341 and/or the backlight when the mobile phone 300 moves to the ear.
  • the mobile phone 300 can also be configured with a gyroscope, Other sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, and the like are not described herein.
  • Audio circuitry 370, speaker 371, microphone 372 can provide an audio interface between the user and handset 300.
  • the audio circuit 370 can transmit the converted electrical data of the received audio data to the speaker 371, and convert it into a sound signal output by the speaker 371; on the other hand, the microphone 372 converts the collected sound signal into an electrical signal, by the audio circuit 370. After receiving, it is converted to audio data, and then the audio data is output to the RF circuit 320 for transmission to, for example, another mobile phone, or the audio data is output to the memory 330 for further processing.
  • Processor 380 is the control center of handset 300, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 330, and recalling data stored in memory 330, The various functions and processing data of the mobile phone 300 are performed to perform overall monitoring of the mobile phone.
  • the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 380.
  • the handset 300 also includes a power source 390 (such as a battery) that supplies power to the various components.
  • a power source 390 such as a battery
  • the power source can be logically coupled to the processor 380 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 300 may further include a WiFi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
  • WiFi Wireless Fidelity
  • Bluetooth Wireless Fidelity
  • the handset further includes the booting circuit of any of the preceding embodiments.
  • the first switching unit included in the booting circuit can be, for example, an alarm switch of the mobile phone, and the second switching unit can be, for example, a power switch of the mobile phone, that is, a power button.
  • the mobile phone when the mobile phone is turned off, the mobile phone can be turned on by the alarm switch or the power switch. Therefore, a plurality of booting modes are provided, so that the user can turn on the mobile phone through the alarm switch in an emergency use situation, and then alarm through the alarm switch.
  • the disclosed system The apparatus and method can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some of the pins, devices or units, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

Abstract

A power-on circuit and an electronic device, which relate to the technical field of communications and are used for powering on the electronic device when the electronic device is in a power-off state. In the power-on circuit, one end of a first switch unit (2) is connected to an input end of a first conversion unit (3). An output end of the first conversion unit (3) is connected to a first input end of an AND gate (6). One end of a second switch unit (5) is connected to a second input end of the AND gate (6), and the other end of the second switch unit (5) is grounded. An output end of the AND gate (6) is connected to a controller (4). When the state of the first switch unit (2) is changed, the first conversion unit (3) outputs a first signal to the AND gate (6), so that the AND gate (6) outputs a power-on triggering signal to the controller (4), and the controller (4) executes a power-on operation according to the power-on triggering signal. When the state of the second switch unit (5) is changed, the AND gate (6) outputs a power-on triggering signal to the controller (4), and the controller (4) executes a power-on operation according to the power-on triggering signal.

Description

一种开机电路和电子设备Boot circuit and electronic device 技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种开机电路和电子设备。The embodiments of the present invention relate to the field of communications technologies, and in particular, to a booting circuit and an electronic device.
背景技术Background technique
随着信息技术和电子技术的不断发展,电子设备,例如手机、数码相机、笔记本电脑等,逐渐成为人们生活中必不可少的设备之一。With the continuous development of information technology and electronic technology, electronic devices, such as mobile phones, digital cameras, notebook computers, etc., have gradually become one of the essential devices in people's lives.
目前,现有的电子设备都设置有电源(power)键,该电源键可用于电子设备的开机或关机。以手机中配置的电源键为例,当手机处于关机状态时,长按电源键可以实现手机开机;当手机处于开机状态时,长按电源键可以实现手机关机。Currently, existing electronic devices are provided with a power button, which can be used to turn the electronic device on or off. Take the power button configured in the mobile phone as an example. When the mobile phone is in the off state, press and hold the power button to turn on the phone. When the phone is turned on, press and hold the power button to turn off the phone.
但是,当电子设备处于关机状态时,只有长按电源键,才能实现电子设备的开机,无法通过其他方式实现电子设备开机。However, when the electronic device is in the off state, only the long press of the power button can realize the booting of the electronic device, and the electronic device cannot be turned on by other means.
发明内容Summary of the invention
本发明的实施例提供一种开机电路和电子设备,用于在电子设备处于关机状态时,实现电子设备的开机。Embodiments of the present invention provide a booting circuit and an electronic device for enabling booting of an electronic device when the electronic device is in a power off state.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面,本发明实施例提供了一种开机电路,应用于电子设备中,所述开机电路包括:第一开关单元、第二开关单元、与门、第一转换单元、控制器;In a first aspect, an embodiment of the present invention provides a booting circuit, which is applied to an electronic device, where the booting circuit includes: a first switch unit, a second switch unit, an AND gate, a first conversion unit, and a controller;
所述第一开关单元的一端与所述第一转换单元的输入端连接,所述第一转换单元的输出端与所述与门的第一输入端连接,所述第二开关单元的一端与所述与门的第二输入端连接,所述第二开关单元的另一端接地,所述与门的输出端与所述控制器连接;One end of the first switching unit is connected to an input end of the first conversion unit, an output end of the first conversion unit is connected to a first input end of the AND gate, and one end of the second switching unit is The second input end of the door is connected, the other end of the second switch unit is grounded, and the output end of the AND gate is connected to the controller;
当所述第一开关单元的状态变化时,所述第一转换单元输出第一信号给所述与门,以使得所述与门输出开机触发信号给所述控制 器,所述控制器根据所述开机触发信号执行开机操作;When the state of the first switching unit changes, the first converting unit outputs a first signal to the AND gate, so that the AND gate outputs a power-on trigger signal to the control The controller performs a booting operation according to the boot trigger signal;
当所述第二开关单元的状态变化时,所述与门输出开机触发信号给所述控制器,所述控制器根据所述开机触发信号执行开机操作。When the state of the second switch unit changes, the AND gate outputs a power-on trigger signal to the controller, and the controller performs a power-on operation according to the power-on trigger signal.
在第一方面的第一种可能的实现方式中,所述开机电路还包括:第一电源;所述第一电源与所述第一开关单元的另一端连接;In a first possible implementation manner of the first aspect, the booting circuit further includes: a first power source; the first power source is connected to another end of the first switch unit;
所述第一开关单元的状态变化具体为:所述第一开关单元由断开状态变为闭合状态。The state change of the first switch unit is specifically: the first switch unit changes from an open state to a closed state.
在第一方面的第二种可能的实现方式中,所述第一开关单元的另一端接地;In a second possible implementation manner of the first aspect, the other end of the first switch unit is grounded;
所述第一开关单元的状态变化具体为:所述第一开关单元由闭合状态变为断开状态。The state change of the first switch unit is specifically: the first switch unit changes from a closed state to an open state.
在第一方面或第一方面的前两种任一可能的实现方式中,还提供了第一方面的第三种可能的实现方式,所述第二开关单元的状态变化具体为:所述第二开关单元由断开状态变为闭合状态。In a first aspect or any one of the first two possible implementations of the first aspect, a third possible implementation manner of the first aspect is further provided, where the state change of the second switch unit is specifically: The two switching units are changed from the off state to the closed state.
在第一方面或第一方面的前三种任一可能的实现方式中,还提供了第一方面的第四种可能的实现方式,所述开机触发信号为低电平信号;所述第一信号为低电平信号。In a first aspect, or any one of the first three possible implementation manners of the first aspect, the fourth possible implementation manner of the first aspect is further provided, where the power-on trigger signal is a low-level signal; The signal is a low level signal.
在第一方面或第一方面的前四种可能的实现方式中,还提供了第一方面的第五种可能的实现方式,所述开机电路还包括:或门,所述或门连接在所述第一转换单元和所述与门之间;In the first aspect or the first four possible implementation manners of the first aspect, a fifth possible implementation manner of the first aspect is further provided, the booting circuit further includes: an OR gate, where the OR gate is connected Between the first conversion unit and the AND gate;
所述第一转换单元的输出端与所述或门的第一输入端连接,所述控制器的第一通用输入输出管脚与所述或门的第二输入端连接,所述或门的输出端与所述与门的第一输入端连接;其中,当所述电子设备处于关机状态时,所述控制器的第一通用输入输出管脚输出的信号为低电平信号。An output end of the first conversion unit is connected to a first input end of the OR gate, and a first universal input output pin of the controller is connected to a second input end of the OR gate, the OR gate The output terminal is connected to the first input end of the AND gate; wherein, when the electronic device is in a shutdown state, the signal output by the first universal input/output pin of the controller is a low level signal.
在第一方面的第五种可能的实现方式中,还提供了第一方面的第六种可能的实现方式,所述开机电路还包括:第二转换单元;In a fifth possible implementation manner of the first aspect, a sixth possible implementation manner of the first aspect is further provided, where the booting circuit further includes: a second converting unit;
所述第二转换单元的输入端与所述控制器的第一通用输入输出管脚连接,所述第二转换单元的输出端与所述或门的第二输入端连接;所述第二转换单元用于将所述控制器的第一通用输入输出管脚在所述电子设备处于关机状态时输出的信号转换成低电平信号。 An input end of the second conversion unit is connected to a first universal input/output pin of the controller, and an output end of the second conversion unit is connected to a second input end of the OR gate; the second conversion The unit is configured to convert a signal output by the first universal input/output pin of the controller to a low level signal when the electronic device is in a power off state.
在第一方面的第六种可能的实现方式中,还提供了第一方面的第七种可能的实现方式,当所述电子设备处于开机状态时,所述控制器的第一通用输入输出管脚输出的信号为高电平信号;所述第二转换单元用于将所述控制器的第一通用输入输出管脚在所述电子设备处于开机状态时输出的信号转换成高电平信号。In a sixth possible implementation manner of the first aspect, a seventh possible implementation manner of the first aspect is further provided, when the electronic device is in a power on state, the first universal input and output tube of the controller The signal output by the pin is a high level signal; the second conversion unit is configured to convert a signal output by the first universal input/output pin of the controller to a high level signal when the electronic device is in a power on state.
在第一方面或第一方面的前七种任一可能的实现方式中,还提供了第一方面的第八种可能的实现方式,所述开机电路还包括:第三转换单元、第三电源;In the first aspect or any of the first seven possible implementation manners of the first aspect, the eighth possible implementation manner of the first aspect is further provided, where the booting circuit further includes: a third converting unit, a third power source ;
所述第三转换单元的第一输入端与所述第一转换单元的输入端连接,所述第三转换单元的第二输入端与所述第三电源连接,所述第三转换单元的输出端与所述控制器的第二通用输入输出管脚连接;所述第三转换单元用于当所述第一开关单元闭合时,输出控制信号给所述控制器的第二通用输入输出管脚,以使得所述控制器根据所述控制信号执行相应的操作。a first input end of the third conversion unit is connected to an input end of the first conversion unit, a second input end of the third conversion unit is connected to the third power source, and an output of the third conversion unit The end is connected to the second universal input and output pin of the controller; the third converting unit is configured to output a control signal to the second universal input and output pin of the controller when the first switch unit is closed So that the controller performs a corresponding operation according to the control signal.
在第一方面的第八种可能的实现方式中,还提供了第一方面的第九种可能的实现方式,所述控制器根据所述控制信号发出报警信息,或者发出定位信息。In an eighth possible implementation manner of the first aspect, the ninth possible implementation manner of the first aspect is further provided, wherein the controller sends an alarm message according to the control signal, or issues positioning information.
在第一方面的第一种可能的实现方式中,还提供了第一方面的第十种可能的实现方式,所述第一转换单元包括第一NMOS管、第一电阻、第二电阻;In a first possible implementation manner of the first aspect, a tenth possible implementation manner of the first aspect is further provided, where the first conversion unit includes a first NMOS transistor, a first resistor, and a second resistor;
所述第一电源通过第一电阻与所述第一NMOS管的漏极连接;所述第一NMOS管的漏极还与所述或门的第一输入端连接,所述第一NMOS管的栅极与所述第一开关单元的一端连接,所述第一NMOS管的源极接地;所述第二电阻的一端与第一NMOS管的栅极连接,所述第二电阻的另一端与第一NMOS管的源极连接。The first power source is connected to the drain of the first NMOS transistor through a first resistor; the drain of the first NMOS transistor is further connected to a first input end of the OR gate, the first NMOS transistor a gate is connected to one end of the first switching unit, a source of the first NMOS transistor is grounded; one end of the second resistor is connected to a gate of the first NMOS transistor, and the other end of the second resistor is The source of the first NMOS transistor is connected.
在第一方面的第二种可能的实现方式中,还提供了第一方面的第十一种可能的实现方式,所述第一转换单元包括:第二电源、第一PMOS管、第三电阻、第四电阻;In a second possible implementation manner of the first aspect, the eleventh possible implementation manner of the first aspect is further provided, where the first conversion unit includes: a second power source, a first PMOS transistor, and a third resistor Fourth resistance;
所述第二电源与所述第一PMOS管的源极连接,所述第一PMOS的栅极与所述第一开关单元的一端连接,所述第一PMOS管的漏极与所述第三电阻的一端连接,所述第一PMOS管的漏极还与所述与门的第一输入端连接,所述第三电阻的另一端接地;所述第四电阻 的一端与所述第一PMOS管的源极连接,所述第四电阻的另一端与所述第一PMOS管的栅极连接。The second power source is connected to a source of the first PMOS transistor, a gate of the first PMOS is connected to one end of the first switching unit, and a drain of the first PMOS transistor is opposite to the third One end of the resistor is connected, the drain of the first PMOS transistor is also connected to the first input end of the AND gate, and the other end of the third resistor is grounded; the fourth resistor One end is connected to the source of the first PMOS transistor, and the other end of the fourth resistor is connected to the gate of the first PMOS transistor.
在第一方面的第六种至第九种任一可能的实现方式中,还提供了第一方面的第十二种可能的实现方式,所述第二转换单元包括:第二NMOS管、第三NMOS管、第五电阻、第六电阻、第七电阻;In a second to a ninth possible implementation manner of the first aspect, a twelfth possible implementation manner of the first aspect is further provided, where the second conversion unit includes: a second NMOS transistor, a three NMOS transistor, a fifth resistor, a sixth resistor, and a seventh resistor;
所述第一电源通过所述第五电阻与所述第二NMOS管的漏极连接,所述第二NMOS管的栅极与所述控制器的第一通用输入输出管脚连接,所述第二NMOS管的源极接地;所述第一电源通过所述第六电阻与所述第三NMOS管的漏极连接,所述第三NMOS管的漏极还与所述或门的第二输入端连接,所述第三NMOS管的栅极与所述第二NMOS管的漏极连接,所述第三NMOS管的源极接地;所述第七电阻的一端与所述第二NMOS管的栅极连接,所述第七电阻的另一端与所述第二NMOS管的源极连接。The first power source is connected to the drain of the second NMOS transistor through the fifth resistor, and the gate of the second NMOS transistor is connected to the first universal input and output pin of the controller, The source of the two NMOS transistors is grounded; the first power source is connected to the drain of the third NMOS transistor through the sixth resistor, and the drain of the third NMOS transistor is further connected to the second input of the OR gate An end connection, a gate of the third NMOS transistor is connected to a drain of the second NMOS transistor, a source of the third NMOS transistor is grounded; and one end of the seventh resistor is opposite to the second NMOS transistor The gate is connected, and the other end of the seventh resistor is connected to the source of the second NMOS transistor.
在第一方面的第六种至第九种任一可能的实现方式中,还提供了第一方面的第十三种可能的实现方式,所述第二转换单元包括:第四NMOS管、第二PMOS管、第八电阻;In a sixth to a ninth possible implementation manner of the first aspect, the thirteenth possible implementation manner of the first aspect is further provided, where the second conversion unit includes: a fourth NMOS transistor, Two PMOS tubes and eighth resistors;
所述第一电源通过所述第八电阻与所述第四NMOS管的漏极连接,所述第四NMOS管的栅极与所述控制器的第一通用输入输出管脚连接,所述第四NMOS管的源极接地;所述第二PMOS管的源极与所述第一电源连接,所述第二PMOS管的栅极与所述第四NMOS管的漏极连接,所述第二PMOS管的漏极与所述或门的第二输入端连接。The first power source is connected to the drain of the fourth NMOS transistor through the eighth resistor, and the gate of the fourth NMOS transistor is connected to the first universal input and output pin of the controller, where the a source of the fourth NMOS transistor is grounded; a source of the second PMOS transistor is connected to the first power source, a gate of the second PMOS transistor is connected to a drain of the fourth NMOS transistor, and the second A drain of the PMOS transistor is coupled to a second input of the OR gate.
在第一方面的第八种至第九种任一可能的实现方式中,还提供了第一方面的第十四种可能的实现方式,所述第三转换单元包括第五NMOS管、第九电阻;In any of the eighth to ninth possible implementation manners of the first aspect, the fourteenth possible implementation manner of the first aspect is further provided, where the third conversion unit includes a fifth NMOS transistor and a ninth resistance;
所述第五NMOS管的栅极与所述第一NMOS管的栅极连接,所述第五NMOS管的漏极与所述第二电源连接,所述第五NMOS管的源极与所述控制器的第二通用输入输出管脚连接;所述第九电阻的一端与所述第五NMOS管的源极连接,所述第九电阻的另一端接地。a gate of the fifth NMOS transistor is connected to a gate of the first NMOS transistor, a drain of the fifth NMOS transistor is connected to the second power source, and a source of the fifth NMOS transistor is A second universal input/output pin of the controller is connected; one end of the ninth resistor is connected to a source of the fifth NMOS transistor, and the other end of the ninth resistor is grounded.
在第一方面或第一方面的前十四种任一可能的实现方式中,还提供了第一方面的第十五种可能的实现方式,所述第一开关单元为拉环开关或用于报警的开关。In a first aspect or any one of the first fourteen possible implementation manners of the first aspect, the fifteenth possible implementation manner of the first aspect is further provided, the first switch unit is a pull ring switch or used for Alarm switch.
第二方面,本发明实施例提供了一种电子设备,包括显示屏、 处理器、存储器和收发器,还包括第一方面或第一方面的十五种任一可能的实现方式中所述的开机电路。In a second aspect, an embodiment of the present invention provides an electronic device, including a display screen. The processor, the memory, and the transceiver, further comprising the booting circuit of the first aspect or any of the fifteen possible implementations of the first aspect.
本发明实施例提供的开机电路,当电子设备处于关机状态时,通过第一开关单元或第二开关单元的状态变化,使得与门输出开机触发信号给所述控制器,所述控制器根据所述开机触发信号执行开机操作,而现有技术中仅仅通过长按电源键实现电子设备的开机,与现有技术相比,本发明实施例可以通过其他方式实现电子设备的开机。The booting circuit provided by the embodiment of the present invention, when the electronic device is in the off state, changes the state of the first switch unit or the second switch unit, so that the AND gate outputs a power-on trigger signal to the controller, and the controller according to the The power-on trigger signal is used to perform the power-on operation. In the prior art, the power-on of the electronic device is implemented by using a long-pressing power button. Compared with the prior art, the embodiment of the present invention can implement the power-on of the electronic device in other manners.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明实施例提供的一种开机电路的示意图;1 is a schematic diagram of a booting circuit according to an embodiment of the present invention;
图2为本发明实施例在图1的基础上提供的一种开机电路的示意图;2 is a schematic diagram of a booting circuit provided on the basis of FIG. 1 according to an embodiment of the present invention;
图3为本发明实施例提供的针对图2所示的开机电路的示意图;FIG. 3 is a schematic diagram of the booting circuit shown in FIG. 2 according to an embodiment of the present invention; FIG.
图4为本发明实施例在图1的基础上提供的另一种开机电路的示意图;4 is a schematic diagram of another booting circuit provided on the basis of FIG. 1 according to an embodiment of the present invention;
图5为本发明实施例在图2的基础上提供的另一种开机电路的示意图;FIG. 5 is a schematic diagram of another booting circuit provided on the basis of FIG. 2 according to an embodiment of the present invention; FIG.
图6为本发明实施例提供的针对图5所示的开机电路的示意图;FIG. 6 is a schematic diagram of the booting circuit shown in FIG. 5 according to an embodiment of the present invention; FIG.
图7为本发明实施例在图5的基础上提供的另一种开机电路的示意图;FIG. 7 is a schematic diagram of another booting circuit provided on the basis of FIG. 5 according to an embodiment of the present invention; FIG.
图8为本发明实施例提供的针对图7所示的一种开机电路的示意图;FIG. 8 is a schematic diagram of a booting circuit shown in FIG. 7 according to an embodiment of the present invention; FIG.
图9为本发明实施例提供的针对图7所示的另一种开机电路的 示意图;FIG. 9 is a schematic diagram of another boot circuit shown in FIG. 7 according to an embodiment of the present invention. schematic diagram;
图10为本发明实施例在图7的基础上提供的另一种开机电路的示意图;FIG. 10 is a schematic diagram of another booting circuit provided on the basis of FIG. 7 according to an embodiment of the present invention; FIG.
图11为本发明实施例提供的针对图10所示的一种开机电路的示意图;FIG. 11 is a schematic diagram of a booting circuit shown in FIG. 10 according to an embodiment of the present invention; FIG.
图12为本发明实施例提供的一种电子设备的示意图。FIG. 12 is a schematic diagram of an electronic device according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一 Embodiment 1
本发明实施例提供了一种开机电路,应用于电子设备中。如图1所示,所述开机电路包括:第一开关单元2、第一转换单元3、控制器4、第二开关单元5、与门6。The embodiment of the invention provides a booting circuit, which is applied to an electronic device. As shown in FIG. 1 , the booting circuit includes: a first switching unit 2, a first converting unit 3, a controller 4, a second switching unit 5, and an AND gate 6.
其中,所述第一开关单元2的一端与所述第一转换单元3的输入端连接,所述第一转换单元3的输出端与所述与门6的第一输入端连接,所述第二开关单元5的一端与所述与门6的第二输入端连接,所述第二开关单元5的另一端接地,所述与门6的输出端与所述控制器4连接;例如,所述与门6的输出端可以与所述控制器4的开机管脚41连接;One end of the first switch unit 2 is connected to the input end of the first conversion unit 3, and the output end of the first conversion unit 3 is connected to the first input end of the AND gate 6. One end of the two switch unit 5 is connected to the second input end of the AND gate 6, the other end of the second switch unit 5 is grounded, and the output end of the AND gate 6 is connected to the controller 4; for example, The output end of the gate 6 can be connected to the boot pin 41 of the controller 4;
当所述第一开关单元2的状态变化时,所述第一转换单元3输出第一信号给所述与门6,以使得所述与门6输出开机触发信号给所述控制器4,所述控制器4根据所述开机触发信号执行开机操作;When the state of the first switching unit 2 changes, the first converting unit 3 outputs a first signal to the AND gate 6 to cause the AND gate 6 to output a power-on trigger signal to the controller 4, The controller 4 performs a power-on operation according to the power-on trigger signal;
当所述第二开关单元5的状态变化时,所述与门6输出开机触发信号给所述控制器4,所述控制器4根据所述开机触发信号执行开机操作。When the state of the second switching unit 5 changes, the AND gate 6 outputs a power-on trigger signal to the controller 4, and the controller 4 performs a power-on operation according to the power-on trigger signal.
其中,所述第一开关单元2和所述第二开关单元5的状态可以为闭合状态或断开状态,因此,所述第一开关单元2的状态变化和 所述第二开关单元5的状态变化为闭合状态和断开状态之间的变化。The states of the first switch unit 2 and the second switch unit 5 may be a closed state or an open state, and therefore, the state of the first switch unit 2 changes and The state change of the second switching unit 5 is a change between a closed state and an open state.
本发明实施例可以通过第一开关单元或第二开关单元的状态变化来实现电子设备的开机。当通过第一开关的状态变化来实现电子设备的开机时,可以有两种方式:一种为通过第一开关单元2由断开状态变为闭合状态实现开机,或者也可以通过第一开关单元2由闭合状态变为断开状态实现开机。这两种方式对应不同的具体实现。下面分别描述着两种实现方式。The embodiment of the present invention can implement the booting of the electronic device by the state change of the first switch unit or the second switch unit. When the powering on of the electronic device is implemented by the state change of the first switch, there are two ways: one is to start the power from the off state to the closed state by the first switch unit 2, or the first switch unit can also be used. 2 Start from the closed state to the disconnected state. These two methods correspond to different specific implementations. The following two implementations are described separately.
第一种:当第一开关单元2由断开状态变为闭合状态时,实现电子设备的开机。具体可以参见图2和图3。First type: When the first switching unit 2 is changed from the off state to the closed state, the electronic device is turned on. See Figure 2 and Figure 3 for details.
如图2所示,在图1所示实施例的基础上,所述开机电路还包括:第一电源1;所述第一电源1与所述第一开关单元2的另一端连接。As shown in FIG. 2, on the basis of the embodiment shown in FIG. 1, the booting circuit further includes: a first power source 1; and the first power source 1 is connected to the other end of the first switch unit 2.
具体的,当所述第一开关单元2闭合时,所述第一转换单元3输出第一信号给所述与门6,以使得所述与门6输出开机触发信号给所述控制器4,所述控制器4根据所述开机触发信号执行开机操作;当所述第二开关单元5闭合时,所述与门6输出开机触发信号给所述控制器4,所述控制器4根据所述开机触发信号执行开机操作。Specifically, when the first switch unit 2 is closed, the first conversion unit 3 outputs a first signal to the AND gate 6 to cause the AND gate 6 to output a power-on trigger signal to the controller 4, The controller 4 performs a power-on operation according to the power-on trigger signal; when the second switch unit 5 is closed, the AND gate 6 outputs a power-on trigger signal to the controller 4, and the controller 4 according to the The power-on trigger signal performs a power-on operation.
优选的,当所述第一开关单元2闭合时,所述第一转换单元3输出的第一信号为低电平信号,所述与门6输出的开机触发信号为低电平信号;当所述第二开关单元5闭合时,所述与门6输出的开机触发信号为低电平信号。Preferably, when the first switching unit 2 is closed, the first signal output by the first converting unit 3 is a low level signal, and the power-on trigger signal output by the AND gate 6 is a low level signal; When the second switching unit 5 is closed, the power-on trigger signal output by the AND gate 6 is a low level signal.
针对图1中所示的第一转换单元,可选的,如图3所示,该第一转换单元3可以包括第一NMOS管31、第一电阻32和第二电阻33,其中,所述第一电源1(图3中用VCC1表示)通过第一电阻32与所述第一NMOS管31的漏极连接;所述第一NMOS管31的漏极与所述控制器4的开机管脚41连接,所述第一NMOS管31的栅极与所述第一开关单元2的一端连接,所述第一NMOS管31的漏极接地;所述第二电阻33的一端与第一NMOS管31的栅极连接,所述第二电阻33的另一端与第一NMOS管31的源极连接。For the first conversion unit shown in FIG. 1 , optionally, as shown in FIG. 3 , the first conversion unit 3 may include a first NMOS transistor 31 , a first resistor 32 and a second resistor 33 , wherein The first power source 1 (represented by VCC1 in FIG. 3) is connected to the drain of the first NMOS transistor 31 through the first resistor 32; the drain of the first NMOS transistor 31 and the boot pin of the controller 4 41 is connected, a gate of the first NMOS transistor 31 is connected to one end of the first switching unit 2, a drain of the first NMOS transistor 31 is grounded; and one end of the second resistor 33 is connected to the first NMOS transistor The gate of 31 is connected, and the other end of the second resistor 33 is connected to the source of the first NMOS transistor 31.
这样,当第一开关单元2闭合时,第一NMOS管31的栅极与第 一电源VCC1连接,第一NMOS管31导通,第一NMOS管31的漏极电压等效为第一NMOS管31的源极电压,由于第一NMOS管31的源极与地连接,且第一NMOS管31的漏极与与门6的第一输入端Y连接,则输入到与门6的第一输入端Y的信号为低电平信号;根据与门的特性,只有当输入到与门的信号均为高电平信号时,与门的输出才为高电平信号,否则与门的输出为低电平信号,那么,根据上述描述,当第一开关单元2闭合时,输入到与门6第一输入端Y的信号为低电平信号,因此,不论第二开关单元5是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6输出端Z输出的低电平信号输入到控制器4的开机管脚41,即开机触发信号为低电平信号,控制器4根据该低电平信号执行开机操作。Thus, when the first switching unit 2 is closed, the gate and the first NMOS transistor 31 are When the power source VCC1 is connected, the first NMOS transistor 31 is turned on, and the drain voltage of the first NMOS transistor 31 is equivalent to the source voltage of the first NMOS transistor 31. Since the source of the first NMOS transistor 31 is connected to the ground, and The drain of an NMOS transistor 31 is connected to the first input terminal Y of the AND gate 6, and the signal input to the first input terminal Y of the AND gate 6 is a low level signal; according to the characteristics of the AND gate, only when input to and When the signal of the gate is a high level signal, the output of the AND gate is a high level signal, otherwise the output of the AND gate is a low level signal. Then, according to the above description, when the first switching unit 2 is closed, the input is The signal of the first input terminal Y of the AND gate 6 is a low level signal. Therefore, regardless of whether the second switching unit 5 is open or closed, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal. Further, The low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the controller 4 performs a power-on operation according to the low level signal.
或者,当第二开关单元5闭合时,由于第二开关单元5的一端接地,所以输入到第一与门6的第二输入端X的信号为低电平信号;同样的,根据与门的特性,只有当输入到与门的信号均为高电平时,与门的输出才为高电平,否则与门的输出为低电平,那么,根据上述描述,当第二开关单元5闭合时,输入到与门6第二输入端X的信号为低电平信号,因此,不论第一开关单元2是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,即开机触发信号为低电平信号,控制器4根据该低电平信号执行开机操作。Alternatively, when the second switching unit 5 is closed, since one end of the second switching unit 5 is grounded, the signal input to the second input terminal X of the first AND gate 6 is a low level signal; likewise, according to the AND gate Characteristic, the output of the AND gate is high only when the signal input to the AND gate is high level, otherwise the output of the AND gate is low level, then, according to the above description, when the second switching unit 5 is closed The signal input to the second input terminal X of the AND gate 6 is a low level signal. Therefore, regardless of whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal. Further, the low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the controller 4 performs a power-on operation according to the low level signal.
进一步的,随着电子设备的功能一体化,对电子设备的开机和关机功能进行集成,所以,电子设备的控制器采用同一个管脚(如图1-图3中所示的开机管脚41)接收开机触发信号和关机触发信号;一般情况下,电子设备的控制器中用于接收开机触发信号或者关机触发信号的管脚在会在接收到低电平信号时会执行开机或关机操作。示例的,当电子设备处于关机状态时,控制器4的开机管脚41在接收到低电平信号时,控制器4根据该电平信号执行开机操作;当电子设备处于开机状态,控制器4的开机管脚41在接收到低电平信号时,控制器4根据该电平信号执行关机操作。当然, 通过简单的替换,将电子设备的开关机管脚会在接收到高电平信号时执行开机或关机操作,也属于本发明实施例所要保护的范围。本发明实施例以在低电平信号时进行开机或关机操作为例进行说明。Further, as the functions of the electronic device are integrated, the power-on and power-off functions of the electronic device are integrated. Therefore, the controller of the electronic device uses the same pin (the boot pin 41 as shown in FIG. 1 to FIG. 3). Receiving a power-on trigger signal and a power-off trigger signal; in general, a pin for receiving a power-on trigger signal or a power-off trigger signal in a controller of the electronic device performs a power-on or power-off operation when receiving a low-level signal. For example, when the electronic device is in the power-off state, when the power-on pin 41 of the controller 4 receives the low-level signal, the controller 4 performs the power-on operation according to the level signal; when the electronic device is turned on, the controller 4 When the boot pin 41 receives the low level signal, the controller 4 performs a shutdown operation based on the level signal. of course, By simple replacement, the switch pin of the electronic device performs the power-on or power-off operation when receiving the high-level signal, which also belongs to the scope to be protected by the embodiment of the present invention. The embodiment of the present invention is described by taking an example of performing a power on or power off operation at a low level signal.
具体的,以图3所示的开机电路为例进行说明。当电子设备开机后,第一开关单元2和第二开关单元5断开。此时,第一NMOS管31截止,第一电源VCC1通过第一电阻32输入到与门6的第一输入端Y的信号为高电平信号,且输入到与门6的第二输入端X的信号也为高电平信号;根据与门的特性,与门6的输出端输出的信号为高电平信号,同时,将与门6输出的高电平信号输入给控制器4的开机管脚41,该信号不影响电子设备的开机状态。Specifically, the boot circuit shown in FIG. 3 is taken as an example for description. When the electronic device is turned on, the first switching unit 2 and the second switching unit 5 are turned off. At this time, the first NMOS transistor 31 is turned off, the signal of the first power source VCC1 input to the first input terminal Y of the AND gate 6 through the first resistor 32 is a high level signal, and is input to the second input terminal X of the AND gate 6. The signal is also a high level signal; according to the characteristics of the AND gate, the signal output from the output of the AND gate 6 is a high level signal, and at the same time, the high level signal output from the AND gate 6 is input to the boot tube of the controller 4. Foot 41, the signal does not affect the power-on state of the electronic device.
进一步的,若电子设备需要从开机状态到关机状态时,当闭合第一开关单元2时,第一NMOS管导通,此时,输入到与门6的第一输入端Y的信号为低电平信号;那么,根据与门的特性,不论第二开关单元5是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,控制器4根据该低电平信号执行关机操作。Further, if the electronic device needs to be turned from the power-on state to the power-off state, when the first switch unit 2 is closed, the first NMOS transistor is turned on, and at this time, the signal input to the first input terminal Y of the AND gate 6 is low. Flat signal; then, according to the characteristics of the AND gate, whether the second switching unit 5 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output terminal Z of the AND gate 6 The output low level signal is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation based on the low level signal.
或者,若电子设备需要从开机状态到关机状态时,当闭合第二开关单元5时,由于第二开关单元5的一端接地,所以输入到与门6的第二输入端X的信号为低电平信号;那么,根据与门的特性,不论第一开关单元2是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,控制器4根据该低电平信号执行关机操作。Alternatively, if the electronic device needs to be turned from the power-on state to the power-off state, when the second switch unit 5 is closed, since one end of the second switch unit 5 is grounded, the signal input to the second input terminal X of the AND gate 6 is low. Flat signal; then, according to the characteristics of the AND gate, whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output terminal Z of the AND gate 6 The output low level signal is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation based on the low level signal.
若将上述所述的开机电路应用到手机中时,控制器4可以为微控制器(Micro Controller Unit,简称MCU),第一电源1的电压为手机的电池电压,一般情况下,手机中的电池电压在3.2V-4.35V,目前常用的电池最大电压为4.2V。If the booting circuit described above is applied to the mobile phone, the controller 4 may be a Micro Controller Unit (MCU), and the voltage of the first power source 1 is the battery voltage of the mobile phone. In general, the mobile phone The battery voltage is between 3.2V and 4.35V, and the current maximum battery voltage is 4.2V.
需要说明的是,图3中以第一转换单元3包含单个NMOS管为例进行说明,但不限于此;同时,图3中也仅以第一电阻和第二电阻包含一个电阻为例进行说明,该第一电阻和第二电阻也可以为多个电阻的串联或并联。 It should be noted that, in FIG. 3, the first conversion unit 3 includes a single NMOS transistor as an example, but is not limited thereto. Meanwhile, in FIG. 3, only the first resistor and the second resistor include one resistor as an example for description. The first resistor and the second resistor may also be a series or a parallel connection of a plurality of resistors.
第二种:当第一开关单元2由闭合状态变为断开状态时,实现电子设备的开机。具体可以参见图4。Second type: When the first switch unit 2 is changed from the closed state to the open state, the electronic device is turned on. See Figure 4 for details.
如图4所述,在图1所示实施例的基础上,所述第一开关单元2的一端与所述第一PMOS34的栅极连接,所述第一开关单元2的另一端接地。As shown in FIG. 4, on the basis of the embodiment shown in FIG. 1, one end of the first switching unit 2 is connected to the gate of the first PMOS 34, and the other end of the first switching unit 2 is grounded.
当所述第一开关单元2的另一端接地时,可选的,如图4所示,所述第一转换单元3可以包括:第一PMOS管34、第三电阻35、第四电阻36、第二电源;其中,所述第二电源(图4中用VCC2表示)与所述第一PMOS管34的源极连接,所述第一PMOS34的栅极与所述第一开关单元2的一端连接,所述第一PMOS管34的漏极与所述第三电阻35的一端连接,所述第一PMOS管34的漏极还与所述与门6的第一输入端Y连接,所述第三电阻35的另一端接地;所述第四电阻36的一端与所述第一PMOS管34的源极连接,所述第四电阻36的另一端与所述第一PMOS管34的栅极连接。When the other end of the first switch unit 2 is grounded, as shown in FIG. 4, the first conversion unit 3 may include: a first PMOS transistor 34, a third resistor 35, and a fourth resistor 36. a second power source; wherein the second power source (indicated by VCC2 in FIG. 4) is connected to a source of the first PMOS transistor 34, and a gate of the first PMOS 34 and one end of the first switching unit 2 Connecting, the drain of the first PMOS transistor 34 is connected to one end of the third resistor 35, and the drain of the first PMOS transistor 34 is also connected to the first input terminal Y of the AND gate 6. The other end of the third resistor 35 is grounded; one end of the fourth resistor 36 is connected to the source of the first PMOS transistor 34, and the other end of the fourth resistor 36 is connected to the gate of the first PMOS transistor 34. connection.
这样,当第一开关单元2断开时,通过第四电阻36的上拉作用,第一PMOS管34的栅极和源极的电压基本相同,则第一PMOS管34截止,通过第三电阻35的下拉作用,输入到与门6的第一输入端Y的信号为低电平信号;根据与门6的特性,此时,不论第二开关单元5是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6输出端Z输出的低电平信号输入到控制器4的开机管脚41,即开机触发信号为低电平信号,控制器4根据该低电平信号执行开机操作。Thus, when the first switching unit 2 is turned off, the voltage of the gate and the source of the first PMOS transistor 34 is substantially the same by the pull-up of the fourth resistor 36, and the first PMOS transistor 34 is turned off, and the third resistor is passed through the third resistor. The pull-down effect of 35, the signal input to the first input terminal Y of the AND gate 6 is a low level signal; according to the characteristics of the AND gate 6, at this time, regardless of whether the second switching unit 5 is open or closed, the AND gate 6 The signal outputted by the output terminal Z is a low level signal. Further, the low level signal outputted from the output terminal Z of the gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the control is performed. The device 4 performs a power-on operation based on the low level signal.
或者,当第二开关单元5闭合时,由于第二开关单元5的一端接地,所以输入到与门6的第二输入端X的信号为低电平信号;同样的,根据与门的特性,只有当输入到与门的信号均为高电平时,与门的输出才为高电平,否则与门的输出为低电平,那么,根据上述描述,当第二开关单元5闭合时,输入到与门6第二输入端X的信号为低电平信号,因此,不论第一开关单元2是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,即开机触发信号为低电平信号,控制器4根据该低电平信号执行开机操作。 Alternatively, when the second switching unit 5 is closed, since one end of the second switching unit 5 is grounded, the signal input to the second input terminal X of the AND gate 6 is a low level signal; likewise, according to the characteristics of the AND gate, Only when the signal input to the AND gate is high, the output of the AND gate is high, otherwise the output of the AND gate is low, then, according to the above description, when the second switching unit 5 is closed, the input The signal to the second input terminal X of the AND gate 6 is a low level signal. Therefore, regardless of whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, further The low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal is a low level signal, and the controller 4 performs a power-on operation according to the low level signal.
当电子设备处于开机状态时,第一开关单元2处于闭合状态,且第二开关单元5处于断开状态。此时,由于第一开关单元2闭合,则第一PMOS管导通,输入到与门6的第一输入端Y的信号为高电平信号,同时,由于第二开关单元5断开,则输入到与门6的第二输入端X的信号也为高电平信号;根据与门的特性,与门6的输出端输出的信号为高电平信号,进一步的,与门6输出的高电平信号输入给控制器4的开机管脚41,该信号不影响电子设备的开机状态。When the electronic device is in the on state, the first switching unit 2 is in the closed state, and the second switching unit 5 is in the off state. At this time, since the first switching unit 2 is closed, the first PMOS transistor is turned on, the signal input to the first input terminal Y of the AND gate 6 is a high level signal, and at the same time, since the second switching unit 5 is turned off, The signal input to the second input terminal X of the AND gate 6 is also a high level signal; according to the characteristics of the AND gate, the signal outputted from the output terminal of the AND gate 6 is a high level signal, and further, the output of the AND gate 6 is high. The level signal is input to the boot pin 41 of the controller 4, and the signal does not affect the power-on state of the electronic device.
如上述所述,将开机和关机管脚集成为同一个管脚,且电子设备中控制器4的开机管脚41(或称为开关机管脚)会在接收到低电平信号时执行开机或关机操作。那么,若电子设备需要从开机状态到关机状态时,当断开第一开关单元2时,第一PMOS管截止,此时,输入到与门6的第一输入端Y的信号为低电平信号;那么,根据与门的特性,不论第二开关单元5是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,控制器4根据该低电平信号执行关机操作。As described above, the power-on and power-off pins are integrated into the same pin, and the boot pin 41 (or the switch pin) of the controller 4 in the electronic device performs booting when receiving the low-level signal. Or shut down the operation. Then, if the electronic device needs to be turned from the power-on state to the power-off state, when the first switch unit 2 is turned off, the first PMOS transistor is turned off, and at this time, the signal input to the first input terminal Y of the AND gate 6 is low. Signal; then, according to the characteristics of the AND gate, whether the second switching unit 5 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output Z of the AND gate 6 is output. The low level signal is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation based on the low level signal.
或者,若电子设备需要从开机状态到关机状态时,当闭合第二开关单元5时,由于第二开关单元5的一端接地,所以输入到第一与门6的第二输入端X的信号为低电平信号;那么,根据与门的特性,不论第一开关单元2是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,控制器4根据该低电平信号执行关机操作。Alternatively, if the electronic device needs to be turned from the power-on state to the power-off state, when the second switch unit 5 is closed, since one end of the second switch unit 5 is grounded, the signal input to the second input terminal X of the first AND gate 6 is a low level signal; then, according to the characteristics of the AND gate, whether the first switching unit 2 is open or closed, the signal output from the output terminal Z of the AND gate 6 is a low level signal, and further, the output of the AND gate 6 The low level signal of the terminal Z output is input to the boot pin 41 of the controller 4, and the controller 4 performs a shutdown operation according to the low level signal.
需要说明的是,图4中以第一转换单元3包含单个PMOS管为例进行说明,但不限于此;同时,图4中以第三电阻和第四电阻包含一个电阻为例进行说明,该第三电阻和第四电阻也可以为多个电阻的串联或并联。It should be noted that, in FIG. 4, the first conversion unit 3 includes a single PMOS transistor as an example, but is not limited thereto. Meanwhile, in FIG. 4, the third resistor and the fourth resistor include a resistor as an example for description. The third resistor and the fourth resistor may also be a series or a parallel of a plurality of resistors.
本发明实施例提供的开机电路,当电子设备处于关机状态时,通过第一开关单元或第二开关单元的状态变化,使得与门输出开机触发信号给所述控制器,所述控制器根据所述开机触发信号执行开机操作,而现有技术中仅仅通过长按电源键实现电子设备的开机, 与现有技术相比,本发明实施例可以通过其他方式实现电子设备的开机。The booting circuit provided by the embodiment of the present invention, when the electronic device is in the off state, changes the state of the first switch unit or the second switch unit, so that the AND gate outputs a power-on trigger signal to the controller, and the controller according to the The power-on trigger signal performs a power-on operation, and in the prior art, the electronic device is powered on only by long pressing the power button. Compared with the prior art, the embodiment of the present invention can implement booting of the electronic device by other means.
实施例二 Embodiment 2
本发明实施例在上述各实施例的基础上,还提供一种开机电路。在上述各开机电路的基础上,该开机电路还包括:或门;所述或门连接在所述第一转换单元和所述与门之间。所述第一转换单元的输出端与所述或门的第一输入端连接,所述控制器的第一通用输入输出管脚与所述或门的第二输入端连接,所述或门的输出端与所述与门的第一输入端连接;其中,当所述电子设备处于关机状态时,所述控制器的第一通用输入输出管脚输出的信号为低电平信号。The embodiment of the present invention further provides a booting circuit based on the foregoing embodiments. Based on the booting circuits described above, the booting circuit further includes: an OR gate; the OR gate is connected between the first converting unit and the AND gate. An output end of the first conversion unit is connected to a first input end of the OR gate, and a first universal input output pin of the controller is connected to a second input end of the OR gate, the OR gate The output terminal is connected to the first input end of the AND gate; wherein, when the electronic device is in a shutdown state, the signal output by the first universal input/output pin of the controller is a low level signal.
进一步的,该开机电路还可以包括:第二转换单元。所述第二转换单元的输入端与所述控制器的第一通用输入输出管脚连接,所述第二转换单元的输出端与所述或门的第二输入端连接;所述第二转换单元用于将所述控制器的第一通用输入输出管脚在所述电子设备处于关机状态时输出的信号转换成低电平信号。Further, the booting circuit may further include: a second converting unit. An input end of the second conversion unit is connected to a first universal input/output pin of the controller, and an output end of the second conversion unit is connected to a second input end of the OR gate; the second conversion The unit is configured to convert a signal output by the first universal input/output pin of the controller to a low level signal when the electronic device is in a power off state.
具体的,当所述电子设备处于开机状态时,所述控制器的第一通用输入输出管脚输出的信号为高电平信号;所述第二转换单元用于将所述控制器的第一通用输入输出管脚在所述电子设备处于开机状态时输出的信号转换成高电平信号。Specifically, when the electronic device is in a power-on state, a signal output by the first universal input/output pin of the controller is a high level signal; and the second conversion unit is configured to be the first of the controller The general-purpose input/output pin converts a signal outputted when the electronic device is turned on to a high level signal.
下面在图2或图3所示的开机电路的基础上,描述或门、第二转换单元的结构。如图5所示,该开机电路具体包括:第一电源1、第一开关单元2、第一转换单元3、控制器4、第二开关单元5、与门6、或门7。The structure of the OR gate and the second conversion unit will be described below on the basis of the booting circuit shown in FIG. 2 or FIG. 3. As shown in FIG. 5, the booting circuit specifically includes: a first power source 1, a first switching unit 2, a first converting unit 3, a controller 4, a second switching unit 5, an AND gate 6, or an OR gate 7.
其中,所述第一开关单元2的一端与所述第一电源1连接,所述第一开关单元2的另一端与所述第一转换单元3的输入端连接,所述第一转换单元3的输出端与所述或门7的第一输入端连接;所述控制器4的第一通用输入输出管脚(General Purpose Input Output,简称GPIO)42与所述或门7的第二输入端连接,所述或门7的输出端与所述与门6的第一输入端连接;所述第二开关单元5的一端与所述与门6的第二输入端连接,所述与门6的输出端与所述控制器4的开机管脚41连接;其中,当所述电子设备处于关 机状态时,所述控制器4的第一通用输入输出管脚42输出的信号为低电平信号。One end of the first switch unit 2 is connected to the first power source 1, and the other end of the first switch unit 2 is connected to an input end of the first conversion unit 3, the first conversion unit 3 The output terminal is connected to the first input end of the OR gate 7; the first general input input output (GPIO) 42 of the controller 4 and the second input end of the OR gate 7 Connecting, the output end of the OR gate 7 is connected to the first input end of the AND gate 6; one end of the second switch unit 5 is connected to the second input end of the AND gate 6, the AND gate 6 The output is connected to the boot pin 41 of the controller 4; wherein when the electronic device is off In the state of the machine, the signal output by the first universal input/output pin 42 of the controller 4 is a low level signal.
这样,当所述第一开关单元2闭合时,所述或门7输出第一信号给所述与门6,所述与门6接收到第一信号后,所述与门6输出开机触发信号给所述控制器4,所述控制器4根据所述开机触发信号执行开机操作;当所述第二开关单元5闭合时,所述与门6输出开机触发信号给所述控制器,所述控制器4根据所述开机触发信号执行开机操作。Thus, when the first switch unit 2 is closed, the OR gate 7 outputs a first signal to the AND gate 6. After the AND gate 6 receives the first signal, the AND gate 6 outputs a power-on trigger signal. To the controller 4, the controller 4 performs a power-on operation according to the power-on trigger signal; when the second switch unit 5 is closed, the AND gate 6 outputs a power-on trigger signal to the controller, The controller 4 performs a power-on operation according to the power-on trigger signal.
优选的,所述第一信号为低电平信号,所述开机触发信号为低电平信号。Preferably, the first signal is a low level signal, and the power on trigger signal is a low level signal.
示例的,如图6所示,本实施例中的第一转换单元3采用与实施例一的图3中相同的第一转换单元3,对于该第一转换单元3的具体连接方式,可以参考实施例一中所述,在此不再赘述。For example, as shown in FIG. 6, the first conversion unit 3 in this embodiment adopts the same first conversion unit 3 as that in FIG. 3 of the first embodiment. For the specific connection manner of the first conversion unit 3, reference may be made. The description in the first embodiment will not be repeated here.
具体的,当电子设备需要从关机状态到开机状态时,若第一开关单元2闭合时,第一NMOS管31的栅极与第一电源VCC1连接,第一NMOS管31导通,第一NMOS管31的漏极电压等效为第一NMOS管31的源极电压,由于第一NMOS管31的源极与地连接,且第一NMOS管31的漏极与与门6的第一输入端Y连接,则输入到或门7的第一输入端B的信号为低电平信号,同时,当电子设备处于关机状态时,所述控制器4的第一通用输入输出管脚42输出的信号为低电平信号,该低电平信号作为或门7的第二输入端A的输入信号,根据或门的特性,只有当输入到或门的信号均为低电平信号时,或门的输出才为低电平信号,否则或门的输出为高电平信号,那么,根据上述描述,当第一开关单元2闭合时,或门7的输出端输出的信号为低电平信号;该低电平信号作为与门6的第一输入端Y的输入信号,根据与门的特性,不论第二开关单元5是断开还是闭合,与门6输出端Z输出的信号均为低电平信号;进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,即开机触发信号为低电平信号,控制器4根据该低电平信号执行开机操作。Specifically, when the electronic device needs to be from the power-off state to the power-on state, if the first switch unit 2 is closed, the gate of the first NMOS transistor 31 is connected to the first power source VCC1, and the first NMOS transistor 31 is turned on, the first NMOS The drain voltage of the transistor 31 is equivalent to the source voltage of the first NMOS transistor 31, since the source of the first NMOS transistor 31 is connected to the ground, and the drain of the first NMOS transistor 31 and the first input terminal of the AND gate 6 Y is connected, the signal input to the first input terminal B of the OR gate 7 is a low level signal, and at the same time, when the electronic device is in the off state, the signal output by the first general purpose input and output pin 42 of the controller 4 is Is a low level signal, which is the input signal of the second input terminal A of the OR gate 7, according to the characteristics of the OR gate, only when the signal input to the OR gate is a low level signal, the OR gate The output is a low level signal, otherwise the output of the OR gate is a high level signal, then, according to the above description, when the first switching unit 2 is closed, the signal outputted by the output of the OR gate 7 is a low level signal; a low level signal as an input signal to the first input Y of the AND gate 6, according to the AND gate Sex, regardless of whether the second switching unit 5 is open or closed, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal; further, the low level signal outputted from the output terminal Z of the AND gate 6 is input to the controller. The boot pin 41 of 4, that is, the boot trigger signal is a low level signal, and the controller 4 performs a boot operation according to the low level signal.
或者,当电子设备需要从关机状态到开机状态时,若第二开关单元5闭合时,由于第二开关单元5的一端接地,所以输入到与门 6的第二输入端X的信号为低电平信号,根据与门的特性,只有当输入到与门的信号均为高电平时,与门的输出才为高电平,否则与门的输出为低电平,那么,根据上述描述,当第二开关单元5闭合时,输入到与门6第二输入端X的信号为低电平信号,因此,不论第一开关单元2是断开还是闭合,与门6的输出端Z输出的信号均为低电平信号,进一步的,与门6的输出端Z输出的低电平信号输入到控制器4的开机管脚41,即开机触发信号为低电平信号,控制器4根据该低电平信号执行开机操作。Alternatively, when the electronic device needs to be from the power-off state to the power-on state, if the second switch unit 5 is closed, since one end of the second switch unit 5 is grounded, the input to the AND gate is The signal of the second input terminal X of 6 is a low level signal. According to the characteristics of the AND gate, the output of the AND gate is high only when the signal input to the AND gate is high level, otherwise the output of the AND gate Is low level, then, according to the above description, when the second switching unit 5 is closed, the signal input to the second input terminal X of the AND gate 6 is a low level signal, and therefore, regardless of whether the first switching unit 2 is turned off or When closed, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal. Further, the low level signal outputted from the output terminal Z of the AND gate 6 is input to the boot pin 41 of the controller 4, that is, the power-on trigger signal As a low level signal, the controller 4 performs a power on operation based on the low level signal.
当电子设备处于开机状态后,第二开关单元3处于断开状态。由于电子设备处于开机状态,所述控制器4的第一输入输出端口42输出的信号为高电平信号,那么,输入到或门7的第二输入端A的信号为高电平信号;在此情况下,不论对第一开关单元进行任何动作(断开或者闭合),根据或门的特性,或门的输出端7输出的信号为高电平信号,同时,由于电子设备处于开机状态时,第二开关单元5断开,输入到与门6的第二输入端X的信号为高电平信号,那么,或门6的输出端Z输出的信号为高电平信号,该高电平信号输入到控制器4的开机管脚41,该高电平信号不影响电子设备的开机状态。也就说,当电子设备处于开机状态,且第二开关单元处于断开状态时,无论对第一开关单元进行如何操作,均不影响电子设备的开机状态,即不会对电子设备进行关机操作。When the electronic device is in the power-on state, the second switch unit 3 is in the off state. Since the electronic device is in the power-on state, the signal output by the first input/output port 42 of the controller 4 is a high level signal, then the signal input to the second input terminal A of the OR gate 7 is a high level signal; In this case, regardless of any action (open or closed) on the first switching unit, depending on the characteristics of the OR gate, the signal output from the output terminal 7 of the OR gate is a high level signal, and at the same time, since the electronic device is turned on The second switch unit 5 is turned off, and the signal input to the second input terminal X of the AND gate 6 is a high level signal, then the signal output from the output terminal Z of the OR gate 6 is a high level signal, and the high level The signal is input to the boot pin 41 of the controller 4, and the high level signal does not affect the power-on state of the electronic device. That is to say, when the electronic device is in the power-on state and the second switch unit is in the off state, no matter how the first switch unit is operated, the power-on state of the electronic device is not affected, that is, the electronic device is not turned off. .
如实施例一中所述,将开机和关机管脚集成为同一个管脚,且电子设备中控制器4的开机管脚41(或称为开关机管脚)会在接收到低电平信号时执行开机或关机操作。那么,当电子设备需要从开机状态到关机状态时,由于控制器4的第一通用输入输出管脚42输入的信号为高电平,而该高电平信号作为或门7的一个输入信号,所以或门7的输出端C输出的信号一直为高电平信号,该高电平信号作为与门6的一个输入信号;此时,将第二开关单元5闭合,由于第二开关单元5的一端接地,输入到与门6的第二输入端X的信号为低电平信号,根据与门的特性,与门6输出端Z输出的信号为低电平信号,该低电平信号输入到控制器4的开机管脚41,控制器根据该低电平信号执行关机操作。 As described in the first embodiment, the power-on and power-off pins are integrated into the same pin, and the boot pin 41 (or the switch pin) of the controller 4 in the electronic device receives a low-level signal. Perform a power on or power off operation. Then, when the electronic device needs to be from the power-on state to the power-off state, since the signal input by the first universal input/output pin 42 of the controller 4 is a high level, and the high level signal is an input signal of the OR gate 7, Therefore, the signal outputted from the output terminal C of the OR gate 7 is always a high level signal, which is an input signal of the AND gate 6; at this time, the second switching unit 5 is closed due to the second switching unit 5 One end is grounded, and the signal input to the second input terminal X of the AND gate 6 is a low level signal. According to the characteristics of the AND gate, the signal outputted from the output terminal Z of the AND gate 6 is a low level signal, and the low level signal is input to The boot pin 41 of the controller 4, the controller performs a shutdown operation according to the low level signal.
优选的,如图7所示,所述开机电路还包括:第二转换单元8。其中,所述第二转换单元8的输入端与所述控制器4的第一通用输入输出管脚42连接,所述第二转换单元8的输出端与所述或门7的第二输入端连接;所述第二转换单元8用于对所述控制器4的第一通用输入输出管脚42在所述电子设备处于关机状态时输出的信号转换成低电平信号。Preferably, as shown in FIG. 7, the booting circuit further includes: a second converting unit 8. The input end of the second conversion unit 8 is connected to the first universal input/output pin 42 of the controller 4, and the output end of the second conversion unit 8 and the second input end of the OR gate 7 The second conversion unit 8 is configured to convert a signal output by the first universal input/output pin 42 of the controller 4 when the electronic device is in a power-off state to a low level signal.
可选的,如图8所示,所述第二转换单元8可以包括:第二NMOS管81、第三NMOS管82、第五电阻83、第六电阻84和第七电阻85;其中,所述第一电源1(图8中用VCC1表示)通过所述第五电阻83与所述第二NMOS管81的漏极连接,所述第二NMOS管81的栅极与所述控制器4的第一通用输入输出管脚42连接,所述第二NMOS管81的源极接地;所述第一电源1通过所述第六电阻84与所述第三NMOS管82的漏极连接,所述第三NMOS管82的漏极还与或门7的第二输入端A连接,所述第三NMOS管82的栅极与第二NMOS管81的漏极连接,所述第三NMOS管82的源极接地;所述第七电阻85的一端与所述第二NMOS管81的栅极连接,所述第七电阻85的另一端与所述第二NMOS管81的源极连接。Optionally, as shown in FIG. 8, the second conversion unit 8 may include: a second NMOS transistor 81, a third NMOS transistor 82, a fifth resistor 83, a sixth resistor 84, and a seventh resistor 85; The first power source 1 (represented by VCC1 in FIG. 8) is connected to the drain of the second NMOS transistor 81 through the fifth resistor 83, the gate of the second NMOS transistor 81 and the controller 4 The first general-purpose input/output pin 42 is connected, the source of the second NMOS transistor 81 is grounded, and the first power source 1 is connected to the drain of the third NMOS transistor 82 through the sixth resistor 84. The drain of the third NMOS transistor 82 is also connected to the second input terminal A of the OR gate 7, the gate of the third NMOS transistor 82 is connected to the drain of the second NMOS transistor 81, and the third NMOS transistor 82 is The source is grounded; one end of the seventh resistor 85 is connected to the gate of the second NMOS transistor 81, and the other end of the seventh resistor 85 is connected to the source of the second NMOS transistor 81.
针对图8所示,当所述电子设备处于关机状态时,所述控制器4的第一通用输入输出管脚42输出的信号为低电平信号,此时,第二NMOS管81截止且第三NMOS管82导通,则第三NMOS管82的漏极电压等效为第三NMOS管82的源极电压,由于第三NMOS管82的源极接地,且第三NMOS管82的漏极与或门7的第二输入端A连接,则输入到或门7的第二输入端A的信号为低电平信号;当所述电子设备处于开机状态时,所述控制器4的第一通用输入输出管脚42输出的信号为高电平信号,此时,第二NMOS管81导通且第三NMOS管82截止,通过第四电阻84的上拉作用,输入到或门7的第二输入端A的信号为高电平信号。As shown in FIG. 8, when the electronic device is in the off state, the signal output by the first universal input/output pin 42 of the controller 4 is a low level signal. At this time, the second NMOS transistor 81 is turned off and the second When the three NMOS transistors 82 are turned on, the drain voltage of the third NMOS transistor 82 is equivalent to the source voltage of the third NMOS transistor 82, and the source of the third NMOS transistor 82 is grounded, and the drain of the third NMOS transistor 82 is Connected to the second input terminal A of the OR gate 7, the signal input to the second input terminal A of the OR gate 7 is a low level signal; when the electronic device is in the power on state, the first of the controller 4 The signal output from the general-purpose input/output pin 42 is a high-level signal. At this time, the second NMOS transistor 81 is turned on and the third NMOS transistor 82 is turned off, and is input to the OR gate 7 by the pull-up action of the fourth resistor 84. The signal at the two input terminals A is a high level signal.
可选的,所述第二转换单元8可以由其它电路元件组成,如图9所示,所述第二转换单元8可以包括:第四NMOS管86、第二PMOS管87、第八电阻88;所述第一电源1(图8中用VCC1表示)通过所述第八电阻88与所述第四NMOS管86的漏极连接,所述第四NMOS 管86的栅极与所述控制器4的第一通用输入输出管脚42连接,所述第四NMOS管86的源极接地;所述第二PMOS管87的源极与所述第一电源1连接,所述第二PMOS管87的栅极与所述第四NMOS管86的漏极连接,所述第二PMOS管87的漏极与所述或门7的第二输入端连接。Optionally, the second converting unit 8 may be composed of other circuit components. As shown in FIG. 9, the second converting unit 8 may include: a fourth NMOS transistor 86, a second PMOS transistor 87, and an eighth resistor 88. The first power source 1 (represented by VCC1 in FIG. 8) is connected to the drain of the fourth NMOS transistor 86 through the eighth resistor 88, the fourth NMOS The gate of the tube 86 is connected to the first universal input/output pin 42 of the controller 4, the source of the fourth NMOS transistor 86 is grounded; the source of the second PMOS transistor 87 and the first power source 1 is connected, a gate of the second PMOS transistor 87 is connected to a drain of the fourth NMOS transistor 86, and a drain of the second PMOS transistor 87 is connected to a second input end of the OR gate 7.
针对图9所示,当所述电子设备处于关机状态时,所述控制器4的第一通用输入输出管脚42输出的信号为低电平信号时,第四NMOS管86截止且第二PMOS管87截止,此时,输入到或门7的第二输入端A的信号为低电平信号;当所述电子设备处于开机状态时,所述控制器4的第一通用输入输出管脚42输出的信号为高电平信号时,第四NMOS管86导通且第二PMOS管87导通,此时,输入到或门7的第二输入端A的信号为高电平信号。由此,当电子设备处于开机状态时,只要第二开关5处于断开状态,无论第一开关2处于断开状态或闭合状态,均不会对电子设备执行关机操作。As shown in FIG. 9, when the electronic device is in the off state, when the signal output by the first universal input/output pin 42 of the controller 4 is a low level signal, the fourth NMOS transistor 86 is turned off and the second PMOS is turned off. The tube 87 is turned off. At this time, the signal input to the second input terminal A of the OR gate 7 is a low level signal; when the electronic device is in the power on state, the first general purpose input and output pin 42 of the controller 4 When the output signal is a high level signal, the fourth NMOS transistor 86 is turned on and the second PMOS transistor 87 is turned on. At this time, the signal input to the second input terminal A of the OR gate 7 is a high level signal. Thus, when the electronic device is in the power-on state, as long as the second switch 5 is in the off state, no shutdown operation is performed on the electronic device regardless of whether the first switch 2 is in the off state or the closed state.
需要说明的是,在图4所示实施例的基础上,开机电路也可以包括或门和第二转换单元。此时,或门和第二转换单元与其它单元的连接关系可以参见图5-图9所示,第二转换单元的具体结构也可以参见可以参见图5-图9,在此不再赘述。It should be noted that, on the basis of the embodiment shown in FIG. 4, the booting circuit may also include an OR gate and a second converting unit. At this time, the connection relationship between the OR gate and the second conversion unit and other units can be referred to as shown in FIG. 5 to FIG. 9. For the specific structure of the second conversion unit, reference may also be made to FIG. 5 to FIG. 9 , and details are not described herein again.
进一步的,如图10所示,在前述各实施方式的基础上,该开机电路还可以包括:第三转换单元9、第三电源10;其中,所述第三转换单元9的第一输入端与所述第一转换单元3的输入端连接,所述第三转换单元9的第二输入端与所述第三电源10连接,所述第三转换单元11的输出端与所述控制器4的第二通用输入输出管脚43连接;所述第三转换单元9用于当所述第一开关单元2闭合时,输出控制信号给所述控制器4的第二通用输入输出管脚42,以使得所述控制器4根据所述控制信号执行相应的操作。Further, as shown in FIG. 10, on the basis of the foregoing embodiments, the booting circuit may further include: a third converting unit 9, a third power source 10; wherein the first input end of the third converting unit 9 Connected to the input end of the first conversion unit 3, the second input end of the third conversion unit 9 is connected to the third power source 10, the output end of the third conversion unit 11 and the controller 4 The second universal input/output pin 43 is connected; the third converting unit 9 is configured to output a control signal to the second universal input/output pin 42 of the controller 4 when the first switching unit 2 is closed, So that the controller 4 performs a corresponding operation in accordance with the control signal.
可选的,所述控制器4可以根据所述控制信号发出报警信息,或者发出定位信息等。Optionally, the controller 4 may issue an alarm message according to the control signal, or issue positioning information or the like.
具体的,如图11所示,所述第三转换单元11可以包括第五NMOS管91和第九电阻92;所述第五NMOS管91的栅极与所述第一NMOS管31的栅极连接,所述第五NMOS管91的漏极与所述第二电 源12连接,所述第五NMOS管91的源极与所述控制器4的第二通用输入输出管脚43连接;所述第九电阻92的一端与所述第五NMOS管91的源极连接,所述第九电阻92的另一端与地连接。Specifically, as shown in FIG. 11 , the third conversion unit 11 may include a fifth NMOS transistor 91 and a ninth resistor 92; a gate of the fifth NMOS transistor 91 and a gate of the first NMOS transistor 31 Connecting, the drain of the fifth NMOS transistor 91 and the second power The source 12 is connected, the source of the fifth NMOS transistor 91 is connected to the second universal input/output pin 43 of the controller 4; one end of the ninth resistor 92 and the source of the fifth NMOS transistor 91 Connected, the other end of the ninth resistor 92 is connected to the ground.
这样,当第一开关单元2断开时,第五NMOS管截止;当第一开关单元2闭合时,第五NMOS管91导通,第五NMOS管91的漏极输出的电流信号(即控制信号)给所述控制器4的第二通用输入输出管脚43,控制器4可以根据该电流信号执行相应的操作,例如发出警报或者定位信息等。Thus, when the first switching unit 2 is turned off, the fifth NMOS transistor is turned off; when the first switching unit 2 is closed, the fifth NMOS transistor 91 is turned on, and the current signal of the drain output of the fifth NMOS transistor 91 (ie, control) The signal is given to the second universal input/output pin 43 of the controller 4, and the controller 4 can perform a corresponding operation according to the current signal, such as issuing an alarm or positioning information.
需要说明的是,对于上述所述第一开关单元为拉环开关或用于报警的开关;对于上述所述的控制器4根据第二通用输入输出管脚43接收的电流信号执行相应的操作,但是由于控制器的型号或类型的不同,所以第二电源10提供的电压需要和控制器4中第二通用输入输出管脚43的电平一致,这样,控制器才能执行相应的操作。一般情况下,第二电源的电压为1.8V、2.6V或3.3V。It should be noted that, for the above-mentioned first switch unit, it is a pull-ring switch or a switch for alarming; for the above-mentioned controller 4, performing corresponding operations according to the current signal received by the second universal input/output pin 43, However, due to the difference in the type or type of the controller, the voltage supplied from the second power source 10 needs to coincide with the level of the second universal input/output pin 43 in the controller 4, so that the controller can perform the corresponding operation. In general, the voltage of the second power supply is 1.8V, 2.6V or 3.3V.
对于图11所示的开机电路的具体工作原理,可以参考上述对每个单元的具体描述,在此不再赘述。同时,本实施例以在图3的基础上进一步对开机电路进行优化,同样,也可以在图4的基础上对开机电路进行优化,具体可参考本实施例中所描述的。For the specific working principle of the power-on circuit shown in FIG. 11, reference may be made to the above specific description of each unit, and details are not described herein again. In the embodiment, the booting circuit is further optimized on the basis of FIG. 3. Similarly, the booting circuit can be optimized on the basis of FIG. 4, which can be specifically referred to in the embodiment.
本发明实施例提供了一种开机电路,通过闭合第一开关单元或者闭合第二开关单元,使得与门输出开机触发信号给控制器,控制器根据该开机触发信号执行开机操作,实现对电子设备的开机,而现有技术中仅仅通过长按电源键实现电子设备的开机,与现有技术相比,本发明实施例可以通过其他方式实现电子设备的开机。The embodiment of the invention provides a booting circuit, by closing the first switch unit or closing the second switch unit, so that the AND gate outputs a power-on trigger signal to the controller, and the controller performs a power-on operation according to the power-on trigger signal to implement the electronic device. In the prior art, the electronic device is booted by using a long press of the power button. Compared with the prior art, the embodiment of the present invention can implement the booting of the electronic device by other means.
实施例三 Embodiment 3
本发明实施例还提供了一种电子设备,该电子设备包括:显示屏、处理器、存储器和收发器,以及上述任一实施例所述的开机电路。该电子设备例如可以为手机、平板电脑、笔记本电脑、UMPC(Ultra-mobile Personal Computer,超级移动个人计算机)、上网本、PDA(Personal Digital Assistant,个人数字助理)等。本发明实施例以手机为例进行说明,图12示出的是与本发明各实施例相关的手机300的部分结构的框图。 An embodiment of the present invention further provides an electronic device, including: a display screen, a processor, a memory, and a transceiver, and the booting circuit described in any of the above embodiments. The electronic device can be, for example, a mobile phone, a tablet computer, a notebook computer, a UMPC (Ultra-mobile Personal Computer), a netbook, a PDA (Personal Digital Assistant), or the like. The embodiment of the present invention is described by taking a mobile phone as an example. FIG. 12 is a block diagram showing a part of the structure of the mobile phone 300 related to various embodiments of the present invention.
如图12所示,手机300可以包括:RF(radio frequency,射频)电路320、存储器330、输入单元340、显示单元350、重力传感器360、音频电路370、处理器380、以及电源390等部件。本领域技术人员可以理解,图12中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。As shown in FIG. 12, the mobile phone 300 may include components such as an RF (radio frequency) circuit 320, a memory 330, an input unit 340, a display unit 350, a gravity sensor 360, an audio circuit 370, a processor 380, and a power source 390. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 12 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
下面结合图12对手机300的各个构成部件进行具体的介绍:The components of the mobile phone 300 will be specifically described below with reference to FIG. 12:
RF电路320可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器380处理;另外,将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、LNA(low noise amplifier,低噪声放大器)、双工器等。此外,RF电路320还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(global system of mobile communication,全球移动通讯系统)、GPRS(general packet radio service,通用分组无线服务)、CDMA(code division multiple access,码分多址)、WCDMA(wideband code division multiple access,宽带码分多址)、LTE(long term evolution,长期演进)、电子邮件、SMS(short messaging service,短消息服务)等。The RF circuit 320 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, after receiving the downlink information of the base station, and processing it to the processor 380; in addition, transmitting the uplink data to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, an LNA (low noise amplifier), a duplexer, and the like. In addition, RF circuitry 320 can also communicate with the network and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (global system of mobile communication), GPRS (general packet radio service), CDMA (code division multiple access) , code division multiple access), WCDMA (wideband code division multiple access), LTE (long term evolution), e-mail, SMS (short messaging service), and the like.
存储器330可用于存储软件程序以及模块,处理器380通过运行存储在存储器330的软件程序以及模块,从而执行手机300的各种功能应用以及数据处理。存储器330可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机300的使用所创建的数据(比如音频数据、图像数据、电话本等)等。此外,存储器330可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 330 can be used to store software programs and modules, and the processor 380 executes various functional applications and data processing of the mobile phone 300 by running software programs and modules stored in the memory 330. The memory 330 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the mobile phone 300 (such as audio data, image data, phone book, etc.) and the like. Moreover, memory 330 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元340可用于接收输入的数字或字符信息,以及产生与手机300的用户设置以及功能控制有关的键信号输入。具体地,输入单元340可包括触摸屏341以及其他输入设备342。触摸屏341,也称为触控面板,可收集用户在其上或附近的触摸操作(比如用户 使用手指、触笔等任何适合的物体或附件在触摸屏341上或在触摸屏341附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触摸屏341可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器380,并能接收处理器380发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触摸屏341。除了触摸屏341,输入单元340还可以包括其他输入设备342。具体地,其他输入设备342可以包括但不限于物理键盘、功能键(比如音量控制按键、电源开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 340 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 300. In particular, the input unit 340 can include a touch screen 341 as well as other input devices 342. A touch screen 341, also referred to as a touch panel, collects touch operations on or near the user (such as a user) The use of a finger, stylus or the like on any suitable object or accessory on the touch screen 341 or in the vicinity of the touch screen 341) and driving of the corresponding connection device in accordance with a predetermined program. Alternatively, the touch screen 341 may include two parts of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 380 is provided and can receive commands from the processor 380 and execute them. In addition, the touch screen 341 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 341, the input unit 340 may also include other input devices 342. In particular, other input devices 342 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, power switch buttons, etc.), trackballs, mice, joysticks, and the like.
显示单元350可用于显示由用户输入的信息或提供给用户的信息以及手机300的各种菜单。显示单元350可包括显示面板351,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板341。进一步的,触摸屏341可覆盖显示面板351,当触摸屏341检测到在其上或附近的触摸操作后,传送给处理器380以确定触摸事件的类型,随后处理器380根据触摸事件的类型在显示面板351上提供相应的视觉输出。虽然在图12中,触摸屏341与显示面板351是作为两个独立的部件来实现手机300的输入和输入功能,但是在某些实施例中,可以将触摸屏341与显示面板351集成而实现手机300的输入和输出功能。The display unit 350 can be used to display information input by the user or information provided to the user and various menus of the mobile phone 300. The display unit 350 may include a display panel 351. Alternatively, the display panel 341 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch screen 341 can cover the display panel 351, and when the touch screen 341 detects a touch operation on or near it, transmits to the processor 380 to determine the type of the touch event, and then the processor 380 displays the panel according to the type of the touch event. A corresponding visual output is provided on the 351. Although the touch screen 341 and the display panel 351 are implemented as two separate components to implement the input and input functions of the mobile phone 300 in FIG. 12, in some embodiments, the touch screen 341 may be integrated with the display panel 351 to implement the mobile phone 300. Input and output functions.
重力传感器(gravity sensor)360,可以检测手机在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。 Gravity sensor 360 can detect the acceleration of the mobile phone in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
手机300还可以包括其它传感器,比如光传感器。具体地,光传感器可包括环境光传感器及接近光传感器。其中,环境光传感器可根据环境光线的明暗来调节显示面板341的亮度;接近光传感器可以检测是否有物体靠近或接触手机,可在手机300移动到耳边时,关闭显示面板341和/或背光。手机300还可配置的陀螺仪、 气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset 300 can also include other sensors, such as light sensors. In particular, the light sensor can include an ambient light sensor and a proximity light sensor. The ambient light sensor can adjust the brightness of the display panel 341 according to the brightness of the ambient light; the proximity light sensor can detect whether an object approaches or contacts the mobile phone, and can close the display panel 341 and/or the backlight when the mobile phone 300 moves to the ear. . The mobile phone 300 can also be configured with a gyroscope, Other sensors such as a barometer, a hygrometer, a thermometer, an infrared sensor, and the like are not described herein.
音频电路370、扬声器371、麦克风372可提供用户与手机300之间的音频接口。音频电路370可将接收到的音频数据转换后的电信号,传输到扬声器371,由扬声器371转换为声音信号输出;另一方面,麦克风372将收集的声音信号转换为电信号,由音频电路370接收后转换为音频数据,再将音频数据输出至RF电路320以发送给比如另一手机,或者将音频数据输出至存储器330以便进一步处理。 Audio circuitry 370, speaker 371, microphone 372 can provide an audio interface between the user and handset 300. The audio circuit 370 can transmit the converted electrical data of the received audio data to the speaker 371, and convert it into a sound signal output by the speaker 371; on the other hand, the microphone 372 converts the collected sound signal into an electrical signal, by the audio circuit 370. After receiving, it is converted to audio data, and then the audio data is output to the RF circuit 320 for transmission to, for example, another mobile phone, or the audio data is output to the memory 330 for further processing.
处理器380是手机300的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器330内的软件程序和/或模块,以及调用存储在存储器330内的数据,执行手机300的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器380可包括一个或多个处理单元;优选的,处理器380可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器380中。 Processor 380 is the control center of handset 300, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in memory 330, and recalling data stored in memory 330, The various functions and processing data of the mobile phone 300 are performed to perform overall monitoring of the mobile phone. Optionally, the processor 380 may include one or more processing units; preferably, the processor 380 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like. The modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 380.
手机300还包括给各个部件供电的电源390(比如电池),优选的,电源可以通过电源管理系统与处理器380逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The handset 300 also includes a power source 390 (such as a battery) that supplies power to the various components. Preferably, the power source can be logically coupled to the processor 380 via a power management system to manage functions such as charging, discharging, and power management through the power management system.
尽管未示出,手机300还可以包括WiFi(wireless fidelity,无线保真)模块、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone 300 may further include a WiFi (Wireless Fidelity) module, a Bluetooth module, and the like, and details are not described herein again.
该手机还包括前述任一实施例所述的开机电路。该开机电路包括的第一开关单元例如可以为手机的报警开关,第二开关单元例如可以为手机的电源开关,即电源键。The handset further includes the booting circuit of any of the preceding embodiments. The first switching unit included in the booting circuit can be, for example, an alarm switch of the mobile phone, and the second switching unit can be, for example, a power switch of the mobile phone, that is, a power button.
通过该开机电路,在手机关机时,通过报警开关或者电源开关均可以使手机开机。由此,提供了多种开机方式,使得用户在紧急使用情况下,通过报警开关就可以把手机开机,进而通过报警开关进行报警。Through the boot circuit, when the mobile phone is turned off, the mobile phone can be turned on by the alarm switch or the power switch. Therefore, a plurality of booting modes are provided, so that the user can turn on the mobile phone through the alarm switch in an emergency use situation, and then alarm through the alarm switch.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统, 装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些管脚,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, The apparatus and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some of the pins, devices or units, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (17)

  1. 一种开机电路,其特征在于,应用于电子设备中,所述开机电路包括:第一开关单元、第二开关单元、与门、第一转换单元、控制器;A booting circuit is characterized in that it is applied to an electronic device, and the booting circuit comprises: a first switch unit, a second switch unit, an AND gate, a first conversion unit, and a controller;
    所述第一开关单元的一端与所述第一转换单元的输入端连接,所述第一转换单元的输出端与所述与门的第一输入端连接,所述第二开关单元的一端与所述与门的第二输入端连接,所述第二开关单元的另一端接地,所述与门的输出端与所述控制器连接;One end of the first switching unit is connected to an input end of the first conversion unit, an output end of the first conversion unit is connected to a first input end of the AND gate, and one end of the second switching unit is The second input end of the door is connected, the other end of the second switch unit is grounded, and the output end of the AND gate is connected to the controller;
    当所述第一开关单元的状态变化时,所述第一转换单元输出第一信号给所述与门,以使得所述与门输出开机触发信号给所述控制器,所述控制器根据所述开机触发信号执行开机操作;When the state of the first switching unit changes, the first converting unit outputs a first signal to the AND gate, so that the AND gate outputs a power-on trigger signal to the controller, and the controller according to the Declaring a power-on trigger signal to perform a power-on operation;
    当所述第二开关单元的状态变化时,所述与门输出开机触发信号给所述控制器,所述控制器根据所述开机触发信号执行开机操作。When the state of the second switch unit changes, the AND gate outputs a power-on trigger signal to the controller, and the controller performs a power-on operation according to the power-on trigger signal.
  2. 根据权利要求1所述的开机电路,其特征在于,所述开机电路还包括:第一电源;所述第一电源与所述第一开关单元的另一端连接;The booting circuit of claim 1 , wherein the booting circuit further comprises: a first power source; the first power source is connected to the other end of the first switching unit;
    所述第一开关单元的状态变化具体为:所述第一开关单元由断开状态变为闭合状态。The state change of the first switch unit is specifically: the first switch unit changes from an open state to a closed state.
  3. 根据权利要求1所述的开机电路,其特征在于,所述第一开关单元的另一端接地;The booting circuit according to claim 1, wherein the other end of the first switching unit is grounded;
    所述第一开关单元的状态变化具体为:所述第一开关单元由闭合状态变为断开状态。The state change of the first switch unit is specifically: the first switch unit changes from a closed state to an open state.
  4. 根据权利要求1-3任一项所述的开机电路,其特征在于,所述第二开关单元的状态变化具体为:所述第二开关单元由断开状态变为闭合状态。The booting circuit according to any one of claims 1 to 3, wherein the state change of the second switching unit is specifically that the second switching unit changes from an off state to a closed state.
  5. 根据权利要求1-4任一项所述的开机电路,其特征在于:A booting circuit according to any one of claims 1 to 4, characterized in that:
    所述开机触发信号为低电平信号;The power-on trigger signal is a low level signal;
    所述第一信号为低电平信号。The first signal is a low level signal.
  6. 根据权利要求1-5任一项所述的开机电路,其特征在于,所述开机电路还包括:或门,所述或门连接在所述第一转换单元和所述与门之间;The booting circuit according to any one of claims 1 to 5, wherein the booting circuit further comprises: an OR gate, the OR gate being connected between the first converting unit and the AND gate;
    所述第一转换单元的输出端与所述或门的第一输入端连接,所述控制器的第一通用输入输出管脚与所述或门的第二输入端连接,所述或门 的输出端与所述与门的第一输入端连接;其中,当所述电子设备处于关机状态时,所述控制器的第一通用输入输出管脚输出的信号为低电平信号。An output end of the first conversion unit is connected to a first input end of the OR gate, and a first universal input/output pin of the controller is connected to a second input end of the OR gate, the OR gate The output end is connected to the first input end of the AND gate; wherein, when the electronic device is in a shutdown state, the signal output by the first universal input/output pin of the controller is a low level signal.
  7. 根据权利要求6所述的开机电路,其特征在于,所述开机电路还包括:第二转换单元;The booting circuit of claim 6, wherein the booting circuit further comprises: a second converting unit;
    所述第二转换单元的输入端与所述控制器的第一通用输入输出管脚连接,所述第二转换单元的输出端与所述或门的第二输入端连接;所述第二转换单元用于将所述控制器的第一通用输入输出管脚在所述电子设备处于关机状态时输出的信号转换成低电平信号。An input end of the second conversion unit is connected to a first universal input/output pin of the controller, and an output end of the second conversion unit is connected to a second input end of the OR gate; the second conversion The unit is configured to convert a signal output by the first universal input/output pin of the controller to a low level signal when the electronic device is in a power off state.
  8. 根据权利要求7所述的开机电路,其特征在于,当所述电子设备处于开机状态时,所述控制器的第一通用输入输出管脚输出的信号为高电平信号;所述第二转换单元用于将所述控制器的第一通用输入输出管脚在所述电子设备处于开机状态时输出的信号转换成高电平信号。The booting circuit according to claim 7, wherein when the electronic device is in a power-on state, a signal output by the first universal input/output pin of the controller is a high level signal; and the second conversion The unit is configured to convert a signal output by the first universal input/output pin of the controller to a high level signal when the electronic device is in a power on state.
  9. 根据权利要求1-8任一所述开机电路,其特征在于,所述开机电路还包括:第三转换单元、第三电源;The booting circuit according to any one of claims 1-8, wherein the booting circuit further comprises: a third converting unit and a third power source;
    所述第三转换单元的第一输入端与所述第一转换单元的输入端连接,所述第三转换单元的第二输入端与所述第三电源连接,所述第三转换单元的输出端与所述控制器的第二通用输入输出管脚连接;所述第三转换单元用于当所述第一开关单元闭合时,输出控制信号给所述控制器的第二通用输入输出管脚,以使得所述控制器根据所述控制信号执行相应的操作。a first input end of the third conversion unit is connected to an input end of the first conversion unit, a second input end of the third conversion unit is connected to the third power source, and an output of the third conversion unit The end is connected to the second universal input and output pin of the controller; the third converting unit is configured to output a control signal to the second universal input and output pin of the controller when the first switch unit is closed So that the controller performs a corresponding operation according to the control signal.
  10. 根据权利要求9所述的开机电路,其特征在于,所述控制器根据所述控制信号发出报警信息,或者发出定位信息。The booting circuit according to claim 9, wherein the controller issues an alarm message according to the control signal or issues positioning information.
  11. 根据权利要求2所述的开机电路,其特征在于,所述第一转换单元包括第一NMOS管、第一电阻、第二电阻;The booting circuit of claim 2, wherein the first converting unit comprises a first NMOS transistor, a first resistor, and a second resistor;
    所述第一电源通过第一电阻与所述第一NMOS管的漏极连接;所述第一NMOS管的漏极还与所述或门的第一输入端连接,所述第一NMOS管的栅极与所述第一开关单元的一端连接,所述第一NMOS管的源极接地;所述第二电阻的一端与第一NMOS管的栅极连接,所述第二电阻的另一端与第一NMOS管的源极连接。The first power source is connected to the drain of the first NMOS transistor through a first resistor; the drain of the first NMOS transistor is further connected to a first input end of the OR gate, the first NMOS transistor a gate is connected to one end of the first switching unit, a source of the first NMOS transistor is grounded; one end of the second resistor is connected to a gate of the first NMOS transistor, and the other end of the second resistor is The source of the first NMOS transistor is connected.
  12. 根据权利要求3所述的开机电路,其特征在于,所述第一转换单元包括:第二电源、第一PMOS管、第三电阻、第四电阻; The booting circuit of claim 3, wherein the first converting unit comprises: a second power source, a first PMOS transistor, a third resistor, and a fourth resistor;
    所述第二电源与所述第一PMOS管的源极连接,所述第一PMOS的栅极与所述第一开关单元的一端连接,所述第一PMOS管的漏极与所述第三电阻的一端连接,所述第一PMOS管的漏极还与所述与门的第一输入端连接,所述第三电阻的另一端接地;所述第四电阻的一端与所述第一PMOS管的源极连接,所述第四电阻的另一端与所述第一PMOS管的栅极连接。The second power source is connected to a source of the first PMOS transistor, a gate of the first PMOS is connected to one end of the first switching unit, and a drain of the first PMOS transistor is opposite to the third One end of the resistor is connected, a drain of the first PMOS transistor is further connected to the first input end of the AND gate, and the other end of the third resistor is grounded; one end of the fourth resistor is opposite to the first PMOS The source of the tube is connected, and the other end of the fourth resistor is connected to the gate of the first PMOS transistor.
  13. 根据权利要求7-10任一项所述的开机电路,其特征在于,所述第二转换单元包括:第二NMOS管、第三NMOS管、第五电阻、第六电阻、第七电阻;The booting circuit according to any one of claims 7 to 10, wherein the second converting unit comprises: a second NMOS transistor, a third NMOS transistor, a fifth resistor, a sixth resistor, and a seventh resistor;
    所述第一电源通过所述第五电阻与所述第二NMOS管的漏极连接,所述第二NMOS管的栅极与所述控制器的第一通用输入输出管脚连接,所述第二NMOS管的源极接地;所述第一电源通过所述第六电阻与所述第三NMOS管的漏极连接,所述第三NMOS管的漏极还与所述或门的第二输入端连接,所述第三NMOS管的栅极与所述第二NMOS管的漏极连接,所述第三NMOS管的源极接地;所述第七电阻的一端与所述第二NMOS管的栅极连接,所述第七电阻的另一端与所述第二NMOS管的源极连接。The first power source is connected to the drain of the second NMOS transistor through the fifth resistor, and the gate of the second NMOS transistor is connected to the first universal input and output pin of the controller, The source of the two NMOS transistors is grounded; the first power source is connected to the drain of the third NMOS transistor through the sixth resistor, and the drain of the third NMOS transistor is further connected to the second input of the OR gate An end connection, a gate of the third NMOS transistor is connected to a drain of the second NMOS transistor, a source of the third NMOS transistor is grounded; and one end of the seventh resistor is opposite to the second NMOS transistor The gate is connected, and the other end of the seventh resistor is connected to the source of the second NMOS transistor.
  14. 根据权利要求7-10任一项所述的开机电路,其特征在于,所述第二转换单元包括:第四NMOS管、第二PMOS管、第八电阻;The booting circuit according to any one of claims 7 to 10, wherein the second converting unit comprises: a fourth NMOS transistor, a second PMOS transistor, and an eighth resistor;
    所述第一电源通过所述第八电阻与所述第四NMOS管的漏极连接,所述第四NMOS管的栅极与所述控制器的第一通用输入输出管脚连接,所述第四NMOS管的源极接地;所述第二PMOS管的源极与所述第一电源连接,所述第二PMOS管的栅极与所述第四NMOS管的漏极连接,所述第二PMOS管的漏极与所述或门的第二输入端连接。The first power source is connected to the drain of the fourth NMOS transistor through the eighth resistor, and the gate of the fourth NMOS transistor is connected to the first universal input and output pin of the controller, where the a source of the fourth NMOS transistor is grounded; a source of the second PMOS transistor is connected to the first power source, a gate of the second PMOS transistor is connected to a drain of the fourth NMOS transistor, and the second A drain of the PMOS transistor is coupled to a second input of the OR gate.
  15. 根据权利要求9-10任一项所述的开机电路,其特征在于,所述第三转换单元包括第五NMOS管、第九电阻;The booting circuit according to any one of claims 9 to 10, wherein the third converting unit comprises a fifth NMOS transistor and a ninth resistor;
    所述第五NMOS管的栅极与所述第一NMOS管的栅极连接,所述第五NMOS管的漏极与所述第二电源连接,所述第五NMOS管的源极与所述控制器的第二通用输入输出管脚连接;所述第九电阻的一端与所述第五NMOS管的源极连接,所述第九电阻的另一端接地。a gate of the fifth NMOS transistor is connected to a gate of the first NMOS transistor, a drain of the fifth NMOS transistor is connected to the second power source, and a source of the fifth NMOS transistor is A second universal input/output pin of the controller is connected; one end of the ninth resistor is connected to a source of the fifth NMOS transistor, and the other end of the ninth resistor is grounded.
  16. 根据权利要求1-15任一项所述的开机电路,其特征在于,所述第一开关单元为拉环开关或用于报警的开关。The booting circuit according to any one of claims 1 to 15, characterized in that the first switching unit is a pull ring switch or a switch for alarming.
  17. 一种电子设备,包括:显示屏、处理器、存储器和收发器,还包括权利要求1-16任一项所述的开机电路。 An electronic device comprising: a display screen, a processor, a memory, and a transceiver, further comprising the power-on circuit of any of claims 1-16.
PCT/CN2014/089203 2014-10-22 2014-10-22 Power-on circuit and electronic device WO2016061771A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/089203 WO2016061771A1 (en) 2014-10-22 2014-10-22 Power-on circuit and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/089203 WO2016061771A1 (en) 2014-10-22 2014-10-22 Power-on circuit and electronic device

Publications (1)

Publication Number Publication Date
WO2016061771A1 true WO2016061771A1 (en) 2016-04-28

Family

ID=55760062

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/089203 WO2016061771A1 (en) 2014-10-22 2014-10-22 Power-on circuit and electronic device

Country Status (1)

Country Link
WO (1) WO2016061771A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106515623A (en) * 2016-11-18 2017-03-22 杭州好好开车科技有限公司 Starting-up circuit structure of ADAS product
CN109783269A (en) * 2019-01-30 2019-05-21 合肥联宝信息技术有限公司 A kind of protection circuit and electronic device
CN113031739A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Computer and power-on starting circuit thereof
CN113114195A (en) * 2021-04-23 2021-07-13 广东省大湾区集成电路与系统应用研究院 Power-off closing circuit, power-off closing chip and switch chip
CN113347520A (en) * 2020-03-02 2021-09-03 Oppo广东移动通信有限公司 Bidirectional communication circuit
CN114860057A (en) * 2022-05-31 2022-08-05 苏州浪潮智能科技有限公司 Server power supply unit optimization device and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001094652A (en) * 1999-09-22 2001-04-06 Makoto Isobe Mobile phone provided with alarm function
CN101399862A (en) * 2008-10-23 2009-04-01 北京中星微电子有限公司 Switch circuit for mobile phone and mobile phone construction based thereon
CN102075634A (en) * 2011-02-18 2011-05-25 信源通科技(深圳)有限公司 Mobile phone and alarm method thereof for calling police
CN103699201A (en) * 2013-12-31 2014-04-02 青岛歌尔声学科技有限公司 Multifunctional power-on circuit and Bluetooth product
CN203520298U (en) * 2013-10-21 2014-04-02 西安Tcl软件开发有限公司 Start circuit and portable equipment
CN104049982A (en) * 2013-03-11 2014-09-17 鸿富锦精密工业(深圳)有限公司 Server control system and server control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001094652A (en) * 1999-09-22 2001-04-06 Makoto Isobe Mobile phone provided with alarm function
CN101399862A (en) * 2008-10-23 2009-04-01 北京中星微电子有限公司 Switch circuit for mobile phone and mobile phone construction based thereon
CN102075634A (en) * 2011-02-18 2011-05-25 信源通科技(深圳)有限公司 Mobile phone and alarm method thereof for calling police
CN104049982A (en) * 2013-03-11 2014-09-17 鸿富锦精密工业(深圳)有限公司 Server control system and server control method
CN203520298U (en) * 2013-10-21 2014-04-02 西安Tcl软件开发有限公司 Start circuit and portable equipment
CN103699201A (en) * 2013-12-31 2014-04-02 青岛歌尔声学科技有限公司 Multifunctional power-on circuit and Bluetooth product

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106515623A (en) * 2016-11-18 2017-03-22 杭州好好开车科技有限公司 Starting-up circuit structure of ADAS product
CN109783269A (en) * 2019-01-30 2019-05-21 合肥联宝信息技术有限公司 A kind of protection circuit and electronic device
CN109783269B (en) * 2019-01-30 2022-03-25 合肥联宝信息技术有限公司 Protection circuit and electronic device
CN113347520A (en) * 2020-03-02 2021-09-03 Oppo广东移动通信有限公司 Bidirectional communication circuit
CN113031739A (en) * 2021-03-26 2021-06-25 山东英信计算机技术有限公司 Computer and power-on starting circuit thereof
CN113114195A (en) * 2021-04-23 2021-07-13 广东省大湾区集成电路与系统应用研究院 Power-off closing circuit, power-off closing chip and switch chip
CN114860057A (en) * 2022-05-31 2022-08-05 苏州浪潮智能科技有限公司 Server power supply unit optimization device and method
CN114860057B (en) * 2022-05-31 2023-07-14 苏州浪潮智能科技有限公司 Device and method for optimizing power supply unit of server

Similar Documents

Publication Publication Date Title
JP7176051B2 (en) Methods for reducing power consumption of electronic devices and equipment
WO2016061771A1 (en) Power-on circuit and electronic device
US10667218B2 (en) Method for controlling unlocking and related products
WO2018032581A1 (en) Method and apparatus for application program control
CN106293308B (en) Screen unlocking method and device
CN104375886B (en) Information processing method, device and electronic equipment
WO2018133642A1 (en) Fingerprint recognition module, fingerprint recognition method, and related product
WO2018161539A1 (en) Control method and apparatus for turning on screen
US11262911B2 (en) Integrated home key and virtual key area for a smart terminal
WO2016115682A1 (en) Terminal control method and terminal
WO2019011335A1 (en) Mobile terminal and control method therefor, and readable storage medium
WO2018166204A1 (en) Method for controlling fingerprint recognition module, and mobile terminal and storage medium
WO2019052551A1 (en) Terminal device interaction method, storage medium and terminal device
CN108762814A (en) Bright screen method and relevant device
CN110989822A (en) Sensor control method, sensor control device, storage medium and electronic equipment
US20200241925A1 (en) Method for automatically releasing resource occupied by process in background of terminal, storage medium, and terminal
WO2017206860A1 (en) Processing method of mobile terminal and mobile terminal
WO2018214745A1 (en) Application control method and related product
CN110837319B (en) Visual angle adjusting method and electronic equipment
WO2018039914A1 (en) Method for copying data, and user terminal
WO2020052494A1 (en) Terminal device
WO2018045549A1 (en) Radio frequency system, signal processing system, and terminal
CN107749751B (en) Mobile terminal power supply system and mobile terminal
CN112437421A (en) Bluetooth control method, device, storage medium and mobile terminal
WO2018157712A1 (en) Shell assembly, electronic device and mobile phone having same

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14904573

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14904573

Country of ref document: EP

Kind code of ref document: A1