Method, device and circuit for determining sampling reference voltage of redundancy monitoring circuit and vehicle

By adding voltage sampling and comparison of the VCC pin of the DC-DC chip to the circuit, and determining whether the output voltage of the VOUT pin is normal, the problem of inaccurate sampling reference voltage of the ADC module is solved, the accuracy of sampling results is improved and safety is enhanced.

CN118962221APending Publication Date: 2024-11-15BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411096786.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In existing technologies, the sampling reference voltage of ADC modules is not accurate enough, resulting in inaccurate sampling results, especially when multiple signals to be measured are detected simultaneously, causing serious mutual interference.

Method used

By adding voltage sampling to the VCC pin of the DC-DC chip in the circuit and comparing the sampled voltages of the VCC pin and VOUT pin, it is determined whether the output voltage of the VOUT pin is normal. If it is normal, it is determined as the sampling reference voltage of the ADC module. The accuracy and safety are improved by using voltage divider circuits and logic gates.

Benefits of technology

This improves the accuracy of the ADC module's sampling results and activates a safety mechanism in abnormal situations, enhancing the system's security and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118962221A_ABST
    Figure CN118962221A_ABST
Patent Text Reader

Abstract

The invention discloses a redundancy monitoring circuit sampling reference voltage determination method, device and circuit and a vehicle, the method comprises the following steps: obtaining a sampling voltage of a VCC pin and a sampling voltage of a VOUT pin through an ADC module, comparing the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and when it is judged that the output voltage of the VOUT pin is normal, determining that the output voltage of the VOUT pin is normal; and determining the output voltage of the VOUT pin as the sampling reference voltage of the ADC module. Therefore, whether the output voltage of the VOUT pin is normal or not is judged by performing voltage sampling on the VCC pin of the DCDC chip and comparing the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin in the circuit, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined as the sampling reference voltage of the ADC module. Therefore, more accurate sampling reference voltage is obtained, and the accuracy of a sampling result is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automotive electronic circuits, and in particular to a method, device, circuit and vehicle for determining a sampling reference voltage of a redundant monitoring circuit. Background Art

[0002] At present, with the development of automobile technology, the proportion of functional safety requirements in the overall system requirements of automobiles is increasing year by year.

[0003] Specifically, for circuits with safety requirements, an ADC (Analog-to-Digital Converter) module is added to the circuit for sampling, and then the sampling results are analyzed to decide whether to start the safety mechanism. This requires the ADC module to have a more accurate sampling result. The biggest factor affecting the accuracy of the sampling result of the ADC module is the input reference voltage, that is, the sampling reference voltage. This requires the accuracy of the input voltage.

[0004] Usually, the MCU (Microcontroller Unit) chip where the ADC module is located does not directly use the 12V or 24V system voltage as input, but converts the system voltage into the required sampling reference voltage of the ADC module through a certain number of DCDC voltage conversion chips. Therefore, the working state and output voltage of the DCDC chip have a direct impact on the sampling results of the ADC module.

[0005] At present, the DCDC chip with appropriate accuracy is selected, and the output of the DCDC chip is reasonably switched with a voltage buffer unit to reduce the influence of factors such as noise, thereby improving the accuracy of the sampling reference voltage of the ADC module. However, when testing, multiple signals to be tested are usually tested at the same time. Therefore, the signals to be tested will affect each other, resulting in the sampling reference voltage of the ADC module being not accurate enough, and further making the sampling result inaccurate. Summary of the invention

[0006] The present invention provides a method, device, circuit and vehicle for determining a sampling reference voltage of a redundant monitoring circuit to improve the accuracy of the sampling result. The specific technical solution is as follows:

[0007] In a first aspect, the present invention provides a method for determining a sampling reference voltage of a redundant monitoring circuit, wherein the redundant monitoring circuit comprises a DC-DC converter DCDC chip and a microcontroller unit MCU chip connected in series in sequence, wherein the DCDC chip comprises a power supply voltage VCC pin and an output voltage VOUT pin, and the MCU chip comprises an analog-to-digital conversion ADC module, wherein the VCC pin and the VOUT pin are both connected to the ADC module signal, and the method is applied to the MCU chip, and the method comprises:

[0008] Acquire the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin through the ADC module;

[0009] Compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal;

[0010] When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be a sampling reference voltage of the ADC module.

[0011] Optionally, comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal includes:

[0012] Scaling the sampled voltage of the VCC pin based on the ratio between the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin to obtain a sampled voltage after scaling;

[0013] Determine whether the difference between the sampled voltage after scaling and the sampled voltage of the VOUT pin is within a preset error range;

[0014] If yes, it is determined that the output voltage of the VOUT pin is normal.

[0015] Optionally, the redundant monitoring circuit further includes a voltage divider circuit, the VCC pin is signal-connected to the voltage divider circuit, the voltage divider circuit is signal-connected to the ADC module, and obtaining the sampled voltage of the VCC pin through the ADC module includes:

[0016] The sampled voltage of the VCC pin after being divided by the voltage divider circuit is obtained through the ADC module.

[0017] Optionally, after determining whether the output voltage of the VOUT pin is normal, the method for determining the redundant monitoring circuit sampling reference voltage further includes:

[0018] When the output voltage of the VOUT pin is abnormal, the quotient between the output voltage of the VOUT pin and the output voltage of the VCC pin is calculated, and the product of the quotient and a preset sampling accuracy is calculated to obtain the actual sampling voltage of the VOUT pin.

[0019] Optionally, after calculating the product of the quotient and the preset sampling accuracy to obtain the actual sampled voltage of the VOUT pin, the method for determining the sampling reference voltage of the redundant monitoring circuit further includes:

[0020] When the actual sampled voltage of the VOUT pin is not within the preset voltage range, the safety mechanism is activated.

[0021] Optionally, the redundant monitoring circuit further includes an AND logic gate, the MCU chip further includes a general purpose input and output port GPIO module, the DCDC chip further includes a power good PG pin, the VCC pin and the PG pin are both connected to the input end signal of the AND logic gate, and the output end of the AND logic gate is connected to the GPIO module signal;

[0022] After the output voltage of the VOUT pin is normal, the method for determining the redundant monitoring circuit sampling reference voltage further includes:

[0023] The GPIO module determines the difference between the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate, wherein the output level of the PG pin after it is pulled high is: the output level obtained after the DCDC chip pulls the output level of the PG pin high to the output level of the VOUT pin when the output voltage of the VOUT pin is normal;

[0024] When it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are both high levels, it is determined that the output voltage of the VOUT pin is within the output range of the DCDC chip.

[0025] Optionally, after judging the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate through the GPIO module, the method for determining the redundant monitoring circuit sampling reference voltage further includes:

[0026] When it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are not both high levels, the safety mechanism is activated.

[0027] In a second aspect, the present invention provides a redundant monitoring circuit sampling reference voltage determination device, the redundant monitoring circuit comprises a DC-DC converter DCDC chip and a microcontroller unit MCU chip connected in series in sequence, the DCDC chip comprises a power supply voltage VCC pin and an output voltage VOUT pin, the MCU chip comprises an analog-to-digital conversion ADC module, the VCC pin and the VOUT pin are both connected to the ADC module signal, the device is applied to the MCU chip, and the device comprises:

[0028] An acquisition module, used for acquiring a sampled voltage of the VCC pin and a sampled voltage of the VOUT pin through the ADC module;

[0029] A first judgment module, used for comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin, to judge whether the output voltage of the VOUT pin is normal;

[0030] The first determination module is used to determine that the output voltage of the VOUT pin is a sampling reference voltage of the ADC module when the output voltage of the VOUT pin is normal.

[0031] Optionally, the first judgment module includes:

[0032] A scaling submodule, configured to scale the sampled voltage of the VCC pin based on a ratio between the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin to obtain a scaled sampled voltage;

[0033] A judging submodule, used to judge whether the difference between the sampled voltage after the scaling process and the sampled voltage of the VOUT pin is within a preset error range, and if so, trigger a determining submodule;

[0034] The determination submodule is used to determine whether the output voltage of the VOUT pin is normal.

[0035] Optionally, the redundant monitoring circuit further includes a voltage divider circuit, the VCC pin is connected to the voltage divider circuit signal, the voltage divider circuit is connected to the ADC module signal, and the acquisition module is specifically used to:

[0036] The sampled voltage of the VCC pin after being divided by the voltage divider circuit is obtained through the ADC module.

[0037] Optionally, the above-mentioned redundant monitoring circuit sampling reference voltage determination device further includes:

[0038] A calculation module is used for, after determining whether the output voltage of the VOUT pin is normal, calculating the quotient between the output voltage of the VOUT pin and the output voltage of the VCC pin when the output voltage of the VOUT pin is abnormal, and calculating the product of the quotient and a preset sampling accuracy to obtain the actual sampling voltage of the VOUT pin.

[0039] Optionally, the above-mentioned redundant monitoring circuit sampling reference voltage determination device further includes:

[0040] The first startup module is used to start the safety mechanism when the actual sampling voltage of the VOUT pin is not within a preset voltage range after the actual sampling voltage of the VOUT pin is obtained by calculating the product of the quotient and the preset sampling accuracy.

[0041] Optionally, the redundant monitoring circuit further includes an AND logic gate, the MCU chip further includes a general purpose input and output port GPIO module, the DCDC chip further includes a power good PG pin, the VCC pin and the PG pin are both connected to the input end signal of the AND logic gate, and the output end of the AND logic gate is connected to the GPIO module signal; the above-mentioned redundant monitoring circuit sampling reference voltage determination device also includes:

