Circuit and method for diagnosing supply voltage of passenger vehicle within safe interval
By designing a circuit for judging the power supply voltage of passenger cars and using comparators and logic gate chips to monitor the voltage, the problem of difficulty in judging the safe range of the power supply voltage in the existing technology is solved, and the function and life of the on-board controller are guaranteed.
Patent Information
- Application Number
- CN202410636398.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult to quickly and accurately determine whether the power supply voltage of a passenger car is within a safe range with the existing technology, resulting in problems with the controller's function and lifespan.
A circuit is designed, including a safe voltage range setting part and a logic gate fault output part. The vehicle power supply voltage is monitored in real time through the comparator and logic gate chip, and the resistance settings of the resistor and capacitor are used to determine whether the voltage is safe between 9V and 16V. Within the interval, and output through the MCU micro-control unit.
It achieves rapid and accurate judgment on the power supply voltage of passenger cars, ensures that the on-board controller operates in a safe range, and improves functional safety level and battery life.
Smart Images

Figure CN118604433A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automotive electronic circuits, and in particular to a circuit and method for diagnosing whether a power supply voltage of a passenger car is within a safe range. Background Art
[0002] Passenger car systems are usually 12V systems, and the safe range voltage of their controllers is designed to be 9V to 16V. Within this range, there is no damage to the on-board controller, and all its functions and performance are normal. When the controller power supply voltage is lower than 9V, the low voltage causes some functions of the controller to not guarantee normal performance, and there is also the problem of over-discharge of the on-board battery, resulting in reduced battery life and damage. When the on-board controller power supply voltage is greater than 16V, long-term high-voltage operation will cause the controller to generate excessive heat, thereby reducing the life of the controller. Summary of the invention
[0003] In order to solve the problems existing in the background technology, the present invention proposes a circuit and method for diagnosing whether the power supply voltage of a passenger car is within a safe range, which solves the technical problem that the power supply voltage of a passenger car in the prior art cannot be quickly and accurately judged within the safe range under limited cost.
[0004] The technical solution of the present invention is achieved in this way:
[0005] 1. A circuit for diagnosing whether the power supply voltage of a passenger car is within a safe range:
[0006] It includes two parts: a safety voltage range setting part and a logic gate fault output part. The on-board power supply VBAT_SUP is connected to the MCU microcontroller unit in sequence through the safety voltage range setting part, the logic gate fault output part, and the safety voltage range setting part and the logic gate fault output part are both connected to the logic power supply.
[0007] The safety voltage range setting part includes multiple resistors, comparator U3 and comparator U4. The positive phase input terminal of comparator U3 is connected to the vehicle power supply VBAT_SUP via resistor R7, and the positive phase input terminal of comparator U3 is connected to the positive phase input terminal of comparator U4 via resistor R9, resistor R12 and comparator U4 in sequence. The positive phase input terminal of comparator U4 is connected to the ground via resistor R7; the inverting input terminal of comparator U3 is connected to the logic power supply via resistor R10, and is also connected to the ground via resistor R11; the inverting input terminal of comparator U4 is connected to the logic power supply via resistor R15, and is also connected to the ground via resistor R16; the output terminals of comparator U3 and comparator U4 are respectively connected to the logic gate fault output part.
[0008] The logic gate fault output part includes a chip IC1 and multiple resistors. The INB pin of the chip IC1 is grounded through a resistor R8 and connected to the output end of the comparator U3; the INA pin of the chip IC1 is grounded through a resistor R13 and connected to the output end of the comparator U4; the VCC pin of the chip IC1 is connected to the logic power supply and grounded through a capacitor C4; the GND pin of the chip IC1 is grounded, and the OUT pin is connected to the general output port FAULIT_OUT of the MCU micro-control unit.
[0009] 2. A method for diagnosing whether the power supply voltage of a passenger car is within a safe range:
[0010] By setting the resistance values of resistors R7, R9, R10-R12, R14-R16, when the voltage of the vehicle power supply VBAT_SUP is the highest voltage in the safety interval, the voltage of the non-inverting input terminal of the comparator U3 is the same as the voltage of the inverting input terminal; and when the voltage of the vehicle power supply VBAT_SUP is the lowest voltage in the safety interval, the voltage of the non-inverting input terminal of the comparator U4 is the same as the voltage of the inverting input terminal;
[0011] Then, the chip IC1 monitors the output of the OUT output terminals of the comparator U3 and the comparator U4 in real time, performs logical XOR processing to output the final high and low level results, and determines whether the vehicle power supply VBAT_SUP voltage is within the safe range based on the final high and low level results.
[0012] When the OUT output terminals of the comparator U3 and the comparator U4 are both low or high, the chip IC1 detects that the output is low and the vehicle power supply VBAT_SUP voltage is not within the safe range;
[0013] When one of the OUT output terminals of the comparator U3 and the comparator U4 is at a high level and the other is at a low level, the chip IC1 detects that the output is at a high level, and the vehicle power supply VBAT_SUP voltage is within a safe range.
[0014] Beneficial effects of the present invention:
[0015] The present invention ensures the normal operation of the on-board controller by monitoring whether the power supply voltage of the passenger car controller is within the safe range. This circuit design improves the functional safety level of the on-board controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 The invention is a circuit schematic diagram for diagnosing that the power supply voltage is within the normal operating range. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0018] like Figure 1 As shown, the specific implementation includes two parts: an MCU micro-control unit, a safe voltage range setting part and a logic gate fault output part. The vehicle power supply VBAT_SUP is connected to the MCU micro-control unit in sequence through the safe voltage range setting part, the logic gate fault output part and the MCU micro-control unit, and the safe voltage range setting part and the logic gate fault output part are both connected to the logic power supply 5V.
[0019] The safety voltage range setting part includes multiple resistors, comparator U3 and comparator U4. The No. 3 positive input terminal of comparator U3 is connected to the vehicle power supply VBAT_SUP through resistor R7. The No. 3 positive input terminal of comparator U3 is connected to the No. 3 positive input terminal of comparator U4 through resistor R9, resistor R12 and the No. 3 positive input terminal of comparator U4 in turn. The No. 3 positive input terminal of comparator U4 is connected to the ground through resistor R7; the No. 2 inverting input terminal of comparator U3 is connected to the logic power supply 5V through resistor R10, and is also grounded through resistor R11; the No. 2 inverting input terminal of comparator U4 is connected to the logic power supply 5V through resistor R15, and is also grounded through resistor R16; the output terminals of comparator U3 and comparator U4 are respectively connected to the INB pin and INA pin of the chip IC1 of the logic gate fault output part; in addition, the No. 7 pin V+ of comparator U3 is connected to 5V and the No. 2 pin of capacitor C3. The No. 1 pin of capacitor C3 is grounded, and the No. 4 pin V- of comparator U3 is grounded. The No. 7 V+ pin of the comparator U4 and the No. 2 pin of the capacitor C5 are both connected to 5 V. The No. 1 pin of the capacitor C5 is grounded, and the No. 4 V- pin of the comparator U4 is grounded.
[0020] The logic gate fault output part includes chip IC1 and multiple resistors. The No. 1 INB pin of chip IC1 is grounded through resistor R8 and connected to the output end of comparator U3; the No. 1 INA pin of chip IC1 is grounded through resistor R13 and connected to the output end of comparator U4; the No. 5 VCC pin of chip IC1 is connected to the logic power supply 5V and grounded through capacitor C4; the No. 3 GND pin of chip IC1 is grounded, and the No. 4 OUT pin is connected to the general output port FAULIT_OUT of the MCU micro-control unit.
[0021] In the specific implementation, the comparators U3 and U4 are LM2903, the IC1 is SN74AHC1G86DBVR, which is a two-signal input XOR gate chip, the resistance of resistor R7 is 300K, the resistance of resistor R9 is 10K, the resistance of resistor R12 is 10K, the resistance of resistor R14 is 40K, the resistance of resistor R16 is 2.5K, the resistance of resistor R15 is 10K, the resistance of resistor R10 is 10K, and the resistance of resistor R11 is 11.4K. The resistance of resistor R8 is 10K, and the resistance of resistor R13 is 10K. The capacitance of capacitors C3 and C5 is 100nF.
[0022] By setting the resistance values of resistors R7, R9, R10-R12, R14-R16, when the voltage of the vehicle power supply VBAT_SUP is the highest voltage in the safety interval, the voltage of the non-inverting input terminal of the comparator U3 is the same as the voltage of the inverting input terminal; and when the voltage of the vehicle power supply VBAT_SUP is the lowest voltage in the safety interval, the voltage of the non-inverting input terminal of the comparator U4 is the same as the voltage of the inverting input terminal;
[0023] Then, the chip IC1 monitors the output of the OUT output terminals of the comparator U3 and the comparator U4 in real time, performs logical XOR processing to output the final high and low level results, and determines whether the vehicle power supply VBAT_SUP voltage is within the safe range based on the final high and low level results.
[0024] When the OUT output terminals 6 of the comparator U3 and the comparator U4 are both low or high, the chip IC1 detects that the output is low and the vehicle power supply VBAT_SUP voltage is not within the safe range;
[0025] When one of the OUT output terminals 6 of the comparator U3 and the comparator U4 is at a high level and the other is at a low level, the chip IC1 detects that the output is at a high level, and the vehicle power supply VBAT_SUP voltage is within the safe range.
[0026] By performing detection and diagnosis through the above method, and then using voltage control means to control the voltage of the vehicle power supply VBAT_SUP, the vehicle power supply VBAT_SUP can be kept within a safe range.
[0027] The embodiments of the present invention and their implementation process are as follows:
[0028] Usually, the normal power supply voltage range of the vehicle controller is VBAT_SUP 9V-16V, and the logic power supply is 5V. The following example takes VBAT_SUP as 9V and 16V respectively:
[0029] 1. When the voltage of the vehicle power supply VBAT_SUP is 16V, the voltage of the non-inverting input terminal of the comparator U3 is:
[0030] VBAT_SUP*(R9+R12+R14) / (R7+R9+R12+R14)=16V*(10K+10K+40K) / (300K+10K+10K+40K)=2.66V
[0031] Among them, VBAT_SUP represents the voltage of the vehicle power supply VBAT_SUP.
[0032] The voltage at the inverting input of comparator U3 is:
[0033] 5V*R11 / (R11+R10)=5V*11.4K / (11.4K+10K)=2.66V
[0034] Therefore, when the voltage of the vehicle power supply VBAT_SUP is less than or equal to 16V, the positive input terminal of the comparator U3 is less than or equal to 2.66V, and the negative input terminal of the comparator U3 is constantly equal to 2.66V. Therefore, the negative input terminal voltage of the comparator U3 is greater than the positive input terminal voltage of the comparator U3, so the OUT output terminal of the comparator U3 is low level (0V);
[0035] When the voltage of the vehicle power supply VBAT_SUP is greater than 16V, the positive input terminal of the comparator U3 is greater than 2.66V, and the negative input terminal of the comparator U3 is constantly equal to 2.66V. Therefore, the positive input terminal voltage of the comparator U3 is greater than the negative input terminal voltage of the comparator U3, and the OUT output terminal of the comparator U3 is high level.
[0036] 2. When the voltage of the vehicle power supply VBAT_SUP is 16V, the voltage of the non-inverting input terminal of the comparator U4 is:
[0037] VBAT_SUP*R14 / (R7+R9+R12+R14)=16V*(40K) / (300K+10K+10K+40K)=1.77V
[0038] The voltage at the inverting input of comparator U4 is:
[0039] 5V*R16 / (R15+R16)=5V*2.5K / (10K+2.5K)=1V
[0040] When the voltage of the vehicle power supply VBAT_SUP is greater than 16V, the positive input terminal of the comparator U4 is greater than 1.77V, and the inverting input terminal of the comparator U4 is constantly equal to 1V. Therefore, the voltage of the positive input terminal of the comparator U4 is greater than the voltage of the inverting input terminal of the comparator U4, and the OUT output terminal 6 of the comparator U4 is high.
[0041] 3. When the voltage of the vehicle power supply VBAT_SUP is 9V, the voltage of the non-inverting input terminal of the comparator U3 is:
[0042] VBAT_SUP*(R9+R12+R14) / (R7+R9+R12+R14)=9V*(10K+10K+40K) / (300K+10K+10K+40K)=1.5V
[0043] The voltage at the inverting input of comparator U3 is:
[0044] 5V*R11 / (R11+R10)=5*11.4K / (10K+11.4K)=2.66V
[0045] When the voltage of the vehicle power supply VBAT_SUP is less than 9V, the positive input terminal of the comparator U3 is less than 1.5V, and the negative input terminal of the comparator U3 is constantly equal to 2.66V. Therefore, the positive input terminal voltage of the comparator U3 is less than the negative input terminal voltage of the comparator U3, and the OUT output terminal 6 of the comparator U3 is low level (0V).
[0046] 4. When the voltage of the vehicle power supply VBAT_SUP is 9V, the voltage of the non-inverting input terminal of the comparator U4 is:
[0047] VBAT_SUP*R14 / (R7+R9+R12+R14)=9V*(40K) / (300K+10K+10K+40K)=1V
[0048] The voltage at the inverting input of comparator U4 is:
[0049] 5V*R16 / (R15+R16)=5*2.5K / (10K+2.5K)=1V
[0050] When the voltage of the vehicle power supply VBAT_SUP is less than 9V, the positive input terminal of the comparator U4 is less than 1V, and the negative input terminal of the comparator U4 is constantly equal to 1V. Therefore, the positive input terminal voltage of the comparator U4 is less than the negative input terminal voltage of the comparator U4, and the OUT output terminal 6 of the comparator U4 is low level (0V).
[0051] When the voltage of the vehicle power supply VBAT_SUP is greater than or equal to 9V, the positive input terminal of the comparator U4 is greater than or equal to 1V, and the inverting input terminal of the comparator U4 is constantly equal to 1V. Therefore, the voltage of the positive input terminal of the comparator U4 is greater than or equal to the voltage of the inverting input terminal of the comparator U4, and the OUT output terminal 6 of the comparator U4 is high level.
[0052] Therefore, combined with the above situation, it can be seen that when the voltage of the vehicle power supply VBAT_SUP is less than 9V, the OUT output terminals 6 of the comparator U3 and the comparator U4 are both low level;
[0053] When the voltage of the vehicle power supply VBAT_SUP is greater than or equal to 9V and less than or equal to 16V, the OUT output terminal 6 of the comparator U3 is at a low level, and the OUT output terminal 6 of the comparator U4 is at a high level;
[0054] When the voltage of the vehicle power supply VBAT_SUP is greater than 16V, the OUT output terminals 6 of the comparator U3 and the comparator U4 are both at a high level.
[0055] The specific input logic truth table is as follows
[0056] VBAT_SUP U3-OUT U4-OUT Logical XOR (FaultOUT) output <9V 0 0 0 9<=X<=16 0 1 1 >16 1 1 0
[0057] Then, according to the real-time monitoring of the output of the OUT output of comparator U3 and comparator U4 by chip IC1, a logical XOR processing is performed to output the final high and low level results. When the chip IC1 detects that the output is only high level, the vehicle power supply VBAT_SUP is used as the power supply voltage, and its voltage is within the safe range; when the chip IC1 detects that the output is low level, the vehicle power supply VBAT_SUP voltage is not within the safe range.
[0058] Finally, the voltage of the vehicle power supply VBAT_SUP can be controlled by using voltage control means to ensure that the vehicle power supply VBAT_SUP is maintained between 9V and 16V.
[0059] As can be seen from the above table, the present invention can accurately, quickly and efficiently detect whether the power supply voltage of a passenger car is within a safe range by judging according to the logic of the above table and the method of the present invention.
[0060] The above specific implementation modes are used to explain the present invention rather than to limit the present invention. Any modification and change made to the present invention within the spirit of the present invention and the protection scope of the claims shall fall within the protection scope of the present invention.
Claims
1. A circuit for diagnosing whether the power supply voltage of a passenger car is within a safe range, characterized in that: It includes two parts: a safety voltage range setting part and a logic gate fault output part. The on-board power supply VBAT_SUP is connected to the MCU microcontroller unit in sequence through the safety voltage range setting part, the logic gate fault output part, and the safety voltage range setting part and the logic gate fault output part are both connected to the logic power supply.
2. A circuit for diagnosing whether the power supply voltage of a passenger car is within a safe range according to claim 1, characterized in that: The safety voltage range setting part includes multiple resistors, comparator U3 and comparator U4. The positive phase input terminal of comparator U3 is connected to the vehicle power supply VBAT_SUP via resistor R7, and the positive phase input terminal of comparator U3 is connected to the positive phase input terminal of comparator U4 via resistor R9, resistor R12 and comparator U4 in sequence. The positive phase input terminal of comparator U4 is connected to the ground via resistor R7; the inverting input terminal of comparator U3 is connected to the logic power supply via resistor R10, and is also connected to the ground via resistor R11; the inverting input terminal of comparator U4 is connected to the logic power supply via resistor R15, and is also connected to the ground via resistor R16; the output terminals of comparator U3 and comparator U4 are respectively connected to the logic gate fault output part.
3. The circuit for diagnosing whether the power supply voltage of a passenger car is within a safe range according to claim 1, characterized in that: The logic gate fault output part includes a chip IC1 and multiple resistors. The INB pin of the chip IC1 is grounded through a resistor R8 and connected to the output end of the comparator U3; the INA pin of the chip IC1 is grounded through a resistor R13 and connected to the output end of the comparator U4; the VCC pin of the chip IC1 is connected to the logic power supply and grounded through a capacitor C4; the GND pin of the chip IC1 is grounded, and the OUT pin is connected to the general output port FAULIT_OUT of the MCU micro-control unit.
4. A method for diagnosing whether the power supply voltage of a passenger car is within a safe range, applied to the circuit of any one of claims 1 to 3, characterized in that: By setting the resistance values of resistors R7, R9, R10-R12, R14-R16, when the voltage of the vehicle power supply VBAT_SUP is the highest voltage in the safety interval, the voltage of the non-inverting input terminal of the comparator U3 is the same as the voltage of the inverting input terminal; and when the voltage of the vehicle power supply VBAT_SUP is the lowest voltage in the safety interval, the voltage of the non-inverting input terminal of the comparator U4 is the same as the voltage of the inverting input terminal; Then, the chip IC1 monitors the output of the OUT output terminals of the comparator U3 and the comparator U4 in real time, performs logical XOR processing to output the final high and low level results, and determines whether the vehicle power supply VBAT_SUP voltage is within the safe range based on the final high and low level results.
5. A method for diagnosing that the power supply voltage of a passenger car is within a safe range according to the circuit of claim 4, characterized in that: When the OUT output terminals of the comparator U3 and the comparator U4 are both low or high, the chip IC1 detects that the output is low and the vehicle power supply VBAT_SUP voltage is not within the safe range; When one of the OUT output terminals of the comparator U3 and the comparator U4 is at a high level and the other is at a low level, the chip IC1 detects that the output is at a high level, and the vehicle power supply VBAT_SUP voltage is within a safe range.
