The disclosure of Japanese Patent Application No. 2023-120811 filed on Jul. 25, 2023, including the specification, drawings and abstract is incorporated herein by reference in its entirety.
The present invention relates to a semiconductor device.
There are disclosed techniques listed below.
A power circuit mounted on an MCU (Micro Controller Unit) generates a power supply voltage VDD based on a reference voltage after power-on reset is released. Patent Document 1 and Patent Document 2 disclose a technology for adjusting the power supply voltage by trimming the reference voltage.
It is desired to expand the adjustment range of the power supply voltage generated based on the reference voltage while suppressing the influence of voltage noise.
Other objects and novel features will become apparent from the description of this specification and the accompanying drawings.
A semiconductor device according to one embodiment includes a reference voltage generating circuit that generates a reference voltage, a regulator that generates a power supply voltage based on the reference voltage, and a buffer that transmits the reference voltage from the reference voltage generating circuit to the regulator. The reference voltage generating circuit is configured to be able to adjust the reference voltage. The regulator is configured to be able to change the output ratio of the power supply voltage to the reference voltage. The semiconductor device further includes a voltage control circuit that outputs a voltage control signal to the regulator to switch the output ratio.
According to the one embodiment, it is possible to expand the adjustment range of the power supply voltage generated based on the reference voltage while suppressing the influence of voltage noise.
For clarity of explanation, the following descriptions and drawings are appropriately omitted and simplified. Each element described in the drawings as a function block performing various processes can be configured in hardware by a CPU, memory, and other circuits, and can be realized in software by a program loaded into memory, etc. Therefore, it is understood by those skilled in the art that these function blocks can be realized in various forms by hardware, software operating on hardware, or a combination thereof, and are not limited to any one. In the drawings, the same elements are denoted by the same reference numerals, and a repetitive description thereof is omitted as necessary.
The program mentioned above, when loaded into a computer, includes a group of instructions (or software code) for causing the computer to perform one or more functions described in the embodiment. The program may be stored in a non-temporary computer-readable medium or a tangible memory medium. Non-limiting examples of computer-readable media or tangible memory media include Random Access Memory (RAM), Read Only Memory (ROM), flash memory, Solid State Drive (SSD) or other memory technologies, CD-ROM, Digital Versatile Disc (DVD), Blu-ray (registered trademark) disc or other optical disc storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage devices. The program may be transmitted on a temporary computer-readable medium or communication medium. Non-limiting examples of temporary computer-readable media or communication media include electrical, optical, acoustic, or other forms of propagation signals.
The reference voltage generation circuit is a circuit that generates a reference voltage VREF, and is configured to be able to adjust the reference voltage VREF. The reference voltage generation circuit 120 includes a BGR (Bandgap Reference) 121, an operational amplifier 122, a p-type FET (Field Effect Transistor) 123, a series ladder resistor 124, and a selector 125. The BGR121 generates a BGR voltage VBGR. The BGR voltage VBGR is input to the negative input terminal of the operational amplifier 122. The output terminal of the operational amplifier 122 is connected to the gate terminal of the FET123. The source terminal of FET123 is connected to a power line supplying power voltage VCC, and the drain terminal of FET123 is connected to ground via ladder resistor 124. The power voltage VCC is also referred to as a primary power supply. The power voltage VDD, which will be described later, is also referred to as a secondary power supply. Selector 125 selects one node from multiple nodes on ladder resistor 124 based on a trimming code to be described later, and inputs the voltage (referred to as feedback loop voltage VFB1) of the selected one connection node to the positive input terminal of operational amplifier 122. The voltage (referred to as voltage detection value HDET) of a predetermined node included in the multiple nodes on ladder resistor 124 is supplied to voltage detection circuit 150. Reference voltage generation circuit 120 outputs the voltage of the node between FET123 and ladder resistor 124 as reference voltage VREF.
Buffer 130 transmits the reference voltage VREF generated by reference voltage generation circuit 120 to regulator 140. The characteristics of the elements included in buffer 130 are adjusted based on the trimming code. Buffer 130 may be, for example, a voltage follower circuit including an operational amplifier.
The regulator 140 includes an operational amplifier 141, a p-type FET 142, a resistor RO, and a resistor R1. The negative input terminal of the operational amplifier 141 is connected to the output terminal of the buffer 130. The output terminal of the operational amplifier 141 is connected to the gate terminal of the FET 142. The source terminal of the FET 142 is connected to a power line that supplies the power supply voltage VCC. The drain terminal of the FET 142 is connected to one end of the resistor R1. The other end of the resistor R1 is connected to one end of the resistor RO. The other end of the resistor RO is connected to the ground. The voltage at the node between the resistors RO and RI is input to the positive input terminal of the operational amplifier 141. The regulator 140 outputs the voltage at the node between the FET 142 and the resistor RI as the power supply voltage VDD. The power supply voltage VDD is also referred to as the secondary power supply. The power supply voltage VDD is supplied to the non-volatile memory block 172 to be described later, and the power supply voltage VCC is supplied to other circuits.
The voltage detection circuit 150 includes a circuit that detects when the power supply voltage VDD exceeds the voltage detection value HDET and a circuit that detects when the power supply voltage VDD exceeds the voltage detection value LDET. The voltage detection value LDET may be supplied from the reference voltage generation circuit 120, like the voltage detection value HDET. The voltage detection value LDET is lower than the voltage detection value HDET. When the power supply voltage VDD exceeds the voltage detection value HDET, the voltage detection circuit 150 outputs a voltage guarantee signal to the trimming circuit 170.
Referring to
The reference voltage generation circuit 120 generates a reference voltage VREF based on the BGR voltage VBGR. The power supply voltage VDD and the voltage detection value HDET are generated based on the reference voltage VREF. Therefore, in a steady state, the power supply voltage VDD is proportional to the BGR voltage VBGR, and the voltage detection value HDET is proportional to the BGR voltage VBGR. Therefore, a linear variation with respect to ΔVBGR propagates to the power supply voltage VDD and the voltage detection value HDET.
The solid line on the upper side of each figure represents the power supply voltage VDD, and the solid line on the lower side represents the voltage detection value HDET. The double arrows on the upper side represent the variation of the power supply voltage VDD when ΔVBGR is fixed. The changes in the upper and lower limits of the variation of the power supply voltage VDD are shown by dotted lines. The double arrows on the lower side represent the variation of HDET when ΔVBGR is fixed. The changes in the upper and lower limits of the variation of the voltage detection value HDET are shown by dotted lines. Due to the variation ΔVBGR of the BGR voltage VBGR, the fluctuation range of the power supply voltage VDD becomes a range of VDD (min) or more and VDD (max) or less. Similarly, due to the variation ΔVBGR of the BGR voltage VBGR, the fluctuation range of the voltage detection value HDET becomes a range of HDET (min) or more and HDET (max) or less. Referring to the right figure, the fluctuation range of the power supply voltage VDD after trimming is narrower than the fluctuation range of the power supply voltage VDD before trimming. Similarly, the fluctuation range of the voltage detection value HDET after trimming is narrower than the fluctuation range of the voltage detection value HDET before trimming.
The main cause of the fluctuation of the power supply voltage VDD is the differential mismatch of the operational amplifier 141 included in the regulator 140. The main cause of the fluctuation of the voltage detection value HDET is the differential mismatch of the operational amplifier (not shown) included in the voltage detection circuit 150. Since the manufacturing variations of the regulator 140 and the voltage detection circuit 150 are independent of each other, the power supply voltage VDD and the voltage detection value HDET fluctuate independently.
Next, I will explain the problem that the inventor of the present invention newly found about the semiconductor device 100. In the semiconductor device 100, since the power supply voltage VDD and the voltage detection value HDET fluctuate independently, as the MCU is low-voltage, the power supply voltage VDD before trimming may be lower than the voltage detection value HDET.
When the power supply voltage VDD before trimming is lower than the voltage detection value HDET, the voltage detection circuit 150 does not output a voltage guarantee signal to the trimming control circuit 171. Then, the trimming control circuit 171 does not output a trimming request to the non-volatile memory block 172. Therefore, the semiconductor device 100 cannot adjust the reference voltage VREF.
The inventor of the present invention has considered increasing the initial power supply voltage VDD higher than the power supply voltage VDD during normal operation to solve the above problem, so that the power supply voltage VDD, which has fluctuated downward, becomes higher than the voltage detection value HDET.
Next, the problems of the semiconductor device 200 will be explained. When the selector 126 switches the height of the reference voltage VREF, charge movement occurs from the selected node. Therefore, transient switching noise propagates to the feedback loop voltage VFB1 and the voltage detection value HDET. The dotted arrow indicates the path through which the switching noise propagates. The voltage noise generated in the feedback loop voltage VFB1 propagates to BGR121 through the capacitive coupling included in the differential amplification circuit of the operational amplifier 122. The voltage noise propagated to BGR121 deteriorates the accuracy of the BGR voltage VBGR, and the voltage noise propagated to the voltage detection circuit 150 deteriorates the accuracy of the voltage detection value HDET.
Based on the above considerations, the inventor of the present invention conceived the following embodiments.
The regulator 140a is configured to be able to change the output ratio of the power supply voltage VDD to the reference voltage VREF. For example, the resistor R1 may be configured as a variable resistor Rct. The output voltage VOUT of the operational amplifier 141 is expressed as VOUT=(1+Rct/R0) VREF. Alternatively, a series ladder resistor (not shown) may be arranged between the power line that outputs the power supply voltage VDD and the ground, and a selector (not shown) that selects one node from multiple nodes may be provided. The voltage of the selected one node is input to the negative input terminal of the operational amplifier 141. The voltage input to the negative input terminal of the operational amplifier 141 is called the feedback loop voltage VFB2.
The voltage control circuit 180 outputs a voltage control signal for switching the output ratio of the power supply voltage VDD to the reference voltage VREF to the regulator 140a. Specifically, the voltage control circuit 180 outputs a pre-trimming setting value (VDD setting value 1) or a post-trimming setting value (VDD setting value 2) as a voltage control signal based on an external notification (referred to as a trimming read completion notification). If the voltage control trimming read completion notification is not input, the voltage control circuit 180 outputs a setting value (for example, “0”) for outputting a high power supply voltage VDD to the regulator 140a. If the trimming completion notification is input, the voltage control circuit 180 outputs a setting value (for example, “1”) for outputting a low power supply voltage VDD to the regulator 140a. “0” represents the L level, and “1” represents the H level. The trimming read completion notification may be transmitted from the non-volatile memory block 172, or may be transmitted from a counter (not shown). The voltage control circuit 180 may, for example, change the power supply voltage VDD by about 0.1V.
Similar to the examined example, voltage noise is generated due to fluctuations in the power supply voltage VDD, but the voltage noise propagated to BGR121 and voltage detection circuit 150 is small. This is because the voltage noise propagates through buffer 130. Therefore, the semiconductor device 300 can suppress the influence of voltage noise on the BGR voltage VBGR and the voltage detection value HDET.
In the semiconductor device 100, after the power supply voltage VDD exceeds the voltage detection value HDET (first threshold), the output ratio of the power supply voltage VDD to the reference voltage VREF is switched from the first output ratio to the second output ratio, which is smaller than the first output ratio. This allows the semiconductor device 100 to reliably trim the reference voltage VREF.
The semiconductor device 300 according to the first embodiment can expand the adjustment range of the power supply voltage VDD while suppressing the effects of voltage noise generation. The semiconductor device 300 can prevent the voltage noise from propagating to BGR121, voltage detection circuit 150, etc., and prevent the accuracy of the power supply voltage VDD and the voltage detection value HDET from decreasing. In addition, the semiconductor device 300 can prevent the trimming of the reference voltage from not being performed by expanding the adjustment range of the power supply voltage VDD.
Next, the semiconductor device 300a according to Embodiment 1, which is a specific example of the first embodiment, will be described.
The regulator 140a further includes a pulse generator 145, a p-type MOSFET 146, an n-type MOSFET 147, a diode 148, an inductor L, and a capacitor C. The source terminal of the MOSFET 146 is connected to a power line that supplies the power supply voltage VCC. The drain terminals of the MOSFET 146 and the MOSFET 147 are interconnected. The source terminal of the MOSFET 147 is connected to the ground GND. The pulse generator 145 switches the on and off of the MOSFETs 146 and 147 based on the output voltage of the operational amplifier 141 and the clock signal CLK. The voltage at the node between the MOSFETs 146 and 147 is output as the power supply voltage VDD through the inductor L. The anode terminal of the diode 148 is connected to the ground GND. The cathode terminal of the diode 148 is connected to the node between the MOSFET 147 and the inductor L. The capacitor C is placed between the power line that outputs the power supply voltage VDD and the ground GND.
The dotted lines surrounding the buffer 130 and the regulator 140a indicate that these circuits are supplied with the power supply voltage VCC. The dotted lines surrounding the trimming control circuit 171, the trimming code supply circuit 173, and the voltage control circuit 180 indicate that these circuits are supplied with the power supply voltage VCC. In addition, the power supply voltage VCC is supplied to the reset generation circuit 110, the reference voltage generation circuit 120, the voltage detection circuit 150, and the oscillator 160. The non-volatile memory block 172 is supplied with the power supply voltage VDD generated by the regulator 140.
The operation of the semiconductor device 300a according to Embodiment 1 will be described. After power-on, when the power supply voltage VCC becomes equal to or higher than a threshold, the reset generation circuit 110 releases the power-on reset, and the oscillator 160 starts oscillation. In parallel with the release of the power-on reset and the start of oscillation, the regulator 140a generates the power supply voltage VDD based on the power supply voltage VCC in accordance with the voltage control signal generated by the voltage control circuit 180. Then, the voltage detection circuit 150 detects that the power supply voltage VDD is within the voltage guarantee range, that is, the power supply voltage VDD has exceeded the voltage detection value HDET, and outputs a voltage guarantee signal to the trimming control circuit 171. Then, the trimming control circuit 171 outputs a memory reset and a trimming start request to the non-volatile memory block 172. Note that the power-on reset of the trimming control circuit 171 is released, and a clock is supplied to the trimming control circuit 171 from the oscillator 160. Then, reset transfer information including a trimming code is read from the non-volatile memory block 172, and the trimming code is stored in the trimming code supply circuit 173. Then, the reference voltage VREF generated by the reference voltage generation circuit 120 is fine-tuned. Then, the non-volatile memory block 172 outputs a trimming read completion notification to the voltage control circuit 180. Upon receiving the trimming code completion notification, the voltage control circuit 180 changes the power supply voltage VDD by outputting a voltage control signal to the regulator 140a. The power supply voltage VDD is changed from a high voltage (for example, 0.9V) to a low voltage (for example, 0.8V).
Note that in
In the semiconductor device 300a according to Embodiment 1, the non-volatile memory block 172 that stores the trimming code can notify the voltage control circuit 180 of the appropriate timing for switching the power supply voltage VDD.
Next, the semiconductor device 300b according to Embodiment 2, which is a specific example of the first embodiment, will be described.
The operation of the semiconductor device 300b will be described. After power-on, when the power supply voltage VCC exceeds the threshold, the reset generation circuit 110 releases the power-on reset, and the oscillator 160 starts oscillating. When the trimming control circuit 171 outputs a memory reset and a trimming start request to the non-volatile memory block 172, the counter 190 starts counting the number of pulses of the clock signal generated by the oscillator 160. The counter 190 can guarantee the length of the trimming read period. Then, the trimming code is read from the non-volatile memory block 172 and stored in the trimming code supply circuit 173. Then, when the counted number of pulses reaches a predetermined number, the counter 190 outputs a trimming read completion notification to the voltage control circuit 180, and the voltage control circuit 180 changes the power supply voltage VDD. As with Embodiment 1, the regulator 140a may be configured as a step-up DCDC converter or a linear regulator.
In the semiconductor device 300b according to Embodiment 2, the counter 190 can notify the voltage control circuit 180 of the appropriate timing to switch the power supply voltage VDD.
Finally, the effect of the semiconductor device 300 according to the first embodiment will be described. The semiconductor device 300 can expand the adjustment range of the power supply voltage VDD while maintaining the accuracy of both the voltage detection value HDET and the power supply voltage VDD without significantly changing the circuit area.
With the semiconductor device 300, the operating voltage during normal operation of the MCU can be determined based on the relationship between the variation range of the power supply voltage VDD after trimming and the electrical characteristics in the process, regardless of the variation range of the power supply voltage VDD before trimming. Therefore, the semiconductor device 300 can contribute to the reduction of the operating voltage of the MCU.
Although the invention made by the present inventor has been specifically described based on the embodiment, the present invention is not limited to the embodiment described above, and it is needless to say that various modifications can be made without departing from the gist thereof.
Number | Date | Country | Kind |
---|---|---|---|
2023-120811 | Jul 2023 | JP | national |