搜尋 圖片 地圖 Play YouTube 新聞 Gmail 雲端硬碟 更多 »
登入

專利

  1. 進階專利搜尋
公開號CN105045169 A
出版類型申請
申請書編號CN 201510341669
發佈日期2015年11月11日
申請日期2015年6月18日
優先權日期2015年6月18日
公開號201510341669.1, CN 105045169 A, CN 105045169A, CN 201510341669, CN-A-105045169, CN105045169 A, CN105045169A, CN201510341669, CN201510341669.1
發明人刘金权
申請者江苏辰汉电子科技有限公司
匯出書目資料BiBTeX, EndNote, RefMan
外部連結:  中華人民共和國國家知識產權局, 歐洲專利局
Multifunctional startup and shutdown circuit and startup and shutdown method
CN 105045169 A
摘要
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.
聲明所有權(9)  原文語言:中文
1.一种多功能开关机电路,其特征在于,包括: 按键,所述按键与外部的电源连接; 分压电路,所述分压电路的输入端与所述按键连接,用于将外部的电源电压进行分压传输; 软件控制电路,包括:处理器检测电路与处理器控制电路;所述处理器检测电路用于检测按键是否闭合,所述处理器控制电路用于软件控制后端系统电源的开闭; 硬件控制电路,用于硬件控制后端系统电源的关闭。 A multi-function switch circuitry, characterized by comprising: a button, the button connected to an external power source; a voltage divider circuit, the voltage divider circuit is connected to the input of the key for the external supply voltage dividing transmission; software control circuit, comprising: a processor detection circuit and processor control circuit; said processor detecting circuit for detecting the key is closed, the processor control circuit for controlling the back-end software system power opening and closing; hardware control circuit for controlling the hardware backend system power is turned off.
2.根据权利要求1所述的多功能开关机电路,其特征在于,所述硬件控制电路包括:硬件关机电路与放电电路。 Multifunction switch according to claim 1, wherein the circuitry, wherein said hardware control circuit comprising: 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 2, wherein the circuitry, characterized in that said voltage divider circuit comprises a plurality of voltage dividing resistors; said processor detecting circuit comprising: a back buffer (Ul), and the Inverting buffer (Ul) input pin voltage dividing resistor connected, the inversion detection pin connector buffer (Ul) output pin and the processor; the processor control circuit comprising: a resistor (R8), the power control pin connecting terminal of the diode (D2) connected to the positive electrode, the resistor (R8) processor and the other end of the control pin connector, and the diode (D2) is negative and back-end systems - the resistor (R8) ; said hardware shutdown circuit comprising: a capacitor (C3) and MOS transistors (of Ql), the capacitor (C3) - ends, the MOS transistor (of Ql) and the gate of the key (SI) connected to said capacitor (C3 ) the other end of said MOS transistors (of Ql) is connected to the drain of the power supply control pin with the backend systems, MOS tube (of Ql) a source connected to ground; the discharge circuit comprises: a diode (D3) and discharge resistor, one end of said diode (D3) and the positive electrode capacitor (C3) is connected, said diode (D3) connected to the negative pole of the discharge resistor, the other end of the discharging resistor.
4.根据权利要求3所述的多功能开关机电路,其特征在于,所述硬件关机电路还包括电阻(R9),所述电阻(R9)的一端与所述按键(SI)连接,所述电阻(R9)的另一端与所述电容(C3)连接。 Multifunction switch according to claim 3 wherein the circuitry, characterized in that said circuit further comprises a hardware shut resistor (R9), the resistor (R9) one end of said key (SI) is connected, the resistor (R9) is connected to the other end of 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 said voltage dividing resistor comprising: a resistor (of Rl), resistor (R3), the resistor (R5), the resistor (R7 are), the resistor ( of Rl) one end of said resistor (R5) and one end of the key (SI) is connected, the resistor (of Rl) and the other end of the resistor (R3), and the back buffer (Ul) input terminal connection; power of control pins of said resistor (R5) and the other end of the resistor (R7 are), connected to the positive electrode of the diode (Dl of) of the diode (Dl of) the anode of said back-end systems, said resistor (R7) of the other end.
6.根据权利要求5所述的多功能开关机电路,其特征在于,所述放电电阻包括:电阻(R5)和电阻(R7),所述电阻(R5)的一端与二极管(D3)的负极、按键(SI)连接,电阻(R5)的另一端与电阻(R7)连接。 Multifunction switch according to claim 5 wherein the circuitry, characterized in that the discharge resistor comprising: a resistor (R5) and a resistor (R7 are), the resistor (R5) and one end of the diode (D3) of the negative electrode , key (SI) is connected, the resistor (R5) and the other end of the resistor (R7) is connected.
7.根据权利要求6所述的多功能开关机电路,其特征在于,在所述电阻(R7)两端并联设置有电容(Cl)。 Multifunction switch according to claim 6 wherein the circuitry, characterized in that said resistor (R7) is provided in parallel across the capacitor (Cl).
8.根据权利要求7所述的多功能开关机电路,其特征在于,所述后端系统的电源控制引脚还与电阻(R8)的一端连接,电阻(R8)的另一端接地,且在所述电阻(R8)两端还并联设置有电容(C2)。 According to claim 7 wherein the multifunctional switch circuitry, characterized in that the rear end of a power control system is also connected to the pin end of the resistor (R8), the resistor (R8) of the other end, and in said resistor (R8) connected in parallel is also provided at both ends of the capacitor (C2).
9.利用权利要求1-8任一项所述的多功能开关机电路来进行开关机的开关机方法,其特征在于,所述开机方法为:将按键(SI)按下;若按键的时间小于硬关机时间,则开机成功;若按键的时间大于或等于硬关机时间,则开机失败;所述软件关机方法为:利用处理器进行控制,实现关机;所述硬件关机方法为,将按键(Si)按下;若按键的时间大于或等于硬关机时间,则关机成功;若按键的时间小于硬关机时间,则关机失败。 9. The use of claims 1-8 multifunction switch circuitry to switch to any method of switching machines, characterized in that the power method: the key (SI) is pressed; if the time key less than a hard shutdown time, boot success; if pressed for greater than or equal to the hard shutdown time, the power failure; the software shutdown method: the use of processor control, shutdown; the hardware shutdown method, the key ( si) is pressed; if pressed for greater than or equal to a hard shutdown time, the shutdown success; if pressed for less than a hard shutdown time, the shutdown fails.
說明  原文語言:中文
一种多功能开关机电路及开关机方法 A multifunctional switch circuitry and switch method

