RTC module control circuit and SoC chip

By designing the RTC module control circuit, using delay circuits and switching circuits, the RTC module is controlled to enter the power-on working mode after the SoC chip is powered on. This solves the problem of the SoC chip power-on process interfering with the RTC module and ensures the stable operation of the RTC module. .

CN221828896UActive Publication Date: 2024-10-11MAXIO TECHNOLOGY (HANGZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323553579.8
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-10-11
Estimated Expiration
2033-12-25

Smart Images

  • Figure CN221828896U_ABST
    Figure CN221828896U_ABST
Patent Text Reader

Abstract

The utility model provides an RTC module control circuit and an SoC chip, relates to the field of chip design, and solves the problem that an RTC module is interfered by a power-on process of the SoC chip in related technologies. The RTC module control circuit comprises a time delay circuit, a switching circuit and a power supply. The time delay circuit is used for delaying an input power-on signal; the switching circuit is used for outputting an RTC control signal according to the delayed power-on signal and the power supply; under the condition that power-on of the power supply is completed, the power-on signal is in a high-level state, and the switching circuit is used for outputting an RTC control signal higher than a preset threshold value according to the power-on signal in the high-level state and the power supply; the RTC control signal higher than the preset threshold value is used for controlling the working mode of the RTC module to be a power-on working mode. The RTC module control circuit is used for controlling the working mode of the RTC module, and interference on the internal RTC module in the SoC chip power-on process is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the field of chip design, in particular to an RTC module control circuit and a SoC chip. Background Art

[0002] With the development of technology, in order to reduce the area of ​​PCB (Printed Circuit Board), reduce system cost and complexity of system design, the integration of SoC (System on Chip) chips is getting higher and higher.

[0003] In chip design, the RTC (Real Time Communication) module that provides clock and calendar functions is generally implemented using an RTC chip independent of the SoC chip. In order to improve the integration of the SoC chip, related technologies gradually integrate the RTC module into the interior of the SoC chip.

[0004] However, there is a problem in the related art that the RTC module is disturbed by the power-on process of the SoC chip. For example, the RTC module needs to keep working normally and stably, but the SoC chip has an uncertain state during the power-on process, which interferes with the normal operation of the RTC module, causing the timing function of the RTC module to fail or stop working. Utility Model Content

[0005] In order to solve the problem in the related art that the RTC module is interfered with by the power-on process of the SoC chip, the present application provides an RTC module control circuit and a SoC chip, which can control the working mode of the RTC module by setting the RTC module control circuit to avoid interference of the SoC chip power-on process on the internal RTC module.

[0006] In a first aspect, an embodiment of the present application provides an RTC module control circuit, including:

[0007] A delay circuit, a switch circuit and a power supply, wherein the delay circuit is connected to the switch circuit, and the power supply is connected to the switch circuit;

[0008] The delay circuit is used to delay the input power-on signal;

[0009] The switch circuit is used to output the RTC control signal according to the delayed power-on signal and the power supply;

[0010] Among them, when the power supply is powered on, the power-on signal is in a high level state, and the switching circuit is used to output an RTC control signal higher than a preset threshold value according to the power-on signal in the high level state and the power supply; wherein the RTC control signal higher than the preset threshold value is used to control the working mode of the RTC module to the power-on working mode.

[0011] In the second aspect, an embodiment of the present application provides a SoC chip, comprising: the real-time clock RTC module control circuit of the first aspect, and an RTC module connected to the RTC module control circuit; the input end of the RTC module control circuit is used to receive a power-on signal, and the output end of the RTC module control circuit is used to output an RTC control signal to the RTC module.

[0012] In the utility model, the RTC module control circuit includes a delay circuit, a switch circuit and a power supply, the delay circuit is connected to the switch circuit, and the power supply is connected to the switch circuit; the delay circuit is used to delay the input power-on signal; the switch circuit is used to output the RTC control signal according to the delayed power-on signal and the power supply; wherein, when the power supply is powered on, the power-on signal is in a high level state, and the switch circuit is used to output the RTC control signal higher than the preset threshold according to the power-on signal and the power supply in the high level state; wherein, the RTC control signal higher than the preset threshold is used to control the working mode of the RTC module to the power-on working mode. In this way, the power-on signal is delayed by the delay circuit, and the RTC control signal is output according to the power-on signal and the power supply after the power-on signal is delayed for a period of time, and the RTC module is controlled to perform the power-on working mode, realizing the control function of the RTC module entering the power-on working mode after the delay wait for the SoC chip to be powered on, and avoiding the interference of the RTC module by the power-on process of the SoC chip. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the embodiments of the present invention and do not constitute an improper limitation on the present invention. In the drawings:

[0014] Figure 1 A structural schematic diagram of an RTC module control circuit provided in an embodiment of the present application;

[0015] Figure 2 A structural schematic diagram of another RTC module control circuit provided in an embodiment of the present application;

[0016] Figure 3 A structural schematic diagram of a SoC chip provided in an embodiment of the present application.

[0017] Description of reference numerals:

[0018] 10-SoC chip; 100-RTC module control circuit; 110-delay circuit; R1-first resistor; R2-second resistor; C1-capacitor; 120-switch circuit; Q1-first switch tube; Q2-second switch tube; R3-third resistor; R4-fourth resistor; 130-power supply; 5V-rated voltage of power supply; 140-voltage divider circuit; R5-fifth resistor; R6-sixth resistor; 200-power-on reset circuit; POR_RSTN-reverse output end of power-on reset circuit; 300-RTC module; RTC_DET_VOL-control end of RTC module. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly described below in conjunction with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0020] The term "first" or "second" in the specification and claims of this application may include one or more of the features explicitly or implicitly. In the description of this application, unless otherwise specified, "plurality" means two or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally means that the objects connected before and after are in an "or" relationship.

