Input signal adaptation circuit, method and device of vehicle chip and electronic equipment
By using signal generation, protection, low-dropout clamping and filtering circuits in the input signal adaptation circuit of automotive chips, the problem of low adaptability between vehicle input signals and automotive chips is solved, and higher signal acquisition accuracy is achieved.
Patent Information
- Application Number
- CN202411580338.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-14
AI Technical Summary
The low adaptability of the vehicle input signal to the automotive chip leads to problems such as operating voltage differences, missing interface protection and port voltage tolerance limitation in high-performance main control chips.
An input signal adaptation circuit for automotive chips is adopted, including a signal generation circuit, a protection circuit, a low-dropout clamp circuit and a filter circuit. Through these circuits, the input electrical signal is adjusted to an electrical signal adapted to the automotive chips and noise reduction processing is performed.
The adaptation of vehicle input signals and vehicle chips is realized, the accuracy of signal acquisition is improved, and the problem of low adaptation in related technologies is solved.
Smart Images

Figure CN119628619A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of input signal processing of automotive chips, and in particular to an input signal adaptation circuit, method, device and electronic equipment of an automotive chip. Background Art
[0002] With the rapid development of the automotive industry towards electrification and intelligence, traditional vehicle microcontroller units (MCUs) can no longer meet the growing demand for main control chip performance in controllers such as intelligent driving and intelligent cockpits. Therefore, more and more automakers have begun to choose and apply high-performance main control chips, which include high-performance MCUs and system-on-a-chips (SoCs). However, in automotive electronic hardware design, main control chips have some shortcomings compared to traditional MCUs, especially in the following three aspects:
[0003] (1) Difference in operating voltage: In order to achieve higher main frequency and computing power, high-performance main control chips usually use more advanced process technologies, such as 22nm, 16nm, etc., which makes these chips unable to work normally at voltages above 3.3V. However, a large number of automotive sensors still use traditional 5V signal output. Therefore, when using high-performance main control chips for signal acquisition, the circuit design needs to be adapted and modified to adapt to this voltage difference;
[0004] (2) Lack of interface protection: High-performance main control chips often lack some key protection features required for automotive applications in interface design, such as port clamping. This means that when designing the input circuit, it is necessary to consider failure scenarios such as the input connector being short-circuited to the car battery and take special circuit protection measures.
[0005] (3) Port withstand voltage limitation: In order to provide short-circuit protection for the interface of high-performance main control chips, an external clamping diode is usually used. However, due to the low withstand voltage of some chips, the clamping voltage margin between the normal operating voltage may be only 0.3 to 0.4V. In this case, using a diode with a small forward conduction voltage drop may cause its reverse leakage current to reach the milliampere level, which will not only cause abnormal recognition of the switch level, but also seriously affect the accuracy of signal acquisition.
[0006] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0007] The embodiments of the present invention provide an input signal adaptation circuit, method, device and electronic device for a vehicle chip, so as to at least solve the technical problem of low adaptability between the vehicle input signal and the vehicle chip in the related art.
[0008] According to one embodiment of the present invention, there is provided an input signal adaptation circuit for a vehicle chip, comprising: a signal generating circuit for generating an input electrical signal; a protection circuit for adjusting the electrostatic discharge effect of the input electrical signal; a low voltage difference clamping circuit, wherein a first input end of the low voltage difference clamping circuit is connected to an output end of the signal generating circuit, a first output end of the low voltage difference clamping circuit is connected to a first pin of the vehicle chip, and a second output end of the low voltage difference clamping circuit is connected to a second pin of the vehicle chip, wherein the low voltage difference clamping circuit is used to convert the input electrical signal into an electrical signal adapted to the vehicle chip, the first pin is used to receive a voltage provided by a controller to the vehicle chip, and the second pin is a pin to be protected; a filtering circuit, wherein an input end of the filtering circuit is connected to an output end of the signal generating circuit, an output end of the filtering circuit is connected to the second pin, and the filtering circuit is used to adjust the noise of the input electrical signal.
[0009] Optionally, the low voltage difference clamping circuit includes: a first resistor, a first end of the first resistor is connected to the output end of the signal generating circuit; a first transistor, an emitter of the first transistor is connected to the first pin, and a collector of the first transistor is connected to the second end of the first resistor; a second resistor, a first end of the second resistor is connected to the first end of the first resistor, and a second end of the second resistor is connected to the base of the first transistor.
[0010] Optionally, the filtering circuit includes: a first resistor, and a first capacitor, wherein a first end of the first capacitor is connected to a second end of the first resistor, and a second end of the first capacitor is grounded.
[0011] Optionally, the protection circuit includes: an electrostatic discharge protection device, a first end of the electrostatic discharge protection device is connected to the output end of the signal generating circuit, and a second end of the electrostatic discharge protection device is grounded.
[0012] According to one embodiment of the present invention, there is also provided an input signal adaptation method for an automotive chip, which is applied to the input signal adaptation circuit of the above-mentioned automotive chip, and the method includes: using a signal generation circuit to generate an input electrical signal; using a protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal; using a low voltage difference clamping circuit to adjust the first electrical signal to obtain a second electrical signal; using a filtering circuit to perform noise reduction processing on the second signal to generate a target electrical signal.
[0013] Optionally, adjusting the first electrical signal using a low voltage difference clamp circuit to obtain a second electrical signal includes: in response to the first voltage information being less than or equal to a preset voltage threshold, controlling the first transistor in the low voltage difference clamp circuit to be in a cut-off state, wherein the first voltage information is the voltage value of the first electrical signal; in response to the first transistor being in the cut-off state, adjusting the first voltage information to second voltage information, wherein the second voltage information is the voltage value of the second electrical signal.
[0014] Optionally, adjusting the first electrical signal using a low voltage difference clamp circuit to obtain the second electrical signal also includes: in response to the first voltage information being greater than a preset voltage threshold, controlling the first transistor in the low voltage difference clamp circuit to be in an on state; in response to the first transistor being in an on state, determining the second voltage information based on the on-state voltage drop information of the first transistor and the third voltage information, wherein the third voltage information is the voltage provided by the controller to the vehicle chip.
[0015] Optionally, in response to the first transistor being in an on-state, determining the second voltage information based on the on-state voltage drop information of the first transistor and the third voltage information includes: in response to the first transistor being in an on-state, controlling the first electrical signal to flow through the first resistor and the first transistor in sequence; adjusting the resistance value of the first resistor to determine the on-state voltage drop information; and determining the sum of the on-state voltage drop information and the third voltage information as the second voltage information.
[0016] According to one embodiment of the present invention, there is also provided an input signal adaptation device for an automotive chip, comprising: a generation module, used to generate an input electrical signal using a signal generation circuit; a processing module, used to adjust the electrostatic discharge effect of the input electrical signal using a protection circuit to obtain a first electrical signal; the processing module is also used to adjust the first electrical signal using a low voltage difference clamping circuit to obtain a second electrical signal; the generation module is also used to perform noise reduction processing on the second signal using a filtering circuit to generate a target electrical signal.
[0017] Optionally, the processing module is also used to: in response to the first voltage information being less than or equal to a preset voltage threshold, control the first transistor in the low voltage difference clamping circuit to be in a cut-off state, wherein the first voltage information is the voltage value of the first electrical signal; in response to the first transistor being in the cut-off state, adjust the first voltage information to second voltage information, wherein the second voltage information is the voltage value of the second electrical signal.
[0018] Optionally, the processing module is also used to: in response to the first voltage information being greater than a preset voltage threshold, control the first transistor in the low voltage difference clamping circuit to be in an on state; in response to the first transistor being in an on state, determine the second voltage information based on the on-state voltage drop information of the first transistor and the third voltage information, wherein the third voltage information is the voltage provided by the controller to the vehicle chip.
[0019] Optionally, the input signal adaptation device of the automotive chip also includes a determination module, which is used to: in response to the first transistor being in an on state, control the first electrical signal to flow through the first resistor and the first transistor in sequence; adjust the resistance value of the first resistor to determine the on-state voltage drop information; and determine the sum of the on-state voltage drop information and the third voltage information as the second voltage information.
[0020] According to one embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the input signal adaptation method of the vehicle chip is executed when the program is running.
[0021] According to one embodiment of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the input signal adaptation method of the above-mentioned vehicle chip.
[0022] According to one embodiment of the present invention, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the input signal adaptation method of the vehicle chip is implemented.
[0023] In an embodiment of the present invention, a signal generating circuit is used to generate an input electrical signal, a protection circuit is used to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal, and then a low voltage difference clamping circuit is used to adjust the first electrical signal to obtain a second electrical signal. Finally, a filtering circuit is used to perform noise reduction processing on the second signal to generate a target electrical signal, thereby achieving the purpose of adjusting the vehicle input signal to a signal suitable for a vehicle chip, thereby achieving the technical effect of both making the vehicle input signal compatible with the vehicle chip and improving the signal acquisition accuracy of the vehicle chip, thereby solving the technical problem of low compatibility between the vehicle input signal and the vehicle chip in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0025] Figure 1A It is a schematic diagram of an input signal adaptation circuit of a vehicle chip in the related art;
[0026] Figure 1B It is a schematic diagram of an input signal adaptation circuit of another automotive chip in the related art;
[0027] Figure 1C It is a schematic diagram of an input signal adaptation circuit of another automotive chip in the related art;
[0028] Figure 2 is a schematic diagram of an input signal adaptation circuit of a vehicle chip according to one embodiment of the present invention;
[0029] Figure 3 is a flow chart of an input signal adaptation method of a vehicle chip according to one embodiment of the present invention;
[0030] Figure 4 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0031] Figure 5 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0032] Figure 6 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0033] Figure 7 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0034] Figure 8 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0035] Fig. 9 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0036] Fig.10 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention;
[0037] Fig.11 The figure is a structural block diagram of an input signal adaptation device of a vehicle chip according to one embodiment of the present invention. DETAILED DESCRIPTION
[0038] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0039] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0040] Figure 1A This is a schematic diagram of an input signal adaptation circuit of a car chip in the related technology. Taking the Infineon TC277 chip as an example, when the Infineon TC277 chip performs resistance-type analog quantity acquisition, the simplified circuit diagram is as follows Figure 1A As shown, the simplified circuit diagram includes: an external sensor equivalent resistor RL, capacitors C1 and 2, resistors R1 and R2, a built-in clamp circuit composed of diodes D1 and D2, and an analog / digital converter (ADC) port. VDD represents the voltage provided by the controller to the chip, and ADC is used to convert analog signals into digital signals. In this chip, the normal operating voltages of the ports involved include: the normal operating voltage of the digital IO interface is 5V / 3.3V level, the normal operating voltage range of the analog signal interface is 0~5V, and the maximum tolerance voltage of the chip ADC port is 7V. The built-in clamp circuit is equivalent to D1 and D2. When collecting input quantities, such as digital quantities and analog quantities, the equivalent clamp circuits D1 and D2 of the port will protect the interface. When the chip is working normally, VDD=5V, the resistor R1 and the external sensor equivalent resistor RL are connected in series for voltage division, and the voltage division result is given to the ADC pin of the MCU after one or more RC filters, and the voltage division result is collected using the ADC.
[0041] Figure 1B This is a schematic diagram of an input signal adaptation circuit of another automotive chip in the related technology. Taking the Infineon TC277 chip as an example, when the Infineon TC277 chip performs resistance-type analog quantity acquisition, the simplified circuit diagram is as follows Figure 1B As shown in the figure, the simplified circuit diagram includes: external sensor equivalent resistor RL, capacitors C1 and C2, resistors R1 and R2, built-in clamping circuit composed of diodes D1 and D2, and analog-to-digital converter (ADC) port. When an abnormal working condition occurs, for example, when the port is short-circuited to VBAT (9~16V), as shown in the figure, Figure 1B The VBAT current flows as shown in Figure 1B As shown by the arrow in , the voltage at the ADC port is clamped by the built-in diode to 5.5V, which is less than the maximum withstand voltage of the ADC port of 7V, meeting the actual application requirements. When the same circuit is applied to an automotive chip without a built-in diode clamp circuit, since the ADC port input is usually in a high impedance state, the ADC pin port voltage is almost the same as the VBAT voltage, which is 9 to 16V, exceeding the maximum withstand voltage of the ADC port.
[0042] Figure 1C This is a schematic diagram of an input signal adaptation circuit of another automotive chip in the related technology. Taking the Infineon TC277 chip as an example, when the Infineon TC277 chip performs resistance-type analog quantity acquisition, the simplified circuit diagram is as follows Figure 1C As shown in FIG. 1 , the simplified circuit diagram includes: an external sensor equivalent resistor RL, capacitors C1 and C2, resistors R1 and R2, and an analog-to-digital converter (ADC) port. Figure 1A and Figure 1B The difference is that, Figure 1C As shown in FIG. 1 , the diodes D1 and D2 form a clamping circuit, but the diode clamping circuit is external. When an abnormal operating condition occurs, for example, the port is short-circuited to the vehicle battery voltage (VBAT, 9-16V), the VBAT current flows to Figure 1C As shown by the arrow in , this method can clamp the voltage of the ADC port to VDD+Vf, where Vf represents the forward voltage drop of the diode, and the forward voltage drop of the diode is usually available in a range of 0.3V to 0.7V. However, due to the physical characteristics of the diode, its reverse current is inversely proportional to the forward voltage drop. For automotive chips with a low voltage range of the ADC port, in order to provide good port protection, the reverse current flowing through the diode will flow through R2 and the sensor resistor RL during normal operation, affecting the ADC sampling accuracy. If you want to ensure the accuracy of the ADC, you need to choose a diode with a higher forward voltage drop, but this method will cause the ADC port clamping voltage to be higher than the normal operating voltage range of the analog signal interface.
[0043] According to an embodiment of the present invention, a method embodiment of an input signal adaptation method for a vehicle chip is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0044] The method embodiment can be executed in an electronic device or a similar computing device including a memory and a processor. Taking running on a vehicle terminal as an example, the vehicle terminal may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a programmable logic device (Field Programmable Gate Array, FPGA), a neural network processor (Neural-network Processor Unit, NPU), a tensor processor (Tensor Processing Unit, TPU), an artificial intelligence (Artificial Intelligence, AI) type processor, etc.) and a memory for storing data. Optionally, the above-mentioned vehicle terminal may also include a transmission device, an input and output device, and a display device for communication functions. It can be understood by those of ordinary skill in the art that the above-mentioned structural description is only for illustration and does not limit the structure of the above-mentioned vehicle terminal. For example, the vehicle terminal may also include more or fewer components than the above-mentioned structural description, or have a configuration different from the above-mentioned structural description.
[0045] The memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the input signal adaptation method of the vehicle chip in the embodiment of the present invention. The processor executes various functional applications and data processing by running the computer program stored in the memory, that is, the input signal adaptation method of the vehicle chip mentioned above is realized. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0046] The transmission device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.
[0047] The display device may be, for example, a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of a mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contacts and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product or readable storage medium executable by one or more processors.
[0048] In this embodiment, an input signal adaptation circuit of a vehicle chip is provided, including:
[0049] A signal generating circuit, used for generating an input electrical signal;
[0050] Protection circuits for adjusting the electrostatic discharge effects of input electrical signals;
[0051] A low voltage difference clamp circuit, wherein a first input end of the low voltage difference clamp circuit is connected to an output end of the signal generating circuit, a first output end of the low voltage difference clamp circuit is connected to a first pin of the vehicle chip, and a second output end of the low voltage difference clamp circuit is connected to a second pin of the vehicle chip, wherein the low voltage difference clamp circuit is used to convert an input electrical signal into an electrical signal compatible with the vehicle chip, the first pin is used to receive a voltage provided by the controller to the vehicle chip, and the second pin is a pin to be protected;
[0052] The filter circuit has an input end connected to the output end of the signal generating circuit, and an output end of the filter circuit connected to the second pin. The filter circuit is used to adjust the noise of the input electrical signal.
[0053] Optionally, the low voltage difference clamping circuit includes: a first resistor, a first end of the first resistor is connected to the output end of the signal generating circuit; a first transistor, an emitter of the first transistor is connected to the first pin, and a collector of the first transistor is connected to the second end of the first resistor; a second resistor, a first end of the second resistor is connected to the first end of the first resistor, and a second end of the second resistor is connected to the base of the first transistor.
[0054] Optionally, the filtering circuit includes: a first resistor, and a first capacitor, wherein a first end of the first capacitor is connected to a second end of the first resistor, and a second end of the first capacitor is grounded.
[0055] Optionally, the protection circuit includes: an electrostatic discharge protection device, a first end of the electrostatic discharge protection device is connected to the output end of the signal generating circuit, and a second end of the electrostatic discharge protection device is grounded.
[0056] Figure 2 is a schematic diagram of an input signal adaptation circuit of a vehicle chip according to one embodiment of the present invention, such as Figure 2 As shown, taking a resistor-type analog quantity processing circuit as an example, the circuit comprises: a signal generating circuit for generating an input electrical signal; a protection circuit for adjusting the electrostatic discharge effect of the input electrical signal; a low voltage difference clamping circuit, wherein the first input end (point A) of the low voltage difference clamping circuit is connected to the output end (point A) of the signal generating circuit, the first output end (point B) of the low voltage difference clamping circuit is connected to the first pin (1) of the vehicle chip, and the second output end of the low voltage difference clamping circuit is connected to the second pin (2) of the vehicle chip, wherein the low voltage difference clamping circuit is used to convert the input electrical signal into an electrical signal compatible with the vehicle chip, the first pin is used to receive the voltage provided by the controller to the vehicle chip, the second pin is a pin to be protected, when the input signal is an analog quantity signal, the second pin is an ADC pin, and when the input signal is a digital quantity signal, the second pin is a DAC pin; a filtering circuit, wherein the input end of the filtering circuit is connected to the output end (point A) of the signal generating circuit, the output end (point B) of the filtering circuit is connected to the second pin (2), and the filtering circuit is used to adjust the noise of the input electrical signal.
[0057] Specifically, the low voltage difference clamping circuit includes: a first resistor (R3), a first end of R3 is connected to A; a first transistor (Q1), an emitter of Q1 is connected to 1, and a collector of Q1 is connected to a second end of R3; a second resistor (R2), a first end of R2 is connected to a first end of R3, and a second end of R2 is connected to a base of Q1.
[0058] Specifically, the filter circuit includes: a first resistor (R3) and a first capacitor (C2), wherein a first end of C2 is connected to a second end of R3, and a second end of C2 is grounded.
[0059] Specifically, the protection circuit includes: an electrostatic discharge protection device (C1), a first end of C1 is connected to point A, and a second end of C1 is grounded, wherein the protection circuit includes an electrostatic discharge (ESD) protection device such as a capacitor or a transient voltage suppressor (TVS) to achieve ESD protection of the port.
[0060] Specifically, the signal generating circuit includes: an external sensor equivalent resistor (RL) and a third resistor (R1), wherein a first end of RL is connected to a first end of C1, a second end of RL is grounded, a first end of R1 is connected to a first end of C1, and a second end of R1 is connected to VDD, wherein VDD represents a voltage provided by the controller to the chip, typically 5V / 3.3V / 2.5V / 1.8V / 1.2V, etc.
[0061] In this embodiment, a method for adapting an input signal of a vehicle chip running in an electronic device is provided. Figure 3 is a flow chart of an input signal adaptation method of a vehicle chip according to one embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0062] Step S30, generating an input electrical signal using a signal generating circuit;
[0063] In step S30, the input electrical signal includes an analog signal and a digital signal, wherein the analog signal includes a resistance type analog quantity and a voltage type analog quantity, the voltage type analog quantity includes a voltage source type analog quantity and a resistance voltage divider type analog quantity, and the digital signal includes a high effective switch quantity.
[0064] Specifically, the input electrical signal generated by the signal generating circuit includes but is not limited to: a resistance type analog quantity and a voltage type analog quantity, wherein the voltage type analog quantity includes a voltage source type analog quantity and a resistance voltage divider type analog quantity. Figure 2 As shown, a resistive analog quantity is generated by a signal generating circuit, which is pulled up to the AD sampling power supply through an internal pull-up resistor, and is divided by the external sensor resistor RL to convert the resistance value into a voltage signal. In addition, the pull-up source is the same as the chip power supply, so that the range of the divided voltage is controlled within the chip acquisition range.
[0065] Step S32, using a protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal;
[0066] Specifically, ESD protection of the port is achieved through ESD protection devices such as capacitors or TVS.
[0067] Step S34, adjusting the first electrical signal by using a low voltage difference clamp circuit to obtain a second electrical signal;
[0068] Specifically, the low voltage difference clamping circuit formed by R2, R3 and Q1 utilizes the characteristic of low conduction voltage drop when the transistor is saturated and turned on, and can ensure that the port clamping voltage during the clamping process is not higher than the port withstand voltage value.
[0069] Step S36: Use a filtering circuit to perform noise reduction processing on the second signal to generate a target electrical signal.
[0070] Specifically, the RC low-pass filter circuit composed of R3 and C2 can effectively suppress noise interference on the signal line, wherein the starting and cutting-off frequencies need to be comprehensively determined according to actual circuit requirements.
[0071] Based on the above steps 30 to S36, a signal generating circuit is used to generate an input electrical signal, and a protection circuit is used to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal. The first electrical signal is then adjusted using a low voltage difference clamping circuit to obtain a second electrical signal. Finally, a filtering circuit is used to perform noise reduction processing on the second signal to generate a target electrical signal, thereby achieving the purpose of adjusting the vehicle input signal to a signal suitable for the vehicle chip, thereby achieving the technical effect of both making the vehicle input signal compatible with the vehicle chip and improving the signal acquisition accuracy of the vehicle chip, thereby solving the technical problem of low compatibility between the vehicle input signal and the vehicle chip in the related technology.
[0072] Optionally, in step S34, adjusting the first electrical signal by using a low voltage difference clamp circuit to obtain the second electrical signal includes:
[0073] Step S341, in response to the first voltage information being less than or equal to a preset voltage threshold, controlling the first transistor in the low voltage difference clamp circuit to be in a cut-off state, wherein the first voltage information is a voltage value of the first electrical signal;
[0074] In step S341, the preset voltage threshold is used to represent the voltage value of VDD, ie, the operating voltage provided by the controller to the chip.
[0075] Step S342, in response to the first transistor being in the off state, adjusting the first voltage information to second voltage information, wherein the second voltage information is a voltage value of the second electrical signal.
[0076] Specifically, Figure 2As shown in the figure, when the adaptation circuit of the output signal of the automotive chip is working normally, the voltage range of point A is between 0 and VDD. Since the transistor (Q1) is in the cut-off state at this time, the current Ice between the collector and emitter of Q1 is close to 0. At the same time, since the chip input is in a high-impedance state, almost no current flows through R3, so the voltage at point B is approximately equal to the voltage at point A. Therefore, the voltage at point B is less than the maximum tolerance voltage of the chip ADC port, and the chip can accurately collect voltage.
[0077] Specifically, Figure 4 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Figure 4 As shown, Figure 2 The signal generation circuit in the circuit is open-circuited, and the voltage at point A is VDD. Since the transistor (Q1) is in the cut-off state at this time, the current Ice between the collector and emitter of Q1 is close to 0. At the same time. Since the chip input is in a high-impedance state, almost no current flows through R3, so the voltage at point B is approximately equal to the voltage at point A, that is, VDD. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0078] Specifically, Figure 5 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Figure 5 As shown, Figure 2 When the signal generation circuit in the circuit is short-circuited to the ground, the voltage value at point A is 0, the transistor (Q1) is in the cut-off state, and the voltage value at point B is approximately the voltage value at point A. Therefore, the voltage at point B is lower than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage and protect the chip interface normally. In addition, the voltage division range can be adjusted to not be 0 through the resistor R1 and the external sensor resistor RL, and does not intersect with the normal working voltage range.
[0079] Based on the above steps S341 to S342, in response to the first voltage information being less than or equal to the preset voltage threshold, the first transistor in the low voltage difference clamping circuit is controlled to be in a cut-off state, wherein the first voltage information is the voltage value of the first electrical signal; in response to the first transistor being in the cut-off state, the first voltage information is adjusted to the second voltage information, wherein the second voltage information is the voltage value of the second electrical signal, so that when the input signal is less than or equal to the preset voltage threshold, the voltage chip can accurately collect voltage, thereby achieving the technical effect of both adapting the vehicle input signal to the vehicle chip and improving the signal acquisition accuracy of the vehicle chip, thereby solving the technical problem of low adaptability between the vehicle input signal and the vehicle chip in the related technology.
[0080] Optionally, in step S34, adjusting the first electrical signal by using a low voltage difference clamp circuit to obtain the second electrical signal further comprises:
[0081] Step S343, in response to the first voltage information being greater than a preset voltage threshold, controlling the first transistor in the low voltage difference clamp circuit to be in a conducting state;
[0082] Step S344, in response to the first transistor being in the on state, determining second voltage information based on the on-state voltage drop information of the first transistor and third voltage information, wherein the third voltage information is the voltage provided by the controller to the vehicle chip.
[0083] Specifically, Figure 6 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Figure 6 As shown, a signal generation circuit is used to generate a resistance-type analog quantity. When the signal generation circuit is short-circuited to the vehicle battery (BAT) power supply, the voltage at point A is the voltage provided by BAT, recorded as VBAT, which is about 9 to 16V. Therefore, the voltage at point A is greater than VDD, where VDD is usually 5V / 3.3V / 2.5V / 1.8V / 1.2V, etc. The transistor (Q1) is in a saturated conduction state. At this time, the voltage value at point B is determined based on the conduction voltage drop value of Q1 and VDD.
[0084] Based on the above steps S343 to S344, in response to the first voltage information being greater than the preset voltage threshold, the first transistor in the low voltage difference clamping circuit is controlled to be in the on state; in response to the first transistor being in the on state, the second voltage information is determined based on the on-state voltage drop information of the first transistor and the third voltage information, wherein the third voltage information is the voltage provided by the controller to the vehicle chip, which enables the voltage chip to accurately collect voltage when the input signal is greater than the preset voltage threshold, thereby achieving the technical effect of both adapting the vehicle input signal to the vehicle chip and improving the signal acquisition accuracy of the vehicle chip, thereby solving the technical problem of low adaptability between the vehicle input signal and the vehicle chip in the related technology.
[0085] Optionally, in step S344, in response to the first transistor being in the on state, determining the second voltage information based on the on-state voltage drop information of the first transistor and the third voltage information includes:
[0086] Step S3441, in response to the first transistor being in the on state, controlling the first electrical signal to flow through the first resistor and the first transistor in sequence;
[0087] Step S3442, adjusting the resistance value of the first resistor to determine the conduction voltage drop information; and determining the sum of the conduction voltage drop information and the third voltage information as the second voltage information.
[0088] Specifically, Figure 6 As shown, when the signal generation circuit is short-circuited to the vehicle battery (BAT) power supply, the voltage at point A is VBAT, which is about 9 to 16V. The transistor (Q1) is in a saturated conduction state, and the clamping current flows through the path of VBAT-->R3-->Q1-->VDD. By adjusting the resistance value of R3, the current value Ice flowing through the collector and emitter of the transistor can be adjusted, and then the conduction voltage drop of the transistor can be adjusted, which is recorded as Vcesat. For example, the collector current Ic of a transistor is 10mA, and its conduction voltage drop is 0.15V, which is much smaller than the 0.3 to 0.7V of the diode, so low voltage difference clamping can be achieved. The voltage value at point B is VDD+Vcesat, which is less than the maximum withstand voltage of the chip ADC port. It can also be distinguished from the normal working voltage, and the protection of the port can be realized, without affecting the acquisition and identification of AD under normal working conditions.
[0089] Based on the above steps S3441 to S3442, in response to the first transistor being in the on state, the first electrical signal is controlled to flow through the first resistor and the first transistor in sequence; the resistance value of the first resistor is adjusted to determine the on-state voltage drop information; the sum of the on-state voltage drop information and the third voltage information is determined as the second voltage information, so that when the input signal is greater than the preset voltage threshold, the voltage chip can accurately collect voltage, thereby achieving the technical effect of both adapting the vehicle input signal to the vehicle chip and improving the signal collection accuracy of the vehicle chip, thereby solving the technical problem of low adaptability between the vehicle input signal and the vehicle chip in the related technology.
[0090] Figure 7 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Figure 7 As shown in the figure, the signal generation circuit is used to generate voltage source analog quantity. Since the output voltage of the sensor is mostly in the range of 0 to 5V, if it is directly collected, it will exceed the collection range of the main control chip. Therefore, in addition to considering clamping, the circuit processing needs to add an additional voltage divider circuit.
[0091] Specifically, the signal generating circuit includes: an adjustable voltage source (DC), a first end of the DC is connected to the first end of C1, and a second end of the DC is grounded, wherein the output voltage range of the DC is: 0-5V.
[0092] Specifically, the voltage divider circuit includes a fourth resistor (R4) and a fifth resistor (R5), wherein the first end of R4 is connected to point A, the second end of R4 is connected to the first end of R2, the first end of R5 is connected to the second end of R3, and the second end of R5 is grounded. In the voltage divider circuit, the selection of resistors R4 and R5 needs to be considered so that the voltage source analog quantity generated by the input voltage after voltage division can be within the voltage range of the chip for correct sampling, and it needs to be ensured that the voltage VC-VDD at point C and the current Ibe flowing through R2 can make the transistor saturated and turned on when short-circuited to the power supply.
[0093] Specifically, when the input signal adaptation circuit of the automotive chip works normally, the voltage at point A is equal to the input of the voltage source analog quantity, the voltage at point C is the voltage after the voltage is divided by R4 and R5, and the voltage at point B is approximately equal to the voltage at point C, and the voltage range is between 0 and VDD. At this time, the transistor (Q1) is in the cut-off state, and the chip can collect voltage.
[0094] Specifically, when the signal production circuit in the input signal adaptation circuit of the automotive chip is in an open circuit state, the voltage at point A = the voltage at point B = the voltage at point C = 0, and the transistor (Q1) is in a cut-off state. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0095] Specifically, when the signal production circuit in the input signal adaptation circuit of the automotive chip is short-circuited to the power supply, the voltage at point C is greater than VDD, and the transistor (Q1) can be saturated and turned on, and the voltage at point B is clamped to VDD by the transistor Q1. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0096] Specifically, when the signal production circuit in the input signal adaptation circuit of the automotive chip is short-circuited to the ground, the voltage value at point A is 0, the transistor (Q1) is in the cut-off state, the voltage value at point C is approximately the voltage value at point A, and the voltage value at point B is approximately the voltage value at point C, that is, the voltage at point A = the voltage at point B = the voltage at point C = 0. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0097] Based on the above embodiments, a signal generating circuit is used to generate an input electrical signal, and a protection circuit is used to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal. A low voltage difference clamping circuit is used to adjust the first electrical signal to obtain a second electrical signal. Finally, a filtering circuit is used to perform noise reduction processing on the second signal to generate a target electrical signal. This achieves the purpose of adjusting the vehicle input signal to a signal suitable for a vehicle chip, thereby achieving the technical effect of both making the vehicle input signal compatible with the vehicle chip and improving the signal acquisition accuracy of the vehicle chip, thereby solving the technical problem of low compatibility between the vehicle input signal and the vehicle chip in the related technology.
[0098] Figure 8 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Figure 8 As shown in the figure, the signal generation circuit is used to generate the analog quantity of the resistor voltage division type. The analog quantity of the resistor voltage division type is based on the analog voltage output generated by the resistor voltage division inside the sensor, which is different from the analog quantity circuit of the voltage source type, that is, Figure 7 The difference is that an isolation follower circuit is added to make the internal voltage divider resistor affect the output voltage value of the sensor.
[0099] Specifically, the signal generating circuit includes: an external sensor equivalent resistor (RL) and a third resistor (R1), wherein a first end of RL is connected to a first end of C1, a second end of RL is grounded, a first end of R1 is connected to a first end of C1, and a second end of R1 is connected to VDD, wherein VDD represents a voltage provided by the controller to the chip, typically 5V / 3.3V / 2.5V / 1.8V / 1.2V, etc.
[0100] Specifically, in the isolation follower circuit, the power supply of the isolation operational amplifier (OP1) needs to use BAT power supply, so that when the input interface is short-circuited to the power supply, the voltage at point A does not exceed the voltage at the isolation operational amplifier port. The function of the voltage follower circuit is to make the voltage at point D follow the voltage at point A, and at the same time, the voltage divider circuit at the rear end of point D does not affect the analog voltage input value at point A.
[0101] Furthermore, in the isolation follower circuit, the first end of OP1 is connected to the first end of R4, the second end of OP1 is connected to BAT, the third end of OP1 is grounded, the fourth end of OP1 is connected to the first end of R7, the second end of R7 is connected to the first end of R4, the fifth end of OP1 is connected to the second end of R6, and the first end of R6 is connected to the first end of C1.
[0102] Specifically, when the input signal adaptation circuit of the automotive chip works normally, the voltage at point A is equal to the input of the resistor voltage-divided analog quantity, the voltage at point C is the voltage after the voltage is divided by R4 and R5, and the voltage at point B is approximately equal to the voltage at point C, and the voltage range is between 0 and VDD. At this time, the transistor (Q1) is in the cut-off state, and the chip can collect voltage.
[0103] Specifically, when the signal production circuit in the input signal adaptation circuit of the automotive chip is in an open circuit state, the voltage at point A = the voltage at point B = the voltage at point C = the voltage at point D = 0, and the transistor (Q1) is in a cut-off state. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0104] Specifically, when the signal production circuit in the input signal adaptation circuit of the automotive chip is short-circuited to the power supply, the voltage at point C is greater than VDD, and the transistor (Q1) can be saturated and turned on, and the voltage at point B is clamped to VDD by the transistor Q1. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0105] Specifically, when the signal production circuit in the input signal adaptation circuit of the automotive chip is short-circuited to the ground, the voltage value at point A is 0, the transistor (Q1) is in the cut-off state, the voltage value at point C is approximately the voltage value at point A, the voltage value at point B is approximately the voltage value at point C, and the voltage at point D follows the voltage at point A, that is, the voltage at point A = the voltage at point B = the voltage at point C = the voltage at point D = 0. Therefore, the voltage at point B is less than the maximum withstand voltage of the chip ADC port, and the chip can accurately collect voltage.
[0106] Based on the above embodiments, a signal generating circuit is used to generate an input electrical signal, and a protection circuit is used to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal. A low voltage difference clamping circuit is used to adjust the first electrical signal to obtain a second electrical signal. Finally, a filtering circuit is used to perform noise reduction processing on the second signal to generate a target electrical signal. This achieves the purpose of adjusting the vehicle input signal to a signal suitable for a vehicle chip, thereby achieving the technical effect of both making the vehicle input signal compatible with the vehicle chip and improving the signal acquisition accuracy of the vehicle chip, thereby solving the technical problem of low compatibility between the vehicle input signal and the vehicle chip in the related technology.
[0107] Fig. 9 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Fig. 9 As shown, the input of the circuit is a high-effective digital quantity, wherein the high-effective digital quantity includes a high-effective switching quantity and a pulse width modulation quantity (Pulse Width Modulation, PWM) outside the board. Fig. 9 Taking the circuit input as a high effective switch quantity as an example, the second pin in the circuit diagram, that is, the pin to be protected is a DAC pin (3), which is used to capture the digital quantity signal and convert it into an analog signal. In the circuit, one end of the switch S is connected to BAT to generate a high effective digital quantity. The circuit includes a protection circuit, a default state circuit, a low voltage difference clamping circuit and a filtering circuit, wherein the second output end (point B) of the low voltage difference clamping circuit is connected to the chip digital / analog converter (Digital to Analog Converter, DAC) pin (3).
[0108] Specifically, in the default state circuit, when the switch is suspended, the resistor R5 is pulled down to the ground to give the circuit a default pull-down low level state to prevent unexpected operation of the controller.
[0109] Specifically, during normal operation, when the switch S is closed, the voltage at point A is the BAT voltage VBAT, the transistor (Q1) is in a saturated conduction state, the voltage at point B is equal to the VDD voltage, and the chip digital input interface recognizes it as a high level, thereby enabling accurate signal acquisition.
[0110] Specifically, when the switch S is disconnected, the voltage at point A is 0, the transistor (Q1) is in the cut-off state, the voltage at point B is pulled down to a low level by R1 and R3, and the chip digital input interface recognizes it as a low level, thereby enabling accurate signal acquisition.
[0111] Specifically, when short-circuited to the power supply, the voltage at point B is equal to VDD and is not higher than the withstand voltage of the chip port.
[0112] Specifically, when the short circuit is to the ground and the circuit is open, the voltage at point B is 0, and the chip recognizes it as a low level, thereby enabling accurate signal acquisition.
[0113] Based on the above embodiments, a protection circuit is used to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal, a default state circuit is added to prevent unexpected operation of the controller, and then a low voltage difference clamping circuit is used to adjust the first electrical signal to obtain a second electrical signal. Finally, a filtering circuit is used to perform noise reduction processing on the second signal to generate a target electrical signal, thereby achieving the purpose of adjusting the vehicle input signal to a digital signal suitable for the vehicle chip, thereby achieving the technical effect of both making the vehicle input signal compatible with the vehicle chip and improving the acquisition accuracy of the vehicle chip for the digital signal, thereby solving the technical problem of low compatibility between the vehicle input signal and the vehicle chip in the related technology.
[0114] Fig.10 FIG. 1 is a schematic diagram of an input signal adaptation circuit of another vehicle chip according to one embodiment of the present invention. Fig.10 As shown, the input of the circuit is a low-significant digital quantity, wherein the low-significant digital quantity includes a low-significant switching quantity and a pulse width modulation quantity (PWM) outside the board. Fig.10 Taking the circuit input as a high effective switch quantity as an example, the second pin in the circuit diagram, i.e. the pin to be protected, is the DAC pin (3). In the circuit, one end of the open-end switch S is connected to the ground to generate a low effective digital quantity. The circuit includes a protection circuit, a default state circuit, an anti-backflow circuit and a filter circuit, wherein the second output end (point B) of the low voltage difference clamp circuit is connected to the DAC pin (3) of the chip.
[0115] Specifically, in the anti-backflow circuit, the first end of the diode D1 is connected to the first end of R3, and the second end of D1 is connected to the first end of C1. When short-circuited to BAT, no additional clamping circuit is required. The diode D1 can effectively isolate the voltage of VBAT to ensure that the voltage at point C is the VDD voltage, and then the voltage at point B is also the VDD voltage, which is within the chip tolerance voltage range.
[0116] Specifically, during normal operation, when S is closed, the voltage at point A is 0, the voltage at point C is the forward conduction voltage drop Vf of D1, and the voltage at point B is also the forward conduction voltage drop Vf of D1. Vf needs to be less than the low-level input threshold VIL of the chip. The chip can correctly identify it as a low level, so that accurate signal acquisition can be performed, and the chip interface can be normally protected. When S is disconnected, the voltage at point C is VDD, and the voltage at point B is also VDD. The chip can correctly identify it as a high level, so that accurate signal acquisition can be performed, and the chip interface can be normally protected.
[0117] Specifically, when short-circuited to the power supply, the diode D1 is in a reverse cut-off state, the voltage at point C is VDD, and the voltage at point B is also VDD. The chip can correctly identify it as a high level, thereby enabling accurate signal acquisition and the chip interface can be protected normally.
[0118] Specifically, when short-circuited to ground, the voltage at point A is 0, the voltage at point C is the forward conduction voltage drop Vf of D1, and the voltage at point B is also the forward conduction voltage drop Vf of D1. The chip can correctly identify it as a low level, thereby enabling accurate signal acquisition and the chip interface can be protected normally.
[0119] Specifically, when the circuit is open, the voltage at point C is VDD, and the voltage at point B is also VDD. The chip can correctly identify it as a high level, so that accurate signal acquisition can be performed, and the chip interface can be protected normally.
[0120] Based on the above embodiment, the electrostatic discharge effect of the input electrical signal is adjusted by using a protection circuit to obtain a first electrical signal. The VBAT voltage can be effectively isolated by the diode D1, and a default state circuit is added to prevent unexpected operation of the controller. Then, the first signal is subjected to noise reduction processing by a filtering circuit to generate a target electrical signal, thereby achieving the purpose of adjusting the vehicle input signal to a digital signal suitable for the vehicle chip, thereby achieving the technical effect of both making the vehicle input signal compatible with the vehicle chip and improving the acquisition accuracy of the vehicle chip for the digital signal, thereby solving the technical problem of low compatibility between the vehicle input signal and the vehicle chip in the related art.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0122] In an embodiment of the present invention, an input signal adapter device for a vehicle chip is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0123] Fig.11 FIG. 1 is a structural block diagram of an input signal adaptation device for a vehicle chip according to one embodiment of the present invention. Fig.11 As shown, the device comprises:
[0124] A generating module 1101 is used to generate an input electrical signal using a signal generating circuit;
[0125] The processing module 1102 is used to adjust the electrostatic discharge effect of the input electrical signal by using the protection circuit to obtain a first electrical signal;
[0126] The processing module 1102 is further used to adjust the first electrical signal using a low voltage difference clamp circuit to obtain a second electrical signal;
[0127] The generating module 1101 is further used to perform noise reduction processing on the second signal by using a filtering circuit to generate a target electrical signal.
[0128] Optionally, the processing module 1102 is also used to: in response to the first voltage information being less than or equal to a preset voltage threshold, control the first transistor in the low voltage difference clamping circuit to be in a cut-off state, wherein the first voltage information is the voltage value of the first electrical signal; in response to the first transistor being in the cut-off state, adjust the first voltage information to second voltage information, wherein the second voltage information is the voltage value of the second electrical signal.
[0129] Optionally, the processing module 1102 is also used to: in response to the first voltage information being greater than a preset voltage threshold, control the first transistor in the low voltage difference clamping circuit to be in an on state; in response to the first transistor being in an on state, determine the second voltage information based on the on-state voltage drop information of the first transistor and the third voltage information, wherein the third voltage information is the voltage provided by the controller to the vehicle chip.
[0130] Optionally, the input signal adaptation device of the automotive chip also includes a determination module 1103, which is used to: in response to the first transistor being in an on state, control the first electrical signal to flow through the first resistor and the first transistor in sequence; adjust the resistance value of the first resistor to determine the on-state voltage drop information; and determine the sum of the on-state voltage drop information and the third voltage information as the second voltage information.
[0131] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0132] According to one embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the input signal adaptation method of the vehicle chip is executed when the program is running.
[0133] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0134] Step S1, generating an input electrical signal using a signal generating circuit;
[0135] Step S2, using a protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal;
[0136] Step S3, adjusting the first electrical signal using a low voltage difference clamp circuit to obtain a second electrical signal;
[0137] Step S4: Use a filtering circuit to perform noise reduction processing on the second signal to generate a target electrical signal.
[0138] According to one embodiment of the present invention, a computer-readable storage medium is also provided, and the computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the input signal adaptation method of the above-mentioned vehicle chip.
[0139] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:
[0140] Step S1, generating an input electrical signal using a signal generating circuit;
[0141] Step S2, using a protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal;
[0142] Step S3, adjusting the first electrical signal using a low voltage difference clamp circuit to obtain a second electrical signal;
[0143] Step S4: Use a filtering circuit to perform noise reduction processing on the second signal to generate a target electrical signal.
[0144] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0145] According to one embodiment of the present invention, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the input signal adaptation method of the vehicle chip is implemented.
[0146] Optionally, in this embodiment, the computer program product may be configured as a computer program for executing the following steps:
[0147] Step S1, generating an input electrical signal using a signal generating circuit;
[0148] Step S2, using a protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal;
[0149] Step S3, adjusting the first electrical signal using a low voltage difference clamp circuit to obtain a second electrical signal;
[0150] Step S4: Use a filtering circuit to perform noise reduction processing on the second signal to generate a target electrical signal.
[0151] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0152] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0153] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0154] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0155] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0156] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0157] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0158] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An input signal adaptation circuit for a vehicle chip, characterized in that: include: A signal generating circuit, used for generating an input electrical signal; A protection circuit, used for adjusting the electrostatic discharge effect of the input electrical signal; A low voltage difference clamp circuit, wherein a first input end of the low voltage difference clamp circuit is connected to an output end of the signal generating circuit, a first output end of the low voltage difference clamp circuit is connected to a first pin of a vehicle chip, and a second output end of the low voltage difference clamp circuit is connected to a second pin of the vehicle chip, wherein the low voltage difference clamp circuit is used to convert the input electrical signal into an electrical signal compatible with the vehicle chip, the first pin is used to receive a voltage provided by a controller to the vehicle chip, and the second pin is a pin to be protected; A filter circuit, wherein the input end of the filter circuit is connected to the output end of the signal generating circuit, the output end of the filter circuit is connected to the second pin, and the filter circuit is used to adjust the noise of the input electrical signal.
2. The input signal adaptation circuit of the vehicle chip according to claim 1, characterized in that: The low voltage dropout clamping circuit comprises: a first resistor, wherein a first end of the first resistor is connected to an output end of the signal generating circuit; a first transistor, wherein an emitter of the first transistor is connected to the first pin, and a collector of the first transistor is connected to a second end of the first resistor; A second resistor, wherein a first end of the second resistor is connected to the first end of the first resistor, and a second end of the second resistor is connected to the base of the first transistor.
3. The input signal adaptation circuit of the vehicle chip according to claim 2, characterized in that: The filtering circuit comprises: the first resistor, and A first capacitor, wherein a first end of the first capacitor is connected to a second end of the first resistor, and a second end of the first capacitor is grounded.
4. The input signal adaptation circuit of the vehicle chip according to claim 1, characterized in that: The protection circuit comprises: An electrostatic discharge protection device, wherein a first end of the electrostatic discharge protection device is connected to the output end of the signal generating circuit, and a second end of the electrostatic discharge protection device is grounded.
5. A method for adapting an input signal of a vehicle chip, characterized in that: The input signal adaptation circuit of the vehicle chip according to any one of claims 1 to 4, the method comprising: generating the input electrical signal using the signal generating circuit; Using the protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal; Using the low voltage difference clamping circuit to adjust the first electrical signal to obtain a second electrical signal; The second signal is subjected to noise reduction processing by using the filter circuit to generate a target electrical signal.
6. The input signal adaptation method of the vehicle chip according to claim 5, characterized in that: The step of adjusting the first electrical signal by using the low voltage difference clamp circuit to obtain a second electrical signal comprises: In response to first voltage information being less than or equal to a preset voltage threshold, controlling a first transistor in the low voltage difference clamp circuit to be in a cut-off state, wherein the first voltage information is a voltage value of the first electrical signal; In response to the first transistor being in a cut-off state, the first voltage information is adjusted to the second voltage information, wherein the second voltage information is a voltage value of the second electrical signal.
7. The input signal adaptation method of the vehicle chip according to claim 6, characterized in that: The step of adjusting the first electrical signal by using the low voltage difference clamp circuit to obtain a second electrical signal further includes: In response to the first voltage information being greater than the preset voltage threshold, controlling the first transistor in the low voltage difference clamp circuit to be in an on state; In response to the first transistor being in an on state, the second voltage information is determined based on on-state voltage drop information of the first transistor and third voltage information, wherein the third voltage information is a voltage provided by the controller to the vehicle chip.
8. The input signal adaptation method of the vehicle chip according to claim 7, characterized in that: In response to the first transistor being in a turned-on state, determining the second voltage information based on the on-state voltage drop information of the first transistor and the third voltage information includes: In response to the first transistor being in an on state, controlling the first electrical signal to flow through the first resistor and the first transistor in sequence; Adjusting the resistance value of the first resistor to determine the conduction voltage drop information; The sum of the conduction voltage drop information and the third voltage information is determined as the second voltage information.
9. An input signal adapter device for a vehicle chip, characterized in that: include: A generating module, used for generating the input electrical signal by using the signal generating circuit; A processing module, configured to use the protection circuit to adjust the electrostatic discharge effect of the input electrical signal to obtain a first electrical signal; The processing module is further used to adjust the first electrical signal using the low voltage difference clamping circuit to obtain a second electrical signal; The generating module is further used to perform noise reduction processing on the second signal by using the filtering circuit to generate a target electrical signal.
10. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program, when running, executes the input signal adaptation method of the vehicle chip described in any one of claims 5 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is running, the device where the storage medium is located is controlled to execute the input signal adaptation method of the vehicle chip according to any one of claims 5 to 8.
12. A computer program product, characterized in that It comprises a computer program, which, when executed by a processor, implements the input signal adaptation method of the vehicle chip according to any one of claims 5 to 8.