Connect public, paid and private patent data with Google Patents Public Datasets

Multifunctional startup and shutdown circuit and startup and shutdown method

Download PDF

Info

Publication number
CN105045169A
CN105045169A CN 201510341669 CN201510341669A CN105045169A CN 105045169 A CN105045169 A CN 105045169A CN 201510341669 CN201510341669 CN 201510341669 CN 201510341669 A CN201510341669 A CN 201510341669A CN 105045169 A CN105045169 A CN 105045169A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
circuit
control
startup
shutdown
voltage
Prior art date
Application number
CN 201510341669
Other languages
Chinese (zh)
Other versions
CN105045169B (en )
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

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors

Abstract

The invention discloses a multifunctional startup and shutdown circuit and a startup and shutdown method. The multifunctional startup and shutdown circuit comprises a button, a voltage division circuit, a software control circuit and a hardware control circuit, wherein the button is connected to an external power supply; an input terminal of the voltage division circuit is connected to the button and the voltage division circuit is used for carrying out voltage division transmission on an external power supply voltage; the software control circuit comprises a processor detection circuit and a processor control circuit; the processor detection circuit is used for detecting whether the button is closed; the processor control circuit is used for carrying out software control on opening and closing of a rear end system power supply; the hardware control circuit is used for carrying out hardware control on closing of the rear end system power supply. By using the multifunctional startup and shutdown circuit in the invention, the circuit is simple and cost is low, the circuit is safe and reliable, performance is good and energy consumption is less. Operation of the startup and shutdown method is simple and startup and shutdown are convenient. An experience comfort level of a user is effectively increased.

Description

一种多功能开关机电路及开关机方法 A multifunctional switch and the electromechanical switch path method

技术领域 FIELD

[0001] 本发明涉及开关机电路,具体涉及一种多功能开关机电路及开关机方法。 [0001] The present invention relates to switching circuitry, in particular to a multi-function switch and the electromechanical switch path method.

背景技术 Background technique

[0002] 在日常生活以及科研学习中,都离不开电子设备。 [0002] In daily life and scientific research study, we are inseparable from electronic equipment. 而在现在的电子设备,特别是手持(消费)电子设备中,开关机电路是必不可少的电路。 In the present electronic devices, especially handheld (consumer) electronic devices, the switch circuitry is essential circuit. 若在电子设备中使用专门的开关机芯片,将会增加整个设备的成本,并且专用的开关机芯片要求一定范围的输入电压,超过该围就得重新选择芯片,操作复杂,适用性差。 The use of a special switch in an electronic device chip, will increase the cost of the entire apparatus, and a dedicated switch chip used requires a certain input voltage range, the runners have to reselect over the chip, a complicated operation, poor applicability. 如果不使用专门的开关机芯片,其一些基本的功能可能无法达到,而现阶段使用多种芯片拼凑的而成的开关机电路,其电路结构复杂、冗余,在应用的过程中容易造成能量的损失、性能的浪费和成本的增加。 If not using a dedicated switch chip, some of the basic functions may not be achieved, but at this stage using the switching circuitry chip patchwork made more complicated circuit configuration, redundancy in the application process likely to cause energy losses, increasing waste and cost performance.

[0003] 故一种电路简单、成本低,且安全可靠,性能良好的多功能开关机电路及开关机方法亟待提出。 [0003] A circuit so simple, low cost, safety and reliability, good performance of the multi-function switch circuitry and switch proposed methods urgently.

发明内容 SUMMARY

[0004] 为了解决上述技术问题,本发明提出了一种多功能开关机电路及开关机方法,该电路简单、成本低、且安全可靠,性能良好,耗能少,而该开关机方法操作简单,开关机方便,有效增加用户的体验舒适度。 [0004] To solve the above problems, the present invention provides a multi-function switch and the electromechanical switch path method, the circuit is simple, low cost, safety and reliability, good performance, low energy consumption, and simple operation of the switch method convenient, switch, effectively increase the comfort of the user experience.

[0005] 为了达到上述目的,本发明的技术方案如下: [0005] To achieve the above object, the technical solution of the present invention is as follows:

[0006] —种多功能开关机电路,包括:按键,按键与外部的电源连接;分压电路,分压电路的输入端与按键连接,用于将外部的电源电压进行分压传输;软件控制电路,包括:处理器检测电路与处理器控制电路;处理器检测电路用于检测按键是否闭合,处理器控制电路用于软件控制后端系统电源的开闭;硬件控制电路,用于硬件控制后端系统电源的关闭。 [0006] - species multifunction switch circuitry, comprising: a key, the key is connected to an external power source; dividing circuit, the voltage divider circuit is connected to the key input, the external power source voltage for dividing transmission; software control circuit, comprising: a processor and a processor control circuit detecting circuit; a detection circuit for detecting a processor key is closed, the processor control circuitry software for controlling opening and closing of the rear end of the power system; hardware control circuit for controlling the hardware end of the system power off.

[0007] 本发明一种多功能开关机电路,其结构简单,各部分分工明确,利用软件控制电路来控制后端系统电源的开闭,而硬件控制电路可以有效实现后端系统电源的关闭,在软件控制电路无法实现后端系统电源的关闭时,硬件控制电路仍然可以快速地实现其后端系统电源的关闭,实现关机。 [0007] The present invention is a versatile machine circuit switches, the structure is simple, clear division of each part by software control circuit controls opening and closing of the rear end of the power supply system, and a hardware control circuit may turn off the rear end of the effective realization of the power system, when software control circuit can not turn off the back-end system to realize the power of the hardware control circuit still can quickly realize the power off its back-end systems to achieve shutdown.

[0008] 在上述技术方案的基础上,还可做如下改进: [0008] Based on the foregoing technical solution, the following improvements may be made to:

[0009] 作为优选的方案,硬件控制电路包括:硬件关机电路与放电电路。 [0009] As a preferred embodiment, a hardware control circuit comprising: a hardware shutdown circuit and the discharge circuit.