技术领域 TECHNICAL FIELD

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

背景技术 Background technique

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

[0003] 故一种电路简单、成本低,且安全可靠,性能良好的多功能开关机电路及开关机方法亟待提出。 [0003] Therefore, a circuit that is simple, low cost, safe and reliable, good performance multifunction switch circuitry and switch method put forward urgently.

发明内容 SUMMARY

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

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

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

[0007] 本发明一种多功能开关机电路,其结构简单,各部分分工明确,利用软件控制电路来控制后端系统电源的开闭,而硬件控制电路可以有效实现后端系统电源的关闭,在软件控制电路无法实现后端系统电源的关闭时,硬件控制电路仍然可以快速地实现其后端系统电源的关闭,实现关机。 [0007] A multifunctional switch circuitry of the present invention, the structure is simple, clear division of the various parts, software control circuitry to control the opening and closing of the back-end system power, and hardware control circuit can effectively implement the backend system power is turned off, when the software can not achieve back-end system control circuit power supply is turned off, the control circuit hardware still can quickly achieve its backend system power is turned off, to achieve shutdown.

[0008] 在上述技术方案的基础上,还可做如下改进: [0008] On the basis of the above-mentioned technical aspect, but also make the following improvements:

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

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

[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; processor detection circuit includes: Inverting Buffer (U1), and the reverse buffer (Ul) input pin is connected with the voltage divider resistors, trans buffer (Ul) output pin and pin connection detecting processor; processor control circuit comprising: a resistor (R8), resistor (R8) - terminal of the diode (D2) connected to the positive electrode, the resistor (R8) of the other end pin connector with the control processor and the diode (D2) and back-end systems of the negative power supply control pin connector; hardware shutdown circuit comprising: a capacitor (C3) and MOS transistor (Ql), capacitance (C3) at one end, MOS tube gate (of Ql) and the key (SI) connected to the capacitor (C3) the other end of the power MOS transistor of control pins (of Ql) and the rear end of the drain system, MOS tube (of Ql) of the source is grounded ; discharge circuit comprises: a diode (D3) and a discharge resistor, a diode (D3) and the positive electrode capacitor (C3) connected at one end and the other end to one end of the diode (D3) connected to the negative pole of the discharge resistor, discharging resistor.

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

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

[0014] 采用上述优选的方案,保证硬件关机电路的有效性,有一定延时和分压效果,防止电容(C3)充电时间过快,导致硬关机时间过短。 [0014] With the above preferred embodiment, the hardware to ensure the effectiveness of the shutdown circuit, there is a certain delay and partial pressure effect, prevent capacitor (C3) charging time is too fast, resulting in a hard shutdown 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, the voltage dividing resistor comprising: a resistor (of Rl), resistor (R3), the resistor (R5), the resistor (R7 are), the resistance (of Rl) one end of the resistor (R5) one end of the key (SI ) is connected, the resistor (of Rl) and the other end of the resistor (R3), and the back buffer (Ul) connected to the input terminal; resistor (R5) and the other end of the resistor (R7 are), with the diode (Dl of) the positive connection power control pin connection diode (Dl) of the negative electrode and the back-end system, the resistance (R7) of the other end.

[0016] 采用上述优选的方案,利用分压电阻,使得该电路可以兼容任何电压的直流电源的输入,兼容性能更好。 [0016] With the above preferred embodiment, the use of dividing resistor so that the circuit can be compatible with any voltage DC power input, 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 are), the resistor (R5) at one end of the diode (D3) is negative, the key (SI) is connected, the resistor (R5) of the other end of the resistor (R7) is connected.

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

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

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

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

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

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

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

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

