Dual-power-supply on-off state holding circuit

By designing a dual power switch and shutdown state holding circuit in marine equipment, using the touch switch and microprocessor to remember the device status, the problem of not being able to maintain the power switch after switching the backup power supply is solved, and the stable power supply of the device is achieved after power on is achieved and long life.

CN119051240APending Publication Date: 2024-11-29XIAMEN XINNUO TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411181777.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

After the main power supply is disconnected, the backup power supply cannot remember the power-on and off state after switching on, resulting in the device being unable to maintain the power-on or off state before the power-off is powered on.

Method used

A dual power switch, shutdown state holding circuit is designed, using a touch switch, microprocessor, relay and main and standby control circuit to control the relay, memory the on and off status of the device by outputting the power switch and shutdown pulse signals, and in the main and standby No delay switching between power modules.

Benefits of technology

Ensure that the equipment remains in the dual power supply state and working state before power outage after power is powered on, extending the service life of the main and backup power modules, and improving power supply stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119051240A_ABST
    Figure CN119051240A_ABST
Patent Text Reader

Abstract

The invention discloses a dual-power-supply on-off state retaining circuit which comprises a power-on key, a main power supply module, a standby power supply module, a microprocessor, a main control circuit, a standby control circuit and a relay. Wherein the power-on button is connected in series between a first external power supply and an enabling end of the main power supply module; the enabling end of the main power supply module is grounded through a resistor; the relay is a double-control double-circuit locking type relay, and the microprocessor outputs a power-on pulse signal and a power-off pulse signal respectively through two output ends so as to drive the relay. The circuit strictly standardizes the control logic of the main and standby power supplies through the on-off pulse signal of the microprocessor, the double-control double-circuit latch-up protection of the relay and the main and standby control circuit, so that only one of the main and standby power supply modules is in a working state, and the service life of the main and standby power supply modules can be greatly prolonged; and no-delay switching of the main power supply and the standby power supply is ensured, automatic power-on can be realized after recovery from an abnormal power-off state, and the power supply stability of equipment can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of marine navigation technology, and in particular to a dual-power switch state holding circuit. Background Art

[0002] The ship power supply system uses two power supply systems: main power supply and backup power supply. When the main power supply is suddenly disconnected, the backup power supply will switch on within 0-45 seconds. At this time, all equipment on the ship must remain in the power-on or power-off state before power failure after powering on. However, since the power on and off button is a touch switch, the power on and off state of the equipment cannot be memorized. Summary of the invention

[0003] The present invention provides a dual power on / off state holding circuit, which can memorize the on / off state of the device while using a light touch switch as the on / off key, thereby ensuring that the equipment on the ship maintains the dual power supply state and working state before power failure after power is turned on. The technical solution is as follows:

[0004] A dual power switch state holding circuit, comprising a power button, a main power module, a backup power module, a microprocessor, a main and backup control circuit and a relay;

[0005] The power button is connected in series between the first external power supply and the enable end of the main power module; the power button is a touch switch, and the enable end of the main power module is grounded through a resistor;

[0006] The microprocessor is provided with a first output terminal and a second output terminal; the first output terminal is used to output a power-on pulse signal, and the second output terminal is used to output a power-off pulse signal;

[0007] The relay is a double-control double-circuit latching relay, comprising a set coil, a reset coil, and a first switch and a second switch whose states are mutually exclusive; the set coil is driven by the power-on pulse signal, and when the set coil is energized, the first switch is closed and remains in a closed state after the set coil is energized, and the second switch is opened and remains in an open state after the set coil is energized; the reset coil is driven by the power-off pulse signal, and when the reset coil is energized, the first switch is opened and remains in an open state after the reset coil is energized, and the second switch is closed and remains in a closed state after the reset coil is energized;

[0008] The first switch and the power button are connected in parallel;

[0009] The second switch is connected between the enable terminal of the backup power module and the ground;

[0010] The main power supply module is powered by a first external power supply, and the output end of the main power supply module is connected to the first power supply to supply power to the first power supply; the first power supply is connected to the second power supply through a diode to supply power to the second power supply;

[0011] The backup power module is powered by a second external power supply, and the output end of the backup power module is connected to the second power supply through a diode to supply power to the second power supply;

[0012] The main-standby control circuit is used to shut down the output of the standby power module when the main power module has an output.