[0010] 采用上述优选的方案,硬件关机电路用来实现硬件关机,放电电路使得硬件关机电路稳定有效,关机后不会与下次的开机产生冲突。 [0010] The above-described preferred embodiment, the hardware used to implement the hardware shut off the circuit, the discharge circuit such that stable and effective hardware shutdown circuit, not conflict with the next is powered off.

[0011] 作为优选的方案,分压电路包括多个分压电阻;处理器检测电路包括:反向缓冲器(U1),且反向缓冲器(Ul)的输入脚与分压电阻连接,反向缓冲器(Ul)的输出脚与处理器的检测脚连接;处理器控制电路包括:电阻(R8),电阻(R8) —端与二极管(D2)的正极连接,电阻(R8)的另一端与处理器的控制脚连接,且二极管(D2)的负极与后端系统的电源控制引脚连接;硬件关机电路包括:电容(C3)和MOS管(Ql),电容(C3) 一端、MOS管(Ql)的栅极与按键(SI)连接,电容(C3)的另一端接地,MOS管(Ql)的漏极与后端系统的电源控制引脚连接,MOS管(Ql)的源极接地;放电电路包括:二极管(D3)和放电电阻,二极管(D3)的正极与电容(C3)的一端连接,二极管(D3)的负极与放电电阻连接的一端,放电电阻的另一端接地。 [0011] As a preferred embodiment, the voltage divider circuit includes a plurality of voltage dividing resistors; detection processor circuit comprises: inverting buffer (Ul), and the inverting buffer (Ul) input pin connected to the voltage dividing resistor, trans the detection pin buffers (Ul) output pin is connected to the processor; processor control circuit comprises: a resistor (R8), resistor (R8) - and the other end side of the diode (D2) connected to a positive electrode, a resistor (R8) of and the power control pin connected diode (D2) and the rear end negative electrode pin is connected to the control system processor; hardware shutdown circuit comprising: a capacitor (C3) and MOS transistors (Ql,), the capacitor (C3) at one end, MOS tube (Ql,) the gate of the key (SI) is connected to the other end of the capacitor (C3) is, the power supply control pin connected to the drain of the MOS transistor backend system (Ql,), the source of the MOS transistor (Ql,) is connected to ground ; discharge circuit comprises: a diode (D3) and a discharge resistor, a diode (D3) of the positive electrode of the capacitor (C3) connected to one end and the other end to one end of a diode (D3) is connected to the negative electrode and the discharge resistor, discharging resistor.

[0012] 采用上述优选的方案,该电路简单、成本低、且安全可靠,性能良好,耗能少。 [0012] The above-described preferred embodiment, the circuit is simple, low cost, safety and reliability, good performance, low energy consumption.

[0013] 作为优选的方案,硬件关机电路还包括电阻(R9),电阻(R9)的一端与按键(SI)连接,电阻(R9)的另一端与电容(C3)连接。 [0013] As a preferred embodiment, the hardware shutdown circuit further comprises a resistor (R9), the resistor (R9) and an end key (SI) is connected to a resistor (R9) and the other end of the capacitor (C3) is connected.

[0014] 采用上述优选的方案,保证硬件关机电路的有效性,有一定延时和分压效果,防止电容(C3)充电时间过快,导致硬关机时间过短。 [0014] The above-described preferred embodiment, to ensure the validity of the hardware shut down circuit, there is a certain delay and dividing effect and prevents the capacitor (C3) the charging time is too fast, leading to a hard off-time is too short.

[0015] 作为优选的方案,分压电阻包括:电阻(Rl)、电阻(R3)、电阻(R5)、电阻(R7),电阻(Rl)的一端、电阻(R5)的一端与按键(SI)连接,电阻(Rl)的另一端与电阻(R3)、与反向缓冲器(Ul)的输入端连接;电阻(R5)的另一端与电阻(R7)、与二极管(Dl)的正极连接,二极管(Dl)的负极与后端系统的电源控制引脚连接,电阻(R7)的另一端接地。 [0015] As a preferred embodiment, voltage-dividing resistor comprising: a resistor (Rl), a resistor (R3), the resistor (R5), the resistor (R7), a resistor (Rl) of one end of a resistor (R5) one end of the key (SI ) is connected, a resistor (Rl) and the other end of the resistor (R3), and inverting buffer (Ul) connected to the input; the other end of the resistor (R7) resistor (R5) of the diode (Dl) connected to the positive , power control pin connecting diode (Dl) of the negative electrode and the back-end system, a resistor (R7) is ground.

[0016] 采用上述优选的方案,利用分压电阻,使得该电路可以兼容任何电压的直流电源的输入,兼容性能更好。 [0016] The above-described preferred embodiment, the use of voltage dividing resistors, so that the circuit may be any compatible input voltage DC power supply, better compatibility.

[0017] 作为优选的方案,放电电阻包括:电阻(R5)和电阻(R7),电阻(R5)的一端与二极管(D3)的负极、按键(SI)连接,电阻(R5)的另一端与电阻(R7)连接。 [0017] As a preferred embodiment, the discharge resistor comprising: a resistor (R5) and a resistor (R7), a resistor (R5) to one end of the diode (D3) is negative, the key (SI), and the other end of the resistor (R5) and a resistor (R7) is connected.

[0018] 采用上述优选的方案,结构更优化,电阻(R5)和电阻(R7)同时实现分压和放电的效果,节省成本,能耗小。 [0018] The above-described preferred embodiment, a more optimized configuration, a resistor (R5) and a resistor (R7) and simultaneously to achieve a partial pressure discharge effects, cost, small power consumption.

[0019] 作为优选的方案,在电阻(R7)两端并联设置有电容(Cl)。 [0019] As a preferred embodiment, both ends of the resistor (R7) is provided in parallel with a capacitor (Cl).