[0021] In the description of this application, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0022] As described in the background technology, there is a problem in the related art that the power-on process of the SoC chip interferes with its internal RTC module. For example, the RTC module needs to keep working normally and stably, but the SoC chip has an uncertain state during the power-on process, which interferes with the normal operation of the RTC module, causing the timing function of the RTC module to fail or stop working.

[0023] Based on this, an RTC module control circuit provided in an embodiment of the present application controls the power-on working mode of the RTC module inside the SoC chip to avoid interference of the internal RTC module during the power-on process of the SoC chip.

[0024] In addition, the SoC chip also has an uncertain state during the power-off process, which interferes with the normal operation of the RTC module, causing the timing function of the RTC module to fail or stop working. Based on this, the RTC module control circuit provided in the embodiment of the present application also controls the power-off working mode of the RTC module inside the SoC chip to avoid interference of the SoC chip power-off process on the internal RTC module.

[0025] Among them, the RTC module control circuit provided in the embodiment of the present application can output an RTC control signal, and the RTC control signal can be used to control the working mode of the RTC module. The working mode of the RTC module may include a power-on working mode and a power-off working mode. When the RTC module is in the power-on working mode, the SoC chip can read and write the registers of the RTC module through the data interface, and can also perform operations such as resetting the RTC module. When the RTC module is in the power-off working mode, the RTC module is isolated from the SoC chip, and the uncertain state of the SoC chip will not be transmitted to the inside of the RTC module, ensuring that the RTC module is not interfered with.

[0026] It should be pointed out that the RTC module control circuit provided in the embodiment of the present application can be applied to a SoC chip including an RTC module. By adding a control circuit to the SoC chip to control the working mode of the RTC module, the unstable state of the SoC chip can be prevented from interfering with the normal and stable operation of the RTC module.

[0027] The technical solution provided by the utility model is described in detail below in conjunction with the accompanying drawings.

[0028] Figure 1 A structural schematic diagram of an RTC module control circuit provided in an embodiment of the present application.

[0029] like Figure 1 As shown, the RTC module control circuit 100 provided in the embodiment of the present application may include:

[0030] A delay circuit 110, a switch circuit 120 and a power supply 130, wherein the delay circuit 110 is connected to the switch circuit 120, and the power supply 130 is connected to the switch circuit 120;

[0031] The delay circuit 110 is used to delay the input power-on signal;

[0032] The switch circuit 120 is used to output the RTC control signal according to the delayed power-on signal and the power supply 130;

[0033] Among them, when the power supply 130 is powered on, the power-on signal is in a high level state, and the switching circuit 120 is used to output an RTC control signal higher than a preset threshold value according to the power-on signal in the high level state and the power supply 130; wherein the RTC control signal higher than the preset threshold value is used to control the working mode of the RTC module to the power-on working mode.

[0034] In the embodiment of the present application, the power supply 130 can be understood as the power supply 130 of the SoC chip.