[0013] Furthermore, the microprocessor outputs a power-on pulse signal when powered on, and outputs a power-off pulse signal according to a power-off instruction.

[0014] Furthermore, the power-on pulse signal and the power-off pulse signal are high-level pulse signals.

[0015] Furthermore, the pulse width of the power-on pulse signal and the power-off pulse signal is not less than 5 ms.

[0016] Furthermore, when the power is turned on, the closing time of the power button is not less than 3s.

[0017] Furthermore, the main power supply module and the backup power supply module are conversion type DC-DC modules.

[0018] Furthermore, the main-standby control circuit includes an isolation driving device, and the isolation driving device is used to control the enable terminal of the backup power module to be grounded when the main power module has an output, so as to shut down the output of the backup power module.

[0019] Furthermore, the isolation driving chip is an optocoupler, one output end of the optocoupler is connected to the enable end of the backup power module, and the other end is grounded.

[0020] Furthermore, the input sides of the main power module and the backup power supply do not share a common ground, but the output sides share a common ground.

[0021] The present invention achieves the following technical effects:

[0022] This circuit strictly regulates the control logic of the main and standby power supplies, so that only one of the main and standby power supply modules is in working state, which can greatly extend the service life of the main and standby power supply modules; and ensures the delay-free switching of the main and standby power supplies. After recovering from an abnormal power-off state, it can automatically power on, which can greatly improve the power supply stability of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a circuit diagram of a dual power switch state holding circuit of the present invention;

[0024] Figure 2 It is a startup flow chart of the dual power switch state holding circuit of the present invention;

[0025] Figure 3 It is a shutdown flow chart of the dual power switch state holding circuit of the present invention. DETAILED DESCRIPTION

[0026] To further illustrate the various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, a person of ordinary skill in the art should be able to understand other possible implementations and advantages of the present invention. The components in the figures are not drawn to scale, and similar component symbols are generally used to represent similar components.

[0027] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.

[0028] like Figure 1 As shown, the present invention provides a dual power switch state holding circuit, which is mainly composed of a power button S1, a main power module U8, a backup power module U4, an MCU (microprocessor) U6, an optical coupler U5 and a relay RL1.

[0029] In this circuit, the power button S1 is a touch switch, which provides a power pulse for starting the main power module.

[0030] MCU U6 outputs PWM_ON_PULSE signal when powered on, and outputs PWM_OFF_PULSE signal when receiving shutdown command. Both PWM_ON_PULSE signal and PWM_OFF_PULSE signal are high level pulse signals, which are used to drive the set coil and reset coil of relay RL1 respectively.

[0031] Relay RL1 is a double-control double-circuit latching relay, such as G6SK-2G DC3, including a set coil (connected between pin 1 and pin 12), a reset coil (connected between pin 6 and pin 7), and a set of double-pole double-throw switches.

[0032] When the power is turned on, MCU U6 outputs PWM_ON_PULSE signal, which drives the set coil of relay RL1 through the drive circuit composed of Q1, so that the switch of RL1 is switched to the first state, pin 3 and pin 4 are shorted (i.e. PWR_MAIN_EN_A and PWR_MAIN_EN_B are shorted), and pin 10 and pin 9 are shorted (i.e. PWR_BACKUP_EN_A and PWR_BACKUP_EN_B are disconnected), and after the set coil action is completed, the switch of RL1 is kept in the first state. According to the use of the switch, we can define the switch between pin 3 and pin 4 as the first switch, and the switch between pin 10 and pin 9 as the second switch. The first switch and the second switch are in a mutually exclusive state. In the first state of RL1, the first switch is closed and the second switch is disconnected; in the second state of RL1, the first switch is disconnected and the second switch is closed.

[0033] When shutting down, MCU U6 outputs PWM_OFF_PULSE signal, and PWM_OFF_PULSE signal drives the reset coil of relay RL1 through the driving circuit composed of Q2, so that the switch of RL1 is switched to the second state, pin 4 and pin 5 are short-circuited (PWR_MAIN_EN_A and PWR_MAIN_EN_B are disconnected), and pin 8 and pin 9 are short-circuited (PWR_BACKUP_EN_A and PWR_BACKUP_EN_B are short-circuited), and after the reset coil action ends, the switch of RL1 is kept in the second state, that is, the first switch is disconnected and the second switch is closed.