[0020] 采用上述优选的方案,可以有效保持后端系统的电源控制引脚的电平平稳。 [0020] The above-described preferred embodiment can effectively maintain the electrical power supply control pin flat smooth back-end systems. 在按键(Si)按住的过程中,手指可能会因为抖动使得按键(SI)在某一瞬间发生断开,造成后端系统的电源控制引脚的电平被瞬间拉低,造成开机失败。 In the key (Si) hold the process, so that the jitter may be because the finger key (SI) disconnection occurs in a moment, causing the power level of the control pin backend system is momentarily pulled low, causing power failure. 而在电阻(R7)的两端并联电容(Cl)后,即使在按键(SI)按住的某一瞬间发生断开,在该时间内,电容(Cl)会进行放电,维持后端系统的电源控制引脚为高电平,保持后端系统电源控制引脚的电平平稳,提高用户的体验度。 In the resistor (R7) connected in parallel across the capacitor (Cl), even if disconnection occurs in the key (SI) of the hold down a moment, at which time the capacitor (Cl) are discharged to maintain the back-end systems the power supply control pin is high, the backend system power to maintain the level of control pins smoothly, improving the user experience.

[0021] 作为优选的方案,后端系统的电源控制引脚还与电阻(R8)的一端连接,电阻(R8)的另一端接地,且在电阻(R8)两端还并联设置有电容(C2)。 [0021] As a preferred embodiment, the power control system is also connected to the rear end of the pin end of the resistor (R8), the other end of the resistor (R8) to ground, and also provided with a parallel capacitor (C2 across the resistor (R8) ).

[0022] 采用上述优选的方案,保证后端系统的电源控制引脚的安全性,而设置的电容(C2)可以有效保持后端系统的电源控制引脚的电平平稳。 [0022] The above-described preferred embodiment, the back-end system to ensure the power control safety pins, provided the capacitor (C2) can effectively maintain power supply control pin flat smooth back-end systems. 处理器控制电路中的处理器的控制脚在某一瞬间受到干扰后,可能会将后端系统的电源控制引脚的电平拉低,造成开机失败。 The processor control circuit pin processor after a certain moment interference, might control the power level of the rear end of the pin system down, causing power failure. 而在电阻(R8)的两端并联电容(C2)后,即使处理器的控制脚在某一瞬间受到干扰,在该时间内,电容(C2)会进行放电,维持后端系统的电源控制引脚为高电平,保持后端系统电源控制引脚的电平平稳,提高用户的体验度。 In the resistor (R8) connected in parallel across the capacitor (C2), even if the control processor is disturbed feet in a moment, at which time the capacitor (C2) are discharged, the sustain power control primer backend system feet high, the pin holding the electric power supply control flat smooth back-end systems, to improve the user experience.

[0023] 利用多功能开关机电路来进行开关机的开关机方法,开机方法为:将按键(SI)按下;若按键的时间小于硬关机时间,则开机成功;若按键的时间大于或等于硬关机时间,则开机失败;软件关机方法为:利用处理器进行控制,实现关机;硬件关机方法为,将按键 [0023] A method to switch the switch using multi-function switch circuitry, boot method: The key (SI) is pressed; if pressed for time less than a hard shutdown, the successful boot; if pressed for more than or equal hard shutdown time, the power failure; software shutdown method: using a processor for control, shutdown; hardware shutdown method, the key

(Si)按下;若按键的时间大于或等于硬关机时间,则关机成功;若按键的时间小于硬关机时间,则关机失败。 (Si) is pressed; if key off time is greater than or equal to the hard time of shutdown successful; if pressed for time less than a hard shutdown, the shutdown failure.

[0024] 采用上述优选的方案,开关机方法简单有效。 [0024] The above-described preferred embodiment, the method is simple and effective switch.

附图说明 BRIEF DESCRIPTION

[0025]图1为本发明实施例提供的一种多功能开关机电路的结构示意图。 [0025] FIG. 1 is a schematic structure of a multi-function switch circuitry according to an embodiment of the present invention.

[0026] 图2为本发明实施例提供的一种多功能开关机电路的电路图。 [0026] Fig 2 a circuit diagram of a multifunction switching circuitry according to an embodiment of the present invention.

[0027]图3为本发明实施例提供的开关机方法的流程图。 [0027] FIG. 3 is a flowchart of a method switch according to an embodiment of the present invention.

[0028]图4为本发明实施例提供的硬关机时间与MOS管栅极电压曲线图。 [0028] FIG 4 provides a hard shutdown time and the MOS transistor gate voltage curve of FIG embodiment of the present invention.

[0029] 其中:1按键、2分压电路、3硬件控制电路、31硬件关机电路、32放电电路、4软件控制电路、41处理器检测电路、42处理器控制电路。 [0029] wherein: a button, a voltage dividing circuit 2, the control circuit 3 hardware, the hardware shutdown circuit 31, a discharge circuit 32, the control circuit 4 software, the processor detecting circuit 41, the processor 42 control circuit.

具体实施方式 detailed description

[0030] 下面结合附图详细说明本发明的优选实施方式。 [0030] The following detailed description of preferred embodiments of the present invention in conjunction with the accompanying drawings.

[0031] 为了达到本发明的目的,在一种多功能开关机电路及开关机方法的其中一些实施例中, [0031] To achieve the object of the present invention, a multifunctional switch and the electromechanical switch path method wherein some embodiments,

[0032] 如图1所示,一种多功能开关机电路,包括:按键1、分压电路2、硬件控制电路3和软件控制电路4。 [0032] As shown in FIG 1, a multifunction switch machine circuit, comprising: a key 1, a voltage dividing circuit 2, a hardware control circuit 3 and control circuit 4 software. 硬件控制电路3和软件控制电路4都与后端系统的电源控制引脚连接,若后端系统的电源控制引脚电平为高,后端系统就开机工作,为低就关机。 Software control circuit 4 and a control circuit 3 are connected to pin the rear end of the power supply system hardware control, the power level control pin is high when the back-end systems, the backend system will start work, low to shut down.

