Control device
By using a microcontroller to correct the errors of the 3.3V and 5V voltages of the vehicle power supply, the detection error problem of the analog detection circuit is solved, and high-precision power supply control is achieved, adapting to load changes and temperature variations.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TOYOTA JIDOSHA KK
- Filing Date
- 2025-10-13
- Publication Date
- 2026-04-21
AI Technical Summary
In the prior art, the vehicle power control device uses power circuits with different voltages, resulting in large detection errors in the analog detection circuit, making it difficult to achieve high-precision use of both 3.3V and 5V power supplies.
By using a microcontroller to correct errors in 3.3V and 5V voltages, the microcontroller acquires offset values and performs error correction, correcting initial deviations and deviations caused by temperature or degradation, thus achieving high-precision analog detection.
It enables the simultaneous use of 3.3V and 5V power supplies, reducing detection errors, improving the accuracy of analog detection, and adapting to load variations and temperature changes.
Smart Images

Figure CN121900239A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a control device for controlling the power supply of a vehicle. Background Technology
[0002] Patent document 1 discloses a voltage detection circuit that corrects a low-precision power supply circuit by inputting a high-precision power supply from an external source to a microcontroller and comparing the two power supply voltages, thereby enabling high-precision detection of the input voltage.
[0003] Patent Document 1: Japanese Patent Application Publication No. 2001-282368 Summary of the Invention
[0004] In the control device (analog circuit) that controls the power supply of a vehicle, sometimes the analog detection circuit is connected as a load to an external interface. This analog detection circuit is driven by a 5V voltage, which is different from the 3.3V voltage used as the power supply for the microcontroller. Therefore, it is necessary to prepare a control device that has both a 3.3V power supply circuit and a 5V power supply circuit in its structure. However, since the 3.3V and 5V voltages are generated separately, there is a problem that the detection error in the analog detection circuit increases due to the voltage errors of each voltage.
[0005] The present invention was made in view of the above-mentioned problems, and its object is to provide a high-precision control device that can take into account the simultaneous use of two voltage power supplies and analog detection.
[0006] To address the aforementioned issues, one aspect of the present invention is a control device that controls the power supply of a vehicle. The control device includes: a microcontroller that controls the vehicle; a first power supply circuit that generates a first voltage from a main power supply to drive the microcontroller; and a second power supply circuit that generates a second voltage from the main power supply to drive an external load connected to the control device. The microcontroller performs error correction on the first voltage and / or the second voltage based on the difference between a set value of the first voltage and an actual value output from the first power supply circuit, and the difference between a set value of the second voltage and an actual value output from the second power supply circuit.
[0007] Invention Effects
[0008] According to the control device of the present invention described above, it is possible to use both a 3.3V power supply and a 5V power supply, and to improve the detection accuracy in the analog detection circuit. Attached Figure Description
[0009] Figure 1 This is a schematic structural diagram of the control device according to the first embodiment of the present invention.
[0010] Figure 2This is a flowchart of the error correction control process performed by the control device according to the first embodiment.
[0011] Figure 3 It is a graph illustrating the difference between the set value and the actual value of the power supply voltage.
[0012] Figure 4 This is a schematic structural diagram of the control device according to the second embodiment of the present invention.
[0013] Figure 5 This is a flowchart of the error correction control process performed by the control device according to the second embodiment.
[0014] Figure 6 This is a flowchart of the error correction control process based on the first application example.
[0015] Figure 7 This is a schematic structural diagram of the control device based on the second application example.
[0016] Figure 8 This is a schematic structural diagram of the control device based on the third application example. Detailed Implementation
[0017] The control device of this invention corrects offset errors for each trip of the vehicle by using different power supplies (5V) for the external load and (3.3V) for the microcontroller core. This not only corrects initial deviations but also deviations caused by temperature or degradation, enabling high-precision simulation testing.
[0018] Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.
[0019] <First Embodiment>
[0020] [structure]
[0021] Figure 1 This is a schematic diagram illustrating an example of the structure of the control device 100 and its peripheral portion according to the first embodiment of the present invention. Figure 1 The control device 100 illustrated herein is an analog circuit comprising a first power supply circuit 110, a second power supply circuit 120, and a microcontroller 130. A sensor 150 is connected to the microcontroller 130. This control device 100 may be mounted, for example, in a vehicle.
[0022] The first power supply circuit section 110 is a circuit (12V→3.3V step-down circuit) that takes into account the "+B power supply (12V voltage)" which is the main power supply to the vehicle, and generates a 3.3V voltage (first voltage) from the +B power supply (hereinafter referred to as "3.3V power supply"). This 3.3V power supply is used to drive the microcontroller 130 (microcontroller core power supply). In addition, this 3.3V is just one example; any voltage that can drive the microcontroller 130 can be used.
[0023] The second power supply circuit section 120 is a circuit (12V→5V step-down circuit) that receives a +B power supply and generates a 5V voltage (second voltage) from that +B power supply (hereinafter referred to as "5V power supply"). This 5V power supply is used to drive external loads such as sensors 150 connected to the 5V system interface of the control device 100 (load power supply). Furthermore, this 5V is just one example; any voltage value capable of driving an external load can also be used.
[0024] The microcontroller 130 is a structure used to control predetermined operations in a vehicle driven by a 3.3V power supply. Specifically, in this embodiment, the microcontroller 130 performs error correction for both the 3.3V and 5V voltages. In addition to its own 3.3V power supply for operation, the microcontroller 130 also receives a 5V power supply and identifies the two different power supply voltages. The error correction performed by the microcontroller 130 will be described later.
[0025] The control device 100 is typically configured as an electronic control unit (e.g., an integrated ECU) including a processor such as a microcontroller 130, a memory, and input / output interfaces. The electronic control unit achieves the above functions by reading and executing programs stored in the memory through the processor.
[0026] [control]
[0027] Further reference Figure 2 The control performed by the control device 100 according to the first embodiment of the present invention will be described. Figure 2 This is a flowchart illustrating the processing sequence of error correction control performed by each structure of the control device 100. Figure 2 The error correction control illustrated in the example is executed repeatedly.
[0028] (Step S201)
[0029] The vehicle's +B power supply (vehicle system) is turned on. As a result, the +B power supply, which serves as the main power source, is supplied to the control device 100. If the +B power supply is turned on, the process proceeds to step S202.
[0030] (Step S202)
[0031] The control device 100 has completed its startup. This generates a 3.3V power supply and a 5V power supply, and the microcontroller 130 also begins operation. If the startup of the control device 100 is complete, the process proceeds to step S203.
[0032] (Step S203)
[0033] The microcontroller 130 acquires (reads) the 3.3V offset and the 5V offset. For example... Figure 3 As shown in (a), the 3.3V offset is the difference between the set value (ideal value) of 3.3V and the actual value of 3.3Vad, which is actually output from the first power supply circuit section 110 (3.3V offset = 3.3V - 3.3Vad). Furthermore, as... Figure 3 As shown in (b), the 5V offset is the difference between the set value (ideal value) 5V and the actual value 5Vad that is actually output from the second power supply circuit section 120 (5V offset = 5V - 5Vad). If a 3.3V offset and a 5V offset are obtained, the process proceeds to step S204.
[0034] (Step S204)
[0035] The microcontroller 130 performs error correction for 3.3V and 5V voltages. This error correction, for example, uses resistors R1, R2, and Rsense associated with sensor 150, and calculates the voltage Vsense according to the following formula.
[0036] Vsense = (5Vad + 5V offset) × R1 / (R1 + R2 / / Rsense)
[0037] Then, based on the voltage Vsense, the read value Value of the microcontroller 130 is calculated as follows for execution.
[0038] Value = 4096 LSB × Vsense / (3.3Vad + 3.3V offset)
[0039] If error correction is performed on the 3.3V and 5V voltages, the process proceeds to step S205.
[0040] (Step S205)
[0041] The vehicle is now in a Ready-ON state. This puts the vehicle in a state where it can be driven (trip start state). If the vehicle is in a Ready-ON state, the process proceeds to step S206.
[0042] (Step S206)
[0043] Execute the process until the vehicle is in a Ready-OFF state. Proceed to step S207.
[0044] (Step S207)
[0045] The vehicle enters a state where it is ready to be shut down. Consequently, the vehicle becomes in a state where it cannot move (trip end state). If the vehicle enters a state where it is ready to be shut down, the process proceeds to step S208.
[0046] (Step S208)
[0047] The vehicle's +B power supply (vehicle system) is turned off. This terminates the supply of the +B power supply, which is the main power source, to the control device 100. If the +B power supply is turned off, the process proceeds to step S209.
[0048] (Step S209)
[0049] The control device 100 executes the prescribed end sequence. If the end sequence of the control device 100 is completed, the process returns to step S201, and then waits for the vehicle's +B power to be turned on.
[0050] [Function / Effect]
[0051] As described above, the control device 100 according to the first embodiment of the present invention can utilize a 3.3V driven microcontroller 130 corresponding to the reduction of dark current (standby current) of the vehicle, and can perform high-precision analog value detection of external loads using 5V drive. That is, the control device 100 can reduce the detection error of analog detection circuits using multiple power supplies. Furthermore, by performing corrections for each stroke of the vehicle, the control device 100 can correct for temperature characteristic deviations and degradation deviations one by one, in addition to the initial deviation in power supply deviation.
[0052] <Second Implementation>
[0053] [structure]
[0054] Figure 4 This is a schematic diagram illustrating an example of the structure of the control device 400 and its peripheral portion according to the second embodiment of the present invention. Figure 4 The control device 400 illustrated herein is an analog circuit comprising a first power supply circuit section 110, a second power supply circuit section 120, and a microcontroller 130. Multiple external loads, such as a sensor 150, load 1_460, and load 2_470, are connected to the microcontroller 130. This control device 400 can, for example, be mounted in a vehicle.
[0055] The control device 400 in this second embodiment differs from the control device 100 in the first embodiment in that load 1_460 and load 2_470 are connected to the microcontroller 130. Otherwise, the structure is the same.
[0056] Since multiple external loads, such as load 1_460 and load 2_470, are connected to the microcontroller 130, the 5V offset of the 5V power supply is prone to change when the operation of the external loads changes. Therefore, in the control device 400 according to the second embodiment, when the operation of the external loads changes, only the 5V voltage is corrected for error as follows.
[0057] [control]
[0058] Further reference Figure 5 The control performed by the control device 400 according to the second embodiment of the present invention will be described. Figure 5 This is a flowchart illustrating the processing sequence of error correction control performed by each structure of the control device 400. Additionally, in Figure 5 In the middle, to and Figure 2 Processing identical content should be labeled with the same step numbers and explanations omitted.
[0059] (Step S205)
[0060] The vehicle is now ready to start. This puts the vehicle in a state where it can move (trip start state). If the vehicle is ready to start, the process proceeds to step S401.
[0061] (Step S401)
[0062] The microcontroller 130 determines whether the vehicle's journey has ended. If the vehicle's journey has ended (step S401, yes), the process proceeds to step S207; if the vehicle's journey has not ended (step S401, no), the process proceeds to step S402.
[0063] (Step S402)
[0064] The microcontroller 130 determines whether the external load has changed. In other words, the microcontroller 130 determines whether an increase or decrease in the load of the analog detection circuit is detected. This determination is made to determine whether error correction should be performed on the 5V voltage, because the offset voltage of the 5V power supply used by the external load is prone to change depending on the load. If the external load has changed (an increase / decrease in the load of the analog detection circuit is detected) (step S402, yes), the process proceeds to step S403; if the external load has not changed (no increase / decrease in the load of the analog detection circuit is detected) (step S402, no), the process proceeds to step S401.
[0065] (Step S403)
[0066] The microcontroller 130 performs error correction only for the 5V voltage. This error correction, for example, uses resistors R1, R2, and Rsense associated with sensor 150, and calculates the voltage Vsense according to the following formula.
[0067] Vsense = (5Vad + 5V offset) × R1 / (R1 + R2 / / Rsense)
[0068] Then, based on the voltage Vsense, the read value Value of the microcontroller 130 is calculated as follows for execution.
[0069] Value = 4096 LSB × Vsense / 3.3 Vad
[0070] If error correction is performed on the 3.3V and 5V voltages, the process proceeds to step S401.
[0071] [Function / Effect]
[0072] As described above, the control device 400 according to the second embodiment of the present invention, in addition to the effects of the control device 100 according to the first embodiment, can also reduce detection errors, in order to address concerns that the control device 400 is an integrated ECU and that there is an increase in error due to load variations caused by connecting multiple loads.
[0073] <Application Example 1>
[0074] An application example of performing error correction of 3.3V and 5V voltages in the control device 100 according to the first embodiment described above during vehicle factory shipment will be described.
[0075] [control]
[0076] Figure 6 This is a flowchart illustrating the processing sequence of the error correction control performed by the control device 100 according to the first application example. Additionally, in Figure 6 In the middle, to and Figure 2 Processing identical content should be labeled with the same step numbers and explanations omitted.
[0077] (Step S204)
[0078] The microcontroller 130 performs error correction on the 3.3V and 5V voltages. This error correction is as described above. If error correction is performed on the 3.3V and 5V voltages, the process proceeds to step S601.
[0079] (Step S601)
[0080] Perform the necessary checks and software writes required before shipping the vehicle from the factory. If checks and software writes are performed, proceed to step S208.
[0081] [Function / Effect]
[0082] As described above, according to the first application example of the present invention, by performing error correction at the time of vehicle shipment from the factory, the initial deviation can be corrected. Compared to correction over one stroke, since only one correction is performed at the time of factory shipment, the processing load of the ECU is not increased or the start-up time is increased, thus improving accuracy.
[0083] <Application Example 2>
[0084] Figure 7 The diagram shows a specific example of a control device 400 (integrated ECU, etc.) according to the second embodiment described above, in which multiple external loads using a 5V power supply are connected to a microcontroller 430 (MCU, etc.).
[0085] exist Figure 7 In the example, the microcontroller 430 is connected to an analog detection circuit 1 (AD circuit 1) such as an exhaust sensor, an analog detection circuit 2 (AD circuit 2) such as an external temperature sensor, an analog detection circuit 3 (AD circuit 3) such as a sunlight sensor, and an analog detection circuit 4 (AD circuit 4) such as a volume SW.
[0086] Thus, even when the control device 400 (integrated ECU) has multiple analog detection circuits using multiple power supplies, the overall detection accuracy of the analog detection circuits using multiple power supplies in the control device 400 (integrated ECU) can be improved.
[0087] <Application Example 3>
[0088] Figure 8 The diagram shows an example illustrating the structure of the control device 800 and its peripheral components involved in the third application example. Figure 8 The control device 800 shown in this example differs in structure from the control device 400 described in the second embodiment above in that the first power supply circuit section 810 has a different structure.
[0089] The first power supply circuit section 810 is a circuit that receives the 5V power supply generated by the second power supply circuit section 120 and generates a 3.3V power supply (first voltage) from the 5V power supply. This 3.3V power supply is used to drive the microcontroller 130 (microcontroller core power supply).
[0090] As shown in the third application example, even if an analog circuit is constructed by generating a 5V power supply from the +B power supply as the main power supply and a 3.3V power supply from the generated 5V power supply, error correction for the 3.3V voltage and the 5V voltage can still be performed.
[0091] The above describes one embodiment of the technology of the present invention, but the present invention can be understood as a control device, a method executed by a control device having a processor and a memory, a program for executing the method, a computer-readable non-transitory storage medium storing the program, and a vehicle equipped with a control device, etc.
[0092] Industrial availability
[0093] The control device of the present invention can be used to balance the use of two voltage power supplies and the high precision of analog detection.
[0094] Symbol Explanation
[0095] 100, 400, 800 - Control device; 110, 810 - First power supply circuit section; 120 - Second power supply circuit section; 130, 430 - Microcontroller; 460, 470 - Load.
Claims
1. A control device for controlling the power supply of a vehicle, the control device being characterized by comprising: A microcontroller that controls the vehicle; The first power supply circuit section generates a power supply from the main power supply for driving a first voltage of the microcontroller; and The second power supply circuit section generates a second voltage from the main power supply to drive an external load connected to the control device. The microcontroller performs error correction on the first voltage and / or the second voltage based on the difference between the set value of the first voltage and the actual value output from the first power supply circuit section and the difference between the set value of the second voltage and the actual value output from the second power supply circuit section.
2. The control device according to claim 1, characterized in that, When a change in the external load is detected, the microcontroller performs error correction only on the second voltage based on the difference between the ideal value of the second voltage and the actual value output from the second power supply circuit section.
3. The control device according to claim 1 or 2, characterized in that, The microcontroller performs the error correction in each stroke from when the vehicle's system is turned on until it is turned off.
4. The control device according to claim 1 or 2, characterized in that, The microcontroller performs the error correction when the vehicle is shipped from the factory.
Citation Information
Patent Citations
Circuit and method for detecting input voltage
JP2001282368A