Power-down data storage device
By designing a power-down data storage device that includes components such as current limiting modules, capacitor modules, etc., the problem of data loss during power-down is solved, and the timely storage and integrity guarantee of data after power-down is achieved.
Patent Information
- Application Number
- CN202421867514.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2034-08-05
AI Technical Summary
Modern industrial equipment may cause abnormal data loss when power is lost, affecting the integrity of the data.
A power-down data storage device is designed, including a current limiting module, a capacitor module, a hysteresis control module, a power-down detection module, a power-down conversion module, a control module and a storage module. When power is lost, the device uses a capacitor module to supply power to the power conversion module to ensure that the control module can store data in a timely manner.
It effectively ensures the data integrity of the equipment at the moment of power outage, ensures that data can be stored in time after power outage, and avoids data loss.
Smart Images

Figure CN223051696U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of data storage, in particular to a power-off data storage device. Background Art
[0002] For modern industrial equipment, the requirement for data preservation is getting higher and higher, and various data during operation need to be recorded. When the traditional equipment is powered normally, the MCU can timely store information in the memory. Once the power is off, the MCU is still in the working state, and the data during the power-off process may be abnormally lost. Therefore, in order to ensure the data integrity of the equipment from startup to shutdown, it is particularly important to store the data during the power-off process in a timely manner. Summary of the Utility Model
[0003] To solve the technical problems in the background art, the utility model proposes a power-off data storage device.
[0004] A power-off data storage device proposed by the utility model includes: a current limiting module, a capacitor module, a hysteresis control module, a power-off detection module, a power conversion module, a control module, and a storage module;
[0005] The output end of the current limiting module, the first end of the hysteresis control module, and the output end of the power-off detection module are respectively used to connect to an external power supply;
[0006] The output end of the current limiting module is connected to the input end of the capacitor module, the output end of the capacitor module is electrically connected to the second input end of the hysteresis control module, the output end of the hysteresis control module is electrically connected to the input end of the power conversion module, and the output end of the power conversion module is electrically connected to the input end of the control module;
[0007] The output end of the power-off detection module is connected to the input end of the control module, and the output end of the control module is connected to the input end of the storage module.
[0008] Preferably, the capacitor module includes diodes D1 and D2, capacitors C1, C2, and a V_BAT pin. The input end of D2 is connected to the input end of the current limiting module, the input end of diode D1 is connected to the output end of the current module, diodes D1, capacitors C1, C2, and the V_BAT pin are connected in series in sequence, and the V_BAT pin is grounded.
[0009] Preferably, the current limiting module includes resistors R1 and R2. R1 and R2 are connected in parallel and then connected in series between the external power supply and the input end of D1.
[0010] Preferably, the current limiting module further includes resistors R3 and R4. R3 is connected in parallel with C1, and R4 is connected in parallel with C2.
[0011] Preferably, the hysteresis control module includes a hysteresis control circuit, which includes resistors R5, R6, R7, R8, R9, R10, R11, R12, a comparator U1, capacitors C3, C4, and C5, MOS transistors Q1 and Q2, and a diode D3.
[0012] Preferably, the comparator U1 is connected between the V_BAT pin and the ground. The input terminal of C4 is connected to the V_BAT pin, and the output terminal of C4 is grounded.
[0013] The output terminal of R8 is connected to the V_BAT pin. The output terminal of R8 is respectively connected to the input terminal of R5, the input terminal of C3, and the negative input terminal of U1. The output terminal of U1 is connected to the gate of Q2. The source of Q2 is connected to the V_BAT pin, and the drain of Q2 is connected to the input terminal of D3. The output terminal of D3 serves as the output terminal of the hysteresis control circuit.
[0014] The input terminal of R9 is used to connect to the reference REF voltage. The output terminal of R9 is respectively connected to the positive input terminal of U1 and the input terminal of R7. The output terminal of R7 is respectively connected to the input terminal of R6 and the drain of Q1.
[0015] The output terminal of R5, the output terminal of C3, and the input terminal of R6 are connected together and then respectively connected to the source of Q1 and the ground. The gate of Q1 is connected to the input terminal of R11. R10 is connected between the source and the gate of Q1. The output terminal of R11 is connected to the input terminal of D3.
[0016] The input terminal of R12 is connected to the V_BAT pin. The output terminal of R12 is connected to the gate of Q2. C5 is connected in parallel with R12.
[0017] Preferably, R10 is a variable resistor.
[0018] Among them, the current limiting module is used to limit the current of the external power supply to a predetermined current to charge the capacitor module.
[0019] The power-off detection module is used to detect whether a power-off occurs and send a power-off signal to the control module when a power-off occurs.
[0020] The hysteresis control module is used to supply power to the power conversion module with the external power supply when the external power supply is not powered off, or supply power to the power conversion module with the capacitor module when a power-off occurs.
[0021] The power conversion module is used to convert the power supply of the hysteresis control module into a predetermined voltage to supply power to the control module and the memory.
[0022] The control module is used to store data in the memory when detecting a power-off signal.
[0023] In the present utility model, a power-off data storage device is proposed. The present utility model can supply power to the power conversion module with a capacitor module when power is off, so that the control module is used to store data on the memory when detecting a power-off signal to ensure the data integrity at the moment of power-off. Description of the Drawings
[0024] Figure 1 It is a block diagram of the power-off data storage device in an embodiment proposed by the present utility model.
[0025] Figure 2 It is a circuit schematic diagram of the current-limiting module and the capacitor module in an embodiment proposed by the present utility model.
[0026] Figure 3 It is a circuit schematic diagram of the hysteresis control circuit in an embodiment proposed by the present utility model.
[0027] Figure 4 It is a schematic diagram of the power supply hysteresis in an embodiment proposed by the present utility model. Detailed Embodiment
[0028] It should be noted that, without conflict, the embodiments in the present utility model and the features in the embodiments can be combined with each other. The present utility model will be described in detail below with reference to the drawings and in combination with the embodiments.
[0029] Refer to Figure 1 , a power-off data storage device proposed by the present utility model includes: a current-limiting module, a capacitor module, a hysteresis control module, a power-off detection module, a power conversion module, a control module, and a storage module;
[0030] The output end of the current-limiting module, the first end of the hysteresis control module, and the output end of the power-off detection module are respectively used to connect to an external power supply;
[0031] The output end of the current-limiting module is connected to the input end of the capacitor module, the output end of the capacitor module is electrically connected to the second input end of the hysteresis control module, the output end of the hysteresis control module is electrically connected to the input end of the power conversion module, and the output end of the power conversion module is electrically connected to the input end of the control module;
[0032] The output end of the power-off detection module is connected to the input end of the control module, and the output end of the control module is connected to the input end of the storage module.
[0033] Among them, the current-limiting module is used to limit the current of the external power supply to a predetermined current to charge the capacitor module;
[0034] The power-off detection module is used to detect whether power is off and send a power-off signal to the control module when power is off;
[0035] The hysteresis control module is used to supply power to the power conversion module with an external power supply when the external power supply is not powered off, or to supply power to the power conversion module with a capacitor module when powered off;
[0036] The power conversion module is used to convert the power supply of the hysteresis control module into a predetermined voltage to supply power to the control module and the memory;
[0037] The control module is used to store data in the memory when a power-off signal is detected.
[0038] The utility model can supply power to the power conversion module with a capacitor module when powered off, so that the control module can store data in the memory when a power-off signal is detected to ensure the data integrity at the moment of power-off.
[0039] Such as Figure 2 shown, in this embodiment, the capacitor module includes diodes D1 and D2, capacitors C1, C2 and the V_BAT pin. The input end of D2 is connected to the input end of the current limiting module, the input end of diode D1 is connected to the output end of the current module. Diodes D1, capacitors C1, C2 and the V_BAT pin are connected in series in turn, and the V_BAT pin is grounded.
[0040] In this embodiment, capacitor energy storage is used, which has lower cost, longer life and smaller volume compared with using a battery for energy storage, and the current flow direction of the capacitor module to the subsequent module after power-off is ensured by diodes D1 and D2.
[0041] After power-off, the capacitor module is the energy supply unit of the subsequent module. The working time of the subsequent module after power-off can be controlled by adjusting the capacitor capacity according to the actual application situation. Referring to CU = It, the power supply time T can be calculated, where C is the capacitor capacity, U is the 12V voltage, and I is the current required by the subsequent module.
[0042] In a further embodiment, the current limiting module includes resistors R1 and R2. R1 and R2 are connected in parallel and then connected in series between the external power supply and the input end of D1 to ensure that the charging current of the capacitor module is within a safe range.
[0043] In a further embodiment, the current limiting module further includes resistors R3 and R4. R3 is connected in parallel with C1, and R4 is connected in parallel with C2 to further adjust the charging current.
[0044] Such as Figure 3 shown, in this embodiment, the hysteresis control module includes a hysteresis control circuit. The hysteresis control circuit includes resistors R5, R6, R7, R8, R9, R10, R11, R12, comparator U1, capacitors C3, C4 and C5, MOS transistors Q1 and Q2, and diode D3.
[0045] Specifically, the comparator U1 is connected between the V_BAT pin and the ground. The input end of C4 is connected to the V_BAT pin, and the output end of C4 is grounded;
[0046] The output end of R8 is connected to the V_BAT pin. The output end of R8 is respectively connected to the input end of R5, the input end of C3, and the negative input end of U1. The output end of U1 is connected to the gate of Q2. The source of Q2 is connected to the V_BAT pin, and the drain of Q2 is connected to the input end of D3. The output end of D3 serves as the output end of this hysteresis control circuit;
[0047] The input end of R9 is used to connect to the reference REF voltage. The output end of R9 is respectively connected to the positive input end of U1 and the input end of R7. The output end of R7 is respectively connected to the input end of R6 and the drain of Q1;
[0048] The output end of R5, the output end of C3, and the input end of R6 are connected together and then respectively connected to the source of Q1 and the ground; The gate of Q1 is connected to the input end of R11. R10 is connected between the source and the gate of Q1; The output end of R11 is connected to the input end of D3;
[0049] The input end of R12 is connected to the V_BAT pin, the output end of R12 is connected to the gate of Q2, and C5 is in parallel with R12.
[0050] The hysteresis control circuit in this embodiment is used to charge the capacitor module when there is no power failure and make the power supply selection circuit supply power to the power change module with an external power supply; When power fails, the capacitor module discharges and supplies power to the power change module with the capacitor module, and can generate a power comparison hysteresis, thus avoiding the repeated opening and closing of the circuit of the control module.
[0051] In a further embodiment, R10 is a variable resistor.
[0052] This embodiment can adjust the resistance value of R10 to configure the hysteresis time according to the load size of the control module. When the control module and the capacitance are certain, the larger the resistance of R10, the longer the hysteresis point time, and the longer the available time for the control module to store data, which can effectively ensure the integrity of data storage, and the circuit is simple and has strong adaptability.
[0053] Next, the present invention will be described in conjunction with the embodiments and the drawings.
[0054] Embodiment 1
[0055] The external power supply is 12V. The current limiting resistor limits the external input power supply to 50mA to charge the capacitor. The circuits of the current limiting module and the capacitor module are as Figure 2 shown, and the hysteresis control circuit is as Figure 3As shown, let R8 = 10 kΩ, R5 = 4.7 kΩ, R9 = 30 kΩ, R7 = 20 kΩ, R6 = 10 kΩ, R10 = 3 kΩ, R11 = 4.7 kΩ, R12 = 4.7 kΩ, where R10 is a variable resistor.
[0056] In the hysteresis control circuit, U1 is a comparator, and the reference voltage REF_5V is used as the comparison voltage. According to the characteristics of the comparator U1, when V U1- > V U1+ , U1 outputs a low level; when V U1- < V U1+ , U1 outputs a high level.
[0057] The power supply of the entire system can be divided into three stages: The first stage: initial power-on, when the external power supply charges the capacitor module and serves as the energy supply unit for other circuits at the same time; The second stage: after the capacitor module is fully charged, the external power supply serves as the energy supply unit; The third stage: power-off stage, the capacitor module serves as the energy supply unit.
[0058] In the first and second stages, the external power supply of 12V passes through the Schottky diode D2 to act as the energy supply unit. At this time, the gate voltage of the N-MOS transistor Q1 satisfies the conduction state after being divided by R11 and R10 (4.6V), and R6 is equivalent to being shorted to ground.
[0059] Among them, in the first stage, the capacitor module is in the charging state, that is, the voltage at V_BAT is in the rising stage at all times and finally approaches 12V. At this time, the voltages at both ends of the comparator U1 are V U1- = V_BAT × R5 / (R8 + R5), V U1+ = 5 × R7 / (R7 + R9) = 2V; when the capacitor voltage V_BAT = 6.2V, V U1- = V U1+ = 2V, and the external power supply continues to charge the capacitor module; when V_BAT > 6.2V, V U1- > V U1+ , U1 outputs a low level, and the P-MOS transistor Q2 satisfies the conduction condition.
[0060] Among them, in the second stage, after the capacitor module is fully charged, V U1- = 3.8V > V U1+ = 2V, U1 outputs a low level, and the P-MOS transistor Q2 satisfies the conduction condition, that is, during the period when the V U1- voltage value ranges from 2V to 3.8V, Q2 is always in the conduction state.
[0061] Among them, in the third stage, the external power supply of 12V loses power, and the energy is provided by the capacitor module. The capacitor voltage in the capacitor module continuously drops. When the capacitor voltage drops to a value where the voltage divided by R11 and R10 from the gate-to-source threshold voltage of Q1 does not meet the conduction condition, at this time V’ U1+ = 5×(R7 + R6) / (R7 + R9 + R6) = 2.5V, the voltage at the positive input terminal of U1 rises, resulting in V U1- <V’ U1+ , U1 outputs a high level, and the P-MOS transistor Q2 does not meet the conduction condition, generating a power supply comparison hysteresis, thereby avoiding the phenomenon of repeated turning on of the 5V output. The voltage hysteresis is shown in Figure 4 .
[0062] Among them, the gate-to-source threshold voltage V th(GS) of Q1 is set to 2.5V. Therefore, the actual voltage U GS from the gate to the source of Q1 is U GS = V_BAT×R10 / (R10 + R11). If U GS >V th(GS) , the hysteresis point starts. If U GS <V th(GS) , the hysteresis point is postponed.
[0063] Therefore, this embodiment can configure the hysteresis time by adjusting the resistance value of R10 according to the load size of the control module. When the control module and the capacitance are fixed, the larger the R10 resistance, the longer the hysteresis point time, and the longer the available time for data storage in the control module.
[0064] This embodiment can ensure that the control module and the storage module can continue to work for 2s when the external circuit is powered off, so that the control module can store data in the storage module in time.
[0065] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present invention, according to the technical solution and the inventive concept of the present invention, makes equivalent replacements or changes, and should be covered within the protection scope of the present invention.
Claims
1. A power-off data storage device, characterized in that: include: Current limiting module, capacitor module, hysteresis control module, power failure detection module, power conversion module, control module and storage module; The output end of the current limiting module, the first end of the hysteresis control module and the output end of the power failure detection module are respectively used to connect to an external power supply; The output end of the current limiting module is connected to the input end of the capacitor module, the output end of the capacitor module is electrically connected to the second input end of the hysteresis control module, the output end of the hysteresis control module is electrically connected to the input end of the power conversion module, and the output end of the power conversion module is electrically connected to the input end of the control module; The output end of the power-off detection module is connected to the input end of the control module, and the output end of the control module is connected to the input end of the storage module.
2. The power-off data storage device according to claim 1, characterized in that: The capacitor module includes diodes D1 and D2, capacitors C1, C2 and a V_BAT pin. The input end of D2 is connected to the input end of the current limiting module, the input end of the diode D1 is connected to the output end of the current module, the diode D1, capacitors C1, C2 and the V_BAT pin are connected in series in sequence, and the V_BAT pin is grounded.
3. The power-off data storage device according to claim 2, characterized in that: The current limiting module includes resistors R1 and R2, which are connected in parallel and then in series between an external power supply and an input end of D1.
4. The power-off data storage device according to claim 3, characterized in that: The current limiting module also includes resistors R3 and R4, R3 is connected in parallel with C1, and R4 is connected in parallel with C2.
5. The power-off data storage device according to claim 2, characterized in that: The hysteresis control module includes a hysteresis control circuit, which includes resistors R5, R6, R7, R8, R9, R10, R11, R12, a comparator U1, capacitors C3, C4 and C5, MOS tubes Q1 and Q2, and a diode D3.
6. The power-off data storage device according to claim 5, characterized in that: The comparator U1 is connected between the V_BAT pin and the ground, the input end of C4 is connected to the V_BAT pin, and the output end of C4 is grounded; The output end of R8 is connected to the V_BAT pin, and the output end of R8 is respectively connected to the input end of R5, the input end of C3 and the negative input end of U1, the output end of U1 is connected to the gate of Q2, the source of Q2 is connected to the V_BAT pin, the drain of Q2 is connected to the input end of D3, and the output end of D3 serves as the output end of the hysteresis control circuit; The input end of R9 is used to connect the reference REF voltage, the output end of R9 is respectively connected to the positive input end of U1 and the input end of R7, and the output end of R7 is respectively connected to the input end of R6 and the drain of Q1; The output end of R5, the output end of C3 and the input end of R6 are connected to the source of Q1 and the ground respectively; the gate of Q1 is connected to the input end of R11, and R10 is connected between the source and gate of Q1; the output end of R11 is connected to the input end of D3; The input end of R12 is connected to the V_BAT pin, the output end of R12 is connected to the gate of Q2, and C5 is connected in parallel with R12.
7. The power-off data storage device according to claim 6, characterized in that: R10 is an adjustable resistor.