[0033] 按键I与外部的电源连接;分压电路2的输入端与按键I连接,用于将外部的电源电压进行分压传输;硬件控制电路包括:硬件关机电路31与放电电路32,硬件关机电路31用来实现硬件关机,放电电路32使得硬件关机电路31稳定有效,关机后不会与下次的开机产生冲突;软件控制电路4包括:处理器检测电路41与处理器控制电路42 ;处理器检测电路41用于检测按键是否闭合,处理器控制电路42用于软件控制后端系统电源的开闭。 [0033] I button is connected to an external power source; dividing circuit 2 and the key input terminal I is connected to the external power source voltage for dividing transmission; hardware control circuit comprises: a hardware shutdown circuit 31 and discharge circuit 32, the hardware shutdown for hardware shutdown circuit 31, the discharging circuit 32 so that the stable and effective hardware shutdown circuit 31, not conflict with the next is powered off; software control circuit 4 includes: a processor 41 and processor control circuit detecting circuit 42; the processor detecting circuit 41 for detecting whether the key is closed, the processor control circuit 42 for opening and closing the rear end of the software control system power.

[0034] 如图2所示,分压电路2包括多个分压电阻,分别为:电阻(Rl)、电阻(R3)、电阻(R5)、电阻(R7),电阻(Rl)的一端、电阻(R5)的一端与按键(SI)连接,电阻(Rl)的另一端与电阻(R3)、与反向缓冲器(Ul)的输入脚连接;电阻(R5)的另一端与电阻(R7)、与二极管(Dl)的正极连接,二极管(Dl)的负极与后端系统的电源控制引脚(PWR_C0N)连接,电阻(R7)的另一端接地。 [0034] 2, the dividing circuit 2 comprises a plurality of voltage dividing resistors, respectively: end of the resistor (Rl), a resistor (R3), the resistor (R5), the resistor (R7), a resistor (Rl), and resistor (R5) and one end of the key (SI) is connected, a resistor (Rl) and the other end of the resistor (R3), and inverting buffer (Ul) connected to an input pin; a resistor (R5) to the other end of the resistor (R7 ), the power supply control pin diode (Dl) and the rear end negative electrode system (PWR_C0N) connected to the positive electrode connecting diode (Dl), the other end of the resistor (R7) ground.

[0035] 处理器检测电路41包括:反向缓冲器(Ul),且反向缓冲器(Ul)的输入脚与电阻(Rl)连接,反向缓冲器(Ul)的输出脚与处理器的检测脚(CPU_DET)、与电阻(R2)连接,反向缓冲器(Ul)的接地脚接地,反向缓冲器(Ul)的电源脚与电阻(R2)、后端系统的其中一个电压为3.3V的电源引脚连接。 [0035] The processor detecting circuit 41 comprises: inverting buffer (Ul), and the inverting buffer (Ul) to the input pin of the resistor (Rl) is connected to inverting buffer (Ul) output pin of the processor detecting pin (CPU_DET), connected to the resistance (R2), wherein a reverse voltage buffer (Ul) of the ground pin to ground, inverting buffer (Ul) of the supply pins and the resistor (R2), the backend system 3.3 V power supply pin of the connector.

[0036] 处理器控制电路42包括:电阻(R8),电阻(R8) —端与二极管(D2)的正极连接,电阻(R8)的另一端与处理器的控制脚(CPILC0N)连接,且二极管(D2)的负极与后端系统的电源控制引脚(PWR_C0N)连接,二极管(D2)的正极还与电阻(R4)连接,电阻(R4)的另一端与后端系统的其中一个电压为3.3V的电源引脚连接。 [0036] The processor control circuit 42 includes: a resistor (R8), resistor (R8) - terminal of the diode (D2) connected to a positive electrode, a resistor (R8) of the control processor and the other end of the foot (CPILC0N) is connected, and the diode power control pin (D2) of the negative electrode and the back-end systems (PWR_C0N) connected to an anode of diode (D2) is connected to a further resistor (R4), wherein a voltage of the resistor (R4) and the other end of the backend system 3.3 V power supply pin of the connector.

[0037] 硬件关机电路31包括:电阻(R9)、电容(C3)和MOS管(Ql),电阻(R9)的一端与按键(SI)连接,电阻(R9)的另一端与电容(C3)、MOS管(Ql)的栅极连接,电容(C3)的另一端接地,MOS管(Ql)的漏极与后端系统的电源控制引脚(PWR_C0N)连接,MOS管(Ql)的源极接地。 [0037] hardware shutdown circuit 31 includes: a resistor (R9), the capacitor (C3) and MOS transistors (Ql,), a resistor (R9) to one end of the key (SI) is connected to a resistor (R9) and the other end of the capacitor (C3) , power control pin connected to the gate MOS transistors (Ql,), the other end of the capacitor (C3) ground, MOS transistors (Ql,) and the rear end of the drain system (PWR_C0N) is connected, MOS transistors (Ql,) source ground.

[0038] 放电电路32包括:二极管(D3)、电阻(R5)和电阻(R7),二极管(D3)的正极与电容(C3)的一端连接,二极管(D3)的负极与电阻(R5)连接,电阻(R5)的另一端与电阻(R7)连接,在电阻(R7)两端并联设置有电容(Cl)。 [0038] The discharge circuit 32 includes: a diode (D3), a resistor (R5) and a resistor (R7), one end of a diode (D3) of the positive electrode of the capacitor (C3) is connected, a diode (D3) of the negative electrode and the resistor (R5) connected , resistor (R5) and the other end of the resistor (R7) is connected, is provided in parallel with a capacitor (Cl) across the resistor (R7).

[0039] 后端系统的电源控制引脚(PWR_C0N)还与电阻(R8)的一端连接,电阻(R8)的另一端接地,且在电阻(R8)的两端还并联设置有电容(C2)。 [0039] Power control pin backend system (PWR_C0N) is also connected to one end of a resistor (R8), the other end of the resistor (R8) to ground, and also provided with a parallel capacitor (C2) across the resistor (R8) of .

[0040] 本发明一种多功能开关机电路的开关机原理如下: [0040] The principle of a multi-function switch circuitry of the switch of the present invention are as follows:

[0041] I)关机状态下当按键(SI)按下时,外部的电源(DC_IN)就会给整个开关机电路和后端系统供电,处理器会立刻工作起来。 The [0041] I) when the key-off state (SI) is pressed, an external power supply (DC_IN) will give the entire switching power supply circuitry and the back-end systems, the processor will immediately work together.

