Monitoring device, electronic device and monitoring method
By using the same bandgap reference circuit unit and signal selection unit in the SoC chip, the area, power consumption and accuracy problems caused by independent IP modules in the prior art are solved, and high precision and low precision are achieved Cost and quick switching monitoring effect.
Patent Information
- Application Number
- CN202211063466.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-29
- Publication Date
- 2024-11-26
- Estimated Expiration
- 2042-08-29
AI Technical Summary
In the prior art, temperature monitoring and voltage monitoring usually require independent IP modules in SoC chips, resulting in increased chip area and power consumption, high testing costs, and it is impossible to ensure the accuracy of temperature measurement and voltage measurement and the measurement range of narrow.
By providing different reference voltages in the same bandgap reference circuit unit, and selecting different measurement signals using the signal selection unit, and using the same signal acquisition module for signal sampling, the integration of temperature monitoring and voltage monitoring is achieved, reducing the chip circuit area and Power consumption, improve measurement accuracy and cost efficiency.
It realizes the integration of temperature monitoring and voltage monitoring functions, reduces the circuit area and power consumption of the chip, improves measurement accuracy and cost efficiency, and has the advantages of fast switching and simple integration.
Smart Images

Figure CN115420334B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to a monitoring device, an electronic device, and a monitoring method. Background Art
[0002] With the continuous development of CMOS (Complementary Metal Oxide Semiconductor) technology, the integration of chips is getting higher and higher. For highly integrated chips, on the one hand, if the internal heat consumption of the chip increases sharply during operation, the chip temperature will be too high, and even directly cause the chip to burn. Therefore, a high-precision temperature sensor is usually provided inside the chip to monitor overheating problems. On the other hand, in order to monitor the voltage drop or node voltage of the power supply or ground inside the chip, a corresponding monitoring circuit is usually designed to monitor the important signal voltage inside the chip to improve the chip monitorability. Summary of the invention
[0003] At least one embodiment of the present disclosure provides a monitoring device, which includes: a signal acquisition module, including: a bandgap reference circuit unit, configured to provide a positive temperature coefficient voltage and a first reference voltage in a first mode, and to provide a second reference voltage in a second mode, and a signal selection unit, configured to select to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit in the first mode and to select to receive the first input voltage in the second mode as an input signal; and a signal processing module, configured to perform a first processing on the input signal and the first reference voltage in the first mode and to perform a second processing on the input signal and the second reference voltage in the second mode to generate output data.
[0004] For example, the monitoring device provided by at least one embodiment of the present disclosure also includes a computing module, which is configured to receive the output data and convert the output data into a temperature value in the first mode and convert the output data into a voltage value in the second mode.
[0005] For example, the monitoring device provided in at least one embodiment of the present disclosure also includes a control module, which is coupled to the signal acquisition module and the signal processing module and is configured to provide a first control signal so that the monitoring device operates in the first mode or the second mode, respectively.
[0006] For example, in the monitoring device provided by at least one embodiment of the present disclosure, the signal acquisition module includes a voltage input submodule, the voltage input submodule includes a level shifting circuit, and the level shifting circuit is configured to receive the monitored node voltage and the second reference voltage to preprocess the monitored node voltage in a first preprocessing manner based on a second control signal to generate a first preprocessed voltage.
[0007] For example, in the monitoring device provided in at least one embodiment of the present disclosure, the control module is further configured to provide the second control signal so that the level shifting circuit and the signal processing module are coupled and work based on the first preprocessing method.
[0008] For example, in the monitoring device provided by at least one embodiment of the present disclosure, the first preprocessing method includes a first shifting method, a second shifting method and a third shifting method, and the level shifting circuit is configured to, in the first shifting method, in response to the monitored node voltage being greater than or equal to the first voltage and less than or equal to the second voltage, use the monitored node voltage as the first preprocessing voltage; in the second shifting method, in response to the monitored node voltage being less than the first voltage, use the sum of the monitored node voltage and the first offset voltage as the first preprocessing voltage; in the third shifting method, in response to the monitored node voltage being greater than the second voltage, use the difference between the monitored node voltage and the second offset voltage as the first preprocessing voltage.
[0009] For example, in the monitoring device provided in at least one embodiment of the present disclosure, the voltage input submodule also includes an input buffer circuit, which is coupled between the level shift circuit and the signal selection unit and is configured to buffer the first preprocessed voltage to generate the first input voltage.
[0010] For example, in the monitoring device provided in at least one embodiment of the present disclosure, the signal processing module includes an analog-to-digital conversion submodule, and the analog-to-digital conversion submodule is configured to, in the first mode, compare the input signal with the first reference voltage to generate a first code stream, or, in the second mode, compare the input signal with the second reference voltage to generate a second code stream.
[0011] For example, in the monitoring device provided in at least one embodiment of the present disclosure, the analog-to-digital conversion submodule is further configured to perform a first conversion on the first code stream or the second code stream to generate first output data.
[0012] For example, in the monitoring device provided in at least one embodiment of the present disclosure, the signal processing module also includes a digital control submodule, the monitored node voltage is first preprocessed according to a first shift method, a second shift method, and a third shift method to generate a first preprocessed voltage, and the digital control submodule is configured to, in the first mode or the first shift method, output the first output data as the output data, in the second shift method, perform the second conversion on the difference between the first output data and the first offset value to generate the output data, and in the third shift method, perform the second conversion on the sum of the first output data and the second offset value to generate the output data.
[0013] For example, in the monitoring device provided by at least one embodiment of the present disclosure, the analog-to-digital conversion submodule is also configured to receive a start signal and a completion signal, and in the first mode, start the first processing based on the start signal and end the first processing based on the completion signal, or, in the second mode, start the second processing based on the start signal and end the second processing based on the completion signal.
[0014] At least one embodiment of the present disclosure further provides an electronic device, which includes the monitoring device provided by any embodiment of the present disclosure.
[0015] At least one embodiment of the present disclosure also provides a monitoring method, which includes: obtaining a positive temperature coefficient voltage and a first reference voltage provided by a bandgap reference circuit unit in a first mode, or a second reference voltage provided in a second mode; and selecting to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit in the first mode, and selecting to receive a first input voltage in the second mode as an input signal; and performing a first processing on the input signal and the first reference voltage in the first mode, and performing a second processing on the input signal and the second reference voltage in the second mode to generate output data.
[0016] For example, the monitoring method provided by at least one embodiment of the present disclosure further includes receiving the output data; in the first mode, converting the output data into a temperature value, or, in the second mode, converting the output data into a voltage value. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings of the embodiments will be briefly introduced below. Obviously, the drawings in the following description only relate to some embodiments of the present disclosure, but are not intended to limit the present disclosure.
[0018] Figure 1A It is a structural schematic diagram of a temperature monitoring circuit;
[0019] Figure 1B It is a structural schematic diagram of a voltage monitoring circuit;
[0020] Figure 2 A schematic block diagram of a monitoring device provided in at least one embodiment of the present disclosure;
[0021] Figure 3A A block diagram of a bandgap reference circuit according to at least one embodiment of the present disclosure is shown.
[0022] Figure 3B A circuit diagram of a bandgap reference circuit according to at least one embodiment of the present disclosure is shown.
[0023] Figure 3C A circuit diagram of a bandgap reference circuit in a first mode according to at least one embodiment of the present disclosure is shown.
[0024] Figure 3D A circuit diagram of a bandgap reference circuit in a second mode according to at least one embodiment of the present disclosure is shown.
[0025] Figure 3E A block diagram showing the operating principle of a bandgap reference circuit according to at least one embodiment of the present disclosure is shown.
[0026] Figure 4A A schematic block diagram of another monitoring device provided for at least one embodiment of the present disclosure;
[0027] Figure 4B A schematic block diagram of another monitoring device provided for at least one embodiment of the present disclosure;
[0028] Figure 5A A schematic diagram of an allowable range of operating voltage of an input buffer circuit provided by at least one embodiment of the present disclosure;
[0029] Figure 5B A schematic diagram of an allowable range of operating voltage of a level shift circuit provided by at least one embodiment of the present disclosure;
[0030] Figure 6 A schematic diagram of a working process of a monitoring device provided in at least one embodiment of the present disclosure;
[0031] Figure 7 A schematic block diagram of an electronic device provided for at least one embodiment of the present disclosure;
[0032] Figure 8 A schematic block diagram of another electronic device provided for at least one embodiment of the present disclosure;
[0033] Fig. 9A flowchart of an example of a monitoring method provided by at least one embodiment of the present disclosure; and
[0034] Fig.10 A flowchart of another example of a monitoring method provided by at least one embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0036] Unless otherwise defined, the technical terms or scientific terms used in the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, similar words such as "one", "one" or "the" do not indicate quantity restrictions, but indicate that there is at least one. Similar words such as "include" or "comprise" mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Similar words such as "connect" or "connected" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0037] The present disclosure is described below through several specific embodiments. In order to keep the following description of the embodiments of the present disclosure clear and concise, detailed descriptions of known functions and known components may be omitted. When any component of the embodiments of the present disclosure appears in more than one figure, the component is represented by the same or similar reference numeral in each figure.
[0038] Temperature monitoring circuits and voltage monitoring circuits are widely used in various types of System on Chip (SoC) chips. The temperature monitoring circuit and the voltage monitoring circuit can operate based on a reference voltage provided by an external power supply or any other circuit, and the reference voltage usually does not change substantially with respect to external factors such as temperature. For example, the temperature monitoring circuit and the voltage monitoring circuit can include corresponding bandgap reference circuits, respectively. The bandgap reference circuit, also known as a bandgap reference source, provides a reference voltage that is insensitive to changes in process corner-power supply voltage-temperature (PVT) on the one hand, and provides a positive temperature coefficient voltage that is positively correlated with temperature on the other hand.
[0039] There are mainly the following types of bandgap reference circuits: bipolar transistor (BJT), resistor, full MOSFET, etc. Among them, the structure based on bipolar transistor (transistor) is the most common. Generally, the base-emitter voltage (V BE ) has a negative temperature coefficient. However, when two transistors have different gains and operate at proportional current densities (e.g., multiples), the difference between their respective base-emitter voltages (ΔV BE ) will change in a positive direction with the absolute temperature, that is, it has a positive temperature coefficient.
[0040] Figure 1A Figure 1 is a schematic diagram of a temperature monitoring circuit. Figure 1A As shown in FIG. 1 , the temperature monitoring circuit includes a bandgap reference circuit, an analog-to-digital converter (ADC) and a scaling circuit. For example, in the bandgap reference circuit, the current I 1 , pI 1 and I 2 Injected into the bipolar transistor rA E , A E and A 2 The emitter of the bipolar transistor rA E , A E and A 2 A negative temperature coefficient voltage V BE1 、V' BE1 and V BE2 . V BE1 and V' BE1 The difference ΔV BE is a voltage with a positive temperature coefficient. The voltage with a positive temperature coefficient is output through an operational amplifier to obtain α times ΔV BE Positive temperature coefficient voltage V PTAT , V PTAT It can be expressed by the following formula (1):
[0041] V PTAT =αΔV BE (1)
[0042] For example, a bipolar transistor A 2 The negative temperature coefficient voltage V BE2 With positive temperature coefficient voltage V PTAT Adding the combination, we can get a reference voltage V that is relatively less sensitive to temperature. REF , for example, V REF It can be expressed by the following formula (2):
[0043] V REF =V BE2 +αΔV BE (2)
[0044] For example, the reference voltage V generated by the bandgap reference circuit REF and positive temperature coefficient voltage V PTAT When input into a properly designed ADC, a temperature coefficient μ is obtained which varies in a positive direction with absolute temperature. T Combining formula (1) and formula (2), the temperature coefficient μ T It can be expressed by the following formula (3):
[0045]
[0046] For example Figure 1A As shown, the temperature coefficient μ T The required output value Dout can be obtained by performing digital control and digital system conversion through the scaling circuit. Then, the temperature coefficient is represented by the output value Dout, and the Celsius temperature value Tout can be obtained by linearizing the temperature coefficient.
[0047] Figure 1B FIG. 1 is a schematic diagram of a voltage monitoring circuit. Figure 1B As shown in FIG. 1 , the voltage monitoring circuit includes a bandgap reference circuit, an analog-to-digital conversion circuit (ADC), and a scaling circuit. For example, in the bandgap reference circuit, the current I 1 ,I 1 and I 2 Injected into the emitters of bipolar transistors Q1, N*Q1 and Q2 respectively, bipolar transistors Q1, N*Q1 and Q2 will generate negative temperature coefficient voltages V BE3 、V' BE3 and V BE . V BE3 and V' BE3 The difference ΔV' BE is a voltage with a positive temperature coefficient. The negative temperature coefficient voltage V generated by the bipolar transistor Q2BE With positive temperature coefficient voltage ΔV' BE Adding the combination, we can get a reference voltage V' that is relatively less sensitive to temperature. REF , for example, V' REF It can be expressed by the following formula (4):
[0048] V′ REF =V BE +ΔV′ BE (4)
[0049] For example, the SoC internal node voltage V in and the reference voltage V' generated by the bandgap reference circuit REF The input is sent to a properly designed ADC, which compares the SoC internal node voltage with the reference voltage and obtains a voltage coefficient μ that is proportional to the reference voltage. V , for example, μ V It can be expressed by the following formula (5):
[0050]
[0051] μ V The input voltage value can be obtained by linearization. Figure 1B As shown, μ V The desired output value Dout can be obtained by performing digital control and digital system conversion through the scaling circuit. Then, the voltage coefficient is represented by the output value Dout, and the input voltage value Vout can be obtained by performing linearization processing on the voltage coefficient.
[0052] Temperature monitoring and voltage monitoring are two independent functional modules in SoC, which are implemented by two independent IP (Intellectual Property) modules during design and manufacturing. This configuration has the following main disadvantages: First, it increases the chip area, power consumption, winding resources and other additional costs to a certain extent; second, in order to improve the accuracy of temperature monitoring circuits and voltage monitoring circuits, calibration is usually required to eliminate process deviations. The two independent IP modules need to be calibrated twice, which will introduce additional testing costs (for example, the cost of automatic test equipment (ATE)); third, the accuracy of temperature measurement and voltage measurement cannot be guaranteed at the same time, and the measurement range is relatively narrow.
[0053] At least one embodiment of the present disclosure provides a monitoring device, which includes: a signal acquisition module and a signal processing module. The signal acquisition module includes a bandgap reference circuit unit and a signal selection unit. The bandgap reference circuit unit is configured to provide a positive temperature coefficient voltage and a first reference voltage in a first mode, and to provide a second reference voltage in a second mode; the signal selection unit is configured to select to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit in the first mode and to select to receive the first input voltage in the second mode as an input signal. The signal processing module is configured to perform a first process on the input signal and the first reference voltage in the first mode and to perform a second process on the input signal and the second reference voltage in the second mode to generate output data.
[0054] Some embodiments of the present disclosure also provide an electronic device corresponding to the above-mentioned monitoring device, and a monitoring control method corresponding to the above-mentioned monitoring device.
[0055] The monitoring device, electronic device and monitoring method provided by at least one embodiment of the present disclosure provide different reference voltages through the same bandgap reference circuit unit in the first mode and the second mode, select different measurement signals through the signal selection unit, and use the same signal acquisition module for signal sampling, so that multiple functions such as temperature monitoring and voltage monitoring can be integrated into the same monitoring device, reducing the circuit area and power consumption of the chip, and having the advantages of high measurement accuracy, low cost, simple integration and fast switching.
[0056] Hereinafter, at least one embodiment of the present disclosure will be described in detail with reference to the accompanying drawings. It should be noted that the same reference numerals in different drawings will be used to refer to the same elements described.
[0057] Figure 2 A schematic block diagram of a monitoring device provided in at least one embodiment of the present disclosure.
[0058] For example, Figure 2 As shown, the monitoring device 100 includes a signal acquisition module 110 and a signal processing module 120. The signal acquisition module 110 includes a bandgap reference circuit unit 111 and a signal selection unit 112. For example, the bandgap reference circuit unit 111 is configured to provide a positive temperature coefficient voltage and a first reference voltage in a first mode, and to provide a second reference voltage in a second mode; the signal selection unit 112 is configured to select to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit 111 in the first mode and to select to receive the first input voltage in the second mode as an input signal. For example, the bandgap reference circuit unit 111 can be a bandgap reference circuit in various forms, and the signal selection unit 112 can be a multiple-select-one data selector (MUX), which is not limited in the embodiments of the present disclosure.
[0059] For example, the signal processing module 120 is configured to perform a first process on the input signal and the first reference voltage in the first mode and to perform a second process on the input signal and the second reference voltage in the second mode to generate output data respectively. For example, the signal acquisition module 110 also includes a voltage input submodule 113, which is configured to provide the first input voltage to the signal selection unit 112 for use in the second mode, for example, the voltage input submodule 113 is configured to process or not process the input voltage obtained from other circuit modules / units, and then provide it to the signal selection unit 112 as the first input voltage for use in the second mode.
[0060] For example, Figure 2 As shown, the monitoring device 100 further includes a control module 130. The control module 130 is coupled to the signal acquisition module 110 and the signal processing module 120, and is configured to provide a first control signal so that the monitoring device 100 operates in the first mode or the second mode, respectively. For example, the control module 130 can be implemented by a digital circuit or an analog circuit, and the embodiments of the present disclosure are not limited to this.
[0061] For example, in some examples, the first mode may be a temperature monitoring mode, and the second mode may be a voltage monitoring mode. For example, the control module 130 provides a first control signal to the signal acquisition module 110 and the signal processing module 120, respectively. For example, in some examples, when the first control signal is at a high level, the monitoring device 100 operates in the first mode, and the temperature of the test object can be monitored; when the first control signal is at a low level, the monitoring device 100 operates in the second mode, and the voltage of the test object can be monitored. For another example, when the first control signal is at different values (for example, different binary values 00 and 01), the detection device 100 operates in different modes, respectively. For example, the embodiments of the present disclosure do not limit the mode of the first control signal.
[0062] For example, in the first mode, the bandgap reference circuit unit 111 provides a positive temperature coefficient voltage and a first reference voltage, and the signal selection unit 112 selects to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit 111 as an input signal; the signal processing module 120 performs a first processing on the input signal and the first reference voltage provided by the bandgap reference circuit unit 111 to generate output data.
[0063] For example, in the second mode, the bandgap reference circuit unit 111 provides a second reference voltage, and the signal selection unit 112 selects the first input voltage provided by the receiving voltage input submodule 113 as the input signal; the signal processing module 120 performs a second processing on the input signal and the second reference voltage provided by the bandgap reference circuit unit 111 to generate output data.
[0064] For example, the monitoring device 100 may further include a calculation module (not shown in the figure). The calculation module is configured to receive output data and convert the output data into a temperature value in the first mode and convert the output data into a voltage value in the second mode.
[0065] It should be noted that the first mode and the second mode may also be other monitoring modes besides temperature and voltage, and the embodiments of the present disclosure are not limited to this.
[0066] The following will refer to Figure 3A to Figure 3E The structure of the bandgap reference circuit provided according to at least one embodiment of the present disclosure is described in detail. The bandgap reference circuit is, for example, Figure 2 FIG. 1 is an example circuit structure of the bandgap reference circuit unit 111 in FIG.
[0067] Figure 3A FIG. 2 shows a block diagram of a bandgap reference circuit 200 according to at least one embodiment of the present disclosure.
[0068] like Figure 3A As shown, according to at least one embodiment of the present disclosure, the bandgap reference circuit 200 may include a positive temperature coefficient module 210, a reference voltage generation module 220, and a positive temperature coefficient voltage generation module 230. The positive temperature coefficient module 210 is configured to generate a positive temperature coefficient current. The reference voltage generation module 220 is configured to replicate the positive temperature coefficient current generated by the positive temperature coefficient module 210 to generate a reference voltage V REF The positive temperature coefficient voltage generation module 230 is configured to replicate the positive temperature coefficient current generated by the positive temperature coefficient module 210 to generate a positive temperature coefficient voltage V_PTAT.
[0069] like Figure 3A As shown, the bandgap reference circuit 200 further includes a mode switching module 240. The mode switching module 240 is electrically connected to the positive temperature coefficient module 210 and the reference voltage generating module 220, and is configured to receive a first control signal so that the bandgap reference circuit 200 can operate in different modes (for example, the first mode or the second mode). Figure 3A As shown, the bandgap reference circuit 200 may further optionally include a power supply rejection adjustment module 250. The power supply rejection adjustment module 250 is configured to remove noise from the power supply voltage received by the bandgap reference circuit 200.
[0070] The following will be combined Figure 3B The elements in the above modules of the bandgap reference circuit 200 are further described.
[0071] Figure 3B FIG. 4 is a circuit diagram of a bandgap reference circuit 200 according to at least one embodiment of the present disclosure.
[0072] As described above, the bandgap reference circuit 200 may include a positive temperature coefficient module 210 configured to generate a positive temperature coefficient current, a positive temperature coefficient module 211 configured to replicate the positive temperature coefficient current to generate a reference voltage V REF and a positive temperature coefficient voltage generating module 230 configured to replicate the positive temperature coefficient current to generate a positive temperature coefficient voltage V_PTAT.
[0073] like Figure 3B In the illustrated embodiment, the positive temperature coefficient module 210 may include a first transistor Q 1 And the second transistor Q 2 The first transistor Q 1 With a first magnification factor β 1 , and the first transistor Q 1 The collector and base of the first common voltage terminal V SS The second transistor Q 2 With a first magnification factor β 2 , and the second transistor Q 2 The collector and the first common voltage terminal V SS Here, the first common voltage terminal V SS It can be a common ground voltage terminal. In some examples, the first transistor Q 1 The first magnification factor β 1 Can be connected with the second transistor Q 2 The first magnification factor β 2 Here, for the sake of simplicity, it is assumed that the first transistor Q 1 And the second transistor Q 2 The amplification factor of the second transistor Q is β. 2 It can be realized by connecting multiple transistors in parallel. For example, the second transistor Q 2 It can be composed of a plurality of (for example, N, where N is a constant) transistors connected to the first transistor Q 1 The same transistors are connected in parallel, in this case the second transistor Q 2 =N*Q1. In some examples, N may be any integer greater than 1, for example, N is 8 or 15, etc., which is not limited in the embodiments of the present disclosure. SS For example, it is a ground voltage terminal.
[0074] like Figure 3B As shown, the positive temperature coefficient module 210 may further include a first resistor R 1 , the second resistor R 2 and the third resistor R 3 The first end of the first resistor R1 is connected to the emitter of the second transistor Q2. When working, the first resistor R 1The voltage difference between the two ends of the first transistor Q is set to be equal to 1 The base-emitter voltage difference V BE1 And the second transistor Q 2 The base-emitter voltage difference V BE2 The difference between ΔV BE , thus flowing through the first resistor R 1 The current is the positive temperature coefficient current I PTAT , where I PTAT =ΔV BE / R 1 The second resistor R 2 The first end of the first transistor Q 1 The base of the first common voltage terminal V SS The third resistor R 3 The first end of the second transistor Q 2 The base of the first common voltage terminal V SS connected (e.g., to ground).
[0075] like Figure 3B As shown, the positive temperature coefficient module 210 may further include a clamp module 215. The first input terminal of the clamp module 215 is connected to the first node X 1 And with the first transistor Q 1 The emitter of the clamp module 215 is connected to the second node X. 2 And with the first resistor R 1 The clamp module 215 is configured to make the first node X 1 Relative to the first common voltage terminal V SS The voltage of the second node X 2 Relative to the first common voltage terminal V SS The voltage is the same.
[0076] Further, according to an embodiment of the present disclosure, the clamping module 215 may include a comparison circuit A 1 , the first transistor M 1 and the second transistor M 2 .
[0077] like Figure 3B As shown, the comparison circuit A 1 The first input terminal and the second input terminal of the comparison circuit A are used as the first input terminal and the second input terminal of the clamp module 215 respectively. 1 The first input terminal is connected to the first node X 1 And with the first transistor Q 1 The emitter of the comparison circuit A is connected 1The second input terminal is connected to the second node X 2 And with the first resistor R 1 is connected to the second connection end of .
[0078] like Figure 3B As shown, the first transistor M 1 The first source and drain are connected to the second common voltage terminal V DD connected, the first transistor M 1 The second source and drain are connected to the first node X 1 And with the first transistor Q 1 The emitter of the first transistor M is connected 1 The gate and comparison circuit A 1 The second transistor M 2 The first source and drain are also connected to the second common voltage terminal V DD connected, the second transistor M 2 The second source and drain are connected to the second node X 2 And with the first resistor R 1 The second connection terminal of the second transistor M is connected, and the second connection terminal of the second transistor M 2 The gate and comparison circuit A 1 In some embodiments, the comparison circuit A 1 It can be an operational amplifier, by placing the comparison circuit A 1 The output terminal is connected to the first node X 1 The first transistor M 1 The gate of the 2 The second transistor M 2 The gate of the first node X 1 Relative to the first common voltage terminal V SS The voltage of the second node X 2 Relative to the first common voltage terminal V SS It should be understood that the voltage of the second common voltage terminal V DD Different from the first common voltage terminal V SS , for example, the second common voltage terminal V DD It can be a power supply voltage terminal, which provides a voltage higher than the first common voltage terminal V SS Supplied voltage.
[0079] Reference Figure 3B The reference voltage generation module 220 of the bandgap reference circuit 200 may include a first current mirror circuit unit, which is configured to replicate the positive temperature coefficient current I according to a first ratio. PTAT To obtain a first replica current, and provide the first replica current to the third node Y 1The reference voltage generating module 220 may further include a third transistor Q 3 and a fourth resistor R connected in series 4 With the fifth resistor R 5 The third transistor Q 3 The collector and base of the first common voltage terminal V SS The fourth resistor R 4 The first end and the third node Y 1 Connect to output reference voltage V REF , the fifth resistor R 5 The first end of the third transistor Q 3 The emitter is connected, and the fourth resistor R 4 The second end and the fifth resistor R 5 The second end is electrically connected to
[0080] Specifically, Figure 3B As shown, in some examples, the first current mirror circuit unit may include one or more third transistors M 3 , the one or more third transistors M 3 It can be used to implement current replication, such as mirror replication. 3 The gate of the third transistor M is connected to the clamping module 215. 3 The gate of the third transistor M is connected to the fourth node Pb and is connected to the output terminal of the comparison circuit A1; 3 The first source and drain are connected to the second common voltage terminal V DD connected, the third transistor M 3 The second source and drain are connected to the third node Y 1 are connected.
[0081] Reference Figure 3B The positive temperature coefficient voltage generation module 230 of the bandgap reference circuit 200 may include a second current mirror circuit unit, which is configured to replicate the positive temperature coefficient current I according to a second ratio. PTAT To obtain a second replica current, and provide the second replica current to the fifth node Y 2 The positive temperature coefficient voltage generating module 230 may further include a sixth resistor R 6 , the sixth resistor R 6 The first end and the first common voltage end V SS connected, the sixth resistor R 6 The second end and the fifth node Y 2 In some examples, similar to the description of the first current mirror circuit unit, the second current mirror circuit unit may include one or more fourth transistors M1 and M2. 4 , the one or more fourth transistors M4 Used to implement current replication, such as mirror replication. Figure 3B As shown, the fourth transistor M 4 The gate of the fourth transistor M is connected to the fourth node Pb and is connected to the output terminal of the comparison circuit A1; 4 The first source and drain are connected to the second common voltage terminal V DD connected, the fourth transistor M 4 The second source and drain of 2 are connected.
[0082] As mentioned above, in order to realize the multiplexing of the same bandgap reference circuit in different operating modes, the bandgap reference circuit 200 also includes a mode switching module 240, which is electrically connected to the positive temperature coefficient module 210 and the reference voltage generating module 230, and is configured to receive a first control signal to enable the multiplexing of the bandgap reference circuit 200 in different operating modes, for example, to enable the bandgap reference circuit 200 to operate in the first mode, or to operate in the second mode.
[0083] According to at least one embodiment of the present disclosure, the mode switching module 240 may include a first switch S 1 and the second switch S 2 .like Figure 3B As shown, the first switch S 1 Connect in parallel to the second resistor R 2 The terminals are configured to short-circuit the second resistor R according to the first control signal. 2 The second switch S 2 Connect in parallel a third resistor R 3 The terminals are configured to short-circuit the third resistor R according to the first control signal. 3 The mode switching module 240 may further include a third switch S 3 ,like Figure 3B As shown, the third switch S 3 Connect in parallel the fifth resistor R 5 The terminals are configured to short-circuit the fifth resistor R according to the first control signal. 5 .
[0084] The following will be combined Figure 3C and Figure 3D describe Figure 3B The bandgap reference circuit 200 works in different modes.
[0085] Figure 3C FIG. 2 is a circuit diagram showing a bandgap reference circuit 200A in a first mode.
[0086] For example, the first mode is a temperature monitoring mode. Figure 3C As shown, in the temperature monitoring mode, the first switch S1 In the closed state, the second resistor R 2 Short circuit, the second switch S 2 is in the off state, and the third switch S 3 In the disconnected state. At this time, due to the second resistor R 2 is short-circuited, the first transistor Q 1 The base and the first common voltage terminal V SS connected, that is, the first transistor Q 1 The base of is directly grounded. Figure 3C In the bandgap reference circuit 200A, the second transistor Q 2 A third resistor R is connected between the base and collector of 3 .
[0087] For example, in the temperature monitoring mode, the positive temperature coefficient voltage generation module 230 of the bandgap reference circuit 200A outputs a positive temperature coefficient voltage V_PTAT, and the reference voltage generation module 220 outputs a first reference voltage V REF_TS Therefore, combined with formula (3), the temperature coefficient μ T It can be expressed by the following formula (6):
[0088]
[0089] in, is the error term, It is a compensation item.
[0090] From the above formula (6), it can be seen that by increasing the third resistor R 3 The resistance value of can increase the compensation term, thereby reducing the proportion of the error term in formula (6). In other words, the third resistor R 3 The larger the resistance value, the greater the error term is. T Therefore, the third resistor R 3 Here we can eliminate the first transistor Q 1 And the second transistor Q 2 The amplification factor β of the first transistor Q 1 And the second transistor Q 2 The difference between the respective base-emitter voltage differences ΔV BE The effect of increasing the third resistor R 3 The resistance value can make the positive temperature coefficient voltage V_PTAT and the first reference voltage V REF_TS The ratio (V_PTAT / V REF_TS ) decreases with the rate of change of PVT. Therefore, if Figure 3C The bandgap reference circuit 200A shown is suitable for a temperature monitoring scenario.
[0091] As shown in the above formula (6), due to the third resistor R 3 The first reference voltage V in the denominator of formula (6) is REF_TS The temperature coefficient of the fifth resistor R 5 is used to adjust the first reference voltage V REF_TS The temperature coefficient of the fourth resistor R 4 and the fifth resistor R 5 It is necessary to simultaneously access the bandgap reference circuit 200A.
[0092] Figure 3D FIG. 2 is a circuit diagram showing a bandgap reference circuit 200B in the second mode.
[0093] For example, the second mode is a voltage monitoring mode. Figure 3D As shown, in the voltage monitoring mode, the first switch S 1 In the off state, the second switch S 2 In the closed state, the third resistor R 3 short circuit, and the third switch S 3 In the closed state, the fifth resistor R 5 At this time, due to the third resistor R 3 is short-circuited, the second transistor Q 2 The base and the first common voltage terminal V SS connected, that is, the second transistor Q 2 The base is directly grounded.
[0094] For example, in the voltage monitoring mode, the reference voltage generating module 220 of the bandgap reference circuit 200B outputs the second reference voltage V REF_VM .exist Figure 3D In the bandgap reference circuit 200B, the first transistor Q 1 A second resistor R is connected between the base and collector of 2 Therefore, combined with formula (2), the second reference voltage V REF_VM It can be expressed by the following formula (7):
[0095]
[0096] in, is the error term and is positive, is the compensation term and is negative.
[0097] From the above formula (7), we can know that the second resistor R 2 Here we can eliminate the first transistor Q 1 And the second transistor Q 2 The amplification factor β of the second reference voltage VREF_VM The effect of changing the second resistor R 2 The resistance value can make the second reference voltage V REF_VM The rate of change of PVT decreases. Therefore, if Figure 3D The bandgap reference circuit 200B shown is suitable for voltage monitoring scenarios.
[0098] Figure 3E A block diagram showing the operating principle of a bandgap reference circuit according to at least one embodiment of the present disclosure is shown.
[0099] like Figure 3E As shown, Figure 3B The bandgap reference circuit 200 shown in the figure can switch between the temperature monitoring mode and the voltage monitoring mode through the mode switching module 240. Figure 3B As an example of the bandgap reference circuit 200 shown in FIG. 1 , the first switch S in the mode switching module 240 can be used to switch the mode switch module 240 to the first switch S in FIG. 1 In the closed state, the second resistor R 2 short-circuit, and the second switch S in the mode switching module 240 2 and the third switch S 3 In the disconnected state, the bandgap reference circuit 200 can operate in the temperature monitoring mode. At this time, the positive temperature coefficient voltage V_PTAT output by the bandgap reference circuit 200 and the first reference voltage V REF_TS The ratio (V_PTAT / V REF_TS ) changes with temperature at a small rate, i.e. V_PTAT / V REF The error is small, so the bandgap reference circuit 200 in this mode has good temperature monitoring performance. In addition, the first switch S in the mode switching module 240 can be 1 is in the off state, and the second switch S in the mode switching module 240 is 2 and the third switch S 3 In the closed state, the third resistor R 3 and the fifth resistor R 5 The bandgap reference circuit 200 can work in the voltage monitoring mode. At this time, the second reference voltage V output by the bandgap reference circuit 200 is REF_VM The rate of change with temperature is small, that is, V REF The accuracy is high, so the bandgap reference circuit 200 in this mode has good voltage monitoring performance.
[0100] Figure 4A A schematic block diagram of another monitoring device provided for at least one embodiment of the present disclosure.
[0101] For example, Figure 4A The monitoring device in Figure 2A specific example of the monitoring device 100. For example, Figure 4A As shown, the signal processing module 120 includes an analog-to-digital conversion submodule 121 and a digital control submodule 122. The analog-to-digital conversion submodule 121 is configured to, in a first mode, convert the input signal to a first reference voltage V REF_TS To generate a first code stream, or, in the second mode, to compare the input signal with the second reference voltage V REF_VM The analog-to-digital conversion submodule 121 is further configured to perform a first conversion on the first code stream or the second code stream to generate first output data. The analog-to-digital conversion submodule 121 and the digital control submodule 122 further process the first output data to generate output data.
[0102] For example, the analog-to-digital conversion submodule 121 may be an ADC converter. The ADC converter may select different architectures according to application requirements. For example, a successive-approximation analog-to-digital converter (SAR ADC) structure is usually selected in high-speed applications. For example, a differential integral modulation analog-to-digital converter (Delta-Sigma ADC, ΔΣADC) structure is usually selected in high-precision applications. The analog-to-digital conversion submodule 121 may also be other electronic devices, units, etc. that can convert input signals into data streams; the digital control submodule 122 may be a CPU, a programmable logic controller (PLC), or other dedicated integrated circuits; the embodiments of the present disclosure are not limited to this.
[0103] For example, for temperature monitoring, Figure 4A As shown, when the first control signal mod_sel is at a high level, the monitoring device 100 operates in the first mode (the first mode is, for example, a temperature monitoring mode). Figure 4A As shown, the bandgap reference circuit unit 111 provides a positive temperature coefficient voltage V_PTAT to the signal selection unit 112 in response to the first control signal mod_sel, and provides a first reference voltage V to the signal processing module 120. REF_TS The signal selection unit 112 selects to receive the positive temperature coefficient voltage V_PTAT as the input signal of the analog-to-digital conversion submodule 121.
[0104] For example, the analog-to-digital conversion submodule 121 receives the input signal and converts the positive temperature coefficient voltage V_PTAT and the first reference voltage V REF_TS , converting the input signal into a data stream that is linearly related to temperature. For example, the average value of the data stream is the temperature coefficient μ T . Combined with formula (6), the temperature coefficient μ T It can be expressed by the following formula (8):
[0105]
[0106] For example, the analog-to-digital conversion submodule 121 may calculate the temperature coefficient μ T Further processing is performed, for example, the input signal (ie, the positive temperature coefficient voltage V_PTAT) is compared with the first reference voltage V REF_TS For comparison: When V_PTAT>V REF_TS When V_PTAT <V REF_TS When sdm_out=0, the count flag sdm_out=0. The analog-to-digital conversion submodule 121 counts the number of sdm_out=1 in a certain period through a counter, and then outputs the first binary code stream dout <n:0>The analog-to-digital conversion submodule 121 converts the first bit stream dout <n:0>Perform the first conversion, for example, convert the first code stream dout <n:0>Convert to decimal Dout, and then convert Dout to the first output data μ' that can be read inside the SoC T .
[0107] For example, Figure 4A As shown, the signal processing module 120 further includes a digital control submodule 122. The digital control submodule 122 is configured to, in the first mode, convert the first output data μ' T Directly output as output data μ" T For example, output data μ" T It can be expressed by the following formula (9) (R is, for example, the effective bit of the analog-to-digital converter):
[0108]
[0109] For example, a computing module (not shown) may output data μ” T After linearization, the temperature Tout in degrees Celsius (°C) can be obtained, as shown in the following formula (10):
[0110]
[0111] For example, since the positive temperature coefficient voltage V_PTAT generated by the bandgap reference circuit unit 111 is positively correlated with the temperature inside the SoC, through the above process, the monitoring device 100 can monitor the temperature inside the SoC.
[0112] For example, for voltage monitoring, such as Figure 4A As shown, when the first control signal mod_sel is at a low level, the monitoring device 100 operates in the second mode (the second mode is, for example, a voltage monitoring mode). Figure 4A As shown, the bandgap reference circuit unit 111 provides a second reference voltage V to the voltage input submodule 113 and the signal processing module 120 in response to the first control signal mod_sel. REF_VM ; The voltage input submodule 113 receives the monitored node voltage V in the second mode IN , and the monitored node voltage V IN The first input voltage is processed to generate a first input voltage; the signal selection unit 112 selects to receive the first input voltage in the second mode as an input signal of the analog-to-digital conversion submodule 121.
[0113] For example, the monitored node voltage V IN It can be the internal node voltage of the SoC, that is, the monitored point can be any node inside the SoC, and the voltage monitoring range is, for example, -200mV to 1.8V; the monitored node voltage V IN It may also be a node voltage that needs to be monitored in other systems. The embodiments of the present disclosure do not limit the voltage monitoring object or voltage monitoring range.
[0114] For example, Figure 4A As shown, the voltage input submodule 113 includes a level shift circuit 1131, and the level shift circuit 1131 is configured to receive the monitored node voltage V IN and the second reference voltage V generated by the bandgap reference circuit unit 111 REF_VM , based on the second control signal ctrl_en, the monitored node voltage V IN The first preprocessing method is used to perform preprocessing to generate a first preprocessing voltage (the first preprocessing voltage is the output voltage of the level shifting circuit 1131). Figure 2 The control module 130 ( Figure 4A ) is also configured to provide the above-mentioned second control signal ctrl_en, so that the level shift circuit 1131 and the signal processing module 120 are coupled to work based on the first pre-processing method.
[0115] For example, in the second mode, if Figure 4A As shown, the signal selection unit 112 receives the first pre-processed voltage generated by the level shift circuit 1131 as the first input voltage to serve as the input signal; the analog-to-digital conversion submodule 121 receives the input signal and converts it based on the first reference voltage V REF_VM The input signal is converted into a data stream that is linearly related to the voltage value to enable monitoring of the internal voltage of the SoC, for example.
[0116] Figure 4B A schematic block diagram of yet another monitoring device provided for at least one embodiment of the present disclosure.
[0117] For example, Figure 4B As shown, relative to Figure 4A In the example shown, the voltage input submodule 113 further includes an input buffer circuit 1132. The input buffer circuit 1132 is coupled between the level shift circuit 1131 and the signal selection unit 112, and is configured to perform buffer processing on the first preprocessed voltage to generate a first input voltage. For example, the input buffer circuit 1132 may be a unit buffer circuit, or may be other circuits capable of implementing a buffer processing function, which is not limited in the embodiments of the present disclosure.
[0118] For example, in the second mode, if Figure 4B As shown, the signal selection unit 112 receives the first input voltage provided by the input buffer circuit 1132 as an input signal; the analog-to-digital conversion submodule 121 receives the input signal and converts the analog-to-digital conversion signal based on the first reference voltage V REF_VM The input signal is converted into a data stream that is linearly related to the voltage value to enable monitoring of the internal voltage of the SoC, for example.
[0119] For example, relative to Figure 4A In the example shown, the voltage input submodule 113 adds an input buffer circuit 1132 on the basis of the level shift circuit 1131. The input buffer circuit 1132 can improve the driving capability of the first input voltage as an input signal to drive the subsequent analog-to-digital conversion submodule 121, and improve the bandwidth and slew rate of the input signal, reducing the influence of noise.
[0120] It should be noted that Figure 4B The monitoring device in the embodiment of the present invention has the same structure and function as the input buffer circuit 1132 except for the input buffer circuit 1132. Figure 4A The above are basically the same, so I will not go into details here.
[0121] It should be noted that, for the case where the voltage input submodule only includes a voltage monitoring circuit of an input buffer circuit, on the one hand, the measurable voltage range of the ADC cannot cover voltage values greater than the reference voltage, so that the monitorable voltage range of the voltage monitoring device is limited to the reference voltage; on the other hand, the reference voltage generated by the bandgap reference circuit is sensitive to the process angle-power supply voltage-temperature (PVT), which will introduce additional measurement errors and cannot achieve high-precision monitoring; on the other hand, the input buffer circuit cannot achieve ideal buffering in the rail-to-rail range, so the voltage measurement range of the voltage monitoring circuit is limited.
[0122] In at least one embodiment of the present disclosure, the voltage input submodule 113 adopts a level shift circuit or a level shift circuit combined with an input buffer circuit, which can realize rail-to-rail voltage range monitoring inside the SOC, and has the advantages of wide range, small PVT deviation impact, and high accuracy.
[0123] Figure 5A A schematic diagram of an allowable range of operating voltage of an input buffer circuit provided by at least one embodiment of the present disclosure; Figure 5B A schematic diagram of an allowable range of operating voltage of a level shift circuit provided by at least one embodiment of the present disclosure.
[0124] For example, Figure 5A As shown, for the input buffer circuit, it is mainly limited by the threshold voltage of the MOS tube. Usually, its maximum allowable voltage is VDDH-|VTHP| (for example, VDDH is the typical analog voltage inside the SoC, and VTHP is the threshold voltage of the PMOS tube), and its minimum allowable voltage is VTHN (for example, VTHN is the threshold voltage of the NMOS tube), that is, its normal operating voltage range is: VTHN→VDDH-|VTHP|, and the highest voltage inside the SoC (that is, the maximum voltage rail) can reach VDDH+10%, for example, and the lowest (that is, the minimum voltage rail) can reach VSS-100mV (where VSS is the negative power supply voltage inside the SoC). Therefore, Figure 5A The input buffer circuit shown has limited range for signal processing and cannot achieve rail-to-rail signal buffering.
[0125] For example, to be able to monitor a wider range of voltages, such as Figure 5B As shown, a level shift circuit is introduced to convert the voltage range to a larger range, wherein the direction of the level shift is determined by, for example, Figure 2 The control is performed by the second control signal ctrl_en provided by the control module 130.
[0126] For example, Figure 4A or Figure 4B As an example, the level shift circuit 1131 receives the monitored node voltage V IN and the second reference voltage V generated by the bandgap reference circuit unit 111 REF_VM , based on the second control signal ctrl_en, the monitored node voltage V IN Preprocessing is performed according to a first preprocessing method to generate a first preprocessing voltage.
[0127] For example, the first preprocessing method includes a first shifting method, a second shifting method and a third shifting method. The level shifting circuit 1131 is configured to: in the first shifting method, in response to the monitored node voltage V IN is greater than or equal to the first voltage vin1 and less than or equal to the second voltage vin2, the node voltage V IN As the first pre-processing voltage; in the second shift mode, in response to the monitored node voltage V IN is less than the first voltage vin1, the node voltage V IN With the first offset voltage V L2H The sum is used as the first pre-processing voltage; in the third shift mode, in response to the monitored node voltage V IN is greater than the second voltage vin2, the node voltage V IN With the second offset voltage V H2L The difference is taken as the first preprocessing voltage.
[0128] For example, in some examples, such as Figure 5B As shown, when the level shift circuit receives the monitored node voltage V IN When the voltage is between the first voltage vin1 and the second voltage vin2, the second control signal ctrl_en=00 is set, and the level shift circuit works in the first shift mode. At this time, the level shift circuit can directly output (by-pass) the monitored node voltage V IN As the first pre-processing voltage; when the monitored node voltage V IN When the voltage V is less than the first voltage vin1 (for example, when used to measure the ground signal inside the SoC), the second control signal ctrl_en=01 is set, and the level shift circuit works in the second shift mode. At this time, the level shift circuit can shift the monitored node voltage V IN With the first offset voltage V L2H The sum of the two is taken as the first preprocessing voltage, that is, the output first preprocessing voltage is V IN +V L2H ; When the monitored node voltage V received by the level shift circuit IN When the voltage V is greater than the second voltage vin2 (for example, when used to measure the power supply voltage of the analog part inside the SoC), the second control signal ctrl_en=11 is set, and the level shift circuit works in the third shift mode. At this time, the level shift circuit can shift the monitored node voltage V IN With the second offset voltage V H2L The difference between the two is taken as the first preprocessing voltage, that is, the output first preprocessing voltage is V IN -V H2L .
[0129] For example, the shift level of the level shift circuit (the first offset voltage V L2H and the second offset voltage V H2L ) can be set as follows:
[0130]
[0131] For example, V REF_VM For example Figure 4A or Figure 4B The bandgap reference circuit unit 111 in the embodiment provides a second reference voltage to the level shift circuit. It should be noted that the voltage value of the shift level may also be changed according to actual application requirements.
[0132] In the above-mentioned embodiment of the present disclosure, the voltage input submodule adopts a level shift circuit. Even if the monitored voltage is greater than the reference voltage (that is, exceeds the measurable voltage range of the ADC), the monitored voltage can be shifted to the measurable voltage range of the ADC through the level shift processing of the level shift circuit, thereby broadening the monitorable voltage range of the monitoring device to achieve rail-to-rail monitoring; in addition, the shifted potential value is almost independent of the power supply voltage and temperature, and the error of voltage measurement can be reduced without calibration.
[0133] For example, for e.g. Figure 4A or Figure 4B In the monitoring device 100, in the second mode (eg, voltage monitoring), the level shift circuit 1131 is configured to Figure 5B The processing method will monitor the node voltage V IN After processing, the output is a first preprocessing voltage; the first preprocessing voltage can be Figure 4A As shown directly as the first input voltage V 1 , or Figure 4B After being buffered by the input buffer circuit 1132, the output is the first input voltage V 1 The signal selection unit 112 selects to receive the first input voltage V 1 , as the input signal of the analog-to-digital conversion submodule 121.
[0134] For example, the analog-to-digital conversion submodule 121 receives the input signal and converts the first input voltage V 1 and the second reference voltage V REF_VM The input signal is converted into a data stream that is linearly related to the voltage. For example, the average value of the data stream is the voltage coefficient μ V .
[0135] Corresponding to, for example Figure 5B In the three level shifting modes, in the first shifting mode, the first input voltage V 1 =V IN In the second shift mode, the first input voltage V 1 =V IN +V L2H In the third shift mode, the first input voltage V 1 =V IN -V H2L In addition, since the shift level of the input signal of the level shift circuit is different from the second reference voltage V REF_VM The average value of the data stream only needs to be + / -0.5 of the original value, which will not introduce additional errors, and the impact of process angle changes can also be ignored. Combining formula (5) and formula (9), the voltage coefficient μ V It can be expressed by the following formulas (12) to (14):
[0136] First shift mode:
[0137] Second shift method:
[0138] The third shift method:
[0139] For example, the analog-to-digital conversion submodule 121 can convert the voltage coefficient μ V For further processing, for example, the input signal (i.e., the first input voltage V 1 ) and the second reference voltage V REF_VM For comparison:
[0140] When V 1 >V REF_VM When , the counting flag sdm_out=1;
[0141] When V 1 <V REF_VM When , the counting flag sdm_out=0.
[0142] The analog-to-digital conversion submodule 121 counts the number of sdm_out=1 in a certain period through a counter, and then outputs a binary second code stream dout' <n:0>The analog-to-digital conversion submodule 121 converts the second bit stream dout' <n:0>Perform a first conversion, for example, convert the second code stream dout' <n:0>Convert to decimal D'out, and then convert D'out to the first output data μ' that can be read inside the SoC V .
[0143] For example, the digital control submodule 122 is configured to receive the second control signal ctrl_en and perform a second conversion on the first output data based on the second control signal ctrl_en. Figure 5B There are three level shifting modes in , and different level shifting modes correspond to different second control signals ctrl_en:
[0144] In the first shift mode, the second control signal ctrl_en=00;
[0145] In the second shift mode, the second control signal ctrl_en=01;
[0146] In the third shift mode, the second control signal ctrl_en=11.
[0147] For example, the digital control submodule 122 is configured to, in the first shift mode, respond to the second control signal (ctrl_en=00) to shift the first output data μ′ V Directly output as output data μ" V For example, output data μ" V It can be expressed by the following formula (15) (R is, for example, the effective bit of the analog-to-digital converter):
[0148] First shift mode:
[0149] Combining formula (13) and formula (14), in the second shift mode, the level shift circuit 1131 will monitor the node voltage V IN Shift upward, that is, the input signal received by the signal processing module 120 is V IN +V L2H In the third shift mode, the level shift circuit 1131 will monitor the node voltage V IN Shift downward, that is, the input signal received by the signal processing module 120 is V IN -V H2L In order to make the monitoring result the real node voltage, the signal processing module 120 needs to restore the shifted level.
[0150] Therefore, the digital control submodule 122 is further configured to: in the second shift mode, in response to the second control signal (ctrl_en=01), shift the first output data μ′ V The difference between the first offset value and the second offset value is converted to generate the output data μ" V In the third shift mode, in response to the second control signal (ctrl_en = 11), the first output data μ ' V The sum of the second offset value is converted to generate output data μ" V For example, output data μ" V It can be expressed by the following formulas (16) and (17) (R is, for example, the effective bit of the analog-to-digital converter):
[0151] Second shift method:
[0152] The third shift method:
[0153] For example, a computing module (not shown) may output data μ” V After linearization, the voltage Vout in millivolts (mV) can be obtained, as shown in the following formulas (18) to (20):
[0154] First shift mode:
[0155] Second shift method:
[0156] The third shift method:
[0157] For example, after the above process, the monitoring device 100 can monitor the internal voltage of the SoC, for example.
[0158] In addition, in order to improve the accuracy of temperature monitoring and voltage monitoring, calibration is usually required to reduce process deviations. For example, for the temperature monitoring module and voltage monitoring module that are independent of each other, calibration needs to be performed separately to reduce the system offset error. The monitoring device provided by at least one embodiment of the present disclosure shares the same bandgap reference circuit unit (e.g., bandgap reference circuit) and signal processing module (e.g., ADC sampling circuit) in the first mode and the second mode, so only one calibration is required to simultaneously reduce the system offset error of temperature monitoring and voltage monitoring, so as to improve the monitoring accuracy, thereby saving ATE costs to a certain extent.
[0159] The monitoring device provided by at least one embodiment of the present disclosure provides different reference voltages through a bandgap reference circuit unit in a first mode and a second mode, selects different measurement signals through a signal selection unit, and uses the same signal acquisition module to perform signal sampling, thereby integrating multiple functions such as temperature monitoring and voltage monitoring into the same monitoring device, reducing the circuit area and power consumption of the chip, and having the advantages of high measurement accuracy, low cost, simple integration and fast switching.
[0160] Figure 6 A schematic diagram of a working process of a monitoring device provided in at least one embodiment of the present disclosure.
[0161] For example, Figure 6 As shown, for example Figure 4A or Figure 4B In the example shown, the analog-to-digital conversion submodule 121 can also be configured to receive a start signal (run) and a completion signal (done), and, in a first mode, start a first process based on the start signal, and end the first process based on the completion signal, or, in a second mode, start a second process based on the start signal, and end the second process based on the completion signal. For example, the start signal and the completion signal can be provided to the analog-to-digital conversion submodule 121 by the control module 130.
[0162] For example, in some examples, the monitoring device 100 workflow may be as follows: Figure 6 As shown, it includes: initializing the monitoring device 100; selecting the working mode based on the first control signal mod_sel, for example, when the first control signal is at a high level (mod_sel=1), the monitoring device 100 works in the first mode (the first mode is, for example, a temperature monitoring mode), or, when the first control signal is at a low level (mod_sel=0), the monitoring device 100 works in the second mode (the second mode is, for example, a voltage monitoring mode); configuring the corresponding working register in the first mode, or configuring the corresponding working register in the second mode, that is, by Figure 4A or Figure 4B The working process described in generates an input signal in the corresponding mode; the analog-to-digital conversion submodule 121 receives the input signal, and starts the first processing or the second processing in response to the start signal (run) being enabled, that is, starts the conversion of the input signal; in response to the completion signal (done) being enabled, the analog-to-digital conversion submodule 121 ends the first processing or the second processing, and the calculation module reads the output data generated by the first processing or the second processing; the calculation module converts the output data into a temperature value in the first mode, or converts the output data into a voltage value in the second mode. Through the above workflow, the monitoring device 100 can realize multi-mode (e.g., dual-mode) monitoring of the internal temperature and voltage of the SoC.
[0163] In the embodiments of the present disclosure, the switching between the first mode and the second mode can be achieved through digital logic control. The switching process is simple and fast, and the switching can be achieved only by reconfiguring the working mode after the previous sampling is completed.
[0164] Figure 7 A schematic block diagram of an electronic device provided for at least one embodiment of the present disclosure.
[0165] For example, Figure 7 As shown, the electronic device 10 includes a monitoring device 100, and the monitoring device 100 is the monitoring device provided by any embodiment of the present disclosure.
[0166] For example, the electronic device 10 may be a processor chip, such as a SoC chip, which may be used in various application devices, such as mobile phones, tablet computers, laptop computers, e-books, game consoles, televisions, digital photo frames, navigators, and other devices, or the electronic device 10 may be an electronic device including the processor chip, or may be any combination of electronic devices and hardware, which is not limited in the embodiments of the present disclosure. The embodiments of the present disclosure do not limit the type of processor chip, such as a central processing unit (CPU), a graphics processing unit (GPU), a data processing unit (DPU), a tensor processing unit (TPU), and the like.
[0167] It should be noted that, for the sake of clarity and brevity, the embodiments of the present disclosure do not provide all the components of the electronic device 10. To implement the necessary functions of the electronic device 10, those skilled in the art can provide and set other components not shown according to specific needs, such as a communication unit (such as a network communication unit), an input and output unit (such as a keyboard, a speaker, etc.), etc., and the embodiments of the present disclosure are not limited to this. For the relevant description and technical effects of the electronic device 10, reference can be made to the relevant description and technical effects of the monitoring device provided in the embodiments of the present disclosure, which will not be repeated here.
[0168] Figure 8 A schematic block diagram of another electronic device provided for at least one embodiment of the present disclosure.
[0169] For example, Figure 8 As shown, the electronic device 400 includes, for example, the monitoring device provided by the embodiment of the present disclosure. The electronic device 400 may be a terminal device or a server, etc. It should be noted that, Figure 8 The electronic device 400 shown is only an example and does not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0170] For example, Figure 8 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 41, which includes, for example, a monitoring device according to any embodiment of the present disclosure, and which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 42 or a program loaded from a storage device 48 to a random access memory (RAM) 43. In the RAM 43, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 41, the ROM 42, and the RAM 43 are connected to each other through a bus 44. An input / output (I / O) interface 45 is also connected to the bus 44. Generally, the following devices can be connected to the I / O interface 45: an input device 46 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 47 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 48 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 49. The communication device 49 can allow the electronic device 400 to communicate with other electronic devices wirelessly or by wire to exchange data.
[0171] Although Figure 8 The electronic device 400 having the above-mentioned various devices / modules is shown, but it should be understood that it is not required to implement or possess all the shown devices, and the electronic device 400 may alternatively implement or possess more or fewer devices.
[0172] For detailed description and technical effects of the electronic device 10 / 400, please refer to the description in the art, which will not be repeated here.
[0173] Fig. 9 A flowchart of an example of a monitoring method provided for at least one embodiment of the present disclosure is provided, for example, the monitoring method corresponds to the aforementioned monitoring device.
[0174] For example, Fig. 9 As shown, in at least one embodiment of the present disclosure, the monitoring method includes the following steps S110 to S130.
[0175] Step S110: acquiring a positive temperature coefficient voltage and a first reference voltage provided by the bandgap reference circuit unit in the first mode, or a second reference voltage provided in the second mode;
[0176] Step S120: Selecting to receive a positive temperature coefficient voltage provided by the bandgap reference circuit unit in the first mode, and selecting to receive a first input voltage in the second mode as an input signal;
[0177] Step S130 : performing a first process on the input signal and the first reference voltage in the first mode, and performing a second process on the input signal and the second reference voltage in the second mode to generate output data.
[0178] For example, in e.g. Figure 4A or Figure 4B In the embodiment shown, for step S110, in the first mode, the bandgap reference circuit unit 111 provides a positive temperature coefficient voltage V_PTAT to the signal selection unit 112 and provides a first reference voltage V to the signal processing module 120. REF_TS Alternatively, in the second mode, the bandgap reference circuit unit 111 provides a second reference voltage V to the voltage input submodule 113 and the signal processing module 120. REF_VM .
[0179] For example, for step S120, in the first mode, the signal selection unit 112 selects to receive the positive temperature coefficient voltage V_PTAT as the input signal of the analog-to-digital conversion submodule 121; or, in the second mode, the signal selection unit 112 selects to receive the first input voltage generated by the voltage input submodule 113 as the input signal of the analog-to-digital conversion submodule 121.
[0180] For example, for step S130, on the one hand, in the first mode, the signal processing module 120 processes the input signal generated in step S120 and the first reference voltage V REF_TS The first processing is performed to generate output data. The first processing is, for example, that the analog-to-digital conversion submodule 121 converts the input signal to a first reference voltage V REF_TS The analog-to-digital conversion submodule 121 performs a first conversion on the first code stream to generate first output data; the analog-to-digital conversion submodule 121 and the digital control submodule 122 further process the first output data to generate output data. On the other hand, in the second mode, the signal processing module 120 processes the input signal generated in step S120 and the second reference voltage V REF_VM The second processing is performed to generate output data. The second processing is, for example, that the analog-to-digital conversion submodule 121 converts the input signal to a second reference voltage V REF_VM The analog-to-digital conversion submodule 121 performs a first conversion on the second code stream to generate first output data; the analog-to-digital conversion submodule 121 and the digital control submodule 122 further process the first output data to generate output data.
[0181] Fig.10 A flowchart of another example of a monitoring method provided for at least one embodiment of the present disclosure is provided, for example, the monitoring method corresponds to the aforementioned monitoring device.
[0182] For example, Fig.10 As shown, in at least one embodiment of the present disclosure, the monitoring method further includes the following steps S140 to S142 (for example, Fig. 9 (a subsequent step of steps S110 to S130 of the monitoring method).
[0183] Step S140: receiving output data;
[0184] Step S141: in the first mode, converting the output data into a temperature value; or,
[0185] Step S142: in the second mode, converting the output data into a voltage value.
[0186] For example, in e.g. Figure 4A or Figure 4B In the illustrated embodiment, for step S140, a computing module (not shown) receives, for example Fig. 9 The output data generated in step S130 is, for example, a data stream that can be read inside the SoC, and the output data is a data stream that is linearly related to temperature in the first mode, and is a data stream that is linearly related to voltage in the second mode.
[0187] For example, for step S141, in the first mode, the computing module may further process the output data (e.g., linearization processing) to convert the output data into a temperature value (e.g., temperature Tout in degrees Celsius (°C)). Alternatively, for step S142, in the second mode, the computing module may further process the output data (e.g., linearization processing) to convert the output data into a voltage value (e.g., voltage Vout in millivolts (mV)).
[0188] The monitoring method provided by at least one embodiment of the present disclosure, in a first mode and a second mode, uses different reference voltages provided by a bandgap reference circuit unit, selects different measurement signals through a signal selection unit, and uses the same signal acquisition module for signal sampling, thereby being able to simultaneously implement multiple functions such as temperature monitoring and voltage monitoring, and having the advantages of high measurement accuracy, low cost, and high test efficiency.
[0189] There are a few points to note about this disclosure:
[0190] (1) In the drawings of the embodiments of the present disclosure, only the structures related to the embodiments of the present disclosure are involved, and other structures can refer to the general design.
[0191] (2) In the absence of conflict, features in the same embodiment or in different embodiments of the present disclosure may be combined with each other.
[0192] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A monitoring device, include: Signal acquisition module, including: a bandgap reference circuit unit configured to provide a positive temperature coefficient voltage and a first reference voltage in a first mode, and to provide a second reference voltage in a second mode, and a signal selection unit configured to select to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit in the first mode and to select to receive the first input voltage in the second mode as an input signal; and a signal processing module configured to perform a first process on the input signal and the first reference voltage in the first mode and to perform a second process on the input signal and the second reference voltage in the second mode to generate output data, The monitoring device further comprises a calculation module, wherein the calculation module is configured to receive the output data and convert the output data into a temperature value in the first mode and convert the output data into a voltage value in the second mode. The signal acquisition module further includes a voltage input submodule, and the voltage input submodule includes a level shift circuit. The level shift circuit is configured to receive the monitored node voltage and the second reference voltage, and to preprocess the monitored node voltage according to a first preprocessing manner based on a second control signal to generate a first preprocessed voltage. The first preprocessing method includes a first shifting method, a second shifting method and a third shifting method, and the level shifting circuit is configured as follows: In the first shift mode, in response to the monitored node voltage being greater than or equal to the first voltage and less than or equal to the second voltage, the monitored node voltage is used as the first preprocessing voltage, In the second shift mode, in response to the monitored node voltage being less than the first voltage, the sum of the monitored node voltage and the first offset voltage is used as the first preprocessing voltage. In the third shifting mode, in response to the monitored node voltage being greater than the second voltage, a difference between the monitored node voltage and a second offset voltage is used as the first preprocessing voltage.
2. The monitoring device according to claim 1, further comprising a control module, The control module is coupled to the signal acquisition module and the signal processing module, and is configured to provide a first control signal so that the monitoring device operates in the first mode or the second mode respectively.
3. The monitoring device according to claim 2, in, The control module is further configured to provide the second control signal so that the level shifting circuit and the signal processing module are coupled to work based on a first pre-processing mode.
4. The monitoring device according to claim 1, in, The voltage input submodule also includes an input buffer circuit. The input buffer circuit is coupled between the level shift circuit and the signal selection unit, and is configured to perform buffer processing on the first preprocessed voltage to generate the first input voltage.
5. The monitoring device according to claim 1, in, The signal processing module includes an analog-to-digital conversion submodule, The analog-to-digital conversion submodule is configured as follows: In the first mode, the input signal is compared with the first reference voltage to generate a first code stream, or, In the second mode, the input signal is compared with the second reference voltage to generate a second code stream.
6. The monitoring device according to claim 5, in, The analog-to-digital conversion submodule is further configured to perform a first conversion on the first code stream or the second code stream to generate first output data.
7. The monitoring device according to claim 6, in, The signal processing module also includes a digital control submodule, The monitored node voltage is first preprocessed according to a first shifting mode, a second shifting mode and a third shifting mode to generate a first preprocessing voltage, The digital control submodule is configured as follows: In the first mode or the first shift mode, the first output data is output as the output data, In the second shift mode, a difference between the first output data and the first offset value is subjected to a second conversion to generate the output data. In the third shift mode, a second conversion is performed on the sum of the first output data and a second offset value to generate the output data.
8. The monitoring device according to claim 5, in, The analog-to-digital conversion submodule is further configured as: Receive start and completion signals, and In the first mode, the first process is started based on the start signal, and the first process is ended based on the completion signal, or, In the second mode, the second process is started based on the start signal, and the second process is ended based on the completion signal.
9. An electronic device comprising the monitoring device according to any one of claims 1 to 8.
10. A monitoring method using the monitoring device according to any one of claims 1 to 8, include: Acquire the positive temperature coefficient voltage and the first reference voltage provided by the bandgap reference circuit unit in the first mode, or the second reference voltage provided in the second mode; as well as Selecting to receive the positive temperature coefficient voltage provided by the bandgap reference circuit unit in the first mode, and selecting to receive the first input voltage as the input signal in the second mode; as well as The first processing is performed on the input signal and the first reference voltage in the first mode, and the second processing is performed on the input signal and the second reference voltage in the second mode to generate output data.
11. The monitoring method according to claim 10, further comprising: include: receiving the output data; In the first mode, the output data is converted into a temperature value, or, In the second mode, the output data is converted into a voltage value.