[0035] In the embodiment of the present application, the power-on signal input by the delay circuit 110 can be used to reflect whether the power supply 130 has been powered on. When the power supply 130 has not been powered on (for example, the power supply 130 has not been powered on, the power supply 130 has just started to be powered on, or the power supply 130 is in the process of being powered on), the power-on signal is in a low level state. When the power supply 130 has been powered on, the power-on signal is in a high level state.

[0036] It should be pointed out that in the SoC chip, the power supply 130 can be converted into different power supply voltages (such as CORE voltage, I / O voltage, etc.) through a DC-DC converter to power different functional modules in the SoC chip. Therefore, in the SoC chip, the power supply 130 completes power-on first, and other functional modules of the SoC chip complete power-on one after another. It can be seen that after the power supply 130 completes power-on, it is necessary to wait for a period of time (for example, 50 milliseconds) before the SoC chip as a whole can complete power-on. In other words, after the power-on signal changes from a low level state to a high level state, it is necessary to wait for a preset time period (for example, 50 milliseconds) before the SoC chip can complete power-on.

[0037] In the embodiment of the present application, for the power-on process of the SoC chip, the present application delays the power-on signal through the delay circuit 110, and outputs the RTC control signal according to the power-on signal and the power supply after the power-on signal is delayed for a period of time, so as to control the RTC module to enter the power-on working mode. The control function of the RTC module entering the power-on working mode after the power-on signal is delayed for a period of time and the SoC chip is powered on is realized. It can be seen that the RTC module control circuit 100 can wait for the SoC chip to be powered on, and then output the RTC control signal in a high level state to make the RTC module enter the power-on working mode, thereby avoiding the interference of the RTC module by the power-on process of the SoC chip.

[0038] The delay time of the delay circuit 110 may be greater than or equal to a preset time period, and the preset time period may be understood as the time required from the completion of power-on of the power supply to the completion of power-on of the entire SoC chip.

[0039] In the embodiment of the present application, when the power supply 130 is powered on, the output voltage of the power supply 130 can reach the rated voltage (e.g., 5V), and the power-on signal is in a high level state. The switch circuit 120 is used to output an RTC control signal higher than a preset threshold value according to the power-on signal in the high level state and the rated voltage output by the power supply 130.

[0040] In the embodiment of the present application, the RTC control signal can be used to control the working mode of the RTC module.

[0041] For example, an RTC control signal higher than a preset threshold value can be used to control the working mode of the RTC module to be a power-on working mode. In other words, when the RTC control signal is higher than the preset threshold value, the working mode of the RTC module is a power-on working mode. When the RTC module is in the power-on working mode, the RTC module depends on the target functional module in the SoC chip to work normally and can communicate with some functional modules of the SoC chip.

[0042] For another example, an RTC control signal that is lower than a preset threshold can be used to control the working mode of the RTC module to a power-off working mode. In other words, when the RTC control signal is lower than the preset threshold, the working mode of the RTC module is a power-off working mode. When the RTC module is in the power-off working mode, the RTC module can be isolated from the SoC chip, and the uncertain state of the SoC chip will not be transmitted to the inside of the RTC module, thereby ensuring that the RTC module is not disturbed.

[0043] According to the RTC module control circuit provided by the embodiment of the present application, it includes a delay circuit, a switch circuit and a power supply, the delay circuit is connected to the switch circuit, and the power supply is connected to the switch circuit; the delay circuit is used to delay the input power-on signal; the switch circuit is used to output the RTC control signal according to the delayed power-on signal and the power supply; wherein, when the power supply is powered on, the power-on signal is in a high level state, and the switch circuit is used to output the RTC control signal higher than the preset threshold according to the power-on signal and the power supply in the high level state; wherein the RTC control signal higher than the preset threshold is used to control the working mode of the RTC module to the power-on working mode. In this way, the power-on signal is delayed by the delay circuit, and the RTC control signal is output according to the power-on signal and the power supply after the power-on signal is delayed for a period of time, and the RTC module is controlled to perform the power-on working mode, realizing the control function of the RTC module entering the power-on working mode after the delay wait for the SoC chip to be powered on, and avoiding the interference of the RTC module by the power-on process of the SoC chip.