[0042] 2)在软件控制电路中的处理器检测电路检测到按键(SI)按下了,那么处理器控制电路就会将后端系统的电源控制引脚(PWR_C0N)电平拉高。 [0042] 2) the detection circuit in the processor software control circuit detects that the key (SI) is pressed, the processor will control the power control circuit pin backend system (PWR_C0N) level pulling. 即使此时松开开关,后端系统的供电也不会断开。 Even then release the power switch, back-end system is not turned off. 当然,也可以直接将后端系统其中一个电压为3.3V左右的电源连接到后端系统的电源控制弓I脚(PWR_C0N),替代处理器拉高的动作。 Of course, the system may be directly backend wherein a power supply voltage is about 3.3V is connected to a power control system, the rear end of the foot arch I (PWR_C0N), the operation of an alternative processor pulled.

[0043] 其中,按键(SI)按多长时间开机,该时间就是软件控制模块中处理器检测电路检测到按键(Si)按下到处理器控制电路将后端系统的电源控制引脚电平拉高的这段时间,可以在处理器中的软件进行设置,使其更满足人们的个性化设置,使人们得到更好的使用感受。 [0043] wherein the button (SI) according to how long boot time is the software module control processor detection circuit detects that the key (Si) to the processor by pressing the control circuit controls the power level of the rear end of the pin system pulled this time, it can be carried out in the processor software settings to make it more personalized settings to meet people, make people get better experience.

[0044] 3)系统开机之后,处理器可以直接将后端系统的电源控制电平拉低实现关机。 After [0044] 3) power system, the processor may directly control the power level of the backend system shut down implemented.

[0045] 4)若处理器死机,软件无法实现关机时,长按按键(SI),硬件控制模块中的硬关机电路开始工作,硬关机电路中的电容(C3)开始充电,充到一定电压时,与电容(C3)相连的MOS管(Ql)导通,将后端系统的电源控制引脚电平直接拉低实现关机。 [0045] 4) If a processor crashes, shutdown software can not be achieved when pressing the button (the SI), a hard shutdown circuit operates hardware control module, a hard shutdown circuit capacitor (C3) to start charging, constant voltage charge to when the capacitor (C3) MOS tube (Ql,) connected to the conduction of the power level of the control pin backend system shutdown implemented directly down. 其中,硬关机电路中的电阻(R9)可以有效延长电容(C3)的充电时间,防止硬关机时间过短。 Wherein a hard shutdown circuit resistor (R9) can effectively extend the capacitor (C3) charge time, prevent a hard shutdown time is too short.

[0046] 5)关机后,硬关机电路中的电容(C3)通过硬件控制模块中的放电电路将电量快速放掉,避免紧接着开机的时候,电容(C3)短时间内就充好电将后端系统的电源控制引脚电平始终拉低,导致无法开机。 [0046] 5) after the shutdown, a hard shutdown circuit capacitor (C3) by the hardware control module battery discharge circuit quickly let go, followed by avoiding boot time, the capacitor (C3) short time will be charged power level control pin back-end system is always down, making it impossible to boot.

[0047] 长按按键(SI)关机的时间就是电容(C3)充电达到MOS管(Ql)导通的时间,跟电容(C3)的容量有关,可以通过更换不同容量的电容来调节硬关机的时间。 [0047] pressing the button (SI) shutdown time is capacitance (C3) charged to the conduction time of MOS transistors (Ql,), with the capacitor (C3) the capacity of the relevant, can be adjusted hard shutdown switch to a different capacity of the capacitor time. 由于按键(SI)按下硬件控制电路和软件控制电路是同时工作的,所以开机的时候按下按键(SI)的时间不能超过硬关机的时间,处理器里面软件设置的长按按键(SI)开机的时间也不能超过硬关机的时间。 Since the key (SI) by pressing the control hardware circuitry and software control circuits are operating simultaneously, so that the boot when a key is pressed (SI) could not exceed hard shutdown time, the processor inside the software provided long press key (SI) boot time can not exceed a hard shutdown time.

[0048] 在按键(SI)按住的过程中,手指可能会因为抖动使得按键(SI)在某个瞬间发生断开,造成后端系统的电源控制引脚(PWR_C0N)的电平被瞬间拉低,造成开机失败。 [0048] In the key (SI) during the hold down finger button so that the jitter may be because (SI) disconnection occurs in a moment, causing the power supply control pin (PWR_C0N) the level of back-end system is momentarily pulled low, causing boot failures. 而在电阻(R7)的两端并联电容(Cl)后,即使在按键(SI)按住的某一瞬间发生断开,在该时间内,电容(Cl)会进行放电,维持后端系统的电源控制引脚(PWR_C0N)为高电平,保持后端系统电源控制弓I脚(PWR_C0N)的电平平稳,提高用户的体验度。 In the resistor (R7) connected in parallel across the capacitor (Cl), even if disconnection occurs in the key (SI) of the hold down a moment, at which time the capacitor (Cl) are discharged to maintain the back-end systems power control pin (PWR_C0N) is high, the power control system to maintain the rear end of the foot arch I (PWR_C0N) the level of smooth, improving the user experience.

[0049] 处理器控制电路42中的处理器的控制脚(CPU_C0N)在某一瞬间受到干扰后,可能会将后端系统的电源控制引脚(PWR_C0N)的电平拉低,造成开机失败。 [0049] The processor control circuit 42 controls the processor pin (CPU_C0N) after a moment interference, power control might pin (PWR_C0N) backend system level down, resulting in failure of the boot. 而在电阻(R8)的两端并联电容(C2)后,即使处理器的控制脚(CPILC0N)在某一瞬间受到干扰,在该时间内,电容(C2)会进行放电,维持后端系统的电源控制引脚(PWR_C0N)为高电平,保持后端系统电源控制弓I脚(PWR_C0N)的电平平稳,提高用户的体验度。 In the resistor (R8) connected in parallel across the capacitor (C2), even if the processor control pin (CPILC0N) by interference in a moment, at which time the capacitor (C2) are discharged to maintain the back-end systems power control pin (PWR_C0N) is high, the power control system to maintain the rear end of the foot arch I (PWR_C0N) the level of smooth, improving the user experience.