[0034] When the power button S1 is closed, or PWR_MAIN_EN_A and PWR_MAIN_EN_B are short-circuited, the level of the enable terminal CTL of the main power module U8 is high, the main power module U8 works, and supplies power to the power supply 12V_MAIN. If the power supply 12V_MAIN has power, it supplies power to the power supply 12V. The power supply 12V is the system power supply, which is stepped down to power the MCU.

[0035] When the power supply 12V_MAIN has power and the input end of the optocoupler U5 has power, the output end of the optocoupler U5 is closed, and the level of the enable end CTL of the backup power supply module U4 is pulled to a low level. At this time, the backup power supply module U4 turns off the output and stops supplying power to the power supply 12V.

[0036] The output of the main power module U8 and the output of the backup power module U4 are short-circuited through diodes D1 and D2 respectively. The diodes D1 and D2 are unidirectionally conducted to complete the function of parallel connection of power outputs.

[0037] like Figure 2 As shown in the figure, the boot process of the device is as follows:

[0038] Press the power button S1, the main power module U8 is powered on, and the MCU is powered on.

[0039] MCU U6 sets the PA1 port to output a 5ms high-level pulse (i.e., PWM_ON_PULSE signal);

[0040] Under the action of the PWM_ON_PULSE signal, the switch of the relay RL1 is switched to the first state position (the first switch is closed and the second switch is open), PWM_MAIN_EN_A and PWM_MAIN_EN_B are short-circuited, that is, PWM_MAIN_EN is closed and PWM_BACKUP_EN is open.

[0041] When PWM_MAIN_EN is closed, when the power supply end of the main power module U8 is powered, the enable end CTL of the main power module U8 remains at a high level, the main power module U8 remains in working state, and supplies power to the power supply 12V_MAIN. To ensure that the enable end CTL of the main power module U8 remains at a high level when the main power module U8 is started, it is necessary to keep the power button S1 closed when PWM_MAIN_EN is closed. To this end, when starting up, it is necessary to press and hold the power button S1, and the closing time of the power button S1 is preferably not less than 3s.

[0042] When the main power supply module U8 is accidentally powered off, such as the power input terminal of the main power supply module U8 loses power, the main power supply module U8 has no output, and the power supply 12V_MAIN has no power; at this time, the enable terminal CTL of the backup power supply module U4 is suspended, and the backup power supply module U4 enters the working state, has output, and supplies power to the power supply 12V. At this time, the power supply 12V remains powered to supply power to the MCU U6 and other subsequent circuits.

[0043] like Figure 3 As shown in the figure, the shutdown process of the device is as follows:

[0044] The shutdown signal for the device to shut down is given by the MCU. When the shutdown command is input through the operation interface, the MCU sets PA2 to output a 5ms high-level pulse (i.e., PWM_OFF_PULSE signal).

[0045] Under the action of the PWM_OFF_PULSE signal, the switch of the relay RL1 is switched to the second state (ie, the first switch is open and the second switch is closed), PWM_BACKUP_EN_A and PWM_BACKUP_EN_B are short-circuited, ie, PWM_BACKUP_EN is closed; and PWR_MAIN_EN is opened at the same time.

[0046] Because PWR_MAIN_EN is disconnected, the enable terminal CTL of the main power module U8 is grounded, and the main power module U8 has no output; at the same time, because PWM_BACKUP_EN is closed, the enable terminal CTL of the backup power module U4 is grounded, and the backup power module U4 has no output.

[0047] Since both the main power module U8 and the backup power module U4 have no output, the 12V power supply is lost, the MCU loses power and shuts down, and the entire board is powered off.

[0048] Recovery process under abnormal power supply status:

[0049] In this circuit, when the MCU U6 does not output a shutdown pulse signal, the relay RL1 remains in the first state, that is, PWM_BACKUP_EN is closed; and at the same time, PWR_MAIN_EN is disconnected.

[0050] At this time, when there is power at the power input end of the main power module, the enable end CTL of the main power module U8 inputs a high level, and the main power module U8 automatically starts to enter the working state and has output; or when there is no power at the power input end of the main power module and there is power at the power input end of the backup power module, the enable end of the backup power supply U8 is in a floating state, and the backup power supply U8 automatically starts to enter the working state and has output.