[0044] In addition, the SoC chip is in an uncertain state during the power-off process, which interferes with the normal operation of the RTC module, causing the timing function of the RTC module to fail or stop working. Based on this, in order to prevent the RTC module from being disturbed by the power-off process of the SoC chip, such as Figure 1 As shown, the RTC module control circuit 100 provided in the embodiment of the present application may further include: a voltage divider circuit 140;

[0045] The voltage divider circuit 140 may be connected to the switch circuit 120 and the power supply 130 respectively, and the voltage divider circuit 140 may be used to divide the voltage of the RTC control signal output by the switch circuit 120 according to the power supply 130 .

[0046] The number of power supplies 130 may be one or more. The power supply connected to the switch circuit 120 and the power supply connected to the voltage divider circuit 140 may be the same power supply or different power supplies, which is not limited in this application.

[0047] During the power-off process of the power supply 130, when the output voltage of the power supply is lower than the rated voltage and higher than the power-off voltage, the voltage divider circuit is also used to divide the RTC control signal according to the power supply so that the voltage value of the RTC control signal is lower than the preset threshold.

[0048] Among them, when the voltage value of the RTC control signal is lower than the preset threshold, the working mode of the RTC module is the power-off working mode.

[0049] In the embodiment of the present application, the power-off voltage can be understood as the minimum operating voltage of the target functional module in the SoC chip that has a dependency relationship with the RTC module. The target functional module has a dependency relationship with the RTC module, and when the RTC module is in the power-on working mode, the target functional module of the SoC chip is dependent on maintaining normal operation.

[0050] For example, when the output voltage of the power supply is lower than the power-off voltage, the target functional module of the SoC chip starts to power off. For example, the rated voltage is 5V, the power-off voltage is 2.5V, and when the output voltage of the power supply drops from 5V to about 2.5V, the target functional module of the SoC chip starts to power off.

[0051] In the embodiment of the present application, when the power supply is powered off, the voltage of the RTC control signal is divided by the voltage divider circuit, and before the output voltage of the power supply drops to the power-off voltage, the voltage value of the RTC control signal is lower than the preset threshold, and the RTC module enters the power-off working mode. For example, when the output voltage of the power supply drops from 5V to about 3V, the RTC control signal lower than the preset threshold is output, so that the RTC module enters the power-off working mode. At this time, since the output voltage of the power supply has not dropped to 2.5V, the target functional module of the SoC chip has not started to be powered off.

[0052] In this way, the RTC control signal is divided by the voltage divider circuit, so that the RTC module enters the power-off working mode before the target functional module of the SoC chip starts to power off, thereby preventing the RTC module from being disturbed by the power-off process of the SoC chip.

[0053] The specific structure of the RTC module control circuit 100 is described below by way of example.

[0054] In a specific embodiment, Figure 2 As shown, in the RTC module control circuit 100 provided in the embodiment of the present application, the delay circuit 110 may include: a first resistor R1, a second resistor R2 and a capacitor C1; one end of the first resistor R1 is used to input a power-on signal, the other end of the first resistor R1 is connected to one end of the second resistor R2, the other end of the second resistor R2 is grounded, the second resistor R2 is also connected in parallel with the capacitor C1, and one end of the second resistor R2 is connected to the switch circuit 120.

[0055] In an embodiment of the present application, an RC circuit is used as a delay circuit to realize the delay function of the power-on signal through the charging and discharging process of the capacitor C1, and the embodiment of the present application can set the resistance value of the first resistor R1, the second resistor R2 and the capacitance value of the capacitor C1 so that the delay time of the delay circuit is greater than or equal to a preset time period (for example, 50 milliseconds), thereby ensuring that the RTC module enters the power-on working mode only after waiting for the entire SoC chip to be powered on.

[0056] In practical applications, the power-on signal may include an AC signal or a DC signal.

[0057] It is understandable that the delay circuit 110 may also have a filtering function. Figure 2 As shown, in the delay circuit 110, the circuit composed of the first resistor R1, the second resistor R2 and the capacitor C1 can be understood as a filter circuit. In the case where the power-on signal includes an AC signal, the AC signal can be filtered into a DC signal by the filter circuit, and the power-on signal after the delay filtering reaches the threshold voltage that can turn on the first switch tube Q1.

[0058] For example, the AC signal can be a clock signal. When the power-on signal includes a clock signal, the clock signal can be filtered into a DC signal by a filter circuit composed of a first resistor R1, a second resistor R2 and a capacitor C1, and the power-on signal after delayed filtering can reach a threshold voltage that can turn on the first switch tube Q1.