[0050] 如图3所示,利用多功能开关机电路来进行开关机的开关机方法,开机方法为: [0050] As shown in FIG 3, using the multi-function switch circuitry to switch the switch process of booting method:

[0051] 将按键(SI)按下; [0051] The key (SI) is pressed;

[0052] 若按键的时间小于硬关机时间,则开机成功; [0052] If the time is less than the hard key off time, power is successful;

[0053] 若按键的时间大于或等于硬关机时间,则开机失败; [0053] If the time is greater than or equal to the key hard shutdown time, the power failure;

[0054] 软件关机方法为:利用处理器进行控制,实现关机; [0054] software-off method as follows: using a processor for control, shutdown;

[0055] 硬件关机方法为,将按键(SI)按下; [0055] Hardware-off method, for the key (SI) is pressed;

[0056] 若按键的时间大于或等于硬关机时间,则关机成功; [0056] If the time is greater than or equal to the key hard shutdown time, the shutdown is successful;

[0057] 若按键的时间小于硬关机时间,则关机失败。 [0057] If the time is less than the hard key off time, the failure shutdown.

[0058] 采用上述优选的方案,开关机方法简单有效。 [0058] The above-described preferred embodiment, the method is simple and effective switch.

[0059] 如图4所示,假设硬件关机电路中,MOS管(Ql)的栅极电压为V,外部输入电源(DC_IN)的电压SV1,电阻(R9)的阻值为R,电容(C3)的容值为C,硬件关机的时间(即按键(SI)按住的时间)为t,则个参数间的函数关系式如下: [0059] 4, assumes that the hardware shutdown circuit, the gate voltage of the MOS transistor (Ql,) input power is V, external (DC_IN) voltages SV1, the value of resistor (R9) is R, the capacitor (C3 ) tolerance value C, hardware shutdown time (i.e., key (SI) press and hold time) is t, the relationship between the functions of the following parameters:

[0060] V = V1X (1-et/RC) [0060] V = V1X (1-et / RC)

[0061] 其中:e是自然常数,当V的值达到MOS管Ql的导通电压时,就实现了硬关机。 [0061] where: e is the natural constant, when the value V reaches the ON voltage of the MOS transistor Ql, to achieve a hard shutdown. 在确定MOS管(Ql)的导通电压与精确的硬关机时间后,可以通过上述公式求出RC的值。 After determining MOS transistors (Ql,) ON voltage and accurate hard shutdown time can be determined by the RC value of the above formula. 从而,选取合适的阻值的电阻(R9)的容值电容(C3)。 Thus, select the appropriate value resistance (R9) value capacitors (C3).

[0062] 本发明一种多功能开关机电路,其结构简单,各部分分工明确,由一块芯片和多个分立元件组成,成本低,实现了基本的开关机电路功能,实现软件开机和硬件关机,且软件开机和硬件关机时间可调,软件开机时间的设定可以有效防止按键不小心失误摁下,而造成误开机,当按键按下去的时间大于开机时间小于硬关机时间,成功开机;而当处理器死机时,软件关机无法实现,采用硬件关机的方式,使得操作更简单。 [0062] The present invention is a versatile machine circuit switches, the structure is simple, clear division portions by a plurality of chips and discrete components, low cost, to achieve the basic function switching circuitry, implemented software and hardware power off , and the hardware and software power-off time is adjustable, the software start can be effectively prevented time setting button inadvertently pressed the error, caused by false start, when the key press is greater than the power down time is shorter than a hard shutdown time, successfully started; and when a processor crashes, the software can not be achieved shutdown, hardware shutdown mode, such that the operation easier.

[0063] 由于本发明一种多功能开关机电路基本上采用的是分立元件,元器件利用率高,并且当外部输入电源的电压有变化时,可以调整一些分压电阻来适配,其没有采用常规的单片机,使得整体的电路结构更简单明了,且性能良好。 [0063] Since the present invention is a versatile machine circuit switching basically the discrete components and high components utilization rate, and when the external power source voltage changes, voltage dividing resistors may be adjusted to adapt some of which do not conventional microcontroller, such that the overall circuit configuration is more simple, and good performance.

[0064] —种多功能开关机电路利用软件控制电路4来软件控制后端系统电源的开闭,而硬件控制电路3可以有效实现后端系统电源的关闭,在软件控制电路无法实现后端系统电源的关闭时,硬件控制电路仍然可以快速地实现其后端系统电源的关闭,实现关机。 [0064] - species multifunction switch circuitry under software control circuit 4 to control the opening and closing of the rear end of the software of the system power supply, the control circuit 3 and the hardware can be effectively implemented backend system power off, the control circuit can not be implemented in software backend system when the power off, the control circuit hardware may still be quickly implemented system power off its rear end to achieve shutdown. 分压电路将外部输入电源的高电压分得一个合适的电压给处理器检测电路和后端系统的电源控制引脚,当外部输入电源的电压发生变化时,可以调整分压电阻的阻值以适应处理器检测电路和后端系统的电源控制引脚,使得该电路可以兼容任何电压的直流电源的输入,兼容性能更好。 Dividing the external input circuit share a high voltage power supply to a suitable voltage detection circuit and the processor control pin backend system, when the external power source voltage changes, can be adjusted to the resistance voltage-dividing resistor adaptation processor detection circuit and the rear end of the power control pins, so that the circuit may be any compatible input voltage DC power supply, better compatibility.

[0065] 该电路简单、成本低、且安全可靠,性能良好,耗能少。 [0065] This circuit is simple, low cost, safety and reliability, good performance, low energy consumption.

[0066] 新型的优选实施方式,应当指出,对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。 [0066] The novel preferred embodiment, it should be noted that those of ordinary skill in the art, without departing from the concept of the present invention to create a premise, can make various changes and modifications which fall within the protection scope of the present invention .

Claims (9)