[0042] A second judgment module is used for judging the output level of the PG pin after it is pulled high and the output level of the VCC pin through the GPIO module based on the AND logic gate after the output voltage of the VOUT pin is normal, wherein the output level of the PG pin after it is pulled high is: the output level obtained by the DCDC chip after the output level of the PG pin is pulled high to the output level of the VOUT pin when the output voltage of the VOUT pin is normal;

[0043] The second determination module is used to determine that the output voltage of the VOUT pin is within the output range of the DCDC chip when it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are both high levels.

[0044] Optionally, the above-mentioned redundant monitoring circuit sampling reference voltage determination device further includes:

[0045] A second startup module is used to start the safety mechanism after the GPIO module determines the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate, when it is determined based on the AND logic gate that the output level of the PG pin after it is pulled high and the output level of the VCC pin are not both high levels.

[0046] In a third aspect, the present invention provides a redundant monitoring circuit, comprising:

[0047] A DC-DC converter DCDC chip and a microcontroller unit MCU chip are sequentially connected in series, wherein the DCDC chip includes a power supply voltage VCC pin and an output voltage VOUT pin, and the MCU chip includes an analog-to-digital conversion ADC module, and the VCC pin and the VOUT pin are both connected to the ADC module signal;

[0048] The MCU chip obtains the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compares the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and determines whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module.

[0049] In a fourth aspect, the present invention provides a vehicle, comprising:

[0050] a vehicle body and a redundant monitoring circuit mounted to said vehicle body;

[0051] The redundant monitoring circuit is the redundant monitoring circuit described in the third aspect.

[0052] It can be seen from the above content that in the embodiment of the present invention, the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin can be obtained through the ADC module, and the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin can be compared to determine whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, thereby obtaining a more accurate sampling reference voltage, and further improving the accuracy of the sampling result.

[0053] The innovative features of the embodiments of the present invention include:

[0054] 1. By adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, determine the output voltage of the VOUT pin as the sampling reference voltage of the ADC module, thereby obtaining a more accurate sampling reference voltage and further improving the accuracy of the sampling result.

[0055] 2. The voltage of the VCC pin is divided by setting a voltage divider circuit so that the sampled voltage of the VCC pin obtained after the voltage divider circuit is within the sampling voltage range of the ADC module.

[0056] 3. Determine whether the output voltage of the VOUT pin is normal by scaling the sampled voltage of the VCC pin and then judging whether the difference between the sampled voltage after scaling and the sampled voltage of the VOUT pin is within a preset error range.

[0057] 4. When the output voltage of the VOUT pin is abnormal, the quotient between the output voltage of the VOUT pin and the output voltage of the VCC pin can be calculated, and the product of the quotient and the preset sampling accuracy can be calculated to obtain the actual sampling voltage of the VOUT pin, thereby ensuring the accuracy of sampling.

[0058] 5. When the actual sampling voltage of the VOUT pin is not within the preset voltage range, the safety mechanism is activated to improve safety.

[0059] 6. By setting the AND logic gate, the GPIO module can determine the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate, and when the output level of the PG pin after it is pulled high and the output level of the VCC pin are both high based on the AND logic gate, it is determined that the output voltage of the VOUT pin is within the output range of the DCDC chip.

[0060] 7. By setting AND logic gates and GPIO modules, the output level of the PG pin after being pulled high and the output level of the VCC pin are judged, and when the output level of the PG pin after being pulled high and the output level of the VCC pin are not both high levels, the safety mechanism is started, thereby increasing the possibility of the safety mechanism being started, increasing the coverage of the safety mechanism, and reducing possible risks.

[0061] 8. The redundant monitoring circuit sampling reference voltage determination device provided in the embodiment of the present invention can obtain the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compare the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and determine whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, determine the output voltage of the VOUT pin as the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, determine the output voltage of the VOUT pin as the sampling reference voltage of the ADC module, so as to obtain a more accurate sampling reference voltage, and further improve the accuracy of the sampling result.

[0062] 9. The MCU chip in the redundant monitoring circuit provided in the embodiment of the present invention can obtain the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin through the ADC module, compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin, and judge whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to judge whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, thereby obtaining a more accurate sampling reference voltage, and further improving the accuracy of the sampling result.

[0063] 10. The vehicle provided in the embodiment of the present invention includes a vehicle body and a redundant monitoring circuit installed on the vehicle body, and the MCU chip in the redundant monitoring circuit can obtain the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compare the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and judge whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin to judge whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, so as to obtain a more accurate sampling reference voltage, and further improve the accuracy of the sampling result.

[0064] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative work.

[0066] Figure 1 A schematic flow chart of a method for determining a sampling reference voltage of a redundant monitoring circuit provided in an embodiment of the present invention;

[0067] Figure 2A schematic diagram of a structure of a redundant monitoring circuit provided by an embodiment of the present invention;

[0068] Figure 3 Another structural diagram of a redundant monitoring circuit provided by an embodiment of the present invention

[0069] Figure 4 A schematic diagram of the structure of a device for determining a redundant monitoring circuit sampling reference voltage provided by an embodiment of the present invention.