[0059] In this way, the power-on signal input to the RTC module control circuit includes an AC signal or a DC signal, which further expands the application scope of the RTC module control circuit.

[0060] like Figure 2 As shown, in the RTC module control circuit 100 provided in the embodiment of the present application, the switch circuit 120 may include: a first switch tube Q1, a second switch tube Q2, a third resistor R3 and a fourth resistor R4;

[0061] The first switch tube Q1 has a first end, a second end and a control end. The control end of the first switch tube Q1 is connected to one end of the second resistor R2. The first end of the first switch tube Q1 is connected to the power supply 130 through the third resistor R3. The first end of the first switch tube Q1 is also grounded through the fourth resistor R4. The second end of the first switch tube Q1 is grounded.

[0062] The second switch tube Q2 has a first end, a second end and a control end. The first end of the first switch tube Q1 is connected to the control end of the second switch tube Q2. The first end of the second switch tube Q2 is connected to the voltage divider circuit 140. The second end of the second switch tube Q2 is grounded.

[0063] In the embodiment of the present application, the first switch tube Q1 may include a triode, and the second switch tube Q2 may include a triode.

[0064] In other embodiments, the first switch tube Q1 may include a MOSFET (metal oxide semiconductor field effect transistor), and the second switch tube Q2 may include a MOSFET.

[0065] Of course, the first switch tube Q1 / the second switch tube Q2 may also be other types of switches, and the present application does not limit the specific type of the first switch tube Q1 / the second switch tube Q2.

[0066] In the embodiments of the present application, Figure 2 As shown, the rated voltage of the power supply can be 5V, the power supply 130 can include two, and the switch circuit 120 and the voltage divider circuit 140 are respectively connected to a power supply with a rated voltage of 5V. Of course, the rated voltage of the power supply and the number of power supplies can be set according to actual needs, and this application does not limit it.

[0067] like Figure 2As shown, in the RTC module control circuit 100 provided in the embodiment of the present application, the voltage divider circuit 140 may include: a fifth resistor R5 and a sixth resistor R6; the first end of the second switch tube Q2 is connected to the power supply 130 through the fifth resistor R5, and the first end of the second switch tube Q2 is also grounded through the sixth resistor R6.

[0068] In the embodiment of the present application, the on / off of the first switch tube Q1 can be controlled by the level state of the power-on signal. The on / off of the second switch tube Q2 can be controlled by the state of the first switch tube Q1 and the output voltage of the power supply 130. The voltage value of the RTC control signal can be adjusted by the state of the second switch tube Q2 and the voltage divider circuit 140.

[0069] During the power-on process of the power supply 130, the power-on signal is in a low level state, the output voltage of the power supply 130 is lower than the rated voltage (eg, 5V), and the voltage value of the RTC control signal remains lower than the preset threshold. The following example illustrates:

[0070] When the output voltage of the power supply 130 is lower than the threshold voltage of the second switch tube Q2, the first switch tube Q1 is in the off state and the second switch tube Q2 is in the off state; the voltage divider circuit 140 is used to divide the RTC control signal through the power supply 130 so that the voltage value of the RTC control signal is lower than the preset threshold.

[0071] When the output voltage of the power supply 130 is greater than or equal to the threshold voltage of the second switch tube Q2 and lower than the rated voltage, the first switch tube Q1 is in the off state and the second switch tube Q2 is in the on state; the voltage value of the RTC control signal is pulled down to 0 by the second switch tube Q2, and at this time the voltage value of the RTC control signal is also lower than the preset threshold.

[0072] Among them, the threshold voltage of the second switch tube Q2 can be understood as the lower limit value of whether the second switch tube Q2 can be turned on. In other words, when the output voltage of the power supply is less than the threshold voltage, it is not enough to turn on the second switch tube Q2; when the output voltage of the power supply is greater than or equal to the threshold voltage, it is enough to turn on the second switch tube Q2. Among them, the threshold voltage is less than the rated voltage, and the threshold voltage is less than the power-off voltage. The threshold voltage of the second switch tube Q2 can be the same as or different from the threshold voltage of the first switch tube Q1.

[0073] In this way, the present application can ensure that before the power supply is powered on, the voltage value of the RTC control signal is always lower than the preset threshold value, and the RTC module has not entered the power-on working module.