[0051] In this embodiment, the MCU is powered by a 3.3V power supply, which is converted from a 12V power supply through a power management module such as a DC-DC module or an LDO.

[0052] In the example of this embodiment, the model of the MCU U6 is STM8S005K6T6; the model of the relay RL1 is G6SK-2G DC3.

[0053] In this embodiment, when the main power module is normal, the backup power module does not work; when the main power module is abnormal, it will automatically switch to the backup power module to work; when either the main power module or the backup power module is powered normally, the subsequent equipment is powered normally, and the MCU U6 must have power, and the MCU U6 can perform a normal shutdown operation according to the shutdown instruction to turn off the output of all power modules; in the shutdown state, the main power module is started by the power button, and the MCUU6 is powered on to perform the power-on operation, so that the main power module enters a continuous working state.

[0054] This circuit strictly regulates the control logic of the main and standby power supplies, so that only one of the main and standby power supply modules is in working state, which can greatly extend the service life of the main and standby power supply modules; and ensures the delay-free switching of the main and standby power supplies. After recovering from an abnormal power-off state, it can automatically power on, which can greatly improve the power supply stability of the equipment.

[0055] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.

Claims

1. A dual power switch state holding circuit, characterized in that: It includes a power button (S1), a main power module (U8), a backup power module (U4), a microprocessor (U6), a main and backup control circuit and a relay (RL1); The power button (S1) is connected in series between the first external power supply and the enable end of the main power module (U8); the power button (S1) is a touch switch, and the enable end of the main power module (U8) is grounded through a resistor; The microprocessor (U6) is provided with a first output end and a second output end; the first output end is used to output a power-on pulse signal, and the second output end is used to output a power-off pulse signal; The relay (RL1) is a double-control double-circuit latching relay, comprising a set coil, a reset coil, and a first switch and a second switch whose states are mutually exclusive; the set coil is driven by the power-on pulse signal, and when the set coil is energized, the first switch is closed and remains in a closed state after the set coil is energized, and the second switch is opened and remains in an open state after the set coil is energized; the reset coil is driven by the power-off pulse signal, and when the reset coil is energized, the first switch is opened and remains in an open state after the reset coil is energized, and the second switch is closed and remains in a closed state after the reset coil is energized; The first switch and the power button (S1) are connected in parallel; The second switch is connected across the enable terminal of the backup power module (U4) and the ground; The main power module (U8) is powered by a first external power supply, and the output end of the main power module (U8) is connected to the first power supply (12V_MAIN) to supply power to the first power supply (12V_MAIN); the first power supply (12V_MAIN) is connected to the second power supply (12V) via a diode (D1) to supply power to the second power supply (12V); The backup power module (U4) is powered by a second external power supply, and the output end of the backup power module (U4) is connected to the second power supply (12V) via a diode (D2) to supply power to the second power supply (12V); The main-standby control circuit is used to shut down the output of the standby power module when the main power module has an output.

2. The dual power supply on / off state holding circuit according to claim 1, characterized in that: The microprocessor (U6) outputs a power-on pulse signal when powered on, and outputs a power-off pulse signal according to a power-off instruction.

3. The dual power switch state holding circuit according to claim 1, characterized in that: The power-on pulse signal and the power-off pulse signal are high-level pulse signals.

4. The dual power switch state holding circuit according to claim 1, characterized in that: The pulse width of the power-on pulse signal and the power-off pulse signal is not less than 5 ms.

5. The dual power switch state holding circuit according to claim 1, characterized in that: When the power is turned on, the closing time of the power button is not less than 1s.

6. The dual power switch state holding circuit according to claim 1, characterized in that: The main power supply module and the backup power supply module are conversion type DC-DC modules.

7. The dual power supply on / off state holding circuit according to claim 1, characterized in that: The main-standby control circuit comprises an isolation driving device, and the isolation driving device is used to control the enabling terminal of the standby power module (U4) to be grounded when the main power module has an output, so as to shut down the output of the standby power module (U4).

8. The dual power supply on / off state holding circuit according to claim 7, characterized in that: The isolation driving chip is an optical coupler, one output end of the optical coupler is connected to the enable end of the backup power supply module (U4), and the other end is grounded.

9. The dual power supply on / off state holding circuit according to claim 1, characterized in that: The input sides of the main power module and the backup power supply are not grounded, but the output sides are grounded.