1.一种多功能开关机电路,其特征在于,包括: 按键,所述按键与外部的电源连接; 分压电路,所述分压电路的输入端与所述按键连接,用于将外部的电源电压进行分压传输; 软件控制电路,包括:处理器检测电路与处理器控制电路;所述处理器检测电路用于检测按键是否闭合,所述处理器控制电路用于软件控制后端系统电源的开闭; 硬件控制电路,用于硬件控制后端系统电源的关闭。 A multi-function switch circuitry, characterized by comprising: a key, a button connected to an external power source; dividing circuit, the voltage divider circuit is connected to the key input terminal, for external dividing transmission power voltage; software control circuit, comprising: a processor and a processor control circuit detecting circuit; said processor detecting circuit for detecting whether the key is closed, the processor control circuitry for controlling software backend system power opening and closing; hardware control circuit for controlling the hardware backend system power off.
2.根据权利要求1所述的多功能开关机电路,其特征在于,所述硬件控制电路包括:硬件关机电路与放电电路。 Multifunction switch according to claim circuitry of claim 1, wherein said hardware control circuit comprises: a hardware shutdown circuit and the discharge circuit.
3.根据权利要求2所述的多功能开关机电路,其特征在于, 所述分压电路包括多个分压电阻; 所述处理器检测电路包括:反向缓冲器(Ul),且所述反向缓冲器(Ul)的输入脚与分压电阻连接,所述反向缓冲器(Ul)的输出脚与处理器的检测脚连接; 所述处理器控制电路包括:电阻(R8),所述电阻(R8) —端与二极管(D2)的正极连接,电阻(R8)的另一端与处理器的控制脚连接,且所述二极管(D2)的负极与后端系统的电源控制引脚连接; 所述硬件关机电路包括:电容(C3)和MOS管(Ql),所述电容(C3) —端、所述MOS管(Ql)的栅极与按键(SI)连接,所述电容(C3)的另一端接地,所述MOS管(Ql)的漏极与所述后端系统的电源控制引脚连接,MOS管(Ql)的源极接地; 所述放电电路包括:二极管(D3)和放电电阻,所述二极管(D3)的正极与电容(C3)的一端连接,所述二极管(D3)的负极与放电电阻连接,所述放电 Multifunction switch according to claim circuitry of claim 2, wherein said voltage divider circuit comprises a plurality of voltage dividing resistors; the processor detecting circuit comprises: inverting buffer (Ul), and the Inverting buffer (Ul) and the input pin connected to the voltage dividing resistor, said reverse detecting pin connected to the buffers (Ul) output pin with the processor; and the processor control circuit comprises: a resistor (R8), the power control pin connected to the control terminal of pin diode (D2) connected to a positive electrode, a resistor (R8) and the other end is connected to the processor, and the diode (D2) of the negative electrode and the back-end system - said resistor (R8) ; said hardware shutdown circuit comprising: a capacitor (C3) and a MOS transistor (Ql,), the capacitor (C3) - the gate of the key (SI) terminal, the MOS transistor (Ql,) is connected to the capacitor (C3 power control pin is connected to the rear end of the drain system, a source grounded MOS transistor (Ql,)) of the other end, said MOS transistor (Ql,); said discharge circuit comprises: a diode (D3) and a discharge resistor, said diode (D3) of the positive electrode of the capacitor (C3) connected to one end of the diode (D3) is connected to the negative electrode and the discharge resistor, said discharge 电阻的另一端接地。 The other end of the resistor.
4.根据权利要求3所述的多功能开关机电路,其特征在于,所述硬件关机电路还包括电阻(R9),所述电阻(R9)的一端与所述按键(SI)连接,所述电阻(R9)的另一端与所述电容(C3)连接。 Multifunction switch according to claim circuitry of claim 3, wherein said hardware shutdown circuit further comprises a resistor (R9), the resistor (R9) to one end of the key (SI) is connected to the the other end of the resistor (R9) is connected to the capacitor (C3).
5.根据权利要求4所述的多功能开关机电路,其特征在于,所述分压电阻包括:电阻(Rl)、电阻(R3)、电阻(R5)、电阻(R7),所述电阻(Rl)的一端、所述电阻(R5)的一端与所述按键(SI)连接,所述电阻(Rl)的另一端与电阻(R3)、与所述反向缓冲器(Ul)的输入端连接;所述电阻(R5)的另一端与电阻(R7)、与二极管(Dl)的正极连接,所述二极管(Dl)的负极与所述后端系统的电源控制引脚连接,所述电阻(R7)的另一端接地。 Multifunction switch according to claim 4, wherein the circuitry, characterized in that the partition dividing resistor comprising: a resistor (Rl), a resistor (R3), the resistor (R5), the resistor (R7), said resistor ( end Rl), said resistor (R5) to one end of the key (SI) connected to a resistor (Rl) and the other end of the resistor (R3), and the inverting buffer (Ul) to the input terminal connection; power control pin connected to the resistor (R5) and the other end of the resistor (R7), connected to the cathode of the diode (Dl) of the diode (Dl) cathode of the backend system, the resistor the other end (R7) of the ground.
6.根据权利要求5所述的多功能开关机电路,其特征在于,所述放电电阻包括:电阻(R5)和电阻(R7),所述电阻(R5)的一端与二极管(D3)的负极、按键(SI)连接,电阻(R5)的另一端与电阻(R7)连接。 Multifunction switch according to claim 5, wherein the circuitry, characterized in that said discharge resistor comprises: a negative resistance (R5) and a resistor (R7), the resistor (R5) and one end of a diode (D3) of , key (SI) is connected, a resistor (R5) and the other end of the resistor (R7) is connected.
7.根据权利要求6所述的多功能开关机电路,其特征在于,在所述电阻(R7)两端并联设置有电容(Cl)。 Multifunction switch according to claim circuitry of claim 6, characterized in that, provided in parallel with a capacitor (Cl) across said resistor (R7).
8.根据权利要求7所述的多功能开关机电路,其特征在于,所述后端系统的电源控制引脚还与电阻(R8)的一端连接,电阻(R8)的另一端接地,且在所述电阻(R8)两端还并联设置有电容(C2)。 Multifunction switch according to claim circuitry of claim 7, wherein the rear end of the power control pin is also connected to one end of a resistor (R8), the other end of the resistor (R8) to ground, and in the resistor (R8) connected in parallel is also provided at both ends of a capacitor (C2).
9.利用权利要求1-8任一项所述的多功能开关机电路来进行开关机的开关机方法,其特征在于,所述开机方法为:将按键(SI)按下;若按键的时间小于硬关机时间,则开机成功;若按键的时间大于或等于硬关机时间,则开机失败;所述软件关机方法为:利用处理器进行控制,实现关机;所述硬件关机方法为,将按键(Si)按下;若按键的时间大于或等于硬关机时间,则关机成功;若按键的时间小于硬关机时间,则关机失败。 9. The use as claimed in claim multifunction switch circuitry of any one of claims 1-8 switch to switch the method, wherein the boot method: The key (SI) is pressed; if pressed for less than hard shutdown time, the successful boot; if key off time is greater than or equal to the hard time, the boot failure; the software power-off method as follows: using a processor for control, shutdown; the hardware shutdown method, the keys ( si) press; if key off time is greater than or equal to the hard time of shutdown successful; if pressed for time less than a hard shutdown, the shutdown failure.
CN 201510341669 2015-06-18 2015-06-18 A multifunctional switch and the electromechanical switch path method CN105045169B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510341669 CN105045169B (en) 2015-06-18 2015-06-18 A multifunctional switch and the electromechanical switch path method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510341669 CN105045169B (en) 2015-06-18 2015-06-18 A multifunctional switch and the electromechanical switch path method