[0070] Figure 2-Figure 3 Among them, 1DCDC chip, 11VCC pin, 12VOUT pin, 13PG pin, 2MCU chip, 21ADC module, 22GPIO module, 23Power module, 3 voltage divider circuit, 31 first resistor, 32 second resistor, 4AND logic gate. DETAILED DESCRIPTION

[0071] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0072] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present invention and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0073] The embodiment of the present invention discloses a method, device, circuit and vehicle for determining a sampling reference voltage of a redundant monitoring circuit, which can improve the accuracy of the sampling result. The embodiment of the present invention is described in detail below.

[0074] Figure 1 A schematic diagram of a flow chart of a method for determining a sampling reference voltage of a redundant monitoring circuit provided by an embodiment of the present invention, Figure 2 A schematic diagram of the structure of a redundant monitoring circuit provided by an embodiment of the present invention. Figure 3 Another structural schematic diagram of a redundant monitoring circuit provided by an embodiment of the present invention.

[0075] See also Figure 2 and Figure 3The redundant monitoring circuit provided by the present invention includes a DCDC (DC-to-DC Converter) chip 1 and an MCU (Microcontroller Unit) chip 2 which are connected in series in sequence. The DCDC chip 1 includes a VCC (Volt Current Condenser) pin 11 and a VOUT (Voltage Out) pin 12. The MCU chip 2 includes an ADC (Analog-to-Digital Converter) module 21. The VCC pin 11 and the VOUT pin 12 are both signal-connected to the ADC module 21.

[0076] Continue to see Figure 2 , illustratively, the VCC pin 11 is connected to the ADC1 pin signal of the ADC module 21 , and the VOUT pin 12 is connected to the ADC0 pin signal of the ADC module 21 .

[0077] See also Figure 1 The method for determining the sampling reference voltage of the redundant monitoring circuit provided by the embodiment of the present invention is applied to the MCU chip 2 of the redundant monitoring circuit. Specifically, the method is applied to the target software in the MCU chip 2, and the method specifically includes the following steps.

[0078] S110: Obtain the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin through the ADC module.

[0079] Since both the VCC pin 11 and the VOUT pin 12 are signal-connected to the ADC module 21 , the MCU chip 2 can obtain the sampled voltage of the VCC pin 11 and the sampled voltage of the VOUT pin 12 through the ADC module 21 .

[0080] In addition, because sometimes the voltage of the VCC pin 11 is inconsistent with the range of the sampling voltage of the ADC module 21 , if it is greater than the range of the sampling voltage of the ADC module 21 , the voltage of the VCC pin 11 needs to be stepped down.

[0081] For details, see Figure 2 The redundant monitoring circuit further includes a voltage divider circuit 3, the VCC pin 11 is connected to the voltage divider circuit 3 by signal, and the voltage divider circuit 3 is connected to the ADC module 21 by signal. The sampling voltage of the VCC pin 11 obtained by the ADC module 21 may include:

[0082] The sampled voltage of the VCC pin 11 after being divided by the voltage divider circuit 3 is obtained through the ADC module 21 .

[0083] The voltage divider circuit 3 may include a circuit consisting of a first resistor 31 and a second resistor 32 .

[0084] Therefore, the voltage of the VCC pin 11 is divided by setting the voltage divider circuit 3 , so that the sampled voltage of the VCC pin 11 obtained after the voltage divider circuit 3 is within the measurement range of the sampled voltage of the ADC module 21 .

[0085] S120: Compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal.

[0086] In order to obtain an accurate sampling reference voltage in the embodiment of the present invention, after obtaining the sampling voltage of the VCC pin 11 and the sampling voltage of the VOUT pin 12, it is necessary to compare the sampling voltage of the VCC pin 11 with the sampling voltage of the VOUT pin 12 to determine whether the output voltage of the VOUT pin 12 is normal.

[0087] Specifically, step S120 may include:

[0088] Scaling the sampled voltage of the VCC pin 11 based on the ratio between the sampled voltage of the VCC pin 11 and the sampled voltage of the VOUT pin 12 to obtain a sampled voltage after scaling;

[0089] Determine whether the difference between the sampled voltage after scaling and the sampled voltage of the VOUT pin 12 is within a preset error range;

[0090] If yes, it is determined that the output voltage of the VOUT pin 12 is normal.

[0091] That is to say, after obtaining the sampled voltage of the VCC pin 11 and the sampled voltage of the VOUT pin 12, in order to compare the sampled voltage of the VCC pin 11 with the sampled voltage of the VOUT pin 12, it is necessary to scale the sampled voltage of the VCC pin 11 based on the ratio between the sampled voltage of the VCC pin 11 and the sampled voltage of the VOUT pin 12 to obtain the scaled sampled voltage. The scaling process is a reduction process or an amplification process, and the corresponding process is performed according to the actual situation. If the sampled voltage of the VCC pin 11 is large, the reduction process is performed, and if the sampled voltage of the VCC pin 11 is small, the amplification process is performed.