[0074] When the power supply is powered on, the power-on signal is in a high level state, and the output voltage of the power supply 130 reaches the rated voltage (for example, 5V). At this time, the first switch tube is in the on state, and the second switch tube is in the off state. The voltage divider circuit 140 is used to divide the RTC control signal through the power supply 130 so that the voltage value of the RTC control signal is higher than the preset threshold.

[0075] In this way, the present application can realize the RTC control signal being higher than the preset threshold after the power-on signal is pulled high and waiting for a period of time through the delay of the delay circuit, so that the RTC module enters the power-on working mode only after the power-on of the SoC chip is completed, thereby avoiding the RTC module being affected by the power-on process of the SoC chip.

[0076] For example, in actual applications, taking the case where the first switch tube Q1 and the second switch tube Q2 are triodes, when the power supply 130 is not powered on, the SoC chip is not powered on, the output voltage of the power supply 130 is 0, the power-on signal is in a low level state, the first switch tube Q1 is in an off state, and the second switch tube Q2 is in an off state, the voltage value of the RTC control signal is 0, and the RTC module remains in the power-off working mode.

[0077] After the power supply 130 starts to power on, the second switch tube Q2 is not turned on before the output voltage of the power supply 130 reaches the threshold voltage of the base of the second switch tube Q2 (for example, 0.7V). Since the output voltage of the power supply 130 is relatively low, the voltage is divided by the fourth resistor R4 and the fifth resistor R5, so that the voltage value of the RTC control signal remains lower than the preset threshold value, and the RTC module continues to work in the power-off working mode.

[0078] The power supply 130 continues to be powered on, and after the output voltage of the power supply 130 reaches the threshold voltage of the base of Q2 (for example, 0.7V), the second switch tube Q2 is turned on, so that the RTC control signal is pulled down to ground through the second switch tube Q2. At this time, the voltage value of the RTC control signal is 0, which is lower than the preset threshold value, and the RTC module continues to work in the power-off working mode.

[0079] After the power supply 130 is powered on, the power-on signal changes from a low level state to a high level state, and after the voltage division of the first resistor R1 and the second resistor R2 and the delay of the capacitor C1, the threshold voltage (for example, 0.7V) of the base of the first switch tube Q1 is reached, and the first switch tube Q1 is turned on. The base of the second switch tube Q2 is pulled down to the ground, and the second switch tube Q2 is turned off. The rated voltage output by the power supply 130 is divided by the third resistor R4 and the fourth resistor R5, so that the voltage value of the RTC control signal is higher than the preset threshold value, and the RTC module enters the power-on working mode.

[0080] In this way, the present application sets the parameters of the first resistor R1, the second resistor R2, and the capacitor C1 so that the base voltage of the first switch tube Q1 rises slowly, and reaches the threshold voltage of the base of the first switch tube Q1 after the power-on signal is pulled high for 50ms. The control function of the RTC module entering the power-on working mode after the power-on signal is pulled high for 50ms is realized, ensuring that the RTC module is not interfered by the power-on process of the SoC chip.

[0081] In addition, during the power-off process of the power supply 130, when the output voltage of the power supply 130 is lower than the rated voltage and higher than the power-off voltage, the first switch tube Q1 is in the on state and the second switch tube Q2 is in the off state. The voltage divider circuit 140 is used to divide the voltage of the RTC control signal through the power supply 130 so that the voltage value of the RTC control signal is lower than the preset threshold.

[0082] Among them, the RTC module depends on the normal operation of the target functional module of the SoC chip in the power-on working mode, and the power-off voltage can be understood as the minimum operating voltage of the target functional module. For example, the RTC module depends on the CORE voltage of the SoC chip in the power-on working mode, and the CORE voltage drops from 5V to about 2.5V and starts to power off, and the power-off voltage can be 2.5V.

[0083] In the embodiment of the present application, the power-off voltage can be set according to actual needs, and the present application does not impose any specific limitations.

[0084] In practical applications, for example, when the power supply 130 is powered off, the power supply 130 drops from 5V to about 3V, and the RTC control signal is divided by the fourth resistor R4 and the fifth resistor R5 to make it lower than the preset threshold, and the RTC module enters the power-off working mode. The CORE voltage of the SoC chip will drop from 5V to about 2.5V before it starts to power off. Therefore, the time when the RTC module enters the power-off working mode is earlier than the time when the CORE voltage starts to power off, so that the RTC module enters the power-off working mode before the SoC chip is powered off, ensuring that the RTC module is not disturbed by the power-off process of the SoC chip.

