CN103605420B - Low power consumption processing circuit and low power consumption processing method - Google Patents
Low power consumption processing circuit and low power consumption processing method Download PDFInfo
- Publication number
- CN103605420B CN103605420B CN201310573609.3A CN201310573609A CN103605420B CN 103605420 B CN103605420 B CN 103605420B CN 201310573609 A CN201310573609 A CN 201310573609A CN 103605420 B CN103605420 B CN 103605420B
- Authority
- CN
- China
- Prior art keywords
- chip microcomputer
- power consumption
- power supply
- control signal
- low
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Microcomputers (AREA)
- Power Sources (AREA)
Abstract
本发明公开了一种低功耗处理电路及低功耗处理方法,低功耗处理电路包括电压转换模块、电池供电模块、电子开关、第一单片机和第二单片机,电压转换模块的输入端与外接电源连接,输出端与第一单片机的电源端连接;电池供电模块的输出端与第二单片机的电源端连接;电子开关用于控制电流单向流动,其一端电压转换模块的输出端连接,另一端与第二单片机的电源端连接,用于限制电流从电池供电模块流向第一单片机;第一单片根据电压转换模块与外接电源的连接状态输出控制信号至第二单片机;第二单片机根据所述控制信号进入低功耗模式或退出低功耗模式。本发明提高了电路工作的稳定性。
The invention discloses a low-power consumption processing circuit and a low-power consumption processing method. The low-power consumption processing circuit includes a voltage conversion module, a battery power supply module, an electronic switch, a first single-chip microcomputer and a second single-chip microcomputer, and the input terminal of the voltage conversion module is connected to the The external power supply is connected, and the output end is connected to the power end of the first single-chip microcomputer; the output end of the battery power supply module is connected to the power end of the second single-chip microcomputer; the electronic switch is used to control the unidirectional flow of current, and one end of the voltage conversion module is connected to the output end, The other end is connected to the power supply end of the second single-chip microcomputer, and is used to limit the current flowing from the battery power supply module to the first single-chip microcomputer; the first single-chip outputs a control signal to the second single-chip microcomputer according to the connection state of the voltage conversion module and the external power supply; the second single-chip microcomputer according to The control signal enters the low power consumption mode or exits the low power consumption mode. The invention improves the stability of circuit operation.
Description
技术领域technical field
本发明涉及电子产品技术领域,特别涉及一种低功耗处理电路及低功耗处理方法。The invention relates to the technical field of electronic products, in particular to a low power consumption processing circuit and a low power consumption processing method.
背景技术Background technique
众所周知,目前的家电产品中,有些是用两个或多个单片机控制的,并且可工作在交流电供电和电池供电两种电源供电方式下。交流电供电状态下可以实现产品的正常功能,如:操作显示、加热、转动、制冷等;电池供电状态下,一般只有保留时钟、LCD指示等微弱功耗的功能,此时单片机需要控制进入低功耗模式以减少电流消耗。在电池供电的方式下,单片机进入低功耗模式,当交流电连入系统时,需要唤醒单片机,使单片机退出低功耗模式。由于电池供电时单片机电源端的电压为3V,交流点供电时单片机电源端的电压为5V,因此现有技术中通常采用检测单片机电源电压的方式控制单片机进入低功耗模式和退出低功耗模式,但是设置在单片机电源端的电容会造成电源电压会出现短暂的上下浮动,使得电路工作的稳定性较差。As we all know, some of the current home appliances are controlled by two or more single-chip microcomputers, and can work in two power supply modes: AC power supply and battery power supply. Under the condition of AC power supply, the normal functions of the product can be realized, such as: operation display, heating, rotation, cooling, etc.; under the condition of battery power supply, generally there are only weak power consumption functions such as keeping the clock and LCD indication. consumption mode to reduce current consumption. In the battery-powered mode, the single-chip microcomputer enters the low-power consumption mode. When the AC power is connected to the system, the single-chip microcomputer needs to be woken up to make the single-chip microcomputer exit the low-power consumption mode. Since the voltage of the power supply terminal of the single-chip microcomputer is 3V when the battery is powered, and the voltage of the power supply terminal of the single-chip microcomputer is 5V when the AC power supply is used, the mode of detecting the power supply voltage of the single-chip microcomputer is usually used in the prior art to control the single-chip microcomputer to enter the low power consumption mode and exit the low power consumption mode, but The capacitor installed at the power supply terminal of the single-chip microcomputer will cause the power supply voltage to fluctuate briefly up and down, making the stability of the circuit operation poor.
发明内容Contents of the invention
本发明的主要目的在于提供一种低功耗处理电路,旨在提高电路工作的稳定性。The main purpose of the present invention is to provide a low power consumption processing circuit, aiming at improving the stability of circuit operation.
为了实现上述目的,本发明提供一种低功耗处理电路,所述低功耗处理电路包括电压转换模块、电池供电模块、电子开关、第一单片机和第二单片机,其中,In order to achieve the above object, the present invention provides a low power consumption processing circuit, the low power consumption processing circuit includes a voltage conversion module, a battery power supply module, an electronic switch, a first single-chip microcomputer and a second single-chip microcomputer, wherein,
所述电压转换模块的输入端与外接电源连接,输出端与所述第一单片机的电源端连接,用于将所述外接电源的电压转换成适于所述第一单片机工作的工作电压;The input terminal of the voltage conversion module is connected to an external power supply, and the output terminal is connected to the power supply terminal of the first single-chip microcomputer for converting the voltage of the external power supply into an operating voltage suitable for the operation of the first single-chip microcomputer;
所述电池供电模块的输出端与所述第二单片机的电源端连接;The output end of the battery power supply module is connected to the power end of the second single-chip microcomputer;
所述电子开关用于控制电流单向流动,其一端与所述电压转换模块的输出端连接,另一端与所述第二单片机的电源端连接,用于限制电流从电池供电模块流向第一单片机;The electronic switch is used to control the unidirectional flow of current, one end of which is connected to the output end of the voltage conversion module, and the other end is connected to the power supply end of the second single-chip microcomputer, and is used to limit the current flowing from the battery power supply module to the first single-chip microcomputer ;
所述第一单片机根据所述电压转换模块与外接电源的连接状态输出控制信号至所述第二单片机;The first single-chip microcomputer outputs a control signal to the second single-chip microcomputer according to the connection state between the voltage conversion module and the external power supply;
所述第二单片机根据所述控制信号进入低功耗模式或退出低功耗模式。The second single-chip microcomputer enters or exits the low power consumption mode according to the control signal.
优选地,所述电子开关包括一第一二极管,所述第一二极管的阴极与所述第二单片机的电源端连接,阳极与所述电压转换模块的输出端连接。Preferably, the electronic switch includes a first diode, the cathode of the first diode is connected to the power supply terminal of the second single-chip microcomputer, and the anode is connected to the output terminal of the voltage conversion module.
优选地,所述低功耗处理电路还包括串接于所述第二单片机电源端和所述电池供电模块输出端之间的第二二极管,且所述第二二极管的阳极与所述电池供电模块的输出端连接,阴极连接至所述电子开关和第二单片机电源端的公共连接点。Preferably, the low power consumption processing circuit further includes a second diode connected in series between the power supply terminal of the second single-chip microcomputer and the output terminal of the battery power supply module, and the anode of the second diode is connected to the The output terminal of the battery power supply module is connected, and the cathode is connected to the common connection point of the electronic switch and the power supply terminal of the second single-chip microcomputer.
优选地,所述控制信号为脉宽调制信号。Preferably, the control signal is a pulse width modulation signal.
优选地,所述第一单片机具体用于当外接电源与所述电压转换模块连接时,所述第一单片机输出脉宽调制信号至所述第二单片机的中断输入端;所述第二单片机在预置时间段内中断输入端接收的脉冲数量为零时,进入低功耗模式;所述第二单片机在低功耗模式下,当在预置时间段内中断输入端接收的脉冲数量大于预设值时,退出低功耗模式。Preferably, the first single-chip microcomputer is specifically configured to output a pulse width modulation signal to the interrupt input terminal of the second single-chip microcomputer when the external power supply is connected to the voltage conversion module; When the number of pulses received by the interrupt input terminal in the preset time period is zero, it enters the low power consumption mode; in the low power consumption mode, when the second single-chip microcomputer is in the low power consumption mode, when the number of pulses received by the interrupt input terminal in the preset time period is greater than the preset When set, exits low-power mode.
本发明还提供一种基于上述低功耗处理电路的低功耗处理方法,所述低功耗处理方法包括以下步骤:The present invention also provides a low-power processing method based on the above-mentioned low-power processing circuit, and the low-power processing method includes the following steps:
当第一单片机上电时,输出控制信号至第二单片机;When the first single-chip microcomputer is powered on, output a control signal to the second single-chip microcomputer;
所述第二单片机接收所述控制信号,并根据所述控制信号退出低功耗工作模式;The second single-chip microcomputer receives the control signal, and exits the low power consumption mode according to the control signal;
所述第二单片机未接收到所述控制信号时,进入低功耗工作模式。When the second single-chip microcomputer does not receive the control signal, it enters a low power consumption working mode.
优选地,所述控制信号为脉宽调制信号。Preferably, the control signal is a pulse width modulation signal.
优选地,所述第二单片机接收所述控制信号,并根据所述控制信号退出低功耗工作模式的步骤具体包括:Preferably, the second single-chip microcomputer receives the control signal, and the step of exiting the low-power working mode according to the control signal specifically includes:
所述第二单片机的中断输入端接收所述控制信号;The interrupt input terminal of the second single-chip microcomputer receives the control signal;
判断在预置时间段内所述中断输入端的脉冲数量是否大于预设值;judging whether the number of pulses at the interrupt input terminal is greater than a preset value within a preset time period;
若是,则所述第二单片机退出低功耗模式;If so, the second single-chip microcomputer exits the low power consumption mode;
若否,则所述第二单片机进入低功耗模式。If not, the second single-chip microcomputer enters a low power consumption mode.
优选地,所述第二单片机未接收到所述控制信号时,进入低功耗工作模式的步骤具体为:Preferably, when the second single-chip microcomputer does not receive the control signal, the step of entering the low power consumption mode is specifically:
当在预置时间段内所述中断输入端的脉冲数量为零时,第二单片机进入低功耗模式。When the number of pulses at the interrupt input terminal is zero within the preset time period, the second single-chip microcomputer enters a low power consumption mode.
本发明通过利用第一单片机在外接电源与电压转换模块连接时,输出控制信号至第二单片机,从而控制第二单片机退出低功耗模式,达到唤醒状态;在第一单片机不工作时,第二单片机无法接收到上述控制信号,第二单片机进入低功耗模式,因此本发明提高了电路工作的稳定性。The present invention uses the first single-chip microcomputer to output a control signal to the second single-chip microcomputer when the external power supply is connected to the voltage conversion module, so as to control the second single-chip microcomputer to exit the low power consumption mode and reach the wake-up state; when the first single-chip microcomputer is not working, the second single-chip microcomputer The single-chip microcomputer cannot receive the above-mentioned control signal, and the second single-chip microcomputer enters the low power consumption mode, so the present invention improves the stability of the circuit operation.
附图说明Description of drawings
图1为本发明低功耗处理电路一实施例的电路结构示意图;Fig. 1 is a schematic diagram of the circuit structure of an embodiment of the low power consumption processing circuit of the present invention;
图2为本发明低功耗处理方法第一实施例的流程示意图;FIG. 2 is a schematic flowchart of the first embodiment of the low power consumption processing method of the present invention;
图3为本发明低功耗处理方法第二实施例的流程示意图;FIG. 3 is a schematic flowchart of a second embodiment of the low power consumption processing method of the present invention;
图4为本发明低功耗处理方法第三实施例的流程示意图。FIG. 4 is a schematic flowchart of a third embodiment of the low power consumption processing method of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明提供一种低功耗处理电路。The invention provides a low power consumption processing circuit.
参照图1,图1为本发明低功耗处理电路一实施例的电路结构示意图。本实施例提供的低功耗处理电路包括电压转换模块10、电池供电模块20、电子开关30、第一单片机40和第二单片机50,其中,Referring to FIG. 1 , FIG. 1 is a schematic diagram of a circuit structure of an embodiment of a low power consumption processing circuit of the present invention. The low power consumption processing circuit provided in this embodiment includes a voltage conversion module 10, a battery power supply module 20, an electronic switch 30, a first single-chip microcomputer 40 and a second single-chip microcomputer 50, wherein,
所述电压转换模块10的输入端与外接电源连接,输出端与所述第一单片机40的电源端连接,用于将所述外接电源的电压转换成适于所述第一单片机40工作的工作电压;The input terminal of the voltage conversion module 10 is connected to an external power supply, and the output terminal is connected to the power supply terminal of the first single-chip microcomputer 40 for converting the voltage of the external power supply into a work suitable for the operation of the first single-chip microcomputer 40. Voltage;
所述电池供电模块20的输出端与所述第二单片机50的电源端连接;The output end of the battery power supply module 20 is connected to the power end of the second single-chip microcomputer 50;
所述电子开关30用于控制电流单向流动,其一端与所述电压转换模块10的输出端连接,另一端与所述第二单片机50的电源端连接,用于限制电流从电池供电模块20流向第一单片机40;The electronic switch 30 is used to control the unidirectional flow of current, one end of which is connected to the output end of the voltage conversion module 10, and the other end is connected to the power supply end of the second single-chip microcomputer 50, and is used to limit the current from the battery power supply module 20 flow to the first single-chip microcomputer 40;
所述第一单片机40根据所述电压转换模块10与外接电源的连接状态输出控制信号至所述第二单片机50;The first single-chip microcomputer 40 outputs a control signal to the second single-chip microcomputer 50 according to the connection status between the voltage conversion module 10 and the external power supply;
所述第二单片机50根据所述控制信号进入低功耗模式或退出低功耗模式。The second single-chip microcomputer 50 enters the low power consumption mode or exits the low power consumption mode according to the control signal.
本实施例中,当电压转换模块10与外接电源断开连接时,第一单片机40无输入电源,不工作;第二单片机50由电池进行供电,且用于接收第一单片机40的控制信号引脚无法接收到上述控制信号,此时第二单片机50控制自身进入在低功耗模式,该低功耗模式为电子产品仅保留时钟、LCD指示等微弱功耗。In this embodiment, when the voltage conversion module 10 is disconnected from the external power supply, the first single-chip microcomputer 40 has no input power and does not work; pin can not receive the above-mentioned control signal, at this moment the second single-chip microcomputer 50 controls itself to enter in the low power consumption mode, and this low power consumption mode only reserves the weak power consumption such as clock, LCD indication for electronic product.
当电压转换模块10与外接电源连接时,外接电源通过电压转换模块10转换成预置电压后输出至第一单片机40的电源端为第一单片机40提供工作电压,同时通过电子开关30输出至第二单片机50的电源端为第二单片机50提供工作电压。此时第一单片机40内部产生一控制信号输出至第二单片机50,第二单片机50接收到该控制信号后可控制自身退出低功耗模式,以唤醒第二单片机50进入正常工作状态。When the voltage conversion module 10 is connected to an external power supply, the external power supply is converted into a preset voltage by the voltage conversion module 10 and then output to the power supply terminal of the first single-chip microcomputer 40 to provide operating voltage for the first single-chip microcomputer 40, and simultaneously output to the first single-chip microcomputer 40 through the electronic switch 30. The power terminal of the second single-chip microcomputer 50 provides the working voltage for the second single-chip microcomputer 50 . At this moment, the first single-chip microcomputer 40 generates a control signal and outputs it to the second single-chip microcomputer 50. After receiving the control signal, the second single-chip microcomputer 50 can control itself to exit the low power consumption mode, so as to wake up the second single-chip microcomputer 50 and enter the normal working state.
应当说明的是,上述控制信号的形式可根据实际需要进行设置,本实施例中,优选地该控制信号采用脉宽调制信号。It should be noted that the form of the above control signal can be set according to actual needs. In this embodiment, preferably, the control signal adopts a pulse width modulation signal.
本发明通过利用第一单片机40在外接电源与电压转换模块10连接时,输出控制信号至第二单片机50,从而控制第二单片机50退出低功耗模式,达到唤醒状态;在第一单片机40不工作时,第二单片机50无法接收到上述控制信号,第二单片机50进入低功耗模式,因此本发明提高了电路工作的稳定性。The present invention uses the first single-chip microcomputer 40 to output a control signal to the second single-chip microcomputer 50 when the external power supply is connected to the voltage conversion module 10, thereby controlling the second single-chip microcomputer 50 to exit the low power consumption mode and reach the wake-up state; when the first single-chip microcomputer 40 is not When working, the second single-chip microcomputer 50 cannot receive the above-mentioned control signal, and the second single-chip microcomputer 50 enters the low power consumption mode, so the present invention improves the stability of circuit operation.
应当说明的是,上述电子开关30的结构可根据实际需要进行设置。本实施例中,为了降低电路的设计难度和成本,优选地,上述电子开关30为二极管。具体地,在本实施例中,上述电子开关包括一第一二极管D1,所述第一二极管D1的阴极与所述第二单片机50的电源端连接,阳极与所述电压转换模块10的输出端连接。It should be noted that the structure of the above-mentioned electronic switch 30 can be set according to actual needs. In this embodiment, in order to reduce the design difficulty and cost of the circuit, preferably, the electronic switch 30 is a diode. Specifically, in this embodiment, the above-mentioned electronic switch includes a first diode D1, the cathode of the first diode D1 is connected to the power supply terminal of the second single-chip microcomputer 50, and the anode is connected to the voltage conversion module 10 output connections.
进一步地,基于上述实施例,本实施例中,上述低功耗处理电路还包括串接于所述第二单片机50电源端和所述电池供电模块20输出端之间的第二二极管D2,且所述第二二极管D2的阳极与所述电池供电模块20的输出端连接,阴极连接至所述电子开关30和第二单片机50电源端的公共连接点。Further, based on the above-mentioned embodiment, in this embodiment, the above-mentioned low-power consumption processing circuit further includes a second diode D2 connected in series between the power supply terminal of the second single-chip microcomputer 50 and the output terminal of the battery power supply module 20 , and the anode of the second diode D2 is connected to the output terminal of the battery power supply module 20 , and the cathode is connected to the common connection point of the electronic switch 30 and the power supply terminal of the second single-chip microcomputer 50 .
本实施例中,由于电池供电模块20输出的电压低于电压转换模块10转换后得到的电压,从而当外接电源与电压转换模块10连接时,第二二极管D2的阴极电压大于阳极电压,使得第二二极管D2截止,由外接电源为第二单片机50供电。本实施例中,通过第二二极管D2的单向导电性,可进一步防止受外接电源的冲击对电池供电模块20中电池的损坏,从而有效延长电池的使用寿命。In this embodiment, since the voltage output by the battery power supply module 20 is lower than the voltage converted by the voltage conversion module 10, when the external power supply is connected to the voltage conversion module 10, the cathode voltage of the second diode D2 is greater than the anode voltage, The second diode D2 is turned off, and the second single-chip microcomputer 50 is powered by an external power supply. In this embodiment, the unidirectional conductivity of the second diode D2 can further prevent the battery in the battery power supply module 20 from being damaged by the impact of the external power supply, thereby effectively prolonging the service life of the battery.
进一步地,基于上述实施例,本实施例中,上述第一单片机40具体用于当外接电源与所述电压转换模块10连接时,所述第一单片机40输出脉宽调制信号至所述第二单片机50的中断输入端;所述第二单片机50在预置时间段内中断输入端接收的脉冲数量为零时,进入低功耗模式;所述第二单片机50在低功耗模式下,当在预置时间段内中断输入端接收的脉冲数量大于预设值时,退出低功耗模式。Further, based on the above embodiment, in this embodiment, the above-mentioned first single-chip microcomputer 40 is specifically used to output a pulse width modulation signal to the second single-chip microcomputer 40 when an external power supply is connected to the voltage conversion module 10. The interrupt input terminal of the single-chip microcomputer 50; when the number of pulses received by the interrupt input terminal of the second single-chip microcomputer 50 is zero in the preset time period, it enters the low power consumption mode; the second single-chip microcomputer 50 is in the low power consumption mode, when When the number of pulses received by the interrupt input terminal is greater than a preset value within a preset time period, the low power consumption mode is exited.
应当说明的是,上述预置时间段的时间长度和预设值的大小都可根据实际需要进行设置,本实施例中,通过判断预置时间段内第二单片机50接收的脉冲数量,从而控制第二单片机50进入低功耗模式或者退出低功耗模式,从而有效防止了外接电源在插头处由于接触不良形成断续断电使得第二单片机50多次切换对电路稳定性的影响,因此本实施例提供的低功耗处理电路提高了电路的稳定性。It should be noted that the length of the preset time period and the size of the preset value can be set according to actual needs. In this embodiment, by judging the number of pulses received by the second single-chip microcomputer 50 within the preset time period, the control The second single-chip microcomputer 50 enters the low-power consumption mode or exits the low-power consumption mode, thereby effectively preventing the external power supply from causing intermittent power failures at the plug due to poor contact so that the second single-chip microcomputer 50 is switched multiple times. The low power consumption processing circuit provided by the embodiment improves the stability of the circuit.
本发明还提供了一种基于上述实施例中低功耗处理电路的低功耗处理方法,结合参照图2,图2为本发明低功耗处理方法第一实施例的流程示意图。本实施例提供的低功耗处理方法包括以下步骤:The present invention also provides a low-power processing method based on the low-power processing circuit in the above embodiment. Referring to FIG. 2 , FIG. 2 is a schematic flow chart of the first embodiment of the low-power processing method of the present invention. The low power consumption processing method provided in this embodiment includes the following steps:
步骤S10,当第一单片机40上电时,输出控制信号至第二单片机50;Step S10, when the first single-chip microcomputer 40 is powered on, output a control signal to the second single-chip microcomputer 50;
步骤S20,所述第二单片机50接收所述控制信号,并根据所述控制信号退出低功耗工作模式;Step S20, the second single-chip microcomputer 50 receives the control signal, and exits the low power consumption mode according to the control signal;
步骤S30,所述第二单片机50未接收到所述控制信号时,进入低功耗工作模式。Step S30, when the second single-chip microcomputer 50 does not receive the control signal, it enters a low power consumption working mode.
本实施例中,当电压转换模块10与外接电源断开连接时,第一单片机40无输入电源,不工作,从而不输出控制信号;第二单片机50由电池进行供电,且用于接收第一单片机40的控制信号引脚无法接收到上述控制信号,此时第二单片机50控制自身进入在低功耗模式,该低功耗模式为电子产品仅保留时钟、LCD指示等微弱功耗。In this embodiment, when the voltage conversion module 10 is disconnected from the external power supply, the first single-chip microcomputer 40 has no input power, does not work, and thus does not output a control signal; the second single-chip microcomputer 50 is powered by a battery, and is used to receive the first The control signal pin of the single-chip microcomputer 40 cannot receive the above-mentioned control signal. At this time, the second single-chip microcomputer 50 controls itself to enter a low power consumption mode. This low power consumption mode is only a weak power consumption such as clock and LCD indication for electronic products.
当电压转换模块10与外接电源连接时,外接电源通过电压转换模块10转换成预置电压后输出至第一单片机40的电源端为第一单片机40提供工作电压,同时通过电子开关30输出至第二单片机50的电源端为第二单片机50提供工作电压。此时第一单片机40内部产生一控制信号输出至第二单片机50,第二单片机50接收到该控制信号后可控制自身退出低功耗模式,以唤醒第二单片机50进入正常工作状态。When the voltage conversion module 10 is connected to an external power supply, the external power supply is converted into a preset voltage by the voltage conversion module 10 and then output to the power supply terminal of the first single-chip microcomputer 40 to provide operating voltage for the first single-chip microcomputer 40, and simultaneously output to the first single-chip microcomputer 40 through the electronic switch 30. The power terminal of the second single-chip microcomputer 50 provides the working voltage for the second single-chip microcomputer 50 . At this moment, the first single-chip microcomputer 40 generates a control signal and outputs it to the second single-chip microcomputer 50. After receiving the control signal, the second single-chip microcomputer 50 can control itself to exit the low power consumption mode, so as to wake up the second single-chip microcomputer 50 and enter the normal working state.
应当说明的是,上述控制信号的形式可根据实际需要进行设置,本实施例中,优选地该控制信号采用脉宽调制信号。It should be noted that the form of the above control signal can be set according to actual needs. In this embodiment, preferably, the control signal adopts a pulse width modulation signal.
本发明通过利用第一单片机40在外接电源与电压转换模块10连接时,输出控制信号至第二单片机50,从而控制第二单片机50退出低功耗模式,达到唤醒状态;在第一单片机40不工作时,第二单片机50无法接收到上述控制信号,第二单片机50进入低功耗模式,因此本发明提高了电路工作的稳定性。The present invention uses the first single-chip microcomputer 40 to output a control signal to the second single-chip microcomputer 50 when the external power supply is connected to the voltage conversion module 10, thereby controlling the second single-chip microcomputer 50 to exit the low power consumption mode and reach the wake-up state; when the first single-chip microcomputer 40 is not When working, the second single-chip microcomputer 50 cannot receive the above-mentioned control signal, and the second single-chip microcomputer 50 enters the low power consumption mode, so the present invention improves the stability of circuit operation.
进一步地,结合参照图3和图4,图3为本发明低功耗处理方法第二实施例的流程示意图,图4为本发明低功耗处理方法第三实施例的流程示意图。基于上述实施例,第二实施例和第三实施例中,上述步骤S20具体包括:Further, referring to FIG. 3 and FIG. 4 in combination, FIG. 3 is a schematic flowchart of a second embodiment of the low-power processing method of the present invention, and FIG. 4 is a schematic flowchart of a third embodiment of the low-power processing method of the present invention. Based on the above embodiments, in the second embodiment and the third embodiment, the above step S20 specifically includes:
步骤S21,所述第二单片机50的中断输入端接收所述控制信号;Step S21, the interrupt input terminal of the second single-chip microcomputer 50 receives the control signal;
步骤S22,判断在预置时间段内所述中断输入端的脉冲数量是否大于预设值;若是则执行步骤S23,若否则执行步骤S24。Step S22, judging whether the number of pulses at the interrupt input terminal within a preset time period is greater than a preset value; if yes, execute step S23; otherwise, execute step S24.
步骤S23,所述第二单片机50退出低功耗模式;Step S23, the second single-chip microcomputer 50 exits the low power consumption mode;
步骤S24,所述第二单片机50进入低功耗模式。Step S24, the second single-chip microcomputer 50 enters a low power consumption mode.
基于上述实施例,第三实施例中,上述步骤S30具体为:当在预置时间段内所述中断输入端的脉冲数量为零时,第二单片机50进入低功耗模式。Based on the above embodiments, in the third embodiment, the above step S30 specifically includes: when the number of pulses at the interrupt input terminal is zero within a preset time period, the second single-chip microcomputer 50 enters a low power consumption mode.
应当说明的是该步骤S30是在上述步骤S23之后执行的。It should be noted that this step S30 is performed after the above step S23.
具体地上述预置时间段的时间长度和预设值的大小都可根据实际需要进行设置,本实施例中,通过判断预置时间段内第二单片机50接收的脉冲数量,从而控制第二单片机50进入低功耗模式或者退出低功耗模式,从而有效防止了外接电源在插头处由于接触不良形成断续断电使得第二单片机50多次切换对电路稳定性的影响,因此本实施例提供的低功耗处理电路提高了电路的稳定性。Specifically, the time length of the above-mentioned preset time period and the size of the preset value can be set according to actual needs. In this embodiment, by judging the number of pulses received by the second single-chip microcomputer 50 in the preset time period, the second single-chip microcomputer is controlled. 50 enters the low-power consumption mode or exits the low-power consumption mode, thereby effectively preventing the external power supply from causing intermittent power failures at the plug due to poor contact and making the second single-chip microcomputer 50 times switch the impact on circuit stability, so this embodiment provides The low-power processing circuit improves the stability of the circuit.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310573609.3A CN103605420B (en) | 2013-11-15 | 2013-11-15 | Low power consumption processing circuit and low power consumption processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310573609.3A CN103605420B (en) | 2013-11-15 | 2013-11-15 | Low power consumption processing circuit and low power consumption processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103605420A CN103605420A (en) | 2014-02-26 |
| CN103605420B true CN103605420B (en) | 2017-01-11 |
Family
ID=50123653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310573609.3A Active CN103605420B (en) | 2013-11-15 | 2013-11-15 | Low power consumption processing circuit and low power consumption processing method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103605420B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107290670A (en) * | 2016-04-01 | 2017-10-24 | 海洋王(东莞)照明科技有限公司 | Power display circuit and its control method, lamp |
| CN107422874B (en) * | 2017-07-24 | 2023-10-24 | 广东迪控电子科技有限公司 | Multifunctional key communication method |
| CN110224693A (en) * | 2018-03-02 | 2019-09-10 | 中科院微电子研究所昆山分所 | A kind of leakage current protection circuit |
| CN114839909B (en) * | 2022-04-27 | 2025-07-22 | 烟台杰瑞石油服务集团股份有限公司 | Low-power consumption control system and interaction method inside same |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1801132A (en) * | 2004-12-31 | 2006-07-12 | 联想(北京)有限公司 | Computer with multiple processors and operating method thereof |
| CN1860446A (en) * | 2003-12-16 | 2006-11-08 | 苹果计算机公司 | Almost-symmetric multiprocessor that supports high-performance and energy-efficient execution |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2005107615A (en) * | 2003-09-29 | 2005-04-21 | Citizen Watch Co Ltd | Electronic device |
-
2013
- 2013-11-15 CN CN201310573609.3A patent/CN103605420B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1860446A (en) * | 2003-12-16 | 2006-11-08 | 苹果计算机公司 | Almost-symmetric multiprocessor that supports high-performance and energy-efficient execution |
| CN1801132A (en) * | 2004-12-31 | 2006-07-12 | 联想(北京)有限公司 | Computer with multiple processors and operating method thereof |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103605420A (en) | 2014-02-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108508868B (en) | Ignition signal wake-up circuit and control method of a motor controller | |
| CN103605420B (en) | Low power consumption processing circuit and low power consumption processing method | |
| CN109840006A (en) | Main control chip power supply unit | |
| CN104216494A (en) | Single chip microcomputer controlled power grid detection and reset circuit | |
| CN101943942A (en) | Electronic device with sleep function and method for wakening same | |
| CN204659637U (en) | Based on the car load CAN wake-up circuit of TJA1041AT interface chip | |
| CN104700593B (en) | Power-saving remote control device | |
| CN104020696A (en) | Cooking appliance and control method for reducing standby power consumption | |
| CN206251340U (en) | A low-power wireless communication device for on-line monitoring system of transmission line | |
| CN201570897U (en) | Two-supply switching circuit for electronic-type electric energy meter | |
| CN103981919B (en) | A kind of devices and methods therefor extending excavator airborne communication terminal standby time | |
| CN104578377B (en) | Cabinet power-supply system, power supply method for handover control and cabinet | |
| EP2720356B1 (en) | Power supply system and power control circuit thereof | |
| CN205353647U (en) | Low -power consumption button awakening circuit | |
| TW201321955A (en) | Power control device and electronic device using the same | |
| CN113467285A (en) | Low-power consumption control system, lifting system and lifting table | |
| CN104698899A (en) | Method and device for controlling standby power consumption of dish washer | |
| CN203134096U (en) | Remote control receiving awakening circuit and air-conditioner with same | |
| CN205787709U (en) | A kind of low-power scm formula power source management control system | |
| CN205283196U (en) | Clock power supply circuit for battery management system | |
| CN204118792U (en) | A kind of UEM | |
| CN204080913U (en) | A kind of device extending excavator airborne communication terminal standby time | |
| US10243378B2 (en) | Discharge protection circuit and its control method | |
| CN202997691U (en) | An automatic switching circuit capable of switching power between a power supply and a battery in an electronic switch | |
| CN210836531U (en) | A Single-Cell 1.5V Battery-Powered Low Standby Power Transmitter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C53 | Correction of patent for invention or patent application | ||
| CB03 | Change of inventor or designer information |
Inventor after: Huang Shufeng Inventor after: Yuan Hongbin Inventor after: Yang Le Inventor after: Fang Zhen Inventor after: Huang Bing Inventor after: Dong Yuan Inventor after: Li Xinhe Inventor after: Yang Liping Inventor after: Huang Kaiping Inventor after: Ma Baizhong Inventor after: Lei Jun Inventor after: Zhang Yongliang Inventor after: Qiao Weijun Inventor before: Li Xinhe Inventor before: Yuan Hongbin Inventor before: Yang Le Inventor before: Fang Zhen Inventor before: Huang Bing Inventor before: Yang Liping Inventor before: Huang Shufeng Inventor before: Huang Kaiping Inventor before: Ma Baizhong Inventor before: Lei Jun Inventor before: Dong Yuan Inventor before: Zhang Yongliang Inventor before: Qiao Weijun |
|
| COR | Change of bibliographic data |
Free format text: CORRECT: INVENTOR; FROM: LI XINHE YANG LIPING HUANG SHUFENG HUANG KAIPING MA BAIZHONG LEI JUN DONG YUAN ZHANG YONGLIANG QIAO WEIJUN YUAN HONGBIN YANG LE FANG ZHEN HUANG BING TO: HUANG SHUFENG DONG YUAN LI XINHE YANG LIPING HUANG KAIPING MA BAIZHONG LEI JUN ZHANG YONGLIANG QIAO WEIJUN YUAN HONGBIN YANG LE FANG ZHEN HUANG BING |
|
| GR01 | Patent grant | ||
| GR01 | Patent grant |