[0092] Then, it is determined whether the difference between the sampled voltage after scaling and the sampled voltage of the VOUT pin 12 is within a preset error range. If so, it indicates that the voltage range of the output voltage of the VOUT pin 12 is within a normal range. At this time, it is determined that the output voltage of the VOUT pin 12 is normal.

[0093] If there is a voltage divider circuit 3, the scaling process of the sampled voltage of the VCC pin 11 based on the ratio between the sampled voltage of the VCC pin 11 and the sampled voltage of the VOUT pin 12 may be:

[0094] The sampling voltage of the VCC pin 11 is scaled based on the ratio between the sampling voltage of the VCC pin 11 after being divided by the voltage divider circuit 3 and the sampling voltage of the VOUT pin 12 .

[0095] Therefore, whether the output voltage of the VOUT pin 12 is normal is determined by scaling the sampled voltage of the VCC pin 11 and then judging whether the difference between the sampled voltage after scaling and the sampled voltage of the VOUT pin 12 is within a preset error range.

[0096] S130: When the output voltage of the VOUT pin is normal, determine that the output voltage of the VOUT pin is a sampling reference voltage of the ADC module.

[0097] When the output voltage of the VOUT pin 12 is normal, it means that the output voltage of the VOUT pin 12 is accurate and can be input to the ADC module 21 as a sampling reference voltage. Therefore, the output voltage of the VOUT pin 12 is determined to be the sampling reference voltage of the ADC module 21 .

[0098] As can be seen from the above content, the embodiment of the present invention can obtain the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin through the ADC module, compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin, and determine whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, thereby obtaining a more accurate sampling reference voltage, and further improving the accuracy of the sampling result.

[0099] In one implementation, after step S120, the above-mentioned method for determining the sampling reference voltage of the redundant monitoring circuit may further include:

[0100] When the output voltage of the VOUT pin is abnormal, the quotient between the output voltage of the VOUT pin 12 and the output voltage of the VCC pin 11 is calculated, and the product of the quotient and the preset sampling accuracy is calculated to obtain the actual sampling voltage of the VOUT pin 12 .

[0101] When the output voltage of the VOUT pin 12 is abnormal, it means that the output voltage of the VOUT pin 12 is not accurate. At this time, in order to obtain an accurate sampling result, it is necessary to calculate the quotient between the output voltage of the VOUT pin 12 and the output voltage of the VCC pin 11, and calculate the product of the quotient and the preset sampling accuracy to obtain the actual sampling voltage of the VOUT pin 12.

[0102] Exemplarily, the preset sampling precision may be 12-bit sampling precision.

[0103] Therefore, when the output voltage of VOUT pin 12 is abnormal, the quotient between the output voltage of VOUT pin 12 and the output voltage of VCC pin 11 can be calculated, and the product of the quotient and the preset sampling accuracy can be calculated to obtain the actual sampling voltage of VOUT pin 12, thereby ensuring the accuracy of sampling.

[0104] In another implementation, after calculating the product of the quotient and the preset sampling accuracy to obtain the actual sampled voltage of the VOUT pin 12, the above-mentioned redundant monitoring circuit sampling reference voltage determination method may further include:

[0105] When the actual sampled voltage of the VOUT pin 12 is not within the preset voltage range, the safety mechanism is activated.

[0106] When the actual sampled voltage of the VOUT pin 12 is not within the preset voltage range, it indicates that a fault has occurred, and the safety mechanism can be activated at this time.

[0107] Exemplarily, the safety mechanism may be a reset mechanism or an emergency brake mechanism.

[0108] Therefore, when the actual sampled voltage of the VOUT pin 12 is not within the preset voltage range, the safety mechanism is activated, thereby improving safety.

[0109] Continue to see Figure 2 and Figure 3 The redundant monitoring circuit also includes an AND logic gate 4, the MCU chip 2 also includes a GPIO (General-purpose input / output) module 22, and the DCDC chip also includes a PG (powergood) pin 13. The VCC pin 11 and the PG pin 13 are both connected to the input signal of the AND logic gate 4, and the output signal of the AND logic gate 4 is connected to the GPIO module 22. Exemplarily, the output signal of the AND logic gate 4 is connected to the GPIO0 pin of the GPIO module 22.

[0110] After the output voltage of the VOUT pin is normal in step S130, the above-mentioned method for determining the redundant monitoring circuit sampling reference voltage may further include:

[0111] The GPIO module is used to determine the difference between the output level of the PG pin after it is pulled high and the output level of the VCC pin. The output level of the PG pin after it is pulled high is: the output level obtained when the DCDC chip pulls the output level of the PG pin high to the output level of the VOUT pin when the output voltage of the VOUT pin is normal;

[0112] When it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are both high, it is determined that the output voltage of the VOUT pin is within the output range of the DCDC chip.