[0085] It should be noted that the power-off process of the power supply 130 is not affected by the delay circuit. When the power supply 130 is powered off, the power-on signal remains in a high level state, the first switch tube Q1 is turned on, the base of the second switch tube Q2 is pulled down to the ground through the first switch tube Q1, and the second switch tube Q2 is turned off, and the voltage value of the RTC control signal is controlled by the fourth resistor R4 and the fifth resistor R5. Before the output voltage of the power supply 130 drops to the power-off voltage (for example, 2.5V), for example, when it just drops to 3V, the voltage value of the RTC control signal is controlled by the voltage divider circuit to be lower than the preset threshold.

[0086] In this way, when the power supply 130 is powered off, the delay circuit 110 has no effect on the power-off process, and directly controls the voltage value of the RTC control signal through the voltage divider circuit, thereby controlling the RTC module to quickly enter the power-off working mode, and the power-off response is fast.

[0087] Based on the same concept as the RTC module control circuit provided in the above embodiment, the embodiment of the present application also provides a SoC chip.

[0088] Figure 3 A structural schematic diagram of a SoC chip provided in an embodiment of the present application.

[0089] like Figure 3 As shown, the SoC chip 10 provided in the embodiment of the present application may include: the RTC module control circuit 100 provided in any of the above embodiments, and an RTC module 300 connected to the RTC module control circuit 100; the input end of the RTC module control circuit 100 is used to receive a power-on signal, and the output end of the RTC module control circuit 100 is used to output an RTC control signal to the RTC module 300.

