Integrated interface circuit and method for manufacturing the same
By designing an integrated interface circuit in the electric vehicle electronic control unit and utilizing the partial overlap of multiple functional interface circuits, multi-functional adaptation of a single external port is achieved, solving the problem of tight port resources, reducing costs and satisfying customer customization. needs.
Patent Information
- Application Number
- CN202010104147.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-02-20
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-02-20
AI Technical Summary
The existing electric vehicle electronic control unit (ECU) external port resources are tight and cannot meet the multi-functional needs.
An integrated interface circuit is designed to realize multi-functional adaptation and save port resources by connecting multiple functional interface circuits between the external port and the processor, in which the circuit elements of different functional interface circuits at least partially overlap.
It realizes that a single external port corresponds to multiple functional interface circuits, saving limited port resources, reducing production costs, and meeting customer customization needs.
Smart Images

Figure CN113282526B
Abstract
Description
Technical Field
[0001] The present invention relates to interface circuit design, and more specifically, to an integrated interface circuit, a method for manufacturing the interface circuit, an electronic control unit, a vehicle, and a computer storage medium. Background Art
[0002] The processing unit in the existing electric vehicle ECU (electronic control unit) generally has multiple ports with different functions, such as ADC (analog-to-digital converter) port, input pin port, output pin port, ground port, etc. Each functional port has certain requirements for the specifications of the input signal or output signal, such as requiring the input voltage to be no higher than 4V.
[0003] If the external ports of the ECU are allocated by function (i.e. each external port corresponds to a single function), the available external port resources of the ECU will be very tight, and it will be impossible to set up more ports to meet customer customized requirements. Summary of the invention
[0004] According to one aspect of the present invention, an integrated interface circuit is provided, comprising: a plurality of functional interface circuits connected between an external port and a processor and corresponding to different functions respectively, wherein the plurality of functional interface circuits include a first functional interface circuit corresponding to a first function and a second functional interface circuit corresponding to a second function, and circuit elements in the second functional interface circuit at least partially overlap with circuit elements in the first functional interface circuit.
[0005] Optionally, in the above-mentioned integrated interface circuit, the multiple functional interface circuits also include a third functional interface circuit corresponding to a third function, wherein circuit elements in the third functional interface circuit do not overlap with circuit elements in the first functional interface circuit or the second functional interface circuit.
[0006] Optionally, in the above integrated interface circuit, the external port is an external input port for receiving an external input signal or an external output port for transmitting a signal to the outside.
[0007] Optionally, in the above integrated interface circuit, the processor is a single chip microcomputer.
[0008] Optionally, in the above-mentioned integrated interface circuit, the third functional interface circuit includes: a first filtering element, used to filter the external input signal received from the external port; a voltage divider element, connected in series with the first filtering element, used to reduce the voltage of the external input signal after filtering by the first filtering element; and a voltage limiting element, one end of the voltage limiting element is connected in series with the voltage divider element, and the other end of the voltage limiting element is connected in series with the corresponding terminal of the processor, and the voltage limiting element is configured to limit the voltage output to the corresponding terminal of the processor.
[0009] Optionally, in the above-mentioned integrated interface circuit, the third functional interface circuit further includes: a second filtering element, which is connected in series with the voltage divider element and the voltage limiting element, and is used to perform secondary filtering on the external input signal after voltage division by the voltage divider element.
[0010] Optionally, in the above-mentioned integrated interface circuit, the third functional interface circuit includes: the first filtering element comprising a first inductor and a first capacitor, wherein the first end of the first inductor is connected to the external port, the second end of the first inductor is connected to the first end of the first capacitor, and the second end of the first capacitor is grounded; the voltage dividing element comprising a first resistor and a second resistor, wherein the first end of the first resistor is connected to the second end of the first inductor, the second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is grounded; the second filtering element comprising a second capacitor, wherein the first end of the second capacitor is connected to the second end of the first resistor, and the second end of the second capacitor is grounded; a voltage limiting element comprising a first diode, the first end of the first diode is connected to the first end of the second capacitor, the second end of the first diode is connected to the first reference power supply, and the first port of the processor is connected to the first end of the first diode.
[0011] Optionally, in the above-mentioned integrated interface circuit, the first functional interface circuit includes: a third capacitor, wherein the first end of the third capacitor is connected to the external port, and the second end of the third capacitor is connected to the first end of the sixth resistor; a fifth resistor, wherein the first end of the fifth resistor is connected to the external port, and the second end of the fifth resistor is connected to the second end of the sixth resistor; a sixth resistor; and a tenth resistor, wherein the first end of the tenth resistor is connected to the second end of the fifth resistor, and the second end of the tenth resistor is connected to the second port of the processor.
[0012] Optionally, in the above integrated interface circuit, the elements of the second functional interface circuit that overlap with those of the first functional interface circuit include the third capacitor, the sixth resistor and the tenth resistor.
[0013] Optionally, in the above-mentioned integrated interface circuit, the second functional interface circuit includes: a third capacitor, wherein a first end of the third capacitor is connected to the external port, and a second end of the third capacitor is connected to a first end of a sixth resistor; a third resistor, wherein a first end of the third resistor is connected to a second reference power supply, and a second end of the third resistor is connected to the external port; a first transistor, wherein a collector of the first transistor is connected to a second end of the third resistor, a base of the first transistor is connected to a second end of the sixth resistor, and an emitter of the first transistor is connected to a first end of a fourth resistor; a fourth resistor, wherein a second end of the fourth resistor is connected to a second end of the third capacitor and is grounded; a sixth resistor; and a tenth resistor, wherein a first end of the tenth resistor is connected to a base of the first transistor, and a second end of the tenth resistor is connected to a second port of the processor.
[0014] Optionally, in the above integrated interface circuit, the elements of the second functional interface circuit that overlap with those of the first functional interface circuit include the third capacitor, the fifth resistor and the sixth resistor.
[0015] Optionally, in the above-mentioned integrated interface circuit, the second functional interface circuit includes: a third capacitor, wherein the first end of the third capacitor is connected to the external port, and the second end of the third capacitor is connected to the first end of a sixth resistor; a fifth resistor, wherein the first end of the fifth resistor is connected to the external port, and the second end of the fifth resistor is connected to the second end of the sixth resistor; a sixth resistor; a seventh resistor, wherein the first end of the seventh resistor is connected to the third reference power supply, and the second end of the seventh resistor is connected to the emitter of the second transistor; an eighth resistor, wherein the first end of the seventh resistor is connected to the third reference power supply, and the second end of the seventh resistor is connected to the emitter of the second transistor; and The first end of the eight resistors is connected to the third reference power supply, the second end of the eighth resistor is connected to the base of the second triode; the second triode, the collector of the second triode is connected to the second end of the sixth resistor; the third triode, the collector of the third triode is connected to the base of the second triode, the base of the third triode is connected to the first end of the ninth resistor, and the emitter of the third triode is grounded; and the ninth resistor, the second end of the ninth resistor is connected to the second end of the sixth resistor, and the second end of the ninth resistor is also connected to the second port of the processor.
[0016] Optionally, the above integrated interface circuit further includes: a selector, configured to select a corresponding functional interface circuit from the plurality of functional interface circuits according to a control signal.
[0017] According to another aspect of the present invention, a method for manufacturing an interface circuit is provided, the method comprising: determining a function corresponding to the interface circuit; and selecting a corresponding functional interface circuit from the above-mentioned integrated interface circuit for filling according to the determined function.
[0018] According to yet another aspect of the present invention, an electronic control unit is provided, comprising the integrated interface circuit as described above.
[0019] According to yet another aspect of the present invention, a vehicle is provided, comprising the above-mentioned electronic control unit.
[0020] According to yet another aspect of the present invention, a computer storage medium is provided, wherein the medium includes instructions, and the instructions execute the above method when executed.
[0021] The integrated interface circuit of the present invention includes a plurality of functional interface circuits connected between an external port and a processor, respectively corresponding to different functions. Thus, for a single external port, it may correspond to a plurality of functional interface circuits. That is to say, a single external port may obtain a plurality of functions (integrated functions) provided by a functional interface circuit or a processor through the adaptation of the plurality of functional interface circuits, which advantageously saves limited port resources (i.e., has more port resources to meet customer customization requirements). In addition, different functional interface circuits may have at least partially overlapping circuit elements, which makes the entire integrated interface circuit more streamlined and reduces the manufacturing cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects and advantages of the present invention will become more fully apparent from the following detailed description taken in conjunction with the accompanying drawings, wherein the same or similar elements are denoted by the same reference numerals.
[0023] Figure 1 A schematic diagram of an integrated interface circuit according to an embodiment of the present invention is shown;
[0024] Figure 2 A schematic diagram showing the structure of a third functional interface circuit according to an embodiment of the present invention is shown;
[0025] Figure 3 A schematic diagram of the structure of a first functional interface circuit according to an embodiment of the present invention is shown;
[0026] Figure 4 A schematic diagram showing the structure of a second functional interface circuit according to an embodiment of the present invention is shown;
[0027] Figure 5 A schematic structural diagram of a second functional interface circuit according to another embodiment of the present invention is shown;
[0028] Figure 6 A schematic diagram showing the structure of an integrated interface circuit according to an embodiment of the present invention is shown; and
[0029] Figure 7 A schematic diagram showing a method for manufacturing an interface circuit according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0030] It should be understood that the term "vehicle" or other similar terms used herein include various motor vehicles and non-motor vehicles, such as passenger cars (including sports utility vehicles, buses, trucks, etc.), various commercial vehicles, ships, airplanes, motorcycles, bicycles, etc., and include hybrid vehicles, electric vehicles, etc. A hybrid vehicle is a vehicle with two or more power sources, such as gasoline-powered and electric vehicles.
[0031] Although the exemplary embodiments are described as using a plurality of units to perform the exemplary processes, it should be understood that the exemplary processes may also be performed by one or more modules.
[0032] Moreover, the control logic of the present invention may be included as executable program instructions on a computer-readable medium, which is implemented by a processor or the like. Examples of computer-readable media include, but are not limited to, ROM, RAM, optical disks, magnetic tapes, floppy disks, flash drives, smart cards, and optical data storage devices. The computer-readable recording medium may also be distributed in a computer system connected to a network, so that the computer-readable medium is stored and implemented in a distributed manner, for example, through a vehicle telematics service or a controller area network (CAN).
[0033] Unless specifically mentioned or obvious from the context, as used herein, the term "about" is understood to be within a range of normal tolerance in the art, for example, within 2 standard deviations of the mean.
[0034] Hereinafter, an integrated interface circuit according to exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0035] Figure 1 FIG. 1 is a schematic diagram of an integrated interface circuit 1000 according to an embodiment of the present invention. Figure 1As shown, the integrated interface circuit 1000 includes a plurality of functional interface circuits connected between the external port 140 and the processor 150 and corresponding to different functions, respectively. The plurality of functional interface circuits include a first functional interface circuit 110 corresponding to a first function and a second functional interface circuit 120 corresponding to a second function, and the circuit elements in the second functional interface circuit 120 at least partially overlap with the circuit elements in the first functional interface circuit 110.
[0036] In the context of the present invention, the term "interface circuit" refers to a logic circuit that connects an external device / external port to an internal processor and is a bridge for information exchange between the processor and the external device. The functions of the interface circuit include, but are not limited to, level connection, impedance matching, signal processing or "maintenance", electrostatic protection, AC / DC isolation, etc.
[0037] According to the different corresponding functions, the interface circuit can be further subdivided into different functional interface circuits, i.e., first functional interface circuit, second functional interface circuit, etc. For example, the interface circuit is classified according to the different functions implemented by the interface circuit. For another example, the interface circuit is classified according to the different ports matched with the processor. For another example, according to the functions implemented by the interface circuit and the functions implemented by the processor, the interface circuit is classified according to the different functions adapted or implemented.
[0038] In the context of the present invention, the term "external port" is a port connected to an external device, which may be an external input port for receiving an external input signal or an external output interface for transmitting a signal to the outside. A "processor" may be any unit that performs a processing function, such as a single-chip microcomputer. Those skilled in the art will appreciate that a processor may provide multiple functions, such as various signal processing, analog-to-digital conversion functions, and the like. In addition, a processor may have multiple ports, each of which has certain specification requirements for input or output signals. When the integrated interface circuit 1000 is applied to an electronic control unit ECU, the external port 140 may be a port for connecting the ECU to the outside, and the processor 150 may be a microprocessor of the ECU.
[0039] Since the integrated interface circuit 1000 includes a plurality of functional interface circuits corresponding to different functions, such as a first functional interface circuit 110 and a second functional interface circuit 120. Thus, for the external port 140, it may correspond to a plurality of functional interface circuits. That is to say, the external port 140 may obtain integrated multiple functions through (adaptation of) the plurality of functional interface circuits, which advantageously saves limited port resources. In other words, by providing the integrated interface circuit 1000 in the electronic control unit ECU, the electronic control unit ECU may have more port resources to meet the customized needs of customers. In addition, the circuit elements in the second functional interface circuit 120 at least partially overlap with the circuit elements in the first functional interface circuit 110, making the entire integrated interface circuit 1000 more streamlined and reducing the manufacturing cost.
[0040] In some embodiments, continue to refer to Figure 1 In the above-mentioned integrated interface circuit 1000, the multiple functional interface circuits may further include a third functional interface circuit 130 (shown by a dotted line) for realizing a third function. The circuit elements in the third functional interface circuit 130 do not overlap with the circuit elements in the first functional interface circuit 110 or the second functional interface circuit 120. It can be understood by those skilled in the art that more or fewer functional interface circuits may be provided in the integrated interface circuit 1000 as required, and these functional interface circuits may at least partially overlap or completely not overlap with the first functional interface circuit 110, the second functional interface circuit 120, and the third functional interface circuit 130.
[0041] In one embodiment, the third functional interface circuit 130 corresponds to the ADC (analog-to-digital conversion) input port of the processor 150. The third functional interface circuit 130 may include a first filter element, a voltage divider element, and a voltage limiting element. The first filter element is used to filter the external input signal received from the external port; the voltage divider element is used to be connected in series with the first filter element to reduce the voltage of the external input signal after filtering by the first filter element; one end of the voltage limiting element is connected in series with the voltage divider element, and the other end is connected in series with the corresponding terminal of the processor, and is configured to limit the voltage output to the corresponding terminal of the processor. In some embodiments, the third functional interface circuit may also include: a second filter element, the second filter element is connected in series with the voltage divider element and the voltage limiting element, and is used to perform secondary filtering on the external input signal after voltage division by the voltage divider element.
[0042] Figure 2 FIG. 1 shows a schematic diagram of a structure of a third functional interface circuit 130 for adapting an ADC input port of a processor 150. Figure 2As shown, the third functional interface circuit 130 includes: a first filter element composed of a first inductor L1 and a first capacitor C1, a voltage divider element composed of a first resistor R1 and a second resistor R2, a second filter unit composed of a second capacitor C2, and a voltage limiting element composed of a first diode D1. Of course, those skilled in the art can understand that the above-mentioned filter element, voltage divider element, and voltage limiting element can include more circuit elements according to actual needs, and are not limited to Figure 2 The specific circuit in.
[0043] Continue to refer Figure 2 , a first end of the first inductor L1 is connected to the external port P1, a second end of the first inductor L1 is connected to a first end of the first capacitor C1, a second end of the first capacitor C1 is grounded GND1, a first end of the first resistor R1 is connected to the second end of the first inductor L1, a second end of the first resistor R1 is connected to a first end of the second resistor R2, a second end of the second resistor R2 is grounded GND2, a first end of the second capacitor C2 is connected to the second end of the first resistor R1, a second end of the second capacitor C2 is grounded GND3, a first end of the first diode D1 is connected to a first end of the second capacitor C2, a second end of the first diode D1 is connected to a first reference power supply REF1, and a port P2 of the processor (i.e., an ADC input port) is connected to a first end of the first diode D1.
[0044] Through Figure 2 The functional interface circuit shown in the figure is composed of a first inductor L1 and a first capacitor C1 to form an LC filter element (i.e., a first filter element). After filtering by the first inductor L1 and the first capacitor C1, a smooth direct current can be obtained, and the ripple voltage can be reduced. Moreover, this filtering can also play a good filtering effect when the current changes and fluctuates. The voltage divider composed of the first resistor R1 and the second resistor R2 can reduce the voltage of the external input signal after LC filtering. According to needs, the resistance values of the first resistor R1 and the second resistor R2 are set appropriately to obtain the ideal output voltage at the P2 port. In addition, the second filter element composed of C2 is used to perform capacitor filtering (i.e., secondary filtering) on the signal output to the P2 port, which can further reduce clutter interference. In addition, since the voltage of the first reference power supply is 3.3V and the conduction voltage of the first diode D1 is 0.7V, the voltage of the port P2 is clamped below 4V. It can be understood by those skilled in the art that by setting the voltage of the first reference power supply at different values, the voltage of the port P2 can be clamped below the corresponding different voltage values.
[0045] In one embodiment, the first functional interface circuit 110 is configured to adapt to an input port of the processor 150 . Figure 3 FIG. 1 shows a schematic diagram of a structure of the first functional interface circuit 110 as an adaptation input port. Figure 3 As shown, the first functional interface circuit 110 includes a third capacitor C3, a fifth resistor R5, a sixth resistor R6, and a tenth resistor R10. The first end of the third capacitor C3 is connected to the external port P1, the second end of the third capacitor C3 is connected to the first end of the sixth resistor R6, the first end of the fifth resistor R5 is connected to the external port P1, the second end of the fifth resistor R5 is connected to the second end of the sixth resistor R6, the first end of the tenth resistor R10 is connected to the second end of the fifth resistor R5, and the second end of the tenth resistor R10 is connected to the second port P3 (e.g., a general purpose input and output interface GPIO) of the processor. Figure 3 The first functional interface circuit 110 shown can play a good current limiting role by reasonably setting the capacitance and resistance values of each circuit element. For example, when the P1 terminal input is a low-frequency signal (such as a DC signal), due to the presence of the third capacitor C3, the DC current will not pass through the branch formed by the third capacitor C3 and the sixth resistor R6, but only through the fifth resistor R5 and the tenth resistor R10. Assuming that the fifth resistor is a large resistor, the current output to the P3 port is well limited.
[0046] In one embodiment, the second functional interface circuit 120 is configured to implement a “reverse output” function and adapt to an output port of the processor 150 .
[0047] Figure 4 FIG. 1 shows a schematic diagram of the structure of the second functional interface circuit 120. Figure 4 As shown, the second functional interface circuit 120 includes a third capacitor C3, a third resistor R3, a first transistor T1, a fourth resistor R4, a sixth resistor R6 and a tenth resistor R10. Among them, a first end of the third capacitor C3 is connected to the external port P1, a second end of the third capacitor C3 is connected to a first end of a sixth resistor R6, a first end of the third resistor R3 is connected to a second reference power supply REF2, a second end of the third resistor R3 is connected to the external port P1, a collector of the first transistor T1 is connected to a second end of the third resistor R3, a base of the first transistor T1 is connected to a second end of the sixth resistor R6, an emitter of the first transistor T1 is connected to a first end of a fourth resistor R4, a second end of the fourth resistor R4 is connected to a second end of the third capacitor C3 and is grounded GND5, a first end of the tenth resistor R10 is connected to a base of the first transistor T1, and a second end of the tenth resistor R10 is connected to a second port P3 (e.g., a general purpose input and output interface GPIO) of the processor.
[0048] pass Figure 4In the circuit, the level of the external port P1 will change inversely with the level of the processor's output port P3. That is, when the port P3 is at a high level, the external port P1 displays a low level, and when the port P3 is at a low level, the external port P1 displays a high level. For example, when the port P3 is at a low level, the first transistor T1 is turned off, and the voltage at the P1 end is approximately equal to the second reference voltage REF2 (i.e., approximately 5V), so it is a high level. When the port P3 is at a high level, the first transistor T1 is turned on, the fourth resistor R4 is connected in parallel with the sixth resistor R6, and its equivalent resistance value is incomparable to the third resistor R3 and the tenth resistor R10, so the voltage divided on the external port P1 is very low (i.e., a low level).
[0049] In addition, it should be pointed out that Figure 4 The second functional interface circuit shown is Figure 3 The circuit elements in the first functional interface circuit shown are partially overlapped, and the overlapped elements include the third capacitor C3, the sixth resistor R6, and the tenth resistor R10.
[0050] In one embodiment, the second functional interface circuit 120 is configured to implement a “forward output” function and adapt to an output port of the processor 150 .
[0051] Figure 5 FIG. 2 shows another schematic diagram of the structure of the second functional interface circuit 120. Figure 5As shown, the second functional interface circuit 120 includes a third capacitor C3, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7, an eighth resistor R8, a second transistor T2, a third transistor T3 and a ninth resistor R9. The first end of the third capacitor C3 is connected to the external port P1, the second end of the third capacitor C3 is connected to the first end of the sixth resistor R6 and is grounded GND5, the first end of the fifth resistor R5 is connected to the external port P1, the second end of the fifth resistor R5 is connected to the second end of the sixth resistor R6, the first end of the seventh resistor R7 is connected to the third reference power supply REF3, the second end of the seventh resistor R7 is connected to the emitter of the second transistor T2, the first end of the eighth resistor R8 is connected to the third reference power supply REF3, and the eighth resistor R9 is connected to the emitter of the second transistor T2. The second end of the transistor R8 is connected to the base of the second transistor T2, the collector of the second transistor T2 is connected to the second end of the sixth resistor R6, the collector of the third transistor T3 is connected to the base of the second transistor T2, the base of the third transistor T3 is connected to the first end of the ninth resistor R9, the emitter of the third transistor T3 is grounded GND4, the second end of the ninth resistor R9 is connected to the second end of the sixth resistor R6, and the second end of the ninth resistor R9 is also connected to the second port P3 of the processor (for example, a general purpose input and output interface GPIO).
[0052] pass Figure 5 In the circuit, the level of the external port P1 will change in the same direction as the level of the processor's output port P3. That is, when the port P3 is at a high level, the external port P1 displays a high level, and when the port P3 is at a low level, the external port P1 displays a low level. For example, when the port P3 is at a low level, the second transistor T2 and the third transistor T3 are turned off, and the voltage at the P1 end is approximately equal to the voltage at the P3 end, so it is also a low level. When the port P3 is at a high level, the second transistor T2 and the third transistor T3 are turned on, and the voltage at the external port P1 is approximately equal to the voltage at the P3 port (i.e., a high level).
[0053] In addition, it should be pointed out that Figure 5 The second functional interface circuit shown is Figure 3 The circuit elements in the first functional interface circuit shown are partially overlapped, and the overlapped elements include the third capacitor C3, the fifth resistor R5, and the sixth resistor R6.
[0054] Figure 6 FIG. 1 shows a schematic diagram of the structure of an integrated interface circuit according to an embodiment of the present invention, wherein the integrated interface circuit includes Figure 2 The third functional interface circuit 130 shown, Figure 3 The first functional interface circuit 110 shown, Figure 4 and Figure 5 The second functional interface circuit 120 shown. The integrated interface circuit includes multiple functional interface circuits corresponding to different functions, such as the first functional interface circuit 110, the second functional interface circuit 120 and the third functional interface circuit 130. In this way, for the external port P1, it can correspond to multiple functional interface circuits. In other words, the external port P1 can obtain multiple integrated functions through (adaptation of) the multiple functional interface circuits, which is beneficial to saving limited port resources. In addition, the integrated interface circuit makes the entire integrated interface circuit more streamlined and reduces the manufacturing cost by multiplexing the circuit elements in different functional interface circuits.
[0055] although Figure 6 Not shown in the figure, in some embodiments, the above-mentioned integrated interface circuit may further include a selector, and the selector is used to select a corresponding functional interface circuit from a plurality of functional interface circuits according to a control signal.
[0056] Figure 7 FIG. 7 is a schematic diagram showing a method 7000 for manufacturing an interface circuit according to an embodiment of the present invention. Figure 7 As shown, the method 7000 for manufacturing the interface circuit includes the following steps:
[0057] In step S710, the function corresponding to the interface circuit is determined; and
[0058] In step S720, according to the determined function, a corresponding functional interface circuit is selected from the above-mentioned integrated interface circuits for filling.
[0059] In some embodiments, the function corresponding to the interface circuit determined in step S710 can be implemented by receiving an external control signal. Further, after the function is determined, the corresponding functional interface circuit is selected and filled. For example, when it is determined that the interface circuit corresponds to the ADC function, the circuit element of the third functional interface circuit (i.e. Figure 2 The first inductor L1, the first resistor R1, the first diode D1, the first capacitor C1, the second resistor R2, and the second capacitor C2 shown in FIG. 1 are selected and filled.
[0060] As an example, the integrated interface circuit can be located in the electronic control unit ECU. The so-called "electronic control unit", also known as "driving computer", "on-board computer", etc., is a vehicle-specific microcomputer controller in terms of use. When the integrated interface circuit is applied to the electronic control unit ECU, the external port can be a port for connecting the ECU to the outside, and the processor can be a microprocessor of the ECU. Since the integrated interface circuit includes a plurality of functional interface circuits corresponding to different functions, such as a first functional interface circuit, a second functional interface circuit, etc. In this way, for the external port, it can correspond to a plurality of functional interface circuits. In other words, the external port can obtain integrated multiple functions through (adaptation of) the plurality of functional interface circuits, which advantageously saves limited port resources. In other words, by setting the integrated interface circuit 1000 in the electronic control unit ECU, the electronic control unit ECU can have more port resources to meet the customized needs of customers.
[0061] The above examples mainly illustrate the integrated interface circuit of the present invention. Although only some of the embodiments of the present invention are described, it should be understood by those skilled in the art that the present invention can be implemented in many other forms without departing from its subject matter and scope, such as the reference power supply being set to different voltage values according to actual needs. Therefore, the examples and embodiments shown are regarded as illustrative rather than restrictive, and the present invention may cover various modifications and substitutions without departing from the spirit and scope of the present invention as defined in the claims.
Claims
1. An integrated interface circuit, characterized in that: The integrated interface circuit comprises: A plurality of functional interface circuits connected between the external port and the processor, corresponding to different functions respectively, The plurality of functional interface circuits include a first functional interface circuit corresponding to a first function and a second functional interface circuit corresponding to a second function, and circuit elements in the second functional interface circuit at least partially overlap with circuit elements in the first functional interface circuit, and the integrated interface circuit further includes: A selector is used to select a corresponding functional interface circuit from the plurality of functional interface circuits according to a control signal, Wherein, the first functional interface circuit comprises: a third capacitor, wherein a first end of the third capacitor is connected to the external port, and a second end of the third capacitor is connected to a first end of a sixth resistor; a fifth resistor, wherein a first end of the fifth resistor is connected to the external port, and a second end of the fifth resistor is connected to a second end of the sixth resistor; a sixth resistor; and a tenth resistor, a first end of the tenth resistor being connected to the second end of the fifth resistor, and a second end of the tenth resistor being connected to the second port of the processor, Among them, the elements that overlap with the first functional interface circuit include the third capacitor, the sixth resistor and the tenth resistor, or the elements that overlap with the first functional interface circuit include the third capacitor, the fifth resistor and the sixth resistor.
2. The integrated interface circuit as claimed in claim 1, wherein: The multiple functional interface circuits also include a third functional interface circuit corresponding to a third function, wherein circuit elements in the third functional interface circuit do not overlap with circuit elements in the first functional interface circuit or the second functional interface circuit.
3. The integrated interface circuit as claimed in claim 1, wherein: The external port is an external input port for receiving an external input signal or an external output port for transmitting a signal to the outside.
4. The integrated interface circuit as claimed in claim 1, wherein: The processor is a single chip microcomputer.
5. The integrated interface circuit as claimed in claim 2, wherein: The third functional interface circuit comprises: A first filter element, used for filtering an external input signal received from an external port; A voltage dividing element, connected in series with the first filtering element, for reducing the voltage of the external input signal after being filtered by the first filtering element; and A voltage limiting element, one end of which is connected in series with the voltage dividing element, and the other end of which is connected in series with the corresponding terminal of the processor, wherein the voltage limiting element is configured to limit the voltage output to the corresponding terminal of the processor.
6. The integrated interface circuit as claimed in claim 5, wherein: The third functional interface circuit further includes: a second filtering element, which is connected in series with the voltage dividing element and the voltage limiting element, and is used for performing secondary filtering on the external input signal after voltage division by the voltage dividing element.
7. The integrated interface circuit as claimed in claim 6, wherein: The third functional interface circuit comprises: The first filtering element comprises a first inductor and a first capacitor, wherein a first end of the first inductor is connected to the external port, a second end of the first inductor is connected to a first end of the first capacitor, and a second end of the first capacitor is grounded; The voltage dividing element comprises a first resistor and a second resistor, wherein a first end of the first resistor is connected to a second end of the first inductor, a second end of the first resistor is connected to a first end of the second resistor, and a second end of the second resistor is grounded; the second filtering element comprising a second capacitor, wherein a first end of the second capacitor is connected to the second end of the first resistor, and a second end of the second capacitor is grounded; A voltage limiting element includes a first diode, a first end of the first diode is connected to a first end of the second capacitor, a second end of the first diode is connected to a first reference power supply, and a first port of the processor is connected to a first end of the first diode.
8. The integrated interface circuit as claimed in claim 1, wherein: The second functional interface circuit comprises: a third capacitor, wherein a first end of the third capacitor is connected to the external port, and a second end of the third capacitor is connected to a first end of a sixth resistor; a third resistor, wherein a first end of the third resistor is connected to a second reference power source, and a second end of the third resistor is connected to the external port; a first triode, wherein the collector of the first triode is connected to the second end of the third resistor, the base of the first triode is connected to the second end of the sixth resistor, and the emitter of the first triode is connected to the first end of the fourth resistor; a fourth resistor, a second end of the fourth resistor being connected to the second end of the third capacitor and grounded; a sixth resistor; and A tenth resistor, wherein a first end of the tenth resistor is connected to the base of the first transistor, and a second end of the tenth resistor is connected to the second port of the processor.
9. The integrated interface circuit as claimed in claim 1, wherein: The second functional interface circuit comprises: a third capacitor, wherein a first end of the third capacitor is connected to the external port, and a second end of the third capacitor is connected to a first end of a sixth resistor; a fifth resistor, wherein a first end of the fifth resistor is connected to the external port, and a second end of the fifth resistor is connected to a second end of a sixth resistor; a sixth resistor; a seventh resistor, wherein a first end of the seventh resistor is connected to the third reference power supply, and a second end of the seventh resistor is connected to the emitter of the second transistor; an eighth resistor, wherein a first end of the eighth resistor is connected to the third reference power supply, and a second end of the eighth resistor is connected to the base of the second transistor; a second triode, wherein the collector of the second triode is connected to the second end of the sixth resistor; a third triode, wherein the collector of the third triode is connected to the base of the second triode, the base of the third triode is connected to the first end of the ninth resistor, and the emitter of the third triode is grounded; and A ninth resistor, wherein a second end of the ninth resistor is connected to the second end of the sixth resistor, and a second end of the ninth resistor is also connected to the second port of the processor.
10. A method for manufacturing an interface circuit, characterized in that: The method comprises: Determining a function corresponding to the interface circuit; and According to the determined function, a corresponding functional interface circuit is selected from the integrated interface circuit according to any one of claims 1 to 9 for filling.
11. An electronic control unit comprising the integrated interface circuit according to any one of claims 1 to 9.
12. A vehicle comprising the electronic control unit according to claim 11.
13. A computer storage medium, characterized in that: The medium includes instructions that, when executed, perform the method of claim 10 .