附图说明 BRIEF DESCRIPTION

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

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

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

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

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

具体实施方式 detailed description

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

[0031] 为了达到本发明的目的,在一种多功能开关机电路及开关机方法的其中一些实施例中, [0031] To achieve the object of the present invention, in one multi-function switch circuitry and switch method in which some embodiments,

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

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

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

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

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

[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: resistor (R9), the capacitor (C3) and MOS transistors (of Ql), a resistor (R9) one end of the key (SI) is connected, the resistor (R9) and the other end of the capacitor (C3) , the MOS tube (of Ql) connected to the gate, the capacitor (C3) of the other end, the MOS tube (of Ql) and the rear end of the drain system power control pins (PWR_C0N) is connected, the MOS tubes (of Ql) source grounded.

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

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

[0040] 本发明一种多功能开关机电路的开关机原理如下: [0040] switch principles of the invention a multifunctional switch circuitry is as follows:

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

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

[0043] 其中,按键(SI)按多长时间开机,该时间就是软件控制模块中处理器检测电路检测到按键(Si)按下到处理器控制电路将后端系统的电源控制引脚电平拉高的这段时间,可以在处理器中的软件进行设置,使其更满足人们的个性化设置,使人们得到更好的使用感受。 [0043] wherein the button (SI) according to how long boot time is the software control module processor detection circuit detects the key (Si) is pressed to the back-end system processor control circuit power supply control pin 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 the [0044] 3) the system boots, the processor may directly control the power supply back-end systems to achieve low levels of shutdown.

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

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

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

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

[0049] 处理器控制电路42中的处理器的控制脚(CPU_C0N)在某一瞬间受到干扰后,可能会将后端系统的电源控制引脚(PWR_C0N)的电平拉低,造成开机失败。 [0049] processor control circuit 42 in the processor control pin (CPU_C0N) After a moment disturbed, might power control pin (PWR_C0N) the level of back-end systems down, causing the power failure. 而在电阻(R8)的两端并联电容(C2)后,即使处理器的控制脚(CPILC0N)在某一瞬间受到干扰,在该时间内,电容(C2)会进行放电,维持后端系统的电源控制引脚(PWR_C0N)为高电平,保持后端系统电源控制弓I脚(PWR_C0N)的电平平稳,提高用户的体验度。 The resistor (R8) in parallel across capacitor (C2), even if the processor control pin (CPILC0N) in a moment disturbed during this time, a capacitor (C2) will be discharged and maintain back-end systems power control pin (PWR_C0N) high, to keep the back-end system power control I bow foot (PWR_C0N) level steady, improve the experience of users.

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

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