[0090] Among them, Figure 3 As shown, the SoC chip 10 provided in the embodiment of the present application may also include a power-on reset circuit 200, and the reverse output terminal (ie Figure 3 The POR_RSTN pin shown in FIG. 1 is connected to the input end of the RTC module control circuit 100 to output a power-on signal to the RTC module control circuit 100. In addition, the output end of the RTC module control circuit 100 is connected to the control end of the RTC module 300 (i.e., Figure 3 The RTC_DET_VOL pin as shown is connected to output the RTC control signal to the RTC module 300.

[0091] In the embodiment of the present application, in order to avoid interference of the power-on and power-off processes on the internal RTC module, an RTC module control circuit 100 for controlling the working mode of the RTC module 300 is added to the SoC chip 10.

[0092] For example, the power-on process of the SoC chip 10 is completed after the POR_RSTN pin outputs a power-on signal in a high level state and then waits for a preset time period (e.g., 50 milliseconds). Therefore, the RTC module 300 can wait for 50ms after the POR_RSTN pin outputs a power-on signal in a high level state and then enters the power-on working mode. Among them, the RTC module control circuit 100 can achieve the RTC control signal to wait for 50ms to be higher than the preset threshold after the power-on signal is pulled high through the delay circuit 110.

[0093] In addition, the power-on working mode of the RTC module 300 depends on the CORE voltage of the SoC chip 10 to remain normal, so when the SoC chip 10 is powered off, the RTC module 300 can enter the power-off working mode before the CORE voltage drops to 2.5V. Among them, the RTC module control circuit 100 can achieve the RTC control signal lower than the preset threshold before the CORE voltage of the SoC chip 10 drops to 2.5V through the voltage division of the voltage divider circuit 140.

[0094] Furthermore, when the RTC_DET_VOL pin of the RTC module 300 detects that the voltage value of the RTC control signal is lower than the preset threshold, the RTC module 300 operates in the power-down working mode; when the RTC_DET_VOL pin detects that the voltage value of the RTC control signal is higher than the preset threshold, the RTC module 300 operates in the power-up working mode.

[0095] In this way, the RTC module 300 can be controlled to switch between the power-on working mode and the power-off working mode according to the different detection voltages of the RTC_DET_VOL pin of the RTC module 300. In the power-on working mode, the SoC chip 10 can read and write the registers of the RTC module 300 through the data interface, and can perform operations such as resetting the RTC module 300. In the power-off working mode, the RTC module 300 is isolated from the outside of the SoC chip 10, and the uncertain state of the SoC chip 10 will not be transmitted to the inside of the RTC module 300, ensuring that the RTC module 300 is not disturbed.

[0096] It should be pointed out that the SoC chip provided in the embodiment of the present application can realize all the functions of the RTC module control circuit and achieve the same effect, which will not be repeated here.

[0097] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the utility model, rather than to limit it. Although the utility model has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solution described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solution from the spirit and scope of the technical solution of the utility model.

Claims

1. A real-time clock RTC module control circuit, It is characterized in that include: A delay circuit, a switch circuit and a power supply, wherein the delay circuit is connected to the switch circuit, and the power supply is connected to the switch circuit; The delay circuit is used to delay the input power-on signal; The switch circuit is used to output an RTC control signal according to the delayed power-on signal and the power supply; Wherein, when the power supply is powered on, the power-on signal is in a high level state, and the switching circuit is used to output an RTC control signal higher than a preset threshold value according to the power-on signal in the high level state and the power supply; wherein the RTC control signal higher than the preset threshold value is used to control the working mode of the RTC module to the power-on working mode.

2. The control circuit according to claim 1, It is characterized in that Also includes: A voltage divider circuit; the voltage divider circuit is connected to the switch circuit and the power supply respectively; During the power-off process of the power supply, when the output voltage of the power supply is lower than the rated voltage and higher than the power-off voltage, the voltage divider circuit is further used to divide the voltage of the RTC control signal according to the power supply so that the voltage value of the RTC control signal is lower than a preset threshold value; The RTC control signal lower than the preset threshold is used to control the working mode of the RTC module to the power-off working mode.

3. The control circuit according to claim 2, It is characterized in that The delay circuit comprises: a first resistor, a second resistor and a capacitor; One end of the first resistor is used to input the power-on signal, the other end of the first resistor is connected to one end of the second resistor, the other end of the second resistor is grounded, the second resistor is also connected in parallel with the capacitor, and one end of the second resistor is connected to the switch circuit.

4. The control circuit according to claim 3, It is characterized in that The switch circuit comprises: a first switch tube, a second switch tube, a third resistor and a fourth resistor; The first switch tube has a first end, a second end and a control end, the control end of the first switch tube is connected to one end of the second resistor, the first end of the first switch tube is connected to the power supply through the third resistor, the first end of the first switch tube is also grounded through the fourth resistor, and the second end of the first switch tube is grounded; The second switch tube has a first end, a second end and a control end. The first end of the first switch tube is connected to the control end of the second switch tube, the first end of the second switch tube is connected to the voltage divider circuit, and the second end of the second switch tube is grounded.

5. The control circuit according to claim 4, It is characterized in that The voltage divider circuit comprises: a fifth resistor and a sixth resistor; The first end of the second switch tube is connected to the power supply through a fifth resistor, and the first end of the second switch tube is also grounded through a sixth resistor.

6. The control circuit according to claim 4, It is characterized in that The first switch tube includes a triode or a metal oxide semiconductor field effect transistor MOSFET, and the second switch tube includes a triode or a MOSFET.

7. The control circuit according to claim 4, It is characterized in that When the power supply is powered on, the first switch tube is in an on state, and the second switch tube is in an off state; During the power-off process of the power supply, the first switch tube is in the on state, and the second switch tube is in the off state.

8. The control circuit according to claim 4, It is characterized in that During the power-on process of the power supply, the power-on signal is in a low level state, the output voltage of the power supply is lower than the rated voltage, and the voltage value of the RTC control signal is lower than a preset threshold; Wherein, when the output voltage of the power supply is lower than the threshold voltage of the second switch tube, the first switch tube is in the off state and the second switch tube is in the off state; the voltage divider circuit is used to divide the voltage of the RTC control signal according to the power supply so that the voltage value of the RTC control signal is lower than the preset threshold value; Among them, when the output voltage of the power supply is greater than or equal to the threshold voltage of the second switch tube and lower than the rated voltage, the first switch tube is in the off state, the second switch tube is in the on state, and the voltage value of the RTC control signal is 0.

9. The control circuit according to claim 1, It is characterized in that The power-on signal includes an AC signal or a DC signal.

10. A system-on-chip (SoC) chip, It is characterized in that include: The real-time clock (RTC) module control circuit according to any one of claims 1 to 9, and an RTC module connected to the RTC module control circuit; The input end of the RTC module control circuit is used to receive a power-on signal, and the output end of the RTC module control circuit is used to output an RTC control signal to the RTC module.