Publications (2)

Publication Number Publication Date
CN105045169A true true CN105045169A (en) 2015-11-11
CN105045169B CN105045169B (en) 2017-09-29

Family

ID=54451786

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510341669 CN105045169B (en) 2015-06-18 2015-06-18 A multifunctional switch and the electromechanical switch path method

Country Status (1)

Country Link
CN (1) CN105045169B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030009954A (en) * 2001-07-24 2003-02-05 삼성전기주식회사 Apparatus for managing voltage of battery
CN101982960A (en) * 2010-08-18 2011-03-02 惠州Tcl移动通信有限公司 Mobile terminal as well as shutdown device and shutdown method thereof
US20110087901A1 (en) * 2009-10-14 2011-04-14 Shi-Wu Lo Fast speed computer system power-on & power-off method
CN102063172A (en) * 2010-12-29 2011-05-18 鸿富锦精密工业(深圳)有限公司 Forced power off circuit
CN202342025U (en) * 2011-11-14 2012-07-25 广东宝莱特医用科技股份有限公司 Monitor with software and hardware shutdown function
CN103226337A (en) * 2013-05-03 2013-07-31 深圳市科曼医疗设备有限公司 Startup and shutdown circuit
CN103869722A (en) * 2014-04-08 2014-06-18 广东宝莱特医用科技股份有限公司 Hard startup / shutdown system
CN104702258A (en) * 2015-03-23 2015-06-10 曲保章 Power-up starting power switch with controllable function
CN104731305A (en) * 2015-04-03 2015-06-24 青岛歌尔声学科技有限公司 Shutdown control circuit and electronic product with same

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030009954A (en) * 2001-07-24 2003-02-05 삼성전기주식회사 Apparatus for managing voltage of battery
US20110087901A1 (en) * 2009-10-14 2011-04-14 Shi-Wu Lo Fast speed computer system power-on & power-off method
CN101982960A (en) * 2010-08-18 2011-03-02 惠州Tcl移动通信有限公司 Mobile terminal as well as shutdown device and shutdown method thereof
CN102063172A (en) * 2010-12-29 2011-05-18 鸿富锦精密工业(深圳)有限公司 Forced power off circuit
CN202342025U (en) * 2011-11-14 2012-07-25 广东宝莱特医用科技股份有限公司 Monitor with software and hardware shutdown function
CN103226337A (en) * 2013-05-03 2013-07-31 深圳市科曼医疗设备有限公司 Startup and shutdown circuit
CN103869722A (en) * 2014-04-08 2014-06-18 广东宝莱特医用科技股份有限公司 Hard startup / shutdown system
CN104702258A (en) * 2015-03-23 2015-06-10 曲保章 Power-up starting power switch with controllable function
CN104731305A (en) * 2015-04-03 2015-06-24 青岛歌尔声学科技有限公司 Shutdown control circuit and electronic product with same

Also Published As

Publication number Publication date Type
CN105045169B (en) 2017-09-29 grant

Similar Documents

Publication Publication Date Title
CN1588470A (en) Method for realizing zero power consumption standby of household electric appliance
CN2708377Y (en) Single-chip microcomputer reset circuit
CN101783663A (en) Controllable on/off circuit
CN201383758Y (en) Intermittent type electricity consumption quasi-zero power consumption standby control circuit
CN1782954A (en) Computer system with re-starting control circuit
CN201167243Y (en) Charging circuit and mobile communication apparatus containing the same
CN203152489U (en) Electronic cigarette
US20120331312A1 (en) Usb charging circuit for a computer
US20130124886A1 (en) Power Control Device and Electronic Device Using the Same
CN101256394A (en) Standby control apparatus with certain nought power consumption
CN201518119U (en) On-off device
CN202550600U (en) Charging activation apparatus of mobile terminal battery
CN103001267A (en) Charge control method, charge control circuit and terminal with screen
CN201523258U (en) Power supply device of electronic equipment
CN202995614U (en) Electronic equipment
CN201854021U (en) Soft starting circuit used for USB wireless modem
CN103166166A (en) Hot plug controller protective circuit
CN102213993A (en) Circuit for soft startup and soft shutdown
CN202586329U (en) Self-discharge circuit
CN203014666U (en) Quick start gate driving device and control module thereof
CN103872715A (en) Handheld device and power circuit thereof
CN203812186U (en) Microprocessor management circuit of self-powered microcomputer protection device
US20130021090A1 (en) Power control device and method therefor
CN204391769U (en) Charging device with zero power consumption standby
CN2872709Y (en) Charging circuit

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
GR01