[0052] 若按键的时间小于硬关机时间,则开机成功; [0052] If pressed for less than a hard shutdown time, boot success;

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

[0054] 软件关机方法为:利用处理器进行控制,实现关机; [0054] software shutdown method: the use of processor control, shut down;

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

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

[0057] 若按键的时间小于硬关机时间,则关机失败。 [0057] If pressed for less than a hard shutdown time, the shutdown fails.

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

[0059] 如图4所示,假设硬件关机电路中,MOS管(Ql)的栅极电压为V,外部输入电源(DC_IN)的电压SV1,电阻(R9)的阻值为R,电容(C3)的容值为C,硬件关机的时间(即按键(SI)按住的时间)为t,则个参数间的函数关系式如下: [0059] 4, it assumes that the hardware shutdown circuit, the MOS tube (of Ql) gate voltage is V, the external power supply input (DC_IN) voltages SV1, resistor (R9) for the resistance R, the capacitor (C3 ) the capacitance of C, hardware shutdown time (ie button (SI) hold down time) is t, then a functional relationship between the parameters as follows:

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

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

[0062] 本发明一种多功能开关机电路,其结构简单,各部分分工明确,由一块芯片和多个分立元件组成,成本低,实现了基本的开关机电路功能,实现软件开机和硬件关机,且软件开机和硬件关机时间可调,软件开机时间的设定可以有效防止按键不小心失误摁下,而造成误开机,当按键按下去的时间大于开机时间小于硬关机时间,成功开机;而当处理器死机时,软件关机无法实现,采用硬件关机的方式,使得操作更简单。 [0062] A multifunctional switch circuitry of the present invention, the structure is simple, the various parts of a clear division consists of a chip and a plurality of discrete components, low cost, to achieve the basic functions of switching circuitry, to realize the power of software and hardware shutdown and the software and hardware power-off time is adjustable, set the software boot time can effectively prevent careless mistakes pressed the button, caused by false boot, when the button pressed for longer than the boot time is less than the hard-off time, the success of the boot; and when the processor crash, shutdown software can not be achieved using hardware shutdown mode, making the operation easier.

[0063] 由于本发明一种多功能开关机电路基本上采用的是分立元件,元器件利用率高,并且当外部输入电源的电压有变化时,可以调整一些分压电阻来适配,其没有采用常规的单片机,使得整体的电路结构更简单明了,且性能良好。 [0063] Since the present invention is a multifunctional switch circuitry basically uses discrete components, component utilization, and when the external input power supply voltage changes, you can adjust some of the dividing resistor adapts, it does not conventional single chip, making the overall circuit structure more simple, and good performance.

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

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

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

專利引用
引用的專利申請日期發佈日期 申請者專利名稱
CN101982960A *2010年8月18日2011年3月2日惠州Tcl移动通信有限公司Mobile terminal as well as shutdown device and shutdown method thereof
CN102063172A *2010年12月29日2011年5月18日鸿富锦精密工业(深圳)有限公司Forced power off circuit
CN103226337A *2013年5月3日2013年7月31日深圳市科曼医疗设备有限公司Startup and shutdown circuit
CN103869722A *2014年4月8日2014年6月18日广东宝莱特医用科技股份有限公司Hard startup / shutdown system
CN104702258A *2015年3月23日2015年6月10日曲保章Power-up starting power switch with controllable function
CN104731305A *2015年4月3日2015年6月24日青岛歌尔声学科技有限公司Shutdown control circuit and electronic product with same
CN202342025U *2011年11月14日2012年7月25日广东宝莱特医用科技股份有限公司Monitor with software and hardware shutdown function
KR20030009954A * 名稱不詳
US20110087901 *2009年10月14日2011年4月14日Shi-Wu LoFast speed computer system power-on & power-off method
分類
國際專利分類號G05B19/042
合作分類G05B19/042
法律事件
日期代號事件說明
2015年11月11日C06Publication
2015年12月9日C10Entry into substantive examination