Real-time clock module, electronic apparatus, and moving object
阅读说明:本技术 实时时钟模块、电子设备以及移动体 (Real-time clock module, electronic apparatus, and moving object ) 是由 松崎赏 于 2020-02-19 设计创作,主要内容包括:提供实时时钟模块、电子设备以及移动体,针对所输入的电源的电压值的变化,能够降低实时时钟模块的内部电压的电压值暂时发生变化的可能性。实时时钟模块具有:开关电路,其与被施加第1电源电压的第1节点以及被施加第2电源电压的第2节点电连接,对是输出第1电源电压还是输出第2电源电压进行切换;电源检测电路,其检测第1电源电压的电压值;开关控制电路,其根据电源检测电路的输出,对开关电路的切换进行控制;恒压电路,其根据开关电路的输出来输出恒压信号;以及电流控制电路,其对供给到恒压电路的电流进行控制,在开关控制电路对开关电路进行切换的情况下,电流控制电路使供给到恒压电路的电流增加。(Provided are a real-time clock module, an electronic apparatus, and a moving object, wherein the possibility that the voltage value of the internal voltage of the real-time clock module temporarily changes in response to a change in the voltage value of an input power supply can be reduced. The real-time clock module has: a switching circuit electrically connected to a 1 st node to which a 1 st power supply voltage is applied and a 2 nd node to which a 2 nd power supply voltage is applied, and switching whether to output the 1 st power supply voltage or the 2 nd power supply voltage; a power supply detection circuit which detects a voltage value of the 1 st power supply voltage; a switch control circuit that controls switching of the switch circuit based on an output of the power supply detection circuit; a constant voltage circuit that outputs a constant voltage signal according to an output of the switching circuit; and a current control circuit that controls the current supplied to the constant voltage circuit, wherein the current control circuit increases the current supplied to the constant voltage circuit when the switch control circuit switches the switch circuit.)
1. A real time clock module having:
a 1 st node to which a 1 st power supply voltage is applied;
a 2 nd node to which a 2 nd power supply voltage is applied;
a switching circuit electrically connected to the 1 st node and the 2 nd node, and configured to switch between outputting the 1 st power supply voltage and outputting the 2 nd power supply voltage;
a power supply detection circuit that detects a voltage value of the 1 st power supply voltage;
a switch control circuit that controls switching of the switch circuit based on an output of the power supply detection circuit;
a constant voltage circuit that outputs a constant voltage signal according to an output of the switching circuit; and
a current control circuit that controls a current supplied to the constant voltage circuit,
the current control circuit increases the current supplied to the constant voltage circuit when the switch control circuit switches the switch circuit.
2. The real time clock module of claim 1,
the switch control circuit switches the switch circuit after the current control circuit increases the current supplied to the constant voltage circuit.
3. A real time clock module according to claim 1 or 2,
the real-time clock module is provided with a 1 st power-on reset circuit, the 1 st power-on reset circuit outputs a 1 st reset signal to the switch control circuit and the current control circuit,
the constant voltage signal is input to the 1 st power-on-reset circuit.
4. The real time clock module of claim 1,
the constant voltage circuit includes: a 1 st transistor which controls a supplied current; and a 2 nd transistor having a driving capability larger than that of the 1 st transistor,
the current control circuit controls the 1 st transistor and the 2 nd transistor to be on when the current supplied to the constant voltage circuit is increased,
the current control circuit controls the 1 st transistor to be on and the 2 nd transistor to be off without increasing the current supplied to the constant voltage circuit.
5. The real time clock module of claim 4,
the real-time clock module has a 2 nd power-on reset circuit, the 2 nd power-on reset circuit outputs a 2 nd reset signal according to a voltage value of the 1 st power supply voltage,
the current control circuit controls a current supplied to the constant voltage circuit according to the 2 nd reset signal.
6. An electronic device having a real time clock module as claimed in any one of claims 1 to 5.
7. A moving body having the real-time clock module according to any one of claims 1 to 5.
Technical Field
The invention relates to a real-time clock module, an electronic apparatus, and a moving object.
Background
A real-time clock module is a circuit having a clock function, and is incorporated in various electronic devices such as a personal computer. In general, it is required that the timekeeping function incorporated in the real-time clock module continues to operate even when the main power supply is not supplied to the electronic device or when the main power supply is temporarily not supplied due to an instantaneous power failure or the like. Therefore, the electronic apparatus is provided with a circuit for switching the power supply of the real-time clock module to the backup power supply when the interruption of the main power supply is detected.
For example,
Patent document 1: japanese patent laid-open publication No. 2014-017965
However, when the power supply of the real-time clock module is switched, the voltage value of the power supply input to the real-time clock module changes before and after the switching due to the potential difference between the main power supply and the backup power supply. When the internal constant voltage circuit of the real-time clock module that generates the internal voltage cannot follow such a change in the voltage value of the power supply input to the real-time clock module, the voltage value of the internal voltage may temporarily change.
Disclosure of Invention
One embodiment of a real-time clock module according to the present invention includes:
a 1 st node to which a 1 st power supply voltage is applied;
a 2 nd node to which a 2 nd power supply voltage is applied;
a switching circuit electrically connected to the 1 st node and the 2 nd node, and configured to switch between outputting the 1 st power supply voltage and outputting the 2 nd power supply voltage;
a power supply detection circuit that detects a voltage value of the 1 st power supply voltage;
a switch control circuit that controls switching of the switch circuit based on an output of the power supply detection circuit;
a constant voltage circuit that outputs a constant voltage signal according to an output of the switching circuit; and
a current control circuit that controls a current supplied to the constant voltage circuit,
the current control circuit increases the current supplied to the constant voltage circuit when the switch control circuit switches the switch circuit.
In one embodiment of the real-time clock module, the real-time clock module may further include a clock signal generator,
the switch control circuit switches the switch circuit after the current control circuit increases the current supplied to the constant voltage circuit.
In one embodiment of the real-time clock module, the real-time clock module may further include a clock signal generator,
the real-time clock module has a 1 st power-on reset circuit, the 1 st power-on reset circuit outputs a 1 st reset signal to the switch control circuit and the current control circuit,
the constant voltage signal is input to the 1 st power-on-reset circuit.
In one embodiment of the real-time clock module, the real-time clock module may further include a clock signal generator,
the constant voltage circuit includes: a 1 st transistor which controls a supplied current; and a 2 nd transistor having a driving capability larger than that of the 1 st transistor,
the current control circuit controls the 1 st transistor and the 2 nd transistor to be on when the current supplied to the constant voltage circuit is increased,
the current control circuit controls the 1 st transistor to be on and the 2 nd transistor to be off without increasing the current supplied to the constant voltage circuit.
In one embodiment of the real-time clock module, the real-time clock module may further include a clock signal generator,
the real-time clock module has a 2 nd power-on reset circuit, the 2 nd power-on reset circuit outputs a 2 nd reset signal according to a voltage value of the 1 st power supply voltage,
the current control circuit controls a current supplied to the constant voltage circuit according to the 2 nd reset signal.
One embodiment of the electronic device according to the present invention includes one embodiment of the real-time clock module.
One embodiment of the mobile object of the present invention includes one embodiment of the real-time clock module.
Drawings
Fig. 1 is a diagram showing the configuration of a real-time clock module according to
Fig. 2 is a diagram showing the structure of the switch circuit.
Fig. 3 is a diagram showing the structure of the voltage detection circuit.
Fig. 4 is a diagram showing the structures of the constant current circuit and the control voltage output circuit.
Fig. 5 is a diagram showing the structure of the oscillation circuit.
Fig. 6 is a flowchart for explaining the operation of the real-time clock module when the voltage value of the voltage VDD increases from the state where the voltage value of the voltage VDD is lower than the threshold voltage VR 2.
Fig. 7 is a flowchart for explaining the operation of the real-time clock module when the voltage value of the voltage VDD decreases from the state where the voltage value of the voltage VDD exceeds the
Fig. 8 is a timing chart for explaining an operation in a case where voltage VDD supplied to the real-time clock block becomes a voltage having a voltage value lower than the voltage value of voltage VBAT and higher than
Fig. 9 is a timing chart for explaining an operation in a case where voltage VDD supplied to the real-time clock block becomes a voltage having a voltage value higher than the voltage value of voltage VBAT and higher than
Fig. 10 is a diagram showing the configuration of the real-time clock module according to embodiment 2.
Fig. 11 is a flowchart for explaining the operation of the real-time clock module in the case where the voltage value of voltage VDD increases from the state where the voltage value of voltage VDD is lower than threshold voltage VR2 in the real-time clock module according to embodiment 2.
Fig. 12 is a timing chart for explaining the operation of the real-time clock module according to embodiment 2.
Fig. 13 is a functional block diagram showing an example of the configuration of the electronic apparatus.
Fig. 14 is a diagram showing an example of an external appearance of a smartphone, which is an example of an electronic device.
Fig. 15 is a diagram illustrating an example of a moving body.
Description of the reference symbols
1: RTC module (real time clock module); 10: a switching circuit; 11. 12, 13: a transistor; 20: a power supply detection circuit; 21. 22, 23: a resistance; 24: a comparator; 25: a switch; 30: a constant current circuit; 31. 32, 33, 34: a transistor; 40: a control voltage output circuit; 41: a differential amplifier circuit; 42. 43, 44, 45, 46: a transistor; 47. 48: a capacitor; 50: a power-on reset circuit; 60: an oscillating voltage output circuit; 61: a current control circuit; 62. 63, 64, 65, 66, 67, 68, 69: a transistor; 70: an oscillation circuit; 71. 72, 73: a capacitor; 74. 75: a variable capacitance capacitor; 76. 77: a resistance; 80: a level shifter; 81. 82, 83, 84: a transistor; 85: an amplitude detection circuit; 90: a power-on reset circuit; 91: a vibrator; 92. 93: an electrode; 100: a logic circuit; 101: a switch control circuit; 102: a threshold switching control circuit; 103: a current control circuit; 210: a level shifter; 220: an output circuit; 230: a timing circuit; 240: an interface circuit; 300: an electronic device; 310: RTC module (real time clock module); 320: a CPU; 330: an operation section; 340: a ROM; 350: a RAM; 360: a communication unit; 370: a display unit; 380: a power supply unit; 390: a standby power supply unit; 400: a moving body; 410: RTC module (real time clock module); 420. 430, 440: a controller; 450: a battery; 460: and a backup battery.
Detailed Description
Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. The drawings used are for ease of explanation. The embodiments described below do not limit the contents of the present invention described in the claims. Not all of the structures described below are necessarily essential components of the present invention.
1. Real-time clock module
1.1
1.1.1 Structure of real-time clock Module
Fig. 1 is a diagram showing the configuration of an RTC (Real Time Clock)
The
The switching circuit 10 receives voltages VDD and VBAT and power supply switching control signals CS1, CS2, and CS 3. The switch circuit 10 is electrically connected to the terminal Vdd and the terminal Vbat, and switches whether to output the voltage Vdd as the voltage VOUT or output the voltage Vbat as the voltage VOUT based on the power supply switching control signals CS1, CS2, and CS 3.
Here, an example of the configuration of the switch circuit 10 will be described with reference to fig. 2. Fig. 2 is a diagram showing the configuration of the switch circuit 10. As shown in fig. 2, the switching circuit 10 has transistors 11, 12, and 13. The transistors 11, 12, and 13 of the present embodiment are each described as a P-channel MOS transistor.
The power supply switching control signal CS1 is input to the gate of the transistor 11. The source of the transistor 11 is connected to the terminal Vdd. The drain of the transistor 11 is connected to the terminal Vout. The back gate of the transistor 11 is connected to the drain of the transistor 11. Thus, the transistor 11 controls the source-drain to be conductive when the power supply switching control signal CS1 of the L level is input, and controls the source-drain to be nonconductive when the power supply switching control signal CS1 of the H level is input. In the following description, a state in which the transistor 11 is on between the source and the drain is sometimes referred to as "on", and a state in which the transistor is off between the source and the drain is sometimes referred to as "off".
The power supply switching control signal CS2 is input to the gate of the transistor 12. The source of the transistor 12 is connected to the drain of the transistor 13. The drain of the transistor 12 is connected to the terminal Vout. The back gate of the transistor 12 is connected to the drain of the transistor 12. Thus, the transistor 12 controls the source-drain to be conductive when the power supply switching control signal CS2 of the L level is input, and controls the source-drain to be nonconductive when the power supply switching control signal CS2 of the H level is input. In the following description, a state in which the transistor 12 is on between the source and the drain is sometimes referred to as "on", and a state in which the transistor 12 is off between the source and the drain is sometimes referred to as "off".
The power supply switching control signal CS3 is input to the gate of the transistor 13. The source of the transistor 13 is connected to the terminal Vbat. The drain of the transistor 13 is connected to the source of the transistor 12. The back gate of the transistor 13 is connected to the source of the transistor 13. Thus, the transistor 13 controls the source-drain to be conductive when the power supply switching control signal CS3 of the L level is input, and controls the source-drain to be nonconductive when the power supply switching control signal CS3 of the H level is input. In the following description, a state in which the transistor 13 is on between the source and the drain is sometimes referred to as "on", and a state in which the transistor is off between the source and the drain is sometimes referred to as "off".
That is, the transistor 11 switches whether or not to output the voltage Vdd supplied to the terminal Vdd as the voltage VOUT to the terminal VOUT in accordance with the logic level of the power supply switching control signal CS1, and the transistors 12 and 13 switch whether or not to output the voltage Vbat supplied to the terminal Vbat as the voltage VOUT to the terminal VOUT in accordance with the logic levels of the power supply switching control signals CS2 and CS3, respectively.
As described above, the switch circuit 10 switches between outputting the voltage VDD as the voltage VOUT to the terminal VOUT and outputting the voltage VBAT as the voltage VOUT to the terminal VOUT by controlling the transistors 11, 12, and 13 in accordance with the power supply switching control signals CS1, CS2, and CS 3. The switch circuit 10 of the present embodiment outputs the voltage VDD as the voltage VOUT when the power supply switching control signals CS1, CS2, and CS3 are signals of L, H, H level, respectively, and outputs the voltage VBAT as the voltage VOUT when the power supply switching control signals CS1, CS2, and CS3 are signals of H, L, L level, respectively.
A diode having a source side as an anode and a drain side as a cathode is formed between the source and the drain of the transistor 11. Thus, when the transistor 11 is controlled to be off, the supply of current and voltage from the terminal Vout to the terminal Vdd is cut off. In other words, the transistor 11 is controlled to be off in accordance with the power supply switching control signal CS1, so that the possibility of a current flowing back to the terminal Vdd can be reduced.
A diode having a source side as an anode and a drain side as a cathode is formed between the source and the drain of the transistor 12. Thus, when the transistor 12 is controlled to be off, the supply of current and voltage from the terminal Vout to the terminal Vbat is cut off. Therefore, in the case where the transistor 12 is controlled to be off, overcharge of the voltage VBAT as the backup power supply can be prevented.
A diode having a source side as a cathode and a drain side as an anode is formed between the source and the drain of the transistor 13. Thus, when the transistor 13 is controlled to be off, the supply of current and voltage from the terminal Vbat to the terminal Vout is cut off. Therefore, when the transistor 13 is controlled to be off, wasteful power consumption in the backup power supply can be reduced.
Here, the voltage VDD is an example of the 1 st power supply voltage, and the terminal VDD to which the voltage VDD is applied is an example of the 1 st node. The voltage VBAT is an example of the 2 nd power supply voltage, and the terminal VBAT to which the voltage VBAT is applied is an example of the 2 nd node. Further, a wiring line for transmitting the voltage VDD and connecting the terminal VDD and the source of the transistor 11 is also an example of the 1 st node in a broad sense, and a wiring line for transmitting the voltage VBAT and connecting the terminal VBAT and the source of the transistor 13 is also an example of the 2 nd node in a broad sense.
In the present embodiment, as shown in fig. 2, the switching circuit 10 switches between outputting the voltage VDD as the voltage VOUT and outputting the voltage VBAT as the voltage VOUT by controlling the 3 transistors 11, 12, and 13, but the switching circuit 10 is not limited to this configuration. For example, the switching circuit 10 may be configured without the transistor 13, and switch between outputting the voltage VDD or the voltage VBAT as the voltage VOUT by controlling the transistors 11 and 12. The switching circuit 10 may not include the transistors 12 and 13, and may switch between outputting the voltage VDD or the voltage VBAT as the voltage VOUT by controlling the transistor 11.
A capacitor, not shown, is mounted on the terminal Vout. This stabilizes the voltage value of the voltage Vout generated at the terminal Vout.
Returning to fig. 1, the voltages VDD and VOUT and the threshold control signal CT are input to the power supply detection circuit 20. The power supply detection circuit 20 detects the voltage value of the voltage VDD. Then, the power supply detection circuit 20 compares the detected voltage value of the voltage VDD with a predetermined threshold value, and outputs the comparison result as a voltage detection signal VDET.
Here, an example of the configuration of the power supply detection circuit 20 will be described with reference to fig. 3. Fig. 3 is a diagram showing the configuration of the power supply detection circuit 20. The power supply detection circuit 20 includes resistors 21, 22, and 23, a comparator 24, and a switch 25. The voltage VDD is input to one end of the resistor 21. The other end of the resistor 21 is connected to one end of the resistor 22. The other end of the resistor 22 is connected to one end of the resistor 23. The other end of the resistor 23 is connected to the ground. That is, the resistors 21, 22, and 23 are connected in series.
One end of the switch 25 is connected to one end of the resistor 22, and the other end of the switch 25 is connected to the other end of the resistor 22. That is, the switch 25 is connected in parallel with the resistor 22. Then, the threshold control signal CT is input to the switch 25 as a control signal. The switch 25 switches whether to turn on or off the switch 25 in accordance with the threshold control signal CT. The switch 25 according to the present embodiment is not turned on when the H-level threshold control signal CT is input, and is turned on when the L-level threshold control signal CT is input. In the following description, the state in which the switch 25 is turned on may be referred to as "on" and the state in which the switch is turned off may be referred to as "off".
The comparator 24 operates with the voltage VOUT as an operating power source. The comparator 24 has two inputs and 1 output. One input terminal of the comparator 24 is connected to one terminal of the resistor 23. The other input terminal of the comparator 24 is inputted with a
When the supply of the voltage VDD is stopped, the voltage value input to the one input terminal of the comparator 24 is substantially the ground potential. Therefore, it is smaller than the voltage value of the reference voltage Vref1 input to the other input terminal. Therefore, the power supply detection circuit 20 outputs the voltage detection signal VDET at the L level. Although detailed later, in this case, the threshold control signal CT of the H level is input to the switch 25.
Then, the voltage VDD starts to be supplied, and the voltage value of the voltage VDD rises. As the voltage VDD rises, the voltage value input to one input terminal of the comparator 24 also rises. At this time, since the threshold control signal CT of the H level is input to the switch 25, the switch 25 is controlled to be off. Therefore, a voltage obtained by dividing the voltage VDD by the resistors 21 and 22 and the resistor 23 is input to one input terminal of the comparator 24.
Then, when the voltage value of the voltage VDD rises and the voltage value input to one input terminal of the comparator 24 is equal to or greater than the voltage value of the reference voltage Vref1 input to the other input terminal of the comparator 24, the power supply detection circuit 20 outputs the voltage detection signal VDET at the H level. Then, the threshold control signal CT input to the switch 25 is controlled to L level by setting the voltage detection signal VDET to H level. Here, the voltage value of the voltage VDD increases, and the voltage value of the voltage VDD when the voltage value input to one input terminal of the comparator 24 is equal to or greater than the voltage value of the reference voltage Vref1 input to the other input terminal of the comparator 24 is referred to as a
Thereafter, when the supply of the voltage VDD is stopped, the voltage value of the voltage VDD decreases. As the voltage VDD decreases, the voltage value input to one input terminal of the comparator 24 also decreases. In this case, since the threshold control signal CT of the L level is input to the switch 25, the switch 25 is controlled to be on. Therefore, a voltage obtained by dividing the voltage VDD by the resistor 21 and the resistor 23 is input to one input terminal of the comparator 24. Thereafter, the voltage value of the voltage VDD drops, and when the voltage value input to one input terminal of the comparator 24 is lower than the voltage value of the reference voltage Vref1 input to the other input terminal of the comparator 24, the power supply detection circuit 20 outputs the voltage detection signal VDET at the L level. Then, the threshold control signal CT is controlled to the H level by setting the voltage detection signal VDET to the L level. Here, the voltage value of the voltage VDD is lowered, and the voltage value of the voltage VDD when the voltage value input to one input terminal of the comparator 24 is lower than the voltage value of the reference voltage Vref1 input to the other input terminal of the comparator 24 is referred to as a threshold voltage VR 2.
Returning to fig. 1, the voltage VOUT is input to the constant
Here, an example of the configuration of the constant
The constant
The
The gate and source of the
A drain of
The control
In the differential amplifier circuit 41, the
Specifically, the voltage VOUT is input to the source of the
In the differential amplifier circuit 41 configured as described above, the
Specifically, when the voltage value of the reference voltage Vref2 is larger than the voltage value of the voltage VLOGIC, the current between the drain and the source of the
The current control circuit 61 controls the current supplied to the control
A gate of
Among the
A gate of
Of the
A gate of
Of the
A gate of
In the
As described above, the current control circuit 61 controls the current supplied to the control
Here, in the present embodiment, when it is desired to operate the control
When it is desired to improve the operation stability such as the response and the output follow-up of the control
As described above, the
Here, the
The voltage VLOGIC output from the control
Returning to fig. 1, the voltage VLOGIC is input to the power-up reset circuit 50. Then, the reset signal RS1 is output according to whether or not the voltage VLOGIC is equal to or higher than a predetermined voltage value. Specifically, when the voltage value of the voltage VLOGIC is lower than a predetermined voltage value, the power-on reset circuit 50 outputs the reset signal RS1 for resetting the operation of the logic circuit 100.
The voltage VOSC is input to the oscillation circuit 70. The oscillation circuit 70 operates in accordance with the voltage VOSC, and outputs an oscillation signal OSC having a predetermined frequency, such as 32.768 kHz.
Fig. 5 is a diagram showing the structure of the oscillation circuit 70. The oscillation circuit 70 includes capacitors 71, 72, and 73, variable capacitance capacitors 74 and 75, resistors 76 and 77, transistors 81, 82, 83, and 84, and an amplitude detection circuit 85. The oscillator circuit 70 is connected to the vibrator 91 via the electrodes 92 and 93. In this embodiment, the transistors 81 and 83 are P-channel MOS transistors, and the transistors 82 and 84 are N-channel MOS transistors. The vibrator 91 may be a tuning fork quartz vibrator, an AT cut quartz vibrator, an SC cut quartz vibrator, or the like, or may be a piezoelectric vibrator or the like. The vibrator 91 may be a MEMS (Micro Electro Mechanical Systems) vibrator using a silicon semiconductor as a material.
The voltage VOSC is input to the source of the transistor 81. The gate of the transistor 81 is connected to the electrode 92 via the capacitor 72. A drain of the transistor 81 is connected to a drain of the transistor 82. A gate of the transistor 82 is connected to the electrode 92 via the capacitor 73. A source of the transistor 82 is connected to the ground terminal. A connection point between the drain of the transistor 81 and the drain of the transistor 82 is connected to the electrode 93 via the resistor 77.
The variable capacitance capacitor 74 is disposed between the electrode 92 and ground. The variable capacitance capacitor 75 is provided between the electrode 93 and the ground. The resistor 76 is provided between the gate and the drain of the transistor 81.
A gate of the transistor 83 is connected to a gate of the transistor 81. The voltage VOSC is input to the source of the transistor 83. A drain of the transistor 83 is connected to a drain of the transistor 84. A gate of transistor 84 is connected to a gate of transistor 82. A source of the transistor 84 is connected to ground. Further, an oscillation signal OSC is output from a connection point between the drain of the transistor 83 and the drain of the transistor 84.
In the oscillation circuit 70 configured as described above, the oscillator 91 continues oscillation through the transistors 81 and 82, the capacitors 72 and 73, the variable capacitance capacitors 74 and 75, and the resistors 76 and 77, thereby generating an oscillation signal. Then, the transistors 83 and 84 correct the oscillation signal into a rectangular wave and output the square wave as an oscillation signal OSC.
The oscillation circuit 70 of the present embodiment includes an amplitude detection circuit 85. One end of the amplitude detection circuit 85 is connected to the electrode 92 via the capacitor 71. The other end of the amplitude detection circuit 85 is connected to the gate of the transistor 82. Amplitude detection circuit 85 connected as described above detects the amplitude level of the oscillation output signal of oscillator 91 input via capacitor 71 and electrode 92, and controls the amplitude level of the signal input to the gate of transistor 82 based on the detection result.
Specifically, when the oscillation output signal inputted to oscillator 91 at one end is larger than a predetermined amplitude, amplitude detection circuit 85 performs control so as to reduce the amplitude of the signal inputted to the gate of transistor 82. When the oscillation output signal inputted to oscillator 91 at one end is smaller than a predetermined amplitude, amplitude detection circuit 85 controls to increase the amplitude of the signal inputted to the gate of transistor 82. This enables adjustment of the amplitude level of the oscillation output signal output from the electrode 92. Therefore, the possibility of generating a through current in the transistors 81 and 82 and the transistors 83 and 84 is reduced. This enables the
Returning to fig. 1, the oscillation signal OSC and the voltage VLOGIC are input to the level shifter 80. Then, the level shifter 80 level-shifts the voltage value of the oscillation signal OSC to a voltage value based on the voltage VLOGIC, and outputs to the logic circuit 100.
The logic circuit 100 receives a voltage VLOGIC, an oscillation signal OSC level-shifted to a voltage value based on the voltage VLOGIC, a reset signal RS1, and a voltage detection signal VDET. The logic circuit 100 includes a switch control circuit 101, a threshold switching control circuit 102, and a current control circuit 103. Various configurations of the logic circuit 100 including the switch control circuit 101, the threshold switching control circuit 102, and the current control circuit 103 operate with the voltage VLOGIC as a power supply voltage.
The switch control circuit 101 generates power supply switching control signals CS1, CS2, and CS3 based on the input voltage detection signal VDET, and controls the transistors 11, 12, and 13 included in the switch circuit 10. That is, the switch control circuit 101 controls switching of the switch circuit 10 by controlling switching of the transistors 11, 12, and 13 included in the switch circuit 10 based on the voltage detection signal VDET output from the power supply detection circuit 20. Thus, the switch circuit 10 switches whether to output the voltage VDD as the voltage VOUT to the terminal VOUT or to output the voltage VBAT as the voltage VOUT to the terminal VOUT.
Specifically, when the voltage detection signal VDET output from the power supply detection circuit 20 is a signal indicating the H level at which the voltage value of the voltage VDD is higher than the predetermined threshold voltage VR1, the switch control circuit 101 outputs the power supply switching control signals CS1, CS2, and CS3 at L, H, H levels, respectively, in order to output the voltage VDD as the voltage VOUT. When the voltage detection signal VDET output from the power supply detection circuit 20 is a signal at the L level indicating that the voltage value of the voltage VDD is lower than the predetermined threshold voltage VR2, the switch control circuit 101 outputs the power supply switching control signals CS1, CS2, and CS3 at the H, L, L level, respectively, in order to output the voltage VBAT as the voltage VOUT.
The threshold switching control circuit 102 generates a threshold control signal CT based on the voltage detection signal VDET, and outputs the threshold control signal CT to the power supply detection circuit 20 to control the switch 25 included in the power supply detection circuit 20. Thus, the power supply detection circuit 20 can perform detection using different detection thresholds when the voltage VDD increases and when the voltage VDD decreases. That is, the threshold switching control circuit 102 controls switching of the detection threshold of the voltage VDD in the power supply detection circuit 20.
Specifically, the threshold switching control circuit 102 outputs the threshold control signal CT at the L level when the voltage detection signal VDET output from the power supply detection circuit 20 is at the H level, and the threshold switching control circuit 102 outputs the threshold control signal CT at the H level when the voltage detection signal VDET output from the power supply detection circuit 20 is at the L level.
The current control circuit 103 outputs current control signals CC1, CC2 corresponding to the voltage detection signal VDET to the control
Further, a reset signal RS1 is input from the power-on reset circuit 50 to the logic circuit 100. In other words, the power-on reset circuit 50 outputs the reset signal RS1 to the switch control circuit 101, the threshold switching control circuit 102, and the current control circuit 103 included in the logic circuit 100.
When the logic level of the input reset signal RS1 is switched from the L level to the H level, the logic circuit 100 operates with the voltage VLOGIC input from the control
The oscillation signal OSC level-shifted to the voltage value of the voltage VLOGIC by the level shifter 80 is input to the logic circuit 100. Then, the logic circuit 100 outputs the input oscillation signal OSC level-shifted to the voltage value of the voltage VLOGIC as the oscillation signal CLK. The logic circuit 100 may include an oscillation signal output control circuit, not shown, that switches whether or not to output the oscillation signal OSC level-shifted to the voltage value of the voltage VLOGIC as the oscillation signal CLK.
The level shifter 210 is input with the oscillation signal CLK and the voltage VIO. Then, the level shifter 210 level-shifts the voltage value of the oscillation signal CLK to a voltage value based on the voltage VIO corresponding to the specification of the
The output circuit 220 is input with a signal that level-shifts the oscillation signal CLK to a voltage value based on the voltage VIO. Then, the output circuit 220 performs waveform correction or the like on a signal level-shifted by the input oscillation signal CLK to a voltage value based on the voltage VIO, and outputs the signal as an output signal FOUT from a terminal FOUT.
The oscillation signal CLK is input to the timing circuit 230. The timing circuit 230 includes a frequency dividing circuit not shown. Then, the frequency of the oscillation signal CLK is divided by the frequency dividing circuit to generate a signal of a desired frequency. The timing circuit 230 performs a timing operation based on the divided oscillation signal CLK. The timer circuit 230 generates, for example, timer data indicating time in seconds, timer data indicating time in years, and the like as a timer operation.
The interface circuit 240 is an interface for performing communication between the
Here, in the RTC module that switches between supplying the main power supply as the power supply voltage and supplying the backup power supply as the power supply voltage, when switching from the main power supply to the backup power supply or switching from the backup power supply to the main power supply, a temporary voltage value change may occur in the constant voltage signal generated inside the RTC module.
If the voltage value of the constant voltage signal supplied to the oscillation circuit among the constant voltage signals generated inside the RTC module changes, the operation of the oscillation circuit is temporarily stopped, and the timing accuracy of the timing function that operates based on the output of the oscillation circuit may decrease. Further, when a voltage value of a constant voltage signal supplied to a logic circuit among constant voltage signals generated inside the RTC module changes, a power-on reset circuit connected to the logic circuit may operate to initialize the logic circuit.
The above problem arises because the responsiveness of the constant voltage generation circuit that generates the constant voltage signal is low due to the RTC module being operated with a low consumption current in order to suppress the consumption of the backup power supply, and therefore the constant voltage signal generation operation of the constant voltage generation circuit cannot follow the change in the voltage value of the supply voltage that occurs when the supply destination of the power supply is switched.
Therefore, the
1.1.2 supply Voltage switching control
As described above, in the
Therefore, in the
Fig. 6 is a flowchart for explaining the operation of the
When the commercial power supply for generating voltage VDD is turned on again, the primary battery is replaced, and the secondary battery is recharged in a state where the voltage value of voltage VDD is lower than threshold voltage VR2, the voltage value of voltage VDD increases (step S110). Then, the power supply detection circuit 20 determines whether or not the voltage value of the voltage VDD exceeds the threshold voltage VR1 (step S120).
When the voltage value of the voltage VDD is equal to or lower than the threshold voltage VR1 (no in step S120), the power supply detection circuit 20 continues to determine whether or not the voltage value of the voltage VDD exceeds the threshold voltage VR1 (step S120). On the other hand, when the power supply detection circuit 20 determines that the voltage value of the voltage VDD exceeds the threshold voltage VR1 (yes in step S120), the current control circuit 103 controls the
After the current control circuit 103 sets the current control signal CC2 to the H level, the switch control circuit 101 controls the transistor 11 to be on and controls the transistors 12 and 13 to be off (step S140). Specifically, the switch control circuit 101 sets the power supply switching control signals CS1, CS2, and CS3 to L, H, H levels. Thus, the switch circuit 10 outputs the voltage VDD as the voltage VOUT.
Then, after the voltage VDD is output as the voltage VOUT, the current control circuit 103 controls the
Fig. 7 is a flowchart for explaining the operation of the
In a state where the voltage value of voltage VDD exceeds threshold voltage VR1, the voltage value of voltage VDD decreases due to a stop of a commercial power supply for generating voltage VDD, a shortage of the remaining battery capacities of the primary battery and the secondary battery, and the like (step S210). Then, the power supply detection circuit 20 determines whether or not the voltage value of the voltage VDD is lower than the threshold voltage VR2 (step S220).
When the voltage value of the voltage VDD is equal to or higher than the threshold voltage VR2 (no in step S220), the power supply detection circuit 20 continues to determine whether the voltage value of the voltage VDD is lower than the threshold voltage VR2 (step S220). On the other hand, when the power supply detection circuit 20 determines that the voltage value of the voltage VDD is lower than the threshold voltage VR2 (yes in step S220), the current control circuit 103 controls the
After the current control circuit 103 outputs the H-level current control signal CC2, the switch control circuit 101 controls the transistor 11 to be off and controls the transistors 12 and 13 to be on (step S240). Specifically, the switch control circuit 101 sets the logic level of the power supply switching control signals CS1, CS2, and CS3 to H, L, L level. Thus, the switching circuit 10 outputs the voltage VBAT as the voltage VOUT.
Then, after the voltage VBAT is output as the voltage VOUT, the current control circuit 103 controls the
As described above, in the
In this case, as shown in this embodiment, it is preferable that the switching control circuit 101 switches the switching circuit 10 after the current control circuit 103 increases the current supplied to the control
Here, a specific example of the voltage switching control and the current increase control in the case where the supply of the voltage VDD is started will be described with reference to fig. 8 and 9 for the
Fig. 8 is a timing chart for explaining an operation in the case where the voltage VDD supplied to the
First, until time t1, the voltage VDD is not supplied to the
At time t1, the voltage VDD is supplied to the
At time t4, the voltage value of voltage VOUT decreases by switching the voltage shared as voltage VOUT from voltage VBAT to voltage VDD. At this time, since the current control signal CC2 is at the H level, the control
After time t4, the current control circuit 103 sets the current control signal CC2 to the L level at time t5 after a predetermined period has elapsed. This can reduce the current consumption of the
Here, immediately after the voltage detection signal VDET is inverted from the L level to the H level, the current control circuit 103 may set the current control signal CC2 to the H level, and after the voltage detection signal VDET is inverted from the L level to the H level, the current control circuit 103 may set the current control signal CC2 to the H level after a predetermined period of time has elapsed. Further, the current control circuit 103 may change the current control signal CC2 from the H level to the L level after a predetermined time has elapsed since the voltage detection signal VDET is inverted from the L level to the H level, or after a predetermined period has elapsed since the power supply switching control signals CS1, CS2, and CS3 are switched to the L, H, H level.
Fig. 9 is a timing chart for explaining an operation in the case where the voltage VDD supplied to the
First, until time t11, the voltage VDD is not supplied to the
At time t11, the voltage VDD is supplied to the
Here, when the voltage value of the voltage VDD is higher than the voltage value of the voltage VBAT as shown in fig. 9, the voltage value of the voltage VOUT is the voltage value of the voltage VDD supplied via a diode formed in the transistor 11. In other words, the voltage VOUT may be limited by the voltage value of the voltage VDD regardless of the power supply switching control signals CS1, CS2, and CS 3. Even in such a case, the current control signal CC2 is controlled to the H level according to the voltage value of the voltage VDD, and the control
The logic levels of the various signals in the present embodiment are merely examples, and are not limited thereto.
1.1.3 Effect
As described above, the
1.2 embodiment 2
Next, the
Fig. 10 is a diagram showing the structure of the
In the
In response to such a change in the voltage value of the voltage VOUT that cannot be detected by the power supply detection circuit 20, the
As shown in fig. 10, a voltage VDD is input to one end of the power-up reset circuit 90. When the voltage VDD reaches a predetermined voltage value, the H-level reset signal RS2 is output to the logic circuit 100. When the input reset signal RS2 changes from the L level to the H level, the logic circuit 100 outputs the current control signal CC2 at the H level from the current control circuit 103.
Thus, in the
Fig. 11 is a flowchart for explaining the operation of the
In the same manner as in
Then, the power-on reset circuit 90 determines whether or not the voltage value of the voltage VDD exceeds the threshold voltage VR3 (step S111). When the power-on reset circuit 90 determines that the voltage value of the voltage VDD is equal to or less than the threshold voltage VR3 (no in step S111), the logic circuit 100 determines whether or not a predetermined time has elapsed during the rest period of the intermittent operation (step S112).
When determining that the predetermined time has not elapsed during the off period of the RTC module 1 (no in step S112), the logic circuit 100 causes the power-on reset circuit 90 to continue determining whether or not the voltage value of the voltage VDD exceeds the threshold voltage VR3 (step S111). That is, the
When the logic circuit 100 determines that the predetermined time has elapsed since the off period of the RTC module 1 (yes in step S112), the power supply detection circuit 20 determines whether or not the voltage value of the voltage VDD exceeds the threshold voltage VR1 (step S120). That is, the
When the power-on reset circuit 90 determines that the voltage value of the voltage VDD exceeds the threshold voltage VR3 (yes in step S111), the power-on reset circuit 90 outputs the reset signal RS2 at the H level. Then, the reset signal RS2 input to the logic circuit 100 changes from the L level to the H level, whereby the current control circuit 103 controls the
Fig. 12 is a timing chart for explaining the operation of the
At time t21, the
Then, at time t22 in the off period of the
At time t23, the voltage value of voltage VDD exceeds the threshold voltage VR 3. Thereby, the power-on reset circuit 90 outputs the reset signal RS2 of the H level to the logic circuit 100. The reset signal RS2 input to the logic circuit 100 changes from the L level to the H level, and the current control circuit 103 thereby sets the current control signal CC2 to the H level. Thereby, the current supplied to the control
At time t24, the
As described above, in the
Here, the power-on reset circuit 90 is an example of the 2 nd power-on reset circuit, and the reset signal RS2 output from the power-on reset circuit 90 is an example of the 2 nd reset signal.
2. Electronic device
Fig. 13 is a functional block diagram showing an example of the configuration of the
The
The power supply unit 380 generates and outputs a power supply voltage for operating each unit of the
The RTC module 310 includes a vibrator and a timer circuit, not shown. Then, a constant frequency signal of 32.786kHz, timing data indicating time in seconds or time in years, or the like is generated from the oscillation signal of the transducer and output to the CPU 320.
The CPU320 is a processing section that performs various kinds of calculation processing and control processing using the time data input from the RTC module 310 according to a program stored in the ROM 340 or the like. CPU320 performs various processes in accordance with an operation signal from
The
The ROM 340 is a storage unit that stores programs, data, and the like for the CPU320 to perform various kinds of calculation processing and control processing.
The RAM 350 is used as a work area of the CPU320, and is a storage unit that temporarily stores programs and data read from the ROM 340, data input from the
The communication section 360 performs various controls for establishing data communication between the CPU320 and an external device.
The
By applying the
As such an electronic device 300, various electronic devices are considered, and examples thereof include a personal computer such as a mobile type, a laptop type, a tablet type, or the like, a mobile terminal such as a smartphone or a mobile phone, an ink jet type discharge device such as a digital camera or an ink jet type printer, a storage area network device such as a router or a switch, a local area network device, a device for a mobile terminal base station, a television, a video camera, a video recorder, a car navigation device, a real-time clock device, a pager, an electronic organizer, an electronic dictionary, a calculator, an electronic game device, a game controller, a word processor, a workstation, a video phone, a video monitor for theft prevention, an electronic binocular, a POS terminal, an electronic thermometer, a sphygmomanometer, a blood glucose meter, an electrocardiograph, an ultrasonic diagnostic device, a medical device such as an electronic endoscope, a fish detector, a fish school detector, a fish finder, various measuring devices, metering instruments such as vehicles, airplanes and ships, flight simulators, head-mounted displays, motion trackers, motion followers, motion controllers, Pedestrian autonomous navigation (PDR) devices and the like.
3. Moving body
Fig. 15 is a diagram showing an example of the mobile unit 400 according to the present embodiment. The mobile unit 400 shown in fig. 15 includes an RTC (Real Time Clock) module 410, controllers 420, 430, and 440 for performing various controls of an engine system, a brake system, a keyless entry system, and the like, a battery 450, and a backup battery 460. In addition, the mobile unit 400 according to the present embodiment may be configured such that a part of the components shown in fig. 15 is omitted or other components are added.
The RTC module 410 includes a vibrator and a timer circuit, not shown. Then, a constant frequency signal of 32.786kHz, timing data indicating time in seconds or time in years, or the like is generated from the oscillation signal of the oscillator, and output from the external terminal of the RTC module 410 to the controllers 420, 430, and 440.
The battery 450 supplies power to the RTC module 410 and the controllers 420, 430, 440. The backup battery 460 supplies power to the RTC module 410 and the controllers 420, 430, 440 when the output voltage of the battery 450 is lower than a threshold value.
By applying the
As such a mobile body 400, various mobile bodies 400 are conceivable, and examples thereof include automobiles such as electric automobiles, airplanes such as jet airplanes and helicopters, ships, rockets, artificial satellites, and the like.
The embodiments and the modifications have been described above, but the present invention is not limited to these embodiments, and various embodiments can be implemented without departing from the scope of the invention. For example, the above embodiments may be combined as appropriate.
The present invention includes substantially the same structures (for example, structures having the same functions, methods, and results, or structures having the same objects and effects) as those described in the embodiments. The present invention includes a structure in which an immaterial portion of the structure described in the embodiment is replaced. The present invention includes a structure that can achieve the same operational effects or the same objects as the structures described in the embodiments. The present invention includes a configuration in which a known technique is added to the configuration described in the embodiment.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:一种高稳定可设置三角波发生器电路