[0113] Normally, when the output voltage of the VOUT pin 12 is normal, the DCDC chip 1 will pull up the output level of the PG pin 13 to the output level of the VOUT pin 12 to obtain the output level after the PG pin is pulled up. However, sometimes due to a fault in the DCDC chip 1, the output level after the PG pin is pulled up may not reach the output level of the VOUT pin 12.

[0114] Therefore, in the embodiment of the present invention, the GPIO module 22 determines the output level of the PG pin after it is pulled high and the output level of the VCC pin 11 based on the AND logic gate 4. When it is determined based on the AND logic gate 4 that the output level of the PG pin after it is pulled high and the output level of the VCC pin 11 are both high, it indicates that the DCDC chip 1 has no fault. At this time, it is determined that the output voltage of the VOUT pin 12 is within the output range of the DCDC chip 1.

[0115] Therefore, by setting the AND logic gate 4, the GPIO module 22 can judge the output level of the PG pin after it is pulled high and the output level of the VCC pin 11 based on the AND logic gate 4, and when it is judged based on the AND logic gate 4 that the output level of the PG pin after it is pulled high and the output level of the VCC pin 11 are both high levels, it is determined that the output voltage of the VOUT pin 12 is within the output range of the DCDC chip 1.

[0116] In another implementation, after judging the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate through the GPIO module, the above-mentioned redundant monitoring circuit sampling reference voltage determination method may also include:

[0117] When it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are not both high levels, the safety mechanism is activated.

[0118] When it is determined based on the AND logic gate 4 that the output level of the PG pin after being pulled high and the output level of the VCC pin 11 are not both high levels, it indicates that the DCDC chip 1 fails. At this time, the safety mechanism is activated.

[0119] Exemplarily, the safety mechanism may be a reset mechanism or an emergency brake mechanism.

[0120] Therefore, by setting the AND logic gate 4 and the GPIO module 22, the output level of the PG pin after being pulled high and the output level of the VCC pin are judged, and when the output level of the PG pin after being pulled high and the output level of the VCC pin 11 are not both high levels, the safety mechanism is started, thereby increasing the possibility of starting the safety mechanism, increasing the coverage of the safety mechanism, and reducing possible risks.

[0121] Figure 4 A schematic diagram of a redundant monitoring circuit sampling reference voltage determination device provided by an embodiment of the present invention, wherein the redundant monitoring circuit comprises a DC-DC converter DCDC chip and a microcontroller unit MCU chip connected in series, wherein the DCDC chip comprises a power supply voltage VCC pin and an output voltage VOUT pin, wherein the MCU chip comprises an analog-to-digital conversion ADC module, wherein the VCC pin and the VOUT pin are both connected to the ADC module signal, see Figure 4 , a redundant monitoring circuit sampling reference voltage determination device provided by an embodiment of the present invention is applied to the MCU chip, and the device includes:

[0122] An acquisition module 401 is used to acquire a sampled voltage of the VCC pin and a sampled voltage of the VOUT pin through the ADC module;

[0123] A first judging module 402, configured to compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to judge whether the output voltage of the VOUT pin is normal;

[0124] The first determination module 403 is configured to determine, when the output voltage of the VOUT pin is normal, that the output voltage of the VOUT pin is a sampling reference voltage of the ADC module.

[0125] It can be seen from the above content that the redundant monitoring circuit sampling reference voltage determination device provided in the embodiment of the present invention can obtain the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compare the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and judge whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin to judge whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, thereby obtaining a more accurate sampling reference voltage, and further improving the accuracy of the sampling result.

[0126] In one implementation, the first determining module 402 includes:

[0127] A scaling submodule, configured to scale the sampled voltage of the VCC pin based on a ratio between the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin to obtain a scaled sampled voltage;

[0128] A judging submodule, used to judge whether the difference between the sampled voltage after the scaling process and the sampled voltage of the VOUT pin is within a preset error range, and if so, trigger a determining submodule;

[0129] The determination submodule is used to determine whether the output voltage of the VOUT pin is normal.

[0130] In one implementation, the redundant monitoring circuit further includes a voltage divider circuit, the VCC pin is connected to the voltage divider circuit signal, the voltage divider circuit is connected to the ADC module signal, and the acquisition module 401 is specifically used to:

[0131] The sampled voltage of the VCC pin after being divided by the voltage divider circuit is obtained through the ADC module.

[0132] In one implementation, the redundant monitoring circuit sampling reference voltage determination device further includes:

[0133] A calculation module is used for, after determining whether the output voltage of the VOUT pin is normal, calculating the quotient between the output voltage of the VOUT pin and the output voltage of the VCC pin when the output voltage of the VOUT pin is abnormal, and calculating the product of the quotient and a preset sampling accuracy to obtain the actual sampling voltage of the VOUT pin.

[0134] In one implementation, the redundant monitoring circuit sampling reference voltage determination device further includes:

[0135] The first startup module is used to start the safety mechanism when the actual sampling voltage of the VOUT pin is not within a preset voltage range after the actual sampling voltage of the VOUT pin is obtained by calculating the product of the quotient and the preset sampling accuracy.

[0136] In one implementation, the redundant monitoring circuit further includes an AND logic gate, the MCU chip further includes a general purpose input and output port GPIO module, the DCDC chip further includes a power good PG pin, the VCC pin and the PG pin are both connected to the input end signal of the AND logic gate, and the output end of the AND logic gate is connected to the GPIO module signal; the redundant monitoring circuit sampling reference voltage determination device also includes:

[0137] A second judgment module is used for judging the output level of the PG pin after it is pulled high and the output level of the VCC pin through the GPIO module based on the AND logic gate after the output voltage of the VOUT pin is normal, wherein the output level of the PG pin after it is pulled high is: the output level obtained by the DCDC chip after the output level of the PG pin is pulled high to the output level of the VOUT pin when the output voltage of the VOUT pin is normal;

[0138] The second determination module is used to determine that the output voltage of the VOUT pin is within the output range of the DCDC chip when it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are both high levels.

[0139] In one implementation, the redundant monitoring circuit sampling reference voltage determination device further includes:

[0140] A second startup module is used to start the safety mechanism after the GPIO module determines the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate, when it is determined based on the AND logic gate that the output level of the PG pin after it is pulled high and the output level of the VCC pin are not both high levels.

[0141] The above device embodiment corresponds to the method embodiment and has the same technical effect as the method embodiment. For specific description, please refer to the method embodiment. The device embodiment is obtained based on the method embodiment. For specific description, please refer to the method embodiment part, which will not be repeated here.

[0142] Continue to see Figure 2 , an embodiment of the present invention further provides a redundant monitoring circuit, comprising:

[0143] A DC-DC converter DCDC chip and a microcontroller unit MCU chip are sequentially connected in series, wherein the DCDC chip includes a power supply voltage VCC pin and an output voltage VOUT pin, and the MCU chip includes an analog-to-digital conversion ADC module, and the VCC pin and the VOUT pin are both connected to the ADC module signal;

[0144] The MCU chip obtains the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compares the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and determines whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module.

[0145] It can be seen from the above content that the MCU chip in the redundant monitoring circuit provided in the embodiment of the present invention can obtain the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin through the ADC module, compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin, and judge whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to judge whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, thereby obtaining a more accurate sampling reference voltage, and further improving the accuracy of the sampling result.

[0146] Continue to see Figure 2 The MCU chip 2 may further include a Power module 23, that is, a power supply module, and the VOUT pin is electrically connected to the GPIO-VIN pin and the ADC-VIN pin of the Power module 23, respectively. Wherein, VIN represents an input voltage.

[0147] Furthermore, the MCU chip in the redundant monitoring circuit provided in the embodiment of the present invention can also execute the redundant monitoring circuit sampling reference voltage determination method provided in any one of the above method embodiments. Please refer to the method embodiment for details, which will not be repeated here.

[0148] Based on the above redundant monitoring circuit, an embodiment of the present invention further provides a vehicle, including:

[0149] A vehicle body and a redundant monitoring circuit installed on the vehicle body, wherein the redundant monitoring circuit is a redundant monitoring circuit provided by any of the above embodiments.

[0150] It can be seen from the above content that the vehicle provided by the embodiment of the present invention includes a vehicle body and a redundant monitoring circuit installed on the vehicle body, and the MCU chip in the redundant monitoring circuit can obtain the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compare the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and judge whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module. Therefore, by adding voltage sampling to the VCC pin of the DCDC chip in the circuit, and comparing the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin to judge whether the output voltage of the VOUT pin is normal, and when the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module, so as to obtain a more accurate sampling reference voltage, and further improve the accuracy of the sampling result.

[0151] The vehicle terminal embodiment and Figure 1 The method embodiments shown are embodiments based on the same inventive concept, and relevant parts can be referenced to each other. The above vehicle terminal embodiment corresponds to the method embodiment, and has the same technical effect as the method embodiment. For specific description, refer to the method embodiment.

[0152] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0153] Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description of the embodiment, or can be changed accordingly and located in one or more devices different from the embodiment. The modules in the above embodiment can be combined into one module, or can be further divided into multiple sub-modules.

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

Claims

1. A method for determining a sampling reference voltage of a redundant monitoring circuit, characterized in that: The redundant monitoring circuit comprises a DC-DC converter DCDC chip and a microcontroller unit MCU chip connected in series in sequence, the DCDC chip comprises a power supply voltage VCC pin and an output voltage VOUT pin, the MCU chip comprises an analog-to-digital conversion ADC module, the VCC pin and the VOUT pin are both connected to the ADC module signal, the method is applied to the MCU chip, and the method comprises: Acquire the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin through the ADC module; Compare the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal; When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be a sampling reference voltage of the ADC module.

