Signal output circuit, signal simulation device and test system
By designing the signal output circuit of the three-stage operational amplifier circuit, a bipolar voltage output with a wide voltage range is achieved, which solves the problem of small voltage range in the existing technology, meets the needs of complex signal simulation, and is suitable for vehicle HIL testing.
Patent Information
- Application Number
- CN202420282452.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2034-02-06
AI Technical Summary
The voltage range of the output voltage signal of the existing signal simulation device is small and cannot meet the diverse signal simulation needs. Especially when testing the ECU in the vehicle HIL test, it is difficult to simulate complex sensor signals.
A signal output circuit is designed, including a digital-to-analog conversion module and a peripheral circuit module. It achieves bipolar voltage output with a wide voltage range through a three-stage operational amplifier circuit, supports voltage signal output from -40V to +40V, and reduces the operational amplifier cost. power supply requirements, reducing power consumption and heat generation.
It achieves analog signal output with a wide voltage range, meets diverse signal simulation needs, improves the stability and reliability of signal output, and is suitable for ECU testing in vehicle HIL testing.
Smart Images

Figure CN221613213U
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of testing, in particular to a signal output circuit, a signal simulation device and a testing system. Background Art
[0002] During vehicle HIL testing, it is necessary to generate and measure automotive signals in the vehicle to meet various I / O requirements of hardware-in-the-loop simulation.
[0003] For example, when testing the ECU, it is necessary to use a signal simulation device to simulate various sensors to send sensor signals to the ECU. For example, the signals of the engine crankshaft and camshaft position sensor, BMS high-voltage interlock sensor, wheel speed sensor, etc. are simulated and sent to the ECU to obtain the control instructions of the ECU for the received sensor signals, thereby obtaining the test results of the ECU.
[0004] In the existing signal simulation device, the voltage range of the supported output voltage signal is small, and the amplitude of the output waveform is small, which cannot meet the diverse signal simulation requirements. Utility Model Content
[0005] The utility model aims to provide a signal output circuit, a signal simulation device and a test system, which can realize bipolar voltage output in a wide voltage range.
[0006] To achieve the above-mentioned purpose, the utility model provides a signal output circuit, comprising: a digital-to-analog conversion module and a peripheral circuit module, the peripheral circuit module comprising a first operational amplifier circuit, a second operational amplifier circuit and a third operational amplifier circuit connected in sequence; the input end of the digital-to-analog conversion module is used to receive a level signal representing a signal to be output, and the first current output end and the second current output end are used to output a differential current signal; the input end of the first operational amplifier circuit is used to receive the differential current signal, and the output end is used to output a single-ended first voltage signal; the input end of the second operational amplifier circuit is used to receive the first voltage signal, and the output end is used to output a bipolar second voltage signal; the input end of the third operational amplifier circuit is used to receive the second voltage signal, and the output end is used to output a third voltage signal having an amplitude greater than the second voltage signal.
[0007] In one embodiment, the first operational amplifier circuit includes a first common-phase resistor, a first anti-phase resistor, a first feedback resistor and a first operational amplifier; the differential current signal is respectively input into the common-phase input terminal and the anti-phase input terminal of the first operational amplifier through the first common-phase resistor and the first anti-phase resistor, and the first feedback resistor is respectively connected to the output terminal and the anti-phase input terminal of the first operational amplifier.
[0008] In one embodiment, the signal output circuit also includes a reference voltage terminal, which is used to provide a reference voltage signal. The second operational amplifier circuit includes a second inverting resistor, a second grounding resistor, a second feedback resistor and a second operational amplifier. The first voltage signal is input to the non-inverting input terminal of the second operational amplifier, and the reference voltage signal is input to the inverting input terminal of the second operational amplifier through the second inverting resistor. One end of the second grounding resistor is grounded, and the other end is connected to the inverting input terminal of the second operational amplifier. The second feedback resistor is respectively connected to the output terminal and the inverting input terminal of the second operational amplifier.
[0009] In one embodiment, the third operational amplifier circuit includes one or more proportional operation circuits connected in sequence, and the types of the proportional operation circuits include an in-phase proportional operation circuit and / or an inverting proportional operation circuit.
[0010] In one embodiment, the signal output circuit also includes a selection switch and a signal output terminal, the two input ends of the selection switch are respectively connected to the output end of the second operational amplifier circuit and the output end of the third operational amplifier circuit, the output end of the selection switch is connected to the signal output terminal, and the selection switch is used to connect the signal output terminal to the output end of the second operational amplifier circuit or the output end of the third operational amplifier circuit.
[0011] In one embodiment, the signal output circuit further includes: a filter circuit; the filter circuit is used to filter the differential current signal and output the filtered differential current signal to the first operational amplifier circuit.
[0012] In one embodiment, the filtering circuit includes a filtering capacitor, a first filtering resistor and a second filtering resistor; the first current output terminal and the second current output terminal of the digital-to-analog conversion module are respectively connected to the two ends of the filtering capacitor, and the two ends of the filtering capacitor are also respectively grounded through the first filtering resistor and the second filtering resistor.
[0013] The utility model also provides a signal simulation device, including a processing module and at least one of the above-mentioned signal output circuits; the processing module is connected to the input end of the signal output circuit, and the output end of the signal output circuit is used to connect to the electronic control unit to be tested; the processing module is used to send a level signal representing the signal to be output to the signal output circuit; the signal output circuit is used to generate and output a target voltage signal representing the signal to be output after receiving the level signal representing the signal to be output.
[0014] In one embodiment, there are multiple signal output circuits, and the signal simulation device also includes: multiple switch modules; the output end of each signal output circuit is connected to the electronic control unit through the switch module; and the processing module is also used to control the on and off of each switch module.
[0015] The utility model also provides a test system, comprising a real-time computing device and at least one I / O unit, wherein the I / O unit is connected to an electronic control unit to be tested, and the type of the I / O unit at least includes the above-mentioned signal simulation device. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 is a schematic diagram of a signal output circuit according to a first embodiment of the utility model;
[0017] Figure 2 is a schematic diagram of a signal output circuit according to a first embodiment of the utility model, wherein the signal output circuit further includes a filter circuit;
[0018] Figure 3 yes Figure 2 A circuit block diagram of a signal output circuit in FIG.
[0019] Figure 4 is a schematic diagram of a signal simulation device according to a second embodiment of the utility model;
[0020] Figure 5 is a schematic diagram of a signal simulation device according to a second embodiment of the utility model, wherein the processing module includes a core processing module and an FPGA module;
[0021] Figure 6 It is a circuit block diagram of a CAN interface circuit in a signal simulation device according to a second embodiment of the utility model;
[0022] Figure 7 is a circuit block diagram of a power supply part of a signal simulation device according to a second embodiment of the utility model;
[0023] Figure 8 is a schematic diagram of a signal output circuit in a signal simulation device according to a second embodiment of the present utility model being connected to a switch module;
[0024] Fig. 9 It is a schematic diagram of a testing system according to a second embodiment of the present utility model. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings to describe the various embodiments of the present invention in detail, so as to more clearly understand the purpose, characteristics and advantages of the present invention. It should be understood that the embodiments shown in the accompanying drawings are not intended to limit the scope of the present invention, but are only intended to illustrate the essential spirit of the technical solution of the present invention.
[0026] In the following description, certain specific details are set forth for the purpose of illustrating various disclosed embodiments to provide a thorough understanding of the various disclosed embodiments. However, those skilled in the relevant art will recognize that the embodiments may be practiced without one or more of these specific details. In other cases, well-known devices, structures, and techniques associated with the present application may not be shown or described in detail to avoid unnecessarily obscuring the description of the embodiments.
[0027] Unless the context requires otherwise, throughout the specification and claims, the word "comprise" and variations such as "include" and "have" should be construed in an open, inclusive sense, ie, should be interpreted as "including, but not limited to."
[0028] References throughout the specification to "one embodiment" or "an embodiment" indicate that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. Thus, the appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any manner in one or more embodiments.
[0029] As used in this specification and the appended claims, the singular forms "a", "an", and "the" include plural referents unless the context clearly dictates otherwise. It should be noted that the term "or" is generally employed in its sense including "or / and" unless the context clearly dictates otherwise.
[0030] In the following description, in order to clearly demonstrate the structure and working mode of the utility model, many directional words will be used for description, but the words "front", "back", "left", "right", "outside", "inside", "outward", "inward", "up", "down", etc. should be understood as convenient terms and should not be understood as restrictive terms.
[0031] According to the prior art, in order to output an analog signal, a digital-to-analog conversion module is generally used to connect a peripheral circuit module. For a digital-to-analog conversion module that outputs a differential current, the peripheral circuit module realizes differential conversion to single-ended and bipolar output. The differential conversion to single-ended is generally realized by a differential proportional operation circuit (i.e., a subtraction circuit) to obtain a single-ended analog voltage signal. At the same time, the differential proportional operation circuit also realizes the conversion from unipolar to bipolar to obtain a bipolar analog voltage signal. Finally, the analog voltage signal is amplified to a specified range by an inverting proportional operation circuit.
[0032] In the prior art, the amplitude of the analog signal output by the signal output circuit is relatively small, such as between -5V and +5V, so the peripheral circuit has a relatively low power supply requirement. In order to output a wide range of analog voltage signals, such as -20V to +20V, 0-40V, if the peripheral circuit design in the prior art is still used, the amplification factor of each stage of the operational circuit is relatively large, and there are high requirements for the power supply and operational amplifier selection, and the heat generation is serious.
[0033] Based on this, the first embodiment of the present utility model relates to a signal output circuit, which supports voltage signal output in a wide voltage range. Figure 1 The signal output circuit 100 includes: a digital-to-analog conversion module 1 and a peripheral circuit module, and the peripheral circuit module includes a first operational amplifier circuit 2, a second operational amplifier circuit 3 and a third operational amplifier circuit 4 connected in sequence.
[0034] The input end of the digital-to-analog conversion module 1 is used to receive a level signal representing a signal to be output, and the first current output end and the second current output end are used to output a differential current signal;
[0035] The input end of the first operational amplifier circuit 2 is used to receive a differential current signal, and the output end is used to output a single-ended first voltage signal;
[0036] The input end of the second operational amplifier circuit 3 is used to receive the first voltage signal, and the output end is used to output a bipolar second voltage signal;
[0037] The input terminal of the third operational amplifier circuit 4 is used to receive the second voltage signal, and the output terminal is used to output a third voltage signal having an amplitude greater than the second voltage signal.
[0038] In this embodiment, the digital-to-analog conversion module 1 converts the level signal representing the signal to be output into two complementary differential current signals, the first operational amplifier circuit 2 converts the differential current signal into a single-ended first voltage signal and performs a first-stage amplification, the second operational amplifier circuit 3 converts the first voltage signal into a bipolar second voltage signal and performs a second-stage amplification, and the third operational amplifier circuit 4 performs a third-stage amplification on the second voltage signal to obtain a third voltage signal.
[0039] The present application sets up a three-stage operational amplifier circuit, and the first operational amplifier circuit 2 and the second operational amplifier circuit 3 respectively perform differential to single-ended conversion and unipolar to bipolar conversion. The operational amplifier circuits at each stage have lower power supply requirements, a wider selection range of operational amplifier circuits, lower power consumption, less heat, and realize analog signal output in a wide voltage range.
[0040] In an example, Figure 2As shown, the signal output circuit also includes: a filter circuit 5, which is connected between the digital-to-analog conversion module 1 and the first operational amplifier circuit 2; the filter circuit 5 is used to filter the differential current signal and output the filtered differential current signal to the first operational amplifier circuit 2. The filter circuit 5 can smooth the waveform, reduce interference and noise, and make the signal output more stable and reliable.
[0041] Below Figure 2 For a detailed introduction to the circuit structure of the signal output circuit shown in Figure 3 .
[0042] The digital-to-analog conversion module 1 is a DAC chip U1. The DAC chip has 28 pins, including 10 level input pins, namely pins 1 to 10, denoted as D0 to D9. The 10 level input pins receive high and low level signals, wherein D1-D8 receive 8 data bits, D0 receives the least significant data bit, and D9 receives the most significant data bit; pins 11 to 14 are suspended, denoted as NC0 pin, NC1 pin, NC2 pin, and NC3 pin, respectively; pin 15 is suspended and defined as the SLEEP pin; pin 16 is the REFLO pin, pin 20 is the ACOM pin, the REFLO pin is connected to the ACOM pin, pin 23 is the COMP2 pin, connected to the ACOM pin via capacitor C2 (e.g., 100nF), one end of capacitor C3 (e.g., 100nF) is grounded GND_ISO, and the other end is connected to the REFLO pin and the ACOM pin; pin 17 is REFIO pin, at this time REFLO pin is connected to ACOM pin, internal reference is activated, REFLO pin can output 1.1V reference voltage; Pin 18 is FSADJ pin, grounded GND_ISO through resistor R1; Pin 19 is COMP1 pin, connected to 5V power supply voltage VCC_5V_ISO through capacitor C1 (for example, 100nF); Pin 21 and Pin 22 are current output pins, respectively denoted as IOUTB and IOUA, outputting a pair of complementary differential current signals; Pin 24 is AVDD pin, Pin 27 is DVDD pin, AVDD pin and DVDD pin are respectively connected to 5V power supply voltage VCC_5V_ISO; Pin 25 is floating, denoted as MODE pin, Pin 26 is grounded, denoted as DCOM pin; Pin 28 is CLOCK pin, used to receive external clock signal DAC_CLK.
[0043] The first current output terminal IOUTA and the second current output terminal IOUTB of the DAC chip U1 are used to output a pair of differential current signals. The current signal output by the first current output terminal IOUTA can be recorded as the first current signal, and the current signal output by the second current output terminal IOUTB can be recorded as the second current signal. The first current signal and the second current signal are complementary, and their magnitudes are related to the output current range of the DAC chip U1. For example, if the upper limit of the output current of the DAC chip U1 is 20mA, the range of the first current signal and the second current signal is 0 to 20mA, and they are complementary, that is, the sum of the first current signal and the second current signal is 20mA; when the input level signal is all low level (0) (DB9~DB0=10'h000), the output current of the first current output terminal IOUTA is 0, and the output current of the second current output terminal IOUTB reaches a maximum of 20mA; when the input level signal is all high level (DB9~DB0=10'h3ff), the output current of the first current output terminal IOUTA reaches a maximum of 20mA, and the output current of the second current output terminal IOUTB is 0.
[0044] The filter circuit 5 includes a filter capacitor C L (for example, 100nF), the first filter resistor R L1 (for example, 25.5Ω) and the second filter resistor R L2 The first current output terminal IOUTA and the second current output terminal IOUTB of the digital-to-analog conversion module 1 (ie, the DAC chip U1) are connected to the filter capacitor C L The two ends of the capacitor C L The two ends of the filter are also connected through the first filter resistor R L1 The second filter resistor R L2 Ground GND_ISO.
[0045] The first operational amplifier circuit 2 includes a first common-phase resistor, a first anti-phase resistor, a first feedback resistor and a first operational amplifier; the differential current signal is respectively input into the common-phase input terminal and the anti-phase input terminal of the first operational amplifier through the first common-phase resistor and the first anti-phase resistor, and the first feedback resistor is respectively connected to the output terminal and the anti-phase input terminal of the first operational amplifier.
[0046] The first operational amplifier is denoted as U2, the first in-phase resistor includes at least one resistor, and the first anti-phase resistor includes at least one resistor, thereby first in-phase resistors and first anti-phase resistors with different resistance values can be realized by combining resistors with different resistance values, and the resistance values can be more diversified.
[0047] Specifically, the first inverting resistor connected to the first current output terminal IOUTA of the digital-to-analog conversion module 1 (i.e., the DAC chip U1) includes: a resistor R2 and a resistor R4 connected in series, the resistance value of the resistor R2 is much smaller than the resistance value of the resistor R4, and the first current output terminal IOUTA is connected to the inverting input terminal of the first operational amplifier U2 through the resistor R2 and the resistor R4 connected in series; the first in-phase resistor connected to the second current output terminal IOUTB of the digital-to-analog conversion module 1 (i.e., the DAC chip U1) includes: a resistor R3 and a resistor R5 connected in series, the resistance value of the resistor R3 is much smaller than the resistance value of the resistor R5, and the second current output terminal IOUTB is connected to the in-phase input terminal of the second current output terminal IOUTB through the resistor R3 and the resistor R5 connected in series.
[0048] The first operational amplifier circuit 2 also includes a first feedback resistor, specifically: the first feedback resistor is a resistor R6, and the output end of the first operational amplifier U2 is connected to the inverting input end of the first operational amplifier U2 through the resistor R6 to achieve deep negative feedback. In addition, the first operational amplifier circuit 2 also includes capacitors C4 and C5; the positive power supply end of the first operational amplifier U2 is connected to the +15V voltage CH_+15V, and the positive power supply end of the first operational amplifier U2 is also grounded to GND_ISO through the capacitor C4, and the negative power supply end of the first operational amplifier U2 is connected to the -15V voltage CH_-15V, and the negative power supply end of the first operational amplifier U2 is also grounded to GND_ISO through the capacitor C5.
[0049] The output VOUT of the first operational amplifier U2 U2 The calculation formula is:
[0050]
[0051] Among them, V OUTA The voltage V represents the voltage obtained by converting the current output by the first current output terminal IOUTA of the DAC chip U1 through the resistors R2 and R4. OUTB It represents the voltage obtained by converting the current output by the second current output terminal IOUTB of the DAC chip U1 through the resistors R3 and R5.
[0052] For example, the maximum output current of the first current output terminal IOUTA and the second current output terminal IOUTB of the DAC chip U1 is 20mA, the resistance value of the resistor R2 is 25.5Ω, the resistance value of the resistor R3 is 25.5Ω, the resistance value of the resistor R4 is 200Ω, the resistance value of the resistor R5 is 200Ω, and the resistance value of the resistor R6 is 500Ω. The current output from the first current output terminal IOUTA of the DAC chip U1 passes through the resistors R2 and R4 to the inverting input terminal of the first operational amplifier U2, and the current output from the second current output terminal IOUTB passes through the resistors R3 and R5 to the non-inverting input terminal of the first operational amplifier U2. The voltage output by the first operational amplifier U2 is 0-1.25V.
[0053] The signal output circuit also includes a reference voltage terminal, which is used to provide a reference voltage signal. The second operational amplifier circuit 3 includes a second inverting resistor, a second grounding resistor, a second feedback resistor and a second operational amplifier. The first voltage signal is input to the non-inverting input terminal of the second operational amplifier, and the reference voltage signal is input to the inverting input terminal of the second operational amplifier through the second inverting resistor. One end of the second grounding resistor is grounded, and the other end is connected to the inverting input terminal of the second operational amplifier. The second feedback resistor is respectively connected to the output terminal and the inverting input terminal of the second operational amplifier.
[0054] Specifically, the second operational amplifier is denoted as U3, the second inverting resistor is denoted as R7, the second grounding resistor is denoted as R8, the output end of the first operational amplifier U2 is connected to the non-inverting input end of the second operational amplifier U3, and the inverting input end of the second operational amplifier U3 is used to receive a reference voltage. Figure 3 In the example, the REFIO pin of the DAC chip U1 provides a reference voltage for the inverting input terminal of the second operational amplifier U3, wherein the REFIO pin of the DAC chip U1 is the reference voltage terminal. Specifically, the REFIO pin of the DAC chip U1 is connected to the inverting input terminal of the second operational amplifier U3 through a resistor R7, and the REFIO pin of the DAC chip U1 outputs a 1.1V voltage. One end of the resistor R8 is grounded to GND_ISO, and the other end is connected to the inverting input terminal of the second operational amplifier U3. The REFIO pin of the DAC chip U1 is also grounded to GND_ISO through a capacitor C6 (for example, 100nF).
[0055] In the signal output circuit, the reference voltage is provided by the DAC chip, which ensures the accuracy of the voltage output. In other implementations, a reference voltage terminal can be set separately to give a reference voltage signal to the inverting input terminal of the second operational amplifier to flexibly change the reference voltage value. At this time, the REFLO pin in the DAC chip U1 can be connected to the AVDD pin to disable the internal reference.
[0056] The second feedback resistor is denoted as R10, and the second operational amplifier circuit 3 further includes a capacitor C7 and a resistor R9. The output end of the second operational amplifier U3 is connected to the inverting input end of the second operational amplifier U3 through the capacitor C7 (for example, 150nF), and the output end of the second operational amplifier U3 is also connected to one end of the resistor R9 (for example, 100Ω), and the other end of the resistor R9 is also connected to the inverting input end of the second operational amplifier U3 through the resistor R10. In addition, the positive and negative power supply ends of the second operational amplifier are connected to +15V and -15V power supplies respectively.
[0057] The output VOUT of the second operational amplifier U3 U3 The calculation formula is:
[0058]
[0059] Where VOUT U2 represents the output of the first operational amplifier U2, V REF Represents the reference voltage input to the inverting input terminal of the second operational amplifier U3.
[0060] For example, the resistance value of resistor R7 is 2000Ω, the resistance value of resistor R8 is 3650Ω, the resistance value of resistor R9 is 9100Ω, and the resistance value of resistor R10 is 500Ω. If the voltage output from the first operational amplifier U2 to the non-inverting input terminal of the second operational amplifier U3 is 0-1.25V, the voltage output by the second operational amplifier U3 through the resistor R10 is in the range of -5V to +5V (including -5V and +5V), that is, the second operational amplifier U3 realizes the amplification and bipolar output conversion of the output voltage of the first operational amplifier U2.
[0061] The embodiment of the present application first uses the first operational amplifier circuit 2 to convert the differential current into a first voltage signal, and then uses the second operational amplifier circuit 3 to obtain a bipolar second voltage signal. Firstly, a fixed reference voltage is introduced during the bipolar conversion, and the bipolar amplitude during the bipolar conversion can be adjusted by changing the value of the reference voltage, thereby reducing the control difficulty. Secondly, the amplification factor of the first voltage signal is small, which reduces the power supply pressure of the second operational amplifier circuit 3 and avoids device heating.
[0062] Furthermore, the second feedback resistor can be set as a resistor with adjustable resistance, and the amplitude of the bipolar during bipolar conversion can be changed by changing the resistance of the second feedback resistor, which is more flexible to use.
[0063] The third operational amplifier circuit 4 includes one or more proportional operation circuits connected in sequence, and the types of the proportional operation circuits include an in-phase proportional operation circuit and / or an inverted proportional operation circuit.
[0064] In this embodiment, the third operational amplifier circuit 4 includes a common-phase proportional operational circuit, which includes an operational amplifier, a common-phase input resistor, an inverting input resistor, and a feedback resistor, wherein the feedback resistor is connected to the output terminal and the inverting input terminal of the operational amplifier, one end of the inverting input resistor is grounded, and the other end is connected to the inverting input terminal of the operational amplifier, and the signal to be amplified is connected to the common-phase input terminal of the operational amplifier through the common-phase input resistor. Specifically, the operational amplifier in the in-phase proportional operational circuit is recorded as the third operational amplifier U4, the voltage output by the second operational amplifier U3 through the resistor R9 is input to the in-phase input terminal +IN of the third operational amplifier U4 through the resistor R11 and the resistor R12, and the output terminal OUT of the third operational amplifier U4 is connected to the inverting input terminal -IN of the third operational amplifier U4. Specifically, the output terminal OUT of the third operational amplifier U4 is connected to one end of the resistor R13, and the other end of the resistor R13 forms the output OUT_CH of the third operational amplifier U4. The other end of the resistor R13 is connected to the inverting input terminal -IN of the capacitor C8, and the two ends of the capacitor C8 are connected in parallel with the resistor R14. The capacitor C8 is also grounded to GND_ISO through the resistor R15, and the in-phase input terminal +IN of the third operational amplifier U4 is also grounded to GND_ISO through the capacitor C9. Among them, the resistor R14 is the feedback resistor of the in-phase proportional operational circuit, the resistor R15 is the inverting input resistor of the in-phase proportional operational circuit, and the resistors R11 and R12 connected in series are the in-phase input resistors of the in-phase proportional operational circuit.
[0065] In addition, in the third operational amplifier U4, pins 3 and 4 are respectively the inverting input terminal -IN and the non-inverting input terminal +IN, pins 2 and 5 are suspended, denoted as NC1 and NC2 pins, pin 1 is grounded, denoted as E / D COM pin, pin 10 is the positive power pin V+, connected to the +40V voltage CH_+40V, and the positive power pin V+ is also grounded to GND_ISO through capacitor C10; pin 6 is the negative power pin V-, connected to the -40V voltage CH_-40V, and the negative power pin V- is also grounded to GND_ISO through capacitor C11; pin 12 is the E / D pin, grounded to GND_ISO through capacitor C12; pin 13 is the PAD pin, connected to the negative power pin V-; pin 11 is the ILIMIT pin, connected to the negative power pin V- through resistor R16, and the other end of resistor R13 is also grounded to GND_ISO through capacitor C13; pin 8 is the THERMAL FLAG pin, and pin 9 is the CURRENT The positive power supply pin V+ and the negative power supply pin V- determine the upper and lower limits of the output of the third operational amplifier U4, that is, the third operational amplifier U4 can output a voltage in the range of -40V to +40V; it should be noted that the voltage input to the positive power supply pin V+ and the negative power supply pin V- can also be adjusted according to demand.
[0066] The output VOUT of the third operational amplifier U4 U4 The calculation formula is:
[0067]
[0068] For example, the voltage output by the second operational amplifier U3 through the resistor R10 is in the range of -5V to +5V, and the gain of the third operational amplifier U4 is 8 times, then the target voltage signal VOUT output by the third operational amplifier U4 is U4 The upper and lower limits range is -40V to +40V.
[0069] In other embodiments, the third operational amplifier circuit 4 can be a plurality of in-phase proportional operational circuits connected in series, can be an even number of inverting proportional operational circuits connected in series, can be an even number of inverting proportional operational circuits connected in series and at least one in-phase proportional operational circuit, and the amplification factor can be larger to achieve a larger amplitude analog signal output.
[0070] As can be seen from the above, after receiving the level signal, the DAC chip U1 outputs a pair of differential current signals through the first current output terminal IOUTA and the second current output terminal IOUTB, which are converted into a voltage of 0-1.25V by the first operational amplifier circuit 2, and then amplified and converted into a voltage in the range of -5V to +5V by the second operational amplifier circuit 3, and then outputted into a voltage signal in the range of -40V to +40V by the third operational amplifier circuit 4. That is, after the level signal is processed by the DAC chip U1 and the three-stage operational amplifier, a voltage signal in the range of -40V to +40V can be output.
[0071] For example, by configuring the level signal input to the DAC chip U1 chip, the output of a 0 to 40V signal or an analog signal of -10V to +10V can be realized. It can be used to simulate motor signals or wheel speed control signals.
[0072] In one embodiment, the signal output circuit also includes a selection switch and a signal output terminal, the two input ends of the selection switch are respectively connected to the output end of the second operational amplifier circuit 3 and the output end of the second operational amplifier circuit 3, the output end of the selection switch is connected to the signal output terminal, and the selection switch is used to connect the signal output terminal to the output end of the second operational amplifier circuit 3 or the output end of the third operational amplifier circuit 4.
[0073] Specifically, by selecting the switch, the second voltage signal output by the second operational amplifier circuit 3, or the third voltage signal output by the third operational amplifier circuit 4, can be used as the output signal of the signal output circuit. Thus, for the level signal input to the signal output circuit, two switchable output signals of amplitude can be obtained, thereby enriching the output of the signal output circuit.
[0074] The second embodiment of the utility model relates to a signal simulation device, please refer to Figure 4 The signal simulation device includes: a processing module 200, and at least one signal output circuit 100 in the first embodiment; the processing module 200 is connected to the signal input end of the signal output circuit 100, and the output end of the signal output circuit is used to connect the electronic control unit under test, which can be a vehicle controller, or a controller used in the fields of electricity, aviation, etc. for testing.
[0075] The processing module 200 is used to send a level signal representing the signal to be output to the signal output circuit; the processing module 200 may include a core processing module (such as a single-chip microcomputer), which is directly or indirectly connected to each signal output circuit 100 and outputs a corresponding level signal to each signal output circuit 100.
[0076] The signal output circuit 100 is used to output a target voltage signal representing the signal to be output to the electronic control unit ECU under test after receiving the level signal representing the signal to be output. The ECU receives the target voltage signal output by the signal output circuit 100, that is, receives the voltage signal output by the analog sensor of the signal output circuit 100.
[0077] The signal simulation device is, for example, a vehicle tester, which can be in various forms such as a board card, a handheld device, etc. The signal output circuit 100 in the signal simulation device is used to connect to the electronic control unit ECU under test in the vehicle HIL test. The processing module 200 can configure a single signal output circuit 100 to output analog signals of different sizes to the ECU by adjusting the level signal input to the signal output circuit 100, so as to simulate the changing sensor signals and different types of sensors. Figure 3 Taking the signal output circuit 100 as an example, by configuring the level signal input to the DAC chip U1 chip, it is possible to output a voltage signal of 0 to 40V to the ECU, or output a voltage signal of -10V to +10V to the ECU.
[0078] In one embodiment, the signal simulation device includes 6 parallel signal output circuits, and the processing module sends level signals to the 6 signal output circuits. The 6 signal output circuits are partially or fully connected to the electronic control unit ECU under test, thereby performing a test on the controlled ECU.
[0079] When the signal output circuit 100 is multi-channel, it can realize the output of multiple channels of signals at the same time, test multiple ECUs under test in parallel, or output a signal of a specified number of bits to one ECU.
[0080] For an example, see Figure 5The processing module 200 includes: a core processing module 21 and an FPGA module 22 which are communicatively connected, and the FPGA module 22 is also respectively connected to each signal output circuit 100 .
[0081] The FPGA module 22 is connected to the digital-to-analog conversion module (i.e., DAC chip) in each signal output circuit 100. The signals that the FPGA module 22 interacts with each DAC chip include: the clock signal (serial clock) of the timing logic of the SRCLK input data, the SER serial input signal (i.e., the above-mentioned D9 to D0), the SRCLR continuous clear / serial clear signal, the RCLK receiving clock signal, the OE open enable bit signal, and the CLK clock signal. In addition, the FPGA module 22 is connected to each signal output circuit 100 through a level conversion isolation chip to convert the low voltage differential level signal output by the FPGA module 22 into a voltage suitable for the DAC chip.
[0082] The FPGA module 22 is used to receive the control signal sent by the external device through the core processing module 21, and select the level signal representing the signal to be output. For example, the FPGA module 22 receives the level signal sent by the external device through the core processing module 21, and sends it to the multiple signal output circuits 100 connected thereto. For example, the register of the FPGA module 22 stores level signals of different signal waveforms, so that different level signals can be selected based on the control signal received from the core processing module 21 and sent to each signal output circuit 100.
[0083] In this embodiment, the signal output control accuracy of the FPGA module 22 is higher. In the signal output circuit, the frequency of the output waveform can be higher by combining the DAC with a multi-stage operational amplifier.
[0084] In one example, the signal simulation device further includes: a CAN interface circuit 300; the processing module 200 is also connected to the CAN bus via the CAN interface circuit 300, specifically, the core processing module 21 is connected to the CAN bus via the CAN interface circuit 300.
[0085] The processing module 200 receives and sends data on the CAN bus through the CAN interface circuit, such as receiving a control signal sent by the host computer; Figure 5In the embodiment, the core processing module 21 sends and receives data on the CAN bus through the CAN interface circuit. The core processing module 21 receives a control command sent by an external device (such as a host computer) for controlling the signal transmission circuit to output different signal waveforms, generates a control signal for calling the level signal representing different signal waveforms stored in the register in advance in the processing module 200, and sends the control signal to the FPGA module 22. The FPGA module 22 selects the corresponding level signal based on the received control signal and sends it to the signal output circuit 100 to control the signal output circuit 100 to output a voltage signal of the corresponding waveform.
[0086] The core processing module 21 can be an MCU controller, which is also connected to the FLASH memory. The MCU controller can also be connected to other devices through a USB interface. The MCU controller can also be used for power management of the signal simulation device and real-time recording of the voltage status of each power supply in the device.
[0087] For example, Figure 6 As shown, the CAN interface circuit 300 includes: a CAN driver chip U5 and an isolation chip U6.
[0088] The CH pin of the CAN driver chip U5 is connected to the first bus CAN_H of the CAN bus, and the CH pin is connected to the second bus CAN_L of the CAN bus. The data transmission speed on the second bus CAN_L is lower than the data transmission speed on the first bus CAN_H; the transmission data output terminal TX0 of the CAN driver chip U5 is connected to the output terminal VOA of the isolation chip U6, and the transmission data input terminal RX0 of the CAN driver chip U5 is connected to the output terminal VIB of the isolation chip U6. The output terminal VOB of the isolation chip U6 is connected to the bus data input terminal CAN_RX of the processing module 200 through the resistor R18, and the input terminal VIA of the isolation chip U6 is connected to the bus data output terminal CAN_TX of the processing module 200.
[0089] In addition, the INH output terminal of the CAN driver chip U5 has a power disabling function. The INH output terminal is grounded to GND_ISO through resistor R19, the RM terminal is grounded to GND_ISO through resistor R20, the GND terminal is grounded to GND_ISO, the VCC power supply terminal is connected to the 5V voltage VCC_ISO_5V, and the VCC power supply terminal is also grounded to GND_ISO through capacitor C14. Capacitor C15 is connected in parallel at both ends of capacitor C14, and the transmission data input RX0 is also grounded to GND_ISO through capacitor C16.
[0090] The Vdd1 power supply terminal of the isolation chip U6 is connected to the 5V voltage VCC_ISO_5V, and the Vdd1 power supply terminal is also connected to the ground GND_ISO through the capacitor C17. The Vdd2 power supply terminal is connected to the 3.3V voltage VCC_3V3, and the Vdd2 power supply terminal is also connected to the ground GND_ISO through the capacitor C18.
[0091] The CAN driver chip U5 can be isolated from the processing module through the isolation chip U6 to improve the anti-interference ability. The power supply end of the isolation chip U6 can be connected in parallel with two voltage sources, one for providing VCC_5V_ISO power supply and the other for providing VCC_3V3 power supply to avoid power loss when one of the two fails.
[0092] In this embodiment, the circuit of the power supply part in the signal simulation device is as follows: Figure 7 As shown, it includes: a power management chip U7 and a transformer T1.
[0093] The power supply terminal VCC of the power management chip U7 is connected to the 3.3V voltage VCC_3V3, the two ground terminals GND of the power management chip U7 are grounded GND, the output terminal D1 is connected to the input terminal 3 of the transformer T1, the output terminal D2 of the power management chip U3 is connected to the input terminal 1 of the transformer T1, the power supply terminal VCC of the power management chip U3 is connected to the input tap terminal 2 of the transformer T1, and the power supply terminal VCC of the power management chip U3 is also grounded GND through capacitors C19 and C20 respectively.
[0094] The output terminal 6 of the transformer T1 is connected to the anode of the diode D2, the cathode of the diode D2 forms the output VCC_ISO, the output terminal 5 of the transformer T1 is grounded GND_ISO, the output terminal 4 of the transformer T1 is connected to the anode of the diode D3, the cathode of the diode D3 is connected to the cathode of the diode D2, and the cathode of the diode D2 is also grounded through the capacitor C21. VCC_ISO can then pass through a low dropout (LDO) linear regulator to obtain a 5V voltage VCC_5V_ISO to provide 5V power supply for various parts of the circuit.
[0095] In one example, when there are multiple signal output circuits 100 , the signal simulation device further includes: multiple switch modules; the output end of each signal output circuit 100 outputs the target voltage signal through the switch module.
[0096] The processing module 200 is also used to control the on and off of each switch module, and the on and off of each switch module can be specifically controlled by the FPGA module 22. In other words, each signal output circuit is controlled on and off by the switch module, and each signal output circuit is configured separately to achieve isolation of the outputs of different signal output circuits, and the switch module avoids external interference from affecting the stability of the output circuit.
[0097] Please refer to Figure 8 ,by Figure 3 Take the signal output circuit 100 as an example, the switch module is an electromagnetic relay LS, which is powered by a 5V voltage VCC_5V, analog_out_P is the target voltage signal output by the signal output circuit 100, which is output to the ECU under test, and analog_out_N is grounded; when the signal output circuit 100 does not need to output the target voltage signal to the ECU, the control signal Relay output by the processing module 200 controls the electromagnet to turn off, at this time analog_out_P is connected to contact 1, analog_out_N is connected to contact 2, and analog_out_P is connected to the output of the signal output circuit 100. OUT_CH is not connected, analog_out_N and the ground terminal GND_ISO are not connected; when the signal output circuit 100 needs to output the target voltage signal to the ECU, the control signal Relay output by the processing module 200 controls the electromagnet to conduct electricity, at this time the armature is magnetically attracted, analog_out_P is connected to contact 3, analog_out_N is connected to contact 4, analog_out_P is connected to the output OUT_CH of the signal output circuit 100, analog_out_N is connected to the ground terminal GND_ISO, and the signal output circuit 100 outputs the target voltage signal to the ECU. Among them, Figure 8 The device also includes some peripheral circuits. A diode D1 and a capacitor C13 are connected in parallel between analog_out_P and analog_out_N. A resistor R17 is connected between contact 1 and contact 2, and its resistance value is, for example, 2000Ω.
[0098] The third embodiment of the present invention relates to a testing system. Fig. 9 , including a real-time computing device 400 and at least one I / O unit, the I / O unit is connected to the electronic control unit under test, and the type of the I / O unit at least includes the above-mentioned signal simulation device, that is, there are multiple types of I / O units in the test system, the signal simulation device is one type of I / O unit, and at least some of the I / O units in the test system are signal simulation devices. In addition, the electronic control unit can be a vehicle controller, or a controller used in the fields of electricity, aviation, etc. for testing.
[0099] In one embodiment, the test system is a HIL system for testing an electronic control unit, the real-time computing device 400 is a real-time machine RTPC (Real Time Target Computer), and the signal simulation device is an I / O unit. In addition, the types of I / O units also include FIU boards, AD PWM-IN boards, PSI5&DSI3&SENT boards, Eth (vehicle Ethernet) boards, RC boards, RELAY-IO boards, multi-bus boards (flexray / CAN / LIN), thermocouple boards, current output boards, battery temperature simulators, temperature simulators, etc. The I / O receives the control signal given by the real-time machine, and exchanges data with the electronic control unit under test, thereby executing the test of the electronic control unit.
[0100] Specifically, an I / O processing device is provided between each I / O unit and the real-time machine RTPC. The I / O processing device is, for example, a computer, used for data transmission and communication between the real-time machine RTPC and the I / O unit. The test system also includes a shared memory unit. The I / O processing device is connected to the shared memory unit. The real-time machine RTPC is connected to the shared memory unit. The shared memory unit is used to receive and store instructions and data of each I / O processing device.
[0101] Through the shared memory unit, multiple I / O processing devices can share data, and because data sharing is performed by directly accessing the shared memory unit, the data transmission efficiency is higher than wireless communications such as Ethernet, and the reliability and real-time performance of data sharing are higher.
[0102] Preferred embodiments of the present invention have been described in detail above, but it should be understood that aspects of the embodiments can be modified, if necessary, to employ aspects, features and concepts of the various patents, applications and publications to provide further embodiments.
[0103] These and other changes can be made to the embodiments in light of the above detailed description.In general, in the claims, the terms used should not be considered limited to the specific embodiments disclosed in the specification and the claims, but should be construed to include all possible embodiments along with the full scope of equivalents to which these claims are entitled.
Claims
1. A signal output circuit, characterized in that: include: A digital-to-analog conversion module and a peripheral circuit module, wherein the peripheral circuit module includes a first operational amplifier circuit, a second operational amplifier circuit, and a third operational amplifier circuit connected in sequence; The input end of the digital-to-analog conversion module is used to receive a level signal representing a signal to be output, and the first current output end and the second current output end are used to output a differential current signal; The input end of the first operational amplifier circuit is used to receive the differential current signal, and the output end is used to output a single-ended first voltage signal; The input end of the second operational amplifier circuit is used to receive the first voltage signal, and the output end is used to output a bipolar second voltage signal; The input end of the third operational amplifier circuit is used to receive the second voltage signal, and the output end is used to output a third voltage signal with an amplitude greater than the second voltage signal.
2. The signal output circuit according to claim 1, characterized in that: The first operational amplifier circuit includes a first in-phase resistor, a first inverting resistor, a first feedback resistor and a first operational amplifier; The differential current signal is input into the in-phase input terminal and the inverting input terminal of the first operational amplifier through the first in-phase resistor and the first inverting resistor respectively, and the first feedback resistor is connected to the output terminal and the inverting input terminal of the first operational amplifier respectively.
3. The signal output circuit according to claim 1, characterized in that: It also includes a reference voltage terminal, the reference voltage terminal is used to provide a reference voltage signal, and the second operational amplifier circuit includes a second inverting resistor, a second grounding resistor, a second feedback resistor and a second operational amplifier; The first voltage signal is input to the non-inverting input terminal of the second operational amplifier, the reference voltage signal is input to the inverting input terminal of the second operational amplifier through the second inverting resistor, one end of the second grounding resistor is grounded, and the other end is connected to the inverting input terminal of the second operational amplifier, and the second feedback resistor is respectively connected to the output terminal and the inverting input terminal of the second operational amplifier.
4. The signal output circuit according to claim 1, characterized in that: The third operational amplifier circuit includes one or more proportional operation circuits connected in sequence, and the types of the proportional operation circuits include an in-phase proportional operation circuit and / or an inverted proportional operation circuit.
5. The signal output circuit according to claim 1, characterized in that: It also includes a selection switch and a signal output terminal, wherein the two input ends of the selection switch are respectively connected to the output end of the second operational amplifier circuit and the output end of the third operational amplifier circuit, and the output end of the selection switch is connected to the signal output terminal, and the selection switch is used to connect the signal output terminal to the output end of the second operational amplifier circuit or the output end of the third operational amplifier circuit.
6. The signal output circuit according to claim 1, characterized in that: The signal output circuit further includes: a filter circuit; The filter circuit is used to filter the differential current signal and output the filtered differential current signal to the first operational amplifier circuit.
7. The signal output circuit according to claim 6, characterized in that: The filter circuit includes a filter capacitor, a first filter resistor and a second filter resistor; The first current output terminal and the second current output terminal of the digital-to-analog conversion module are respectively connected to two ends of the filter capacitor, and the two ends of the filter capacitor are also grounded through the first filter resistor and the second filter resistor respectively.
8. A signal simulation device, characterized in that: include: A processing module, at least one signal output circuit according to any one of claims 1 to 7; The processing module is connected to the input end of the signal output circuit, and the output end of the signal output circuit is used to connect to the electronic control unit under test; The processing module is used to send a level signal representing the signal to be output to the signal output circuit; The signal output circuit is used to generate and output a target voltage signal representing the signal to be output after receiving the level signal representing the signal to be output.
9. The signal simulation device according to claim 8, characterized in that: There are multiple signal output circuits, and the signal simulation device further includes: multiple switch modules; the output end of each signal output circuit is connected to the electronic control unit through the switch module; The processing module is also used to control the on and off of each of the switch modules.
10. A testing system, characterized in that: It comprises a real-time computing device and at least one I / O unit, wherein the I / O unit is connected to an electronic control unit to be tested, and the type of the I / O unit at least comprises the signal simulation device described in any one of claims 8-9.
