Sensor data transmission circuit, chip and electronic equipment
By introducing a trigger selection module and a pulse generation module into the sensor data transmission circuit, the single transmission problem between sensors and ECUs under the SPC protocol is solved, and efficient data transmission of multiple sensors is achieved, reducing costs.
Patent Information
- Application Number
- CN202411108984.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-13
- Publication Date
- 2025-01-17
AI Technical Summary
The sensor and electronic control unit based on the SPC protocol can only support data transmission from one sensor to the ECU during data transmission, resulting in inconvenient resource utilization and high cost in multi-sensor applications.
A sensor data transmission circuit is designed, including a trigger selection module and a pulse generation module. By receiving multiple different trigger signals and generating pulse signals with a preset pulse width, it ensures that only one sensor responds, thereby realizing data transmission of multiple sensors.
Improves communication efficiency, reduces circuit costs, and supports communication between one pulse generation module and multiple sensors.
Smart Images

Figure CN119324751A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit technology, and in particular to a sensor data transmission circuit, chip and electronic device. Background Art
[0002] The SPC (Short PWM Code) protocol is a synchronous data transmission protocol based on the SENT (Single Edge Nibble Transmission) protocol.
[0003] The SENT protocol transmits sensor data to an electronic control unit (ECU) unidirectionally, that is, the electronic control unit cannot transmit signals to the sensor.
[0004] Sensors that use the SPC protocol will only send data after receiving a specific trigger pulse from the electronic control unit; the electronic control unit sends the trigger pulse and receives the data sent by the sensor through the same signal line.
[0005] Currently, when sensors and electronic control units based on the SPC protocol perform data transmission, only data transmission from one sensor to the electronic control unit can be supported, that is, a trigger pulse sent by the electronic control unit can only be transmitted to one sensor. For applications that need to collect multi-sensor data, multiple trigger pulse sending units can only be set up to correspond to sensors one by one. This data transmission method is not convenient for resource utilization and has higher costs. Summary of the invention
[0006] In view of the above problems, the embodiments of the present application provide a sensor data transmission circuit, chip and electronic device to solve the above technical problems.
[0007] In a first aspect, an embodiment of the present application provides a sensor data transmission circuit, including:
[0008] A trigger selection module is used to receive multiple different trigger signals and select one of the trigger signals for output;
[0009] The pulse generating module is used to receive the trigger signal output by the trigger selecting module to generate a pulse signal with a preset pulse width and output it to the sensor module, so that the sensor module matches the corresponding sensor and the electronic control unit according to the pulse signal with the preset pulse width to perform data transmission.
[0010] In a second aspect, an embodiment of the present application further provides a chip, comprising the sensor data transmission circuit of the first aspect described above.
[0011] In a third aspect, an embodiment of the present application further provides an electronic device, comprising the chip of the second aspect described above.
[0012] The embodiment of the present application provides a sensor data transmission circuit, chip and electronic device. The sensor data transmission circuit provided by the embodiment of the present application, facing the application scenario of data transmission between sensors and electronic control units based on the SPC protocol, receives different trigger signals through the trigger selection module to drive the pulse generation module to generate a pulse signal, and the pulse generation module configures a pulse signal with a preset pulse width and outputs it to the sensor module, so that the sensor module matches the corresponding sensor with the electronic control unit according to the pulse signal with the preset pulse width for data transmission. Because the pulse width of the pulse signal can be configured, the embodiment of the present application can configure the pulse width range of the pulse signal supported by each sensor in the sensor module, so that the pulse signal output by the pulse generation module will only be received by one sensor in the sensor module, that is, only one sensor in the sensor module will respond to the pulse signal to send data. The sensor data transmission circuit provided by the embodiment of the present application supports multiple trigger signals to drive the pulse signal, expands the trigger source of the pulse signal, selects one of the multiple sensors to send data through the pulse width of the pulse signal, supports one pulse generation module to communicate with multiple sensors, improves communication efficiency, and reduces circuit cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0014] Figure 1 A schematic diagram of a sensor data transmission circuit provided in an embodiment of the present application is shown.
[0015] Figure 2 Another schematic diagram of a sensor data transmission circuit provided in an embodiment of the present application is shown.
[0016] Figure 3 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0017] Figure 4 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0018] Figure 5 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0019] Figure 6Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0020] Figure 7 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0021] Figure 8 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0022] Fig. 9 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0023] Fig.10 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown.
[0024] Fig.11 Another schematic diagram of the sensor data transmission circuit provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be understood as limiting the present application.
[0026] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0027] In the embodiments of the present application, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.
[0028] Moreover, the terms "comprises," "comprising," or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus that includes a list of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0029] In the description of the embodiments of the present application, words such as "example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" or "for example" in the embodiments of the present application is not to be interpreted as being more preferred or having more advantages than another embodiment or design. The use of words such as "example" or "for example" is intended to present relative concepts in a clear manner.
[0030] In addition, the "plurality" in the embodiments of the present application refers to two or more than two. In view of this, the "plurality" in the embodiments of the present application can also be understood as "at least two". "At least one" can be understood as one or more, for example, one, two or more. For example, including at least one means including one, two or more, and there is no limit on which ones are included. For example, including at least one of A, B and C, then A, B, C, A and B, A and C, B and C, or A, B and C can be included.
[0031] It should be noted that, in the embodiments of the present application, "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / ", unless otherwise specified, generally indicates that the associated objects before and after are in an "or" relationship.
[0032] It should be noted that in the embodiments of the present application, "connection" can be understood as electrical connection, and the connection between two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection between A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.
[0033] The embodiment of the present application provides a sensor data transmission circuit, which is used to realize data transmission between a sensor using an SPC (Short PWM Code) protocol and an electronic control unit (ECU). Specifically, the embodiment of the present application is used to realize data transmission between a sensor using an SPC and a circuit module in an electronic control unit that supports a SENT (Single Edge Nibble Transmission) protocol. Figure 1 A schematic diagram of a sensor data transmission circuit provided in an embodiment of the present application is shown. Figure 1 As shown, the sensor data transmission circuit includes a trigger selection module 100 and a pulse generation module 200 .
[0034] The trigger selection module 100 is used to receive multiple different trigger signals and select one of the trigger signals for output. Optionally, the multiple trigger signals received by the trigger selection module 100 may come from any circuit / module inside the electronic control unit, and the embodiment of the present application does not limit the signal format of the trigger signal. For example, the trigger signal may be in the format of a level signal, a waveform signal, etc.
[0035] The pulse generating module 200 is used to receive the trigger signal output by the trigger selecting module 100 to generate a pulse signal of a preset pulse width and output it to the sensor module, so that the sensor module matches the corresponding sensor according to the pulse width of the pulse signal of the preset pulse width to transmit data with the electronic control unit. Optionally, the sensor module includes at least one sensor. In the embodiment of the present application, a pulse width range is configured for each sensor in the sensor module, so that when the electronic control unit needs to obtain certain sensor data, it only needs to preset the pulse width of the pulse signal output by the pulse generating module 200 so that the preset pulse width is within the pulse width range of the sensor, and the corresponding sensor in the sensor module can respond to the pulse signal and output the sensor data, while the remaining sensors in the sensor module will not respond to the pulse signal because the preset pulse width of the pulse signal is not within its pulse width range. Among them, the sensor data output by the sensor module is received by the circuit / module inside the electronic control unit.
[0036] Exemplarily, a circuit / module inside the electronic control unit needs to obtain data from a sensor in the sensor module (such as a temperature sensor / pressure sensor, etc.). The circuit / module outputs a trigger signal or controls other circuits / modules inside the electronic control unit to output a trigger signal. The trigger selection module 100 selects the trigger signal output, and the pulse generation module 200 generates a pulse signal according to the trigger signal. The pulse width of the pulse signal is configured by the pulse generation module 200 within the pulse width range of the required sensor. In this way, when the sensor module receives the pulse signal, only the required sensor can output sensor data to the corresponding circuit / module inside the electronic control unit based on the pulse signal.
[0037] In some embodiments, in the sensor data transmission circuit provided in the embodiments of the present application, the pulse generating module 200 can configure a preset pulse width through software, that is, the user configures the pulse width of the pulse generating module 200 according to actual needs to obtain the required sensor data.
[0038] In some embodiments, in the sensor data transmission circuit provided in the embodiments of the present application, the preset pulse width of the pulse signal configured by the pulse generating module 200 can also correspond to multiple trigger signals, that is, multiple preset pulse widths corresponding to multiple trigger signals are set during circuit design. In this way, in actual application, the pulse generating module 200 will generate pulse signals with different pulse widths according to different received trigger signals.
[0039] It should be clear that the sensor data transmission circuit provided in the embodiment of the present application does not limit the specific structure of the pulse generating module. In fact, there are many circuits / devices that can configure the pulse width and generate electronic pulses, such as one or more combination circuits of registers, timers, oscillators, triggers, logic circuits, pulse generators and other devices. The sensor data transmission circuit provided in the embodiment of the present application can select any circuit / device that can configure the pulse width and generate a pulse signal as the pulse generating module.
[0040] It can be understood that the embodiments of the present application are applied to data transmission between sensors using SPC and circuit modules supporting the SENT protocol in electronic control units. Therefore, in the embodiments of the present application, the trigger selection module 100, the pulse generation module 200, and the communication ports and communication lines of the sensor module should comply with the SENT protocol and the SPC protocol. Similarly, in the embodiments of the present application, the pulse signal generated by the pulse generation module 200 is an SPC pulse.
[0041] The sensor data transmission circuit provided in the embodiment of the present application is applied to the application scenario of data transmission between the sensor and the electronic control unit based on the SPC protocol. The trigger selection module receives different trigger signals to drive the pulse generation module to generate a pulse signal. The pulse generation module configures the pulse signal of the preset pulse width and outputs it to the sensor module, so that the sensor module matches the corresponding sensor and the electronic control unit according to the pulse signal of the preset pulse width for data transmission. Because the pulse width of the pulse signal can be configured, the embodiment of the present application can configure the pulse width range of the pulse signal supported by each sensor in the sensor module so that the pulse signal output by the pulse generation module will only be received by one sensor in the sensor module, that is, only one sensor in the sensor module will respond to the pulse signal to send data. The sensor data transmission circuit provided in the embodiment of the present application as described in the above embodiment supports multiple trigger signals to drive the pulse signal, expands the trigger source of the pulse signal, selects one of the multiple sensors to send data through the pulse width of the pulse signal, supports one pulse generation module to communicate with multiple sensors, improves communication efficiency, and reduces circuit cost.
[0042] Next, the working process of the sensor data transmission circuit provided in the embodiment of the present application is illustrated by way of example. Taking the data transmission between the sensor module including two sensors supporting the SPC protocol and the electronic control unit as an example, the working process of the sensor data transmission circuit is as follows:
[0043] First, configure the pulse width range supported by sensor 1 and sensor 2, and the pulse width range supported by sensor 1 and sensor 2 should not be repeated, so that the sensor will output sensor data only when the pulse width of the pulse signal belongs to the pulse width range supported by the sensor. For example, configure the pulse width range of the trigger pulse supported by sensor 1 to be 20ticks~30ticks (pulse count value), and configure the pulse width range of the trigger pulse supported by sensor 2 to be 40ticks~50ticks.
[0044] The trigger selection module 100 receives trigger signals output by multiple circuits / modules inside the electronic control unit. When a circuit / module inside the electronic control unit needs to obtain data from a sensor in the sensor module (such as a temperature sensor / pressure sensor, etc.), the circuit / module outputs a trigger signal or controls other circuits / modules inside the electronic control unit to output a trigger signal. The user configures the trigger selection module 100 to select the trigger signal to be output to the pulse generation module 200. The pulse generation module 200 receives the trigger signal to generate a pulse signal to output to sensor 1 and sensor 2. For example, the pulse width of the pulse signal generated by the pulse generation module 200 is 25 ticks.
[0045] When sensor 1 receives a pulse signal, because the pulse width of the pulse signal is 25 ticks, and the pulse width range supported by sensor 1 is 20 ticks to 30 ticks, including the pulse width of the pulse signal, sensor 1 will feed back sensor data to the electronic control unit after receiving the pulse signal, and the electronic control unit and sensor 1 complete communication.
[0046] Sensor 2 and sensor 1 receive the pulse signal at the same time. Because the pulse width of the pulse signal is 25 ticks, and the pulse width range of the trigger pulse supported by sensor 2 is 40 ticks to 50 ticks, which does not include the pulse width of the pulse signal, sensor 2 will not perform any action after receiving the pulse signal.
[0047] It should be clear that if Figure 1 As shown, ECU represents an electronic control unit. The purpose of the embodiment of the present application is to realize data transmission between the sensor and the electronic control unit, and no restrictions are imposed on the various circuits / modules of the electronic control unit. Therefore, the specific structures of other functional circuits / functional modules belonging to the electronic control unit are not shown here. SENT represents a functional circuit / functional module in the electronic control unit that supports the SENT protocol, that is, the sensor data transmission circuit provided in the embodiment of the present application supports the SENT protocol.
[0048] In some embodiments, Figure 2 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 2 As shown, in the sensor data transmission circuit provided in the embodiment of the present application, the trigger selection module 100 includes a first selection unit 110 and a first register unit 120 .
[0049] The first selection unit 110 has multiple input ends respectively connected to each circuit / module that generates a trigger signal to receive multiple different trigger signals, a selection end connected to the first register unit 120, and an output end connected to the pulse generating module 200. The first selection unit 110 is used to select one of the trigger signal outputs according to the first selection signal.
[0050] In some embodiments, each circuit / module connected to the input end of the first selection unit 110 is a functional circuit / module in the electronic control unit that does not support the SENT protocol, so as to trigger a pulse signal through a non-SENT protocol circuit / module.
[0051] The first register unit 120 is used to configure the first selection signal to control the first selection unit 110 to select one of the multiple trigger signals for output. Optionally, the user can set the value of the first register unit 120 through software to change the trigger signal selected by the first selection signal.
[0052] Optionally, the sensor data transmission circuit provided in the embodiment of the present application configures the first selection signal through the first register unit 120. The number of bits of the first selection signal is related to the number of trigger signals. The n-bit first selection signal can be used to select at most 2 n trigger signals, for example, when the number of trigger signals received by the first selection unit 110 is 16, a 4-bit first selection signal can be set through the first register unit.
[0053] It can be understood that in the embodiments of the present application, the functional circuit that can receive multiple trigger signals and select one of the trigger signals for output is not limited to the circuit composed of a selection unit and a register unit, that is, the existence of the trigger selection module 100 is not limited to the first selection unit 110 and the first register unit 120 described in the above embodiments.
[0054] In some embodiments, Figure 3 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 3 As shown, the sensor data transmission circuit provided in the embodiment of the present application also includes:
[0055] The mode selection module 300 is used to receive at least one input signal, and select one of the input signals to be output to the pulse generation module 200 according to the mode configuration information, so that the pulse generation module 200 receives the input signal to generate a pulse signal; the at least one input signal received by the mode selection module 300 includes at least the trigger signal output by the trigger selection module 100. Optionally, in the embodiment of the present application, in addition to using the trigger signal output by the functional circuit / functional module that does not support the SENT protocol in the electronic control unit as a trigger mode to drive the pulse generation module 200 to generate a pulse signal, other methods can also be used to drive the pulse generation module 200 to produce a pulse signal, wherein the mode configuration information is the configuration information set by the user, which is used for the mode selection module 300 to select one input signal to be directly output; or select one input signal to be processed and then output, specifically, the mode configuration information can be set to select one input signal and select one of the processing methods such as delay / timing / level conversion / waveform conversion for the input signal, and the input signal is output to the pulse generation module 200 after processing.
[0056] Exemplarily, the input signal received by the mode selection module 300 also includes an input signal directly configured by software, so that the user can drive the pulse generation module 200 to generate a pulse signal by configuring the software at any time.
[0057] Exemplarily, the input signal received by the mode selection module 300 also includes receiving an input signal of a timing / delay input, so that the mode selection module 300 selects the input signal of the timing / delay input, so that the mode selection module 300 can drive the pulse generation module 200 to generate a pulse signal every certain period of time.
[0058] Exemplarily, the trigger selection module 100 only includes the trigger signal output by the functional circuit / function module that does not support the SENT protocol. At this time, the input signal received by the mode selection module 300 can also be set to also include the functional circuit / function module in the electronic control unit that supports the SENT protocol, so as to complement the trigger signal output by the functional circuit / function module in the electronic control unit that does not support the SENT protocol and received by the trigger selection module 100, thereby expanding the triggering method of the pulse signal.
[0059] In some embodiments, the mode selection module 300 can also only receive the trigger signal output by the trigger selection module 100. At this time, the mode configuration information can be set to select the trigger signal and perform delay / timing / deformation and other processing on the trigger signal, and then output it to the pulse generation module 200 to drive the pulse generation module 200 to generate a pulse signal.
[0060] The sensor data transmission circuit provided in the embodiment of the present application receives more input signals through the mode selection module 300 to drive the pulse generation module 200 to generate a pulse signal, and can also process the input signal through the mode selection module 300 before outputting it, thereby further improving the triggering method of the pulse generation module to generate the pulse signal and improving the communication efficiency between the sensor and the electronic control unit.
[0061] In some embodiments, Figure 4 Another structural schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 4 As shown, in the sensor data transmission circuit provided in the embodiment of the present application, the mode selection module 300 at least includes:
[0062] The selection unit 310 is configured to receive at least one of the input signals, and select one of the input signals according to the mode configuration information to output to the pulse generation module 200. Optionally, the input signal received by the selection unit 310 at least includes a trigger signal output by the trigger selection unit 310.
[0063] The register unit 320 is used to configure the mode configuration information to select one of the input signals received by the selection unit 310 and output it to the pulse generation module 200. Optionally, the user can set the value of the register unit 320 through software to change the mode configuration information.
[0064] It can be understood that in the embodiments of the present application, the functional circuit that can receive at least one input signal and select one of the input signals for output is not limited to the circuit composed of a selection unit and a register unit, that is, the existence of the mode selection module 300 is not limited to the selection unit 310 and the second register unit 320 described in the above embodiments.
[0065] In some embodiments, when the mode selection module 300 is also used to process the input signal according to the mode configuration information, the mode selection module 300 may also include multiple processing circuits such as delay / timing / level conversion / waveform conversion. The multiple processing circuits can be arranged to be connected to the output end of the selection unit 310, receive the mode configuration information and the signal output by the selection unit 310, and match the corresponding processing circuit according to the mode configuration information to process the signal output by the selection unit 310.
[0066] In some embodiments, Figure 5 Another structural schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 5 As shown, the sensor data transmission circuit provided in the embodiment of the present application further includes a mode selection module 400 .
[0067] The mode selection module 400 is used to directly output or delay the trigger signal output by the trigger selection module to the pulse generation module according to the mode configuration information. Optionally, the mode configuration information is configuration information set by the user, which is used for the mode selection module 400 to select a processing method to process and output the trigger signal output by the trigger selection module, and the processing methods included in the mode configuration information include at least two types: delay and direct output.
[0068] It is understandable that the embodiments of the present application do not limit the processing methods contained in the mode configuration information. For example, the processing methods of the mode configuration information can also include various forms of processing methods such as timing processing, level conversion processing, waveform conversion processing, etc. of the trigger signal.
[0069] It can be understood that the purpose of the mode selection module 400 is to expand the triggering method of the pulse generating module 200 to generate a pulse signal, and the mode selection module 400 that selects a processing method for the trigger signal and then processes it and outputs it can be implemented in a variety of ways. The embodiment of the present application does not limit the structure of the mode selection module 400. For example, the mode selection module 400 may include multiple processing circuits, a selection circuit and a register. The multiple processing circuits receive the trigger signal, perform different processing on the trigger signal (such as direct output / delay processing, etc.) and output it to the selection circuit. The selection circuit selects a signal according to the mode configuration information configured in the register and outputs it to the pulse generating module 200.
[0070] The sensor data transmission circuit provided in the embodiment of the present application sets a trigger selection module 100 so that the circuit / module in the electronic control unit that does not support the SENT protocol can drive the pulse generation module 200 to generate a pulse signal, and sets a mode selection module 400 to further configure the generation mode of the pulse signal generated by the pulse generation module 200, thereby further improving the triggering method of the pulse generation module to generate the pulse signal and improving the communication efficiency between the sensor and the electronic control unit.
[0071] In some embodiments, Figure 6 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 6 As shown, in the sensor data transmission circuit provided in the embodiment of the present application, the pulse generating module 200 includes:
[0072] The second register unit 210 is used to configure the preset pulse, that is, to configure the pulse width of the pulse signal. Optionally, in the embodiment of the present application, the user configures the pulse width of the pulse signal generated by the pulse generating unit 220 through the second register unit 210 according to the required sensor data, so that the pulse width belongs to the pulse width range of the required sensor.
[0073] The pulse generating unit 220 is used to receive the trigger signal output by the trigger selecting module to generate a pulse signal with a preset pulse width and output it to the sensor module, so as to match the corresponding sensor in the sensor module and the electronic control unit for data transmission.
[0074] It should be clear that the sensor data transmission circuit provided in the embodiment of the present application does not limit the specific structure of the pulse generation unit 220. In fact, there are many circuits / devices that can generate electronic pulses, such as one or more combination circuits of timers, oscillators, triggers, logic circuits, pulse generators and other devices. The sensor data transmission circuit provided in the embodiment of the present application can select any circuit / device that can configure the pulse width and generate a pulse signal as the pulse generation unit 220.
[0075] In some embodiments, Figure 7 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 7 As shown, the sensor data transmission circuit also includes:
[0076] The transmission selection module 500 is connected to each sensor in the pulse generation module and the sensor module respectively, and is used to receive the pulse signal output by the pulse generation module 200, output the pulse signal to the sensor module, and output the data of the corresponding sensor to the electronic control unit. The transmission selection module 500 can realize data transmission between multiple sensors and the electronic control unit. The transmission selection module 500 will send the pulse signal generated by the pulse generation module 200 to all sensors, but only the sensor corresponding to the pulse width matching the pulse signal can receive the pulse signal and respond, and transmit data to the electronic control unit.
[0077] In some embodiments, Figure 8 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Figure 8 As shown, in the sensor data transmission circuit provided in the embodiment of the present application, the transmission selection module 500 includes:
[0078] The second selection unit 520 is respectively connected to the pulse generation module 200 and each sensor in the sensor module, and is used to receive the pulse signal output by the pulse generation module, and output the pulse signal to the sensor corresponding to the pulse signal according to the second selection signal.
[0079] The third selection unit 530 is connected to the pulse generation module 200 and each sensor in the sensor module respectively, and is used to transmit the data of the sensor corresponding to the pulse signal to the electronic control unit according to the second selection signal.
[0080] It should be clear that the sensor data transmission circuit provided in the embodiment of the present application does not limit the detailed structure of the second selection unit 520 and the third selection unit 530. The second selection unit 520 and the third selection unit 530 can be set as a multiplexer or any selection circuit with the same function.
[0081] It can be understood that in the embodiments of the present application, the functional circuit that can receive the pulse signal, output the pulse signal to the sensor module, and select the sensor data output by the sensor corresponding to the pulse signal from the sensor module for output is not limited to the circuit composed of two selection units. That is to say, the existence of the transmission selection module 500 is not limited to the second selection unit 520 and the third selection unit 530 described in the above embodiments.
[0082] In some embodiments, Fig. 9 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Fig. 9 As shown, the transmission selection module 500 further includes a third register unit 540 .
[0083] The third register unit 540 is connected to the selection terminals of the second selection unit 520 and the third selection unit 530 respectively, and is used to configure the second selection signal.
[0084] In some embodiments, the third register unit 540 may further configure a selection signal for the second selection unit 520 and the third selection unit, respectively.
[0085] In some embodiments, the selection signals of the second selection unit 520 and the third selection unit 530 may also be configured by setting two register units.
[0086] In some embodiments, Fig.10 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Fig.10 As shown, the transmission selection module 500 also includes a fourth register unit 550, which is used to configure the hardware linkage enable switch 560 of the second selection unit and the third selection unit. When the hardware linkage enable switch 560 is turned on, the second selection signal is invalid, and the second selection unit 520 outputs the pulse signal output by the pulse generation module 200 to the matching corresponding sensor according to the preset pulse width; the third selection unit 530 transmits the sensor data output by the matching corresponding sensor to the electronic control unit according to the preset pulse width. Optionally, the pulse signal produced by the pulse generation module 200 is also connected to the hardware linkage enable switch 560, so as to be output to the selection end of the second selection unit 520 and the third selection unit 530 when the hardware linkage enable switch 560 is turned on.
[0087] In some embodiments, Figure 1 As shown, in the sensor data sensing circuit provided by the embodiment of the present application, each sensor in the sensor module receives a pulse signal through a communication interface. Or, Fig.11 Another schematic diagram of the sensor data transmission circuit provided in the embodiment of the present application is shown. Fig.11 As shown, multiple sensors in the sensor module are connected to the transmission selection module through a communication interface. Optionally, when the voltages of multiple sensors in the sensor module are the same (for example, of each sensor), the embodiment of the present application can enable multiple sensors to communicate with the electronic control unit through the same communication interface, or multiple communication interfaces can be set for the electronic control unit so that each sensor uses a communication interface to communicate with the electronic control unit. When the voltages of multiple sensors in the sensor module are different, sensors with different voltages should use different communication interfaces to communicate with the electronic control unit to adapt to sensors with different voltages.
[0088] The sensor data transmission circuit provided in the embodiment of the present application, facing the application scenario of data transmission between sensors and electronic control units based on the SPC protocol, receives different trigger signals through the trigger selection module to drive the pulse generation module to generate a pulse signal, and the pulse generation module configures the pulse width of the pulse signal and outputs the pulse signal to the sensor module, so that the sensor in the sensor module sends data after receiving the pulse signal. Because the pulse width of the pulse signal can be configured, the embodiment of the present application can configure the pulse width range of the pulse signal supported by each sensor in the sensor module, so that the pulse signal output by the pulse generation module will only be received by one sensor in the sensor module, that is, only one sensor in the sensor module will send data. The sensor data transmission circuit provided in the embodiment of the present application supports multiple trigger signals to drive the pulse signal, expands the trigger source of the pulse signal, selects one of the multiple sensors to send data through the pulse width of the pulse signal, supports one pulse generation module to communicate with multiple sensors, improves communication efficiency, and reduces circuit cost.
[0089] The embodiment of the present application also provides a chip, which includes the above-mentioned sensor data transmission circuit. A chip (Integrated Circuit, IC) is also called a chip, and the chip can be, but is not limited to, a SOC (System on Chip) chip or a SIP (system in package) chip.
[0090] An embodiment of the present application also provides an electronic device, which includes a device body and a chip as described above disposed in the device body.
[0091] The above are only preferred embodiments of the present application, and are not intended to limit the present application in any form. Although the present application has been disclosed as above with preferred embodiments, it is not intended to limit the present application. Any technical personnel in the field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present application. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.
Claims
1. A sensor data transmission circuit, characterized in that: include: A trigger selection module is used to receive multiple different trigger signals and select one of the trigger signals for output; The pulse generating module is used to receive the trigger signal output by the trigger selecting module to generate a pulse signal with a preset pulse width and output it to the sensor module, so that the sensor module matches the corresponding sensor and the electronic control unit according to the pulse signal with the preset pulse width to perform data transmission.
2. The sensor data transmission circuit according to claim 1, characterized in that: The trigger selection module comprises: A first selection unit, configured to receive a plurality of different trigger signals and select one of the trigger signals for output according to a first selection signal; The first register unit is used to configure the first selection signal.
3. The sensor data transmission circuit according to claim 1, characterized in that: Also includes: A mode selection module, used for receiving at least one input signal, and selecting one of the input signals according to the mode configuration information to output to the pulse generation module; The at least one input signal received by the mode selection module at least includes the trigger signal output by the trigger selection module.
4. The sensor data transmission circuit according to claim 1, characterized in that: Also includes: The mode selection module is used to directly output or delay the trigger signal output by the trigger selection module to the pulse generation module according to the mode configuration information.
5. The sensor data transmission circuit according to claim 1, characterized in that: The pulse generating module comprises: A second register unit, used for configuring the preset pulse width; The pulse generating unit is used to receive the trigger signal output by the trigger selecting module to generate a pulse signal with the preset pulse width and output it to the sensor module.
6. The sensor data transmission circuit according to claim 1, characterized in that: Also includes: A transmission selection module is connected to the pulse generation module and each sensor in the sensor module respectively, and is used to receive the pulse signal output by the pulse generation module, output the pulse signal to the sensor module, and output the data of the matching corresponding sensor to the electronic control unit.
7. The sensor data transmission circuit according to claim 6, characterized in that: The transmission selection module comprises: A second selection unit, configured to output the pulse signal output by the pulse generating module to the matching corresponding sensor according to a second selection signal; The third selection unit is used to transmit the data of the matching corresponding sensor to the electronic control unit according to the second selection signal.
8. The sensor data transmission circuit according to claim 7, characterized in that: The transmission selection module further includes a third register unit, and the third register is used to configure the second selection signal.
9. The sensor data transmission circuit according to claim 8, characterized in that: The transmission selection module further includes a fourth register unit, and the fourth register unit is used to configure a hardware linkage enable switch of the second selection unit and the third selection unit; Wherein, when the hardware linkage enabling switch is turned on, the second selection unit is used to output the pulse signal output by the pulse generating module to the sensor module according to the preset pulse width; The third selection unit is used to transmit the sensor data matching the corresponding sensor output to the electronic control unit according to the preset pulse width.
10. The sensor data transmission circuit according to claim 1, characterized in that: The multiple sensors in the sensor module are connected to the electronic control unit via a communication interface, or each sensor in the sensor module is connected to the electronic control unit via a communication interface.
11. A chip, characterized in that: The sensor data transmission circuit comprises any one of claims 1 to 10.
12. An electronic device, characterized in that: The invention comprises a device body and the chip as claimed in claim 11 arranged in the device body.