2. A method for determining a redundant monitoring circuit sampling reference voltage according to claim 1, characterized in that: The comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin to determine whether the output voltage of the VOUT pin is normal includes: Scaling the sampled voltage of the VCC pin based on the ratio between the sampled voltage of the VCC pin and the sampled voltage of the VOUT pin to obtain a sampled voltage after scaling; Determine whether the difference between the sampled voltage after scaling and the sampled voltage of the VOUT pin is within a preset error range; If yes, it is determined that the output voltage of the VOUT pin is normal.

3. A method for determining a sampling reference voltage of a redundant monitoring circuit as claimed in claim 1, characterized in that: The redundant monitoring circuit further includes a voltage divider circuit, the VCC pin is connected to the voltage divider circuit signal, the voltage divider circuit is connected to the ADC module signal, and the sampling voltage of the VCC pin is obtained through the ADC module, including: The sampled voltage of the VCC pin after being divided by the voltage divider circuit is obtained through the ADC module.

4. A method for determining a redundant monitoring circuit sampling reference voltage according to claim 1, characterized in that: After determining whether the output voltage of the VOUT pin is normal, the method further includes: When the output voltage of the VOUT pin is abnormal, the quotient between the output voltage of the VOUT pin and the output voltage of the VCC pin is calculated, and the product of the quotient and a preset sampling accuracy is calculated to obtain the actual sampling voltage of the VOUT pin.

5. A method for determining a sampling reference voltage of a redundant monitoring circuit as claimed in claim 4, characterized in that: After calculating the product of the quotient and the preset sampling accuracy to obtain the actual sampled voltage of the VOUT pin, the method further includes: When the actual sampled voltage of the VOUT pin is not within the preset voltage range, the safety mechanism is activated.

6. A method for determining a redundant monitoring circuit sampling reference voltage according to claim 1, characterized in that: The redundant monitoring circuit further includes an AND logic gate, the MCU chip further includes a general purpose input and output port GPIO module, the DCDC chip further includes a power good PG pin, the VCC pin and the PG pin are both signal-connected to the input end of the AND logic gate, and the output end of the AND logic gate is signal-connected to the GPIO module; After the output voltage of the VOUT pin is normal, the method further includes: The GPIO module determines the difference between the output level of the PG pin after it is pulled high and the output level of the VCC pin based on the AND logic gate, wherein the output level of the PG pin after it is pulled high is: the output level obtained after the DCDC chip pulls the output level of the PG pin high to the output level of the VOUT pin when the output voltage of the VOUT pin is normal; When it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are both high levels, it is determined that the output voltage of the VOUT pin is within the output range of the DCDC chip.

7. A method for determining a sampling reference voltage of a redundant monitoring circuit as claimed in claim 6, characterized in that: After determining, by the GPIO module based on the AND logic gate, whether the output level of the PG pin after being pulled high is higher than the output level of the VCC pin, the method further includes: When it is determined based on the AND logic gate that the output level of the PG pin after being pulled high and the output level of the VCC pin are not both high levels, the safety mechanism is activated.

8. A device for determining a sampling reference voltage of a redundant monitoring circuit, characterized in that: The redundant monitoring circuit comprises a DC-DC converter DCDC chip and a microcontroller unit MCU chip connected in series in sequence, the DCDC chip comprises a power supply voltage VCC pin and an output voltage VOUT pin, the MCU chip comprises an analog-to-digital conversion ADC module, the VCC pin and the VOUT pin are both connected to the ADC module signal, the device is applied to the MCU chip, and the device comprises: An acquisition module, used for acquiring a sampled voltage of the VCC pin and a sampled voltage of the VOUT pin through the ADC module; A first judgment module, used for comparing the sampled voltage of the VCC pin with the sampled voltage of the VOUT pin, to judge whether the output voltage of the VOUT pin is normal; The first determination module is used to determine that the output voltage of the VOUT pin is a sampling reference voltage of the ADC module when the output voltage of the VOUT pin is normal.

9. A redundant monitoring circuit, characterized in that: include: A DC-DC converter DCDC chip and a microcontroller unit MCU chip are sequentially connected in series, wherein the DCDC chip includes a power supply voltage VCC pin and an output voltage VOUT pin, and the MCU chip includes an analog-to-digital conversion ADC module, and the VCC pin and the VOUT pin are both connected to the ADC module signal; The MCU chip obtains the sampling voltage of the VCC pin and the sampling voltage of the VOUT pin through the ADC module, compares the sampling voltage of the VCC pin with the sampling voltage of the VOUT pin, and determines whether the output voltage of the VOUT pin is normal. When the output voltage of the VOUT pin is normal, the output voltage of the VOUT pin is determined to be the sampling reference voltage of the ADC module.

10. A vehicle, characterized in that: include: a vehicle body and a redundant monitoring circuit mounted to said vehicle body; The redundant monitoring circuit is the redundant monitoring circuit according to claim 9.