A control method, device, chip and vehicle for multiple analog-to-digital converters

By setting up multiple analog-to-digital converters in the vehicle MCU, parallel and serial mode working modes solve the problem of resource waste and cost limitation caused by ADC working alone, and achieve high reliability and high sampling rate collaborative work.

CN118381506BActive Publication Date: 2024-09-17BEIJING SEMIDRIVE TECHNOLOGY LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410834406.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

The ADC in the automotive MCU works alone and cannot achieve high reliability and high sampling rate, resulting in resource waste and cost constraints.

Method used

By setting multiple analog-to-digital converters in the chip, the working modes of parallel mode and serial mode are controlled. The analog-to-digital converters receive input signals based on the same or different sampling clocks, generate output signals, and pass the arbiter and alignment controller. Improve signal reliability and sampling rate.

Benefits of technology

It realizes the collaborative work of multiple analog-to-digital converters, improves the high reliability and high sampling rate of the chip, optimizes resource utilization, and meets the needs of high reliability and high sampling rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118381506B
    Figure CN118381506B
Patent Text Reader

Abstract

The present application provides a control method, device, chip and vehicle for multiple analog-to-digital converters. The control method for multiple analog-to-digital converters includes: obtaining a mode control instruction for adjusting the working mode of the analog-to-digital converter; when the mode control instruction instructs the analog-to-digital converter to enter a parallel mode, controlling the analog-to-digital converter to receive the same first input signal based on the same sampling clock, and the analog-to-digital converter generates a first output signal based on the first input signal; when the mode control instruction instructs the analog-to-digital converter to enter a serial mode, controlling the analog-to-digital converter to receive the same second input signal in sequence based on different sampling clocks, and the analog-to-digital converter generates a second output signal based on the second input signal. The above method can achieve high reliability of chip operation in parallel mode, and can also achieve high sampling rate of chip operation in serial mode, so as to achieve the purpose that multiple analog-to-digital converters in the chip can work together.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of chip technology, and in particular to a control method, device, chip and vehicle for a multi-analog-to-digital converter. Background Art

[0002] At present, ADC (Analog to Digital Converter) plays an important role in vehicle-mounted MCU (Microcontroller Unit), such as voltage sampling, current sampling, and temperature sampling. A vehicle-mounted MCU generally comes with at least 2 ADCs, but these ADCs often work alone. In real usage scenarios, users may only use a small number of ADCs, such as using several channels in ADC0, while ADC1 and ADC2 are not used, which results in a waste of resources. In addition, for scenarios requiring high reliability and high sampling rate ADCs, it is generally difficult to meet scenario requirements due to cost and versatility, making it impossible for MCUs with at least 2 ADCs to achieve high reliability and high sampling rate. Summary of the invention

[0003] In response to the above-mentioned technical problems existing in the prior art, the present application provides a control method, device, chip and vehicle for an analog-to-digital converter, which can solve the problem that the ADC in the vehicle-mounted MCU works alone and cannot work together to achieve high reliability and high sampling rate.

[0004] In a first aspect, an embodiment of the present application provides a control method for a multi-analog-to-digital converter, which is applied to a chip, wherein a plurality of analog-to-digital converters are provided in the chip, and the method comprises:

[0005] Acquire a mode control instruction for adjusting the working mode of the analog-to-digital converter, wherein the working mode of the analog-to-digital converter includes at least a parallel mode and a serial mode;

[0006] In the case where the mode control instruction instructs the analog-to-digital converter to enter the parallel mode, controlling the analog-to-digital converter to receive the same first input signal based on the same sampling clock, the analog-to-digital converter to generate a first output signal based on the first input signal, and sending the first output signal to the receiving buffer of the chip;

[0007] When the mode control instruction instructs the analog-to-digital converter to enter the serial mode, the analog-to-digital converter is controlled to receive the same second input signal in sequence based on different sampling clocks, the analog-to-digital converter generates a second output signal based on the second input signal, and sends the second output signal to the receiving buffer, so that the alignment controller of the chip obtains the second output signal from the receiving buffer.

[0008] In some embodiments, the parallel mode has multiple sub-modes, and the method further includes:

[0009] In the case where the mode control instruction instructs the analog-to-digital converter to enter a parallel mode, determining the number of the analog-to-digital converters;

[0010] The sub-mode that the analog-to-digital converter is to enter is determined based on the number of the analog-to-digital converters.

[0011] In some embodiments, determining the sub-mode to be entered by the analog-to-digital converter based on the number of the analog-to-digital converters specifically includes:

[0012] When the number of the analog-to-digital converters is equal to a first threshold, determining that the sub-mode to be entered by the analog-to-digital converter is a first sub-mode;

[0013] When there is a difference between the first output signals respectively generated by the analog-to-digital converters in the first sub-mode, an interrupt signal is generated, and the receiving buffer holds the first output signal;

[0014] When the number of the analog-to-digital converters is a second threshold, determining that the sub-mode to be entered by the analog-to-digital converter is a second sub-mode, and the second threshold is greater than the first threshold;

[0015] When one of the plurality of first output signals respectively generated by the analog-to-digital converter in the second sub-mode is different from another first output signal, the receiving buffer outputs the another first output signal.

[0016] In some embodiments, determining the sub-mode to be entered by the analog-to-digital converter based on the number of the analog-to-digital converters specifically further includes:

[0017] When the number of the analog-to-digital converters is a third threshold, the plurality of analog-to-digital converters whose number meets the first threshold are determined as a first group, and / or the plurality of analog-to-digital converters whose number meets the second threshold are determined as a second group; wherein the third threshold is greater than the second threshold;

[0018] It is determined that the plurality of analog-to-digital converters in the first group enter a first sub-mode respectively, and that the plurality of analog-to-digital converters in the second group enter a second sub-mode respectively.

[0019] In some embodiments, the method further comprises:

[0020] The analog-to-digital converter is controlled by a clock controller of the chip to receive the first input signal based on the same sampling clock.

[0021] In some embodiments, the method further comprises:

[0022] sending the first output signal to an arbitrator of the chip via the receiving buffer;

[0023] The arbitrator determines an arbitration result based on the first output signals respectively generated by the analog-to-digital converters, and sends the arbitration result to a mode controller of the chip.

[0024] In some embodiments, before the analog-to-digital converter sequentially receives the same second input signal based on different sampling clocks, the method further includes:

[0025] Sending a control instruction for entering a serial mode to the alignment controller and the clock controller of the chip via the mode controller of the chip;

[0026] The clock controller controls the calibration signal generator of the chip to send a third input signal to the analog-to-digital converter based on the control instruction;

[0027] sending a third output signal generated by the analog-to-digital converter based on the third input signal to the alignment controller;

[0028] The calibration result generated by the alignment controller based on the third output signal is sent to the clock controller, so as to adjust the phase of the sampling clock of the analog-to-digital converter via the clock controller until the phase of the sampling clock of each analog-to-digital converter appears evenly distributed on the sampling result.

[0029] In a second aspect, an embodiment of the present application provides a control device for a multi-analog-to-digital converter, which is applied to a chip, wherein a plurality of analog-to-digital converters are provided in the chip, and the device comprises:

[0030] an acquisition module configured to acquire a mode control instruction for adjusting an operating mode of the analog-to-digital converter, wherein the operating mode of the analog-to-digital converter includes at least a parallel mode and a serial mode;

[0031] a processing module configured to, when the mode control instruction instructs the analog-to-digital converter to enter a parallel mode, control the analog-to-digital converter to receive the same first input signal based on the same sampling clock, the analog-to-digital converter to generate a first output signal based on the first input signal, and send the first output signal to a receiving buffer of the chip;

[0032] When the mode control instruction instructs the analog-to-digital converter to enter the serial mode, the analog-to-digital converter is controlled to receive the same second input signal in sequence based on different sampling clocks, the analog-to-digital converter generates a second output signal based on the second input signal, and sends the second output signal to the receiving buffer, so that the alignment controller of the chip obtains the second output signal from the receiving buffer.

[0033] In a third aspect, an embodiment of the present application provides a chip, comprising a control device for the multi-analog-to-digital converter described above.

[0034] In a fourth aspect, an embodiment of the present application provides a vehicle, comprising the above-mentioned chip.

[0035] Compared with the prior art, the beneficial effect of the embodiments of the present application lies in that: by setting the working modes of multiple analog-to-digital converters in the chip to include at least a parallel mode and a serial mode, the present application can control the analog-to-digital converters in the parallel mode to receive the same first input signal based on the same sampling clock, and increase the high reliability of the chip operation based on the various first output signals generated by the analog-to-digital converters. It can also control the analog-to-digital converters in the serial mode to receive the same second input signal in sequence based on different sampling clocks, and increase the high sampling rate of the chip operation based on the various second output signals generated by the analog-to-digital converters, thereby achieving the purpose of multiple analog-to-digital converters in the chip working in coordination. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a first flow chart of the control method of the multi-analog-to-digital converter according to an embodiment of the present application.

[0037] Figure 2 This is an application scenario diagram of the control method of a multi-analog-to-digital converter according to an embodiment of the present application.

[0038] Figure 3 This is a second flow chart of the control method of the multi-analog-to-digital converter according to an embodiment of the present application.

[0039] Figure 4 This is a third flow chart of the control method of the multi-analog-to-digital converter according to an embodiment of the present application.

[0040] Figure 5 This is a fourth flow chart of the control method of the multi-analog-to-digital converter according to an embodiment of the present application.

[0041] Figure 6 This is a structural block diagram of a control device for a multi-analog-to-digital converter according to an embodiment of the present application.

[0042] The components indicated by the reference numerals in the figures are:

[0043] 1. Analog-to-digital converter; 2. Receiving buffer; 3. Alignment controller; 4. Clock controller; 5. Arbitrator; 6. Mode controller; 7. Calibration signal generator; 8. Multiplexer; 9. Soc; 10. First interface; 11. Second interface; 100. Control device of multi-analog-to-digital converter; 101. Acquisition module; 102. Processing module. DETAILED DESCRIPTION

[0044] Various aspects and features of the present application are described herein with reference to the accompanying drawings.

[0045] It should be understood that various modifications may be made to the embodiments of the present application. Therefore, the above description should not be considered as limiting, but only as an example of the embodiments. Other modifications within the scope and spirit of the present application will occur to those skilled in the art.

[0046] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.

[0047] These and other characteristics of the present application will become apparent from the following description of a preferred form of embodiment given as a non-limiting example with reference to the accompanying drawings.

[0048] It should also be understood that although the present application has been described with reference to some specific examples, many other equivalent forms that can be implemented by those skilled in the art should be considered to be within the scope of protection defined by the present application.

[0049] The above and other aspects, features and advantages of the present application will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.

[0050] Specific embodiments of the present application are described hereinafter with reference to the accompanying drawings; however, it should be understood that the embodiments applied for are merely examples of the present application, which may be implemented in a variety of ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that obscure the present application. Therefore, the specific structural and functional details applied for herein are not intended to be limiting, but merely serve as a basis and representative basis for the claims to teach those skilled in the art to use the present application in a variety of ways with substantially any suitable detailed structure.

[0051] This specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," all of which may refer to one or more of the same or different embodiments according to the present application.

[0052] The embodiment of the present application provides a control method for a multi-analog-to-digital converter, which is applied to a chip, wherein the chip is provided with a plurality of analog-to-digital converters 1. The above chip may be an MCU, or other chips including a plurality of analog-to-digital converters 1, which is not specifically limited in the present application, and is specifically described below by taking the chip as an in-vehicle MCU as an example.

[0053] like Figure 1 As shown, the method includes steps S101 to S103.

[0054] Step S101: obtaining a mode control instruction for adjusting the working mode of the analog-to-digital converter 1 , wherein the working mode of the analog-to-digital converter 1 at least includes a parallel mode and a serial mode.

[0055] Optionally, the above-mentioned mode control instruction can be sent to the mode controller 6 of the MCU via other chips communicating with the MCU, and the mode controller 6 sends the working mode to be entered to the analog-to-digital converter 1. For example, Figure 2 As shown, mode control instructions can be sent to the MCU via Soc9 (system on chip).

[0056] Optionally, the above working mode may also include an independent mode, that is, each analog-to-digital converter 1 works independently, such as different analog-to-digital converters 1 independently perform voltage sampling, current sampling, temperature sampling and the like.

[0057] Step S102: When the mode control instruction instructs the analog-to-digital converter 1 to enter the parallel mode, the analog-to-digital converter 1 is controlled to receive the same first input signal based on the same sampling clock, the analog-to-digital converter 1 generates a first output signal based on the first input signal, and sends the first output signal to the receiving buffer 2 of the chip.

[0058] Optionally, in the case of parallel mode, the same first input signal can be distributed to multiple analog-to-digital converters 1 through the multiplexer 8 of the MCU, so as to achieve the purpose of using the same clock to collect the same input signal for multiple analog-to-digital converters 1. The multiplexer 8 can receive the first input signal sent from the outside via the first interface 10, and send the first input signal to the corresponding analog-to-digital converter 1.

[0059] Optionally, the mode controller 6 of the MCU can send a control instruction to the clock controller 4 of the MCU, so that the clock controller 4 can send sampling clocks to multiple analog-to-digital converters 1 respectively according to the sampling frequency, so that the analog-to-digital converters 1 can receive the same first input signal based on the same sampling clock.

[0060] Optionally, after multiple analog-to-digital converters 1 generate first output signals based on the first input signal, the first output signals generated by different analog-to-digital converters 1 can be compared to improve the accuracy of the first output signals, thereby achieving the purpose of increasing the reliability of the chip.

[0061] Optionally, after receiving the first output signal, the receiving buffer 2 may store the first output signal so that an upper layer module of the receiving buffer 2 can read the first output signal through the receiving buffer 2. For example, Figure 2 As shown, the upper layer module may at least include an arbitrator 5, which may read the first output signal stored in the receiving buffer 2, and thereby determine the correct first output signal to output by judging the first output signal.

[0062] The correct first output signal determined above can be sent to the mode controller 6 through the arbitrator 5, and then sent outwardly through the mode controller 6, such as to the external Soc 9.

[0063] Step S103: When the mode control instruction instructs the analog-to-digital converter 1 to enter the serial mode, the analog-to-digital converter 1 is controlled to receive the same second input signal in sequence based on different sampling clocks, and the analog-to-digital converter 1 generates a second output signal based on the second input signal, and sends the second output signal to the receiving buffer 2, so that the alignment controller 3 of the chip obtains the second output signal from the receiving buffer 2.

[0064] Optionally, in the serial mode, the same second input signal can be sent to multiple analog-to-digital converters 1 in turn through the multiplexer 8 of the MCU, so as to achieve the purpose of enabling multiple analog-to-digital converters 1 to collect the same input signal based on different sampling clocks, thereby realizing the superposition of the sampling rates of the analog-to-digital converters 1.

[0065] Optionally, after receiving the mode control instruction to enter the serial mode, the mode controller 6 will send a control instruction to the alignment controller 3 and the clock controller 4, so that the alignment controller 3 and the clock controller 4 can respectively control multiple analog-to-digital converters 1 based on the control instruction.

[0066] Optionally, after receiving the plurality of second output signals, the receiving buffer 2 may store the plurality of second output signals respectively, so that the upper layer module of the receiving buffer 2 may read the second output signals through the receiving buffer 2. For example, Figure 2 As shown, the above-mentioned upper module may include at least an alignment controller 3, which can read the second output signal stored in the receiving buffer 2, and send the second output signal to the mode controller 6, and then send it outward via the mode controller 6, such as to the external Soc9.

[0067] The present application sets the working modes of multiple analog-to-digital converters 1 in the chip to at least include a parallel mode and a serial mode, so that in the parallel mode, the analog-to-digital converters 1 are controlled to receive the same first input signal based on the same sampling clock, and the high reliability of the chip operation is increased based on the first output signals generated by the analog-to-digital converters 1. In the serial mode, the analog-to-digital converters 1 are controlled to receive the same second input signal in sequence based on different sampling clocks, and the high sampling rate of the chip operation is increased based on the second output signals generated by the analog-to-digital converters 1, thereby achieving the purpose of enabling the multiple analog-to-digital converters 1 in the chip to work in coordination.

[0068] In some embodiments, the parallel mode has multiple sub-modes. Figure 3 As shown, the method further includes step S201 to step S202.

[0069] Step S201: when the mode control instruction instructs the analog-to-digital converter 1 to enter the parallel mode, determining the number of the analog-to-digital converters 1.

[0070] Step S202: determining the sub-mode that the analog-to-digital converter 1 is to enter based on the number of the analog-to-digital converters 1 .

[0071] In this way, by dividing the parallel mode into multiple sub-modes, the above method can accurately determine the sub-mode to be entered in scenarios with different numbers of analog-to-digital converters 1, so that the sub-mode entered in the parallel mode can adapt to the number of analog-to-digital converters 1 on the chip.

[0072] Optionally, the sub-mode to be entered can be adjusted according to the change in the number of analog-to-digital converters 1. For example, the parallel mode can include a first sub-mode and a second sub-mode, and as the number of analog-to-digital converters 1 increases, the first sub-mode can be adjusted to the second sub-mode.

[0073] Optionally, the sub-mode to be entered may be determined according to the odd or even number of analog-to-digital converters 1. For example, when the number of analog-to-digital converters 1 is an even number, the first sub-mode may be used; when the number of analog-to-digital converters 1 is an odd number, the second sub-mode may be used.

[0074] In some embodiments, Figure 4 As shown, the step S202 of determining the sub-mode to be entered by the analog-to-digital converter 1 based on the number of the analog-to-digital converters 1 specifically includes steps S301 to S304.

[0075] Step S301: when the number of analog-to-digital converters 1 is equal to a first threshold, determining that the sub-mode to be entered by the analog-to-digital converter 1 is the first sub-mode.

[0076] Step S302: When there is a difference between the first output signals respectively generated by the analog-to-digital converter 1 in the first sub-mode, an interrupt signal is generated, and the receiving buffer 2 maintains the first output signal.

[0077] Step S303: when the number of the analog-to-digital converters 1 is equal to a second threshold, determining that the sub-mode to be entered by the analog-to-digital converter 1 is the second sub-mode, and the second threshold is greater than the first threshold.

[0078] Step S304: when one of the plurality of first output signals generated by the analog-to-digital converter 1 in the second sub-mode is different from another first output signal, the receiving buffer 2 outputs the other first output signal.

[0079] In this way, the sub-mode that the analog-to-digital converter 1 is to enter can be accurately determined according to the threshold value of the specific number of analog-to-digital converters 1, thereby achieving a more detailed division of the parallel mode that the analog-to-digital converter 1 on the chip is to enter, and further improving the reliability of the first output signal output by the analog-to-digital converter 1.

[0080] The first threshold value can be understood as 2. At this time, the first sub-mode can be specifically a lockstep mode. In the lockstep mode, the two analog-to-digital converters 1 receive the same first input signal, and the reliability of the two analog-to-digital converters 1 can be determined by comparing the first output signals respectively output by the two analog-to-digital converters 1. Among them, the two analog-to-digital converters 1 can be staggered or synchronously sampled, and this application does not make specific limitations on this.

[0081] Specifically, when the first output signals of the two analog-to-digital converters 1 are the same, it indicates that the two analog-to-digital converters 1 are reliable; when the first output signals of the two analog-to-digital converters 1 are different, that is, when there is a difference between the first output signals, it indicates that the two analog-to-digital converters 1 are unreliable. At this time, the receiving buffer 2 can maintain the above two first output signals, and the mode controller 6 can report an interrupt signal to prompt the upper-level module of the problem of the unreliability of the two analog-to-digital converters 1.

[0082] The second threshold value can be understood as 3, and in this case, the second mode can be specifically a three-mode redundancy comparison mode. In the three-mode redundancy comparison mode, the three analog-to-digital converters 1 receive the same first input signal, and by comparing the first output signals respectively output by the three analog-to-digital converters 1, it can be determined whether there is a reliable analog-to-digital converter 1. In this mode, damage to one analog-to-digital converter 1 can be allowed, so that the correct first output signals provided by the other two analog-to-digital converters 1 can still be output.

[0083] Specifically, when the first output signals generated by two of the three analog-to-digital converters 1 are the same, if the first output signal generated by another analog-to-digital converter 1 is a random error, the two identical first output signals generated can be output as a result. The above-mentioned random error can be understood as the first output signal generated by the analog-to-digital converter 1 does not always have a problem, and the output of the erroneous first output signal is an occasional state.

[0084] For the triple-mode redundancy comparison mode, if the first output signal generated by one of the three analog-to-digital converters 1 is always in an error state, it can be determined that the analog-to-digital converter 1 is damaged. At this time, the triple-mode redundancy comparison mode can be adjusted to the lock-step mode, that is, the other two analog-to-digital converters 1 can be switched from the first sub-mode to the second sub-mode to continue reporting the first output signals generated by the two analog-to-digital converters 1. When reporting the first output signal, the fault signal of the damaged analog-to-digital converter 1 can be uploaded synchronously.

[0085] In some embodiments, the step S202 of determining the sub-mode to be entered by the analog-to-digital converter 1 based on the number of the analog-to-digital converters 1 specifically includes:

[0086] When the number of the analog-to-digital converters 1 is a third threshold, the multiple analog-to-digital converters 1 whose number meets the first threshold are determined as a first group, and / or the multiple analog-to-digital converters 1 whose number meets the second threshold are determined as a second group; wherein the third threshold is greater than the second threshold;

[0087] It is determined that the plurality of analog-to-digital converters 1 in the first group enter a first sub-mode respectively, and that the plurality of analog-to-digital converters 1 in the second group enter a second sub-mode respectively.

[0088] In this way, when there are a large number of analog-to-digital converters 1, the working mode of the analog-to-digital converter 1 can be controlled by dividing the multiple analog-to-digital converters 1 into different groups, thereby achieving more refined control over the working mode of the analog-to-digital converter 1.

[0089] When the first threshold is 2, every two analog-to-digital converters 1 can be determined as a first group, and of course, the number of first groups can be multiple. For example, when the number of analog-to-digital converters 1 is 4, that is, when the third threshold is 4, it can be determined that two first groups of analog-to-digital converters 1 enter the first sub-mode, and each first group includes two analog-to-digital converters 1.

[0090] When the second threshold is 3, every three analog-to-digital converters 1 can be determined as a second group, and of course, the number of second groups can be multiple. For example, when the number of analog-to-digital converters 1 is 6, that is, when the third threshold is 6, it can be determined that two second groups of analog-to-digital converters 1 enter the second sub-mode, and each second group includes three analog-to-digital converters 1. In some other embodiments, the six analog-to-digital converters 1 can also be divided into three first groups of analog-to-digital converters 1, and the three first groups of analog-to-digital converters 1 enter the first sub-mode respectively.

[0091] When the third threshold is an odd number, signal acquisition can be completed by combining the first group of analog-to-digital converters 1 and the second group of analog-to-digital converters 1. For example, when the number of analog-to-digital converters 1 is 5, a first group of analog-to-digital converters 1 and a second group of analog-to-digital converters 1 can be determined.

[0092] In some embodiments, the method further includes: controlling the analog-to-digital converter 1 to receive the first input signal based on the same sampling clock via a clock controller 4 of the chip.

[0093] In this way, the sampling clock can be controlled by adding a clock controller 4 in the chip, thereby realizing the input of the analog-to-digital converter 1 in the parallel mode.

[0094] In some embodiments, the method further comprises:

[0095] sending the first output signal to the arbiter 5 of the chip via the receiving buffer 2;

[0096] The arbitrator 5 determines an arbitration result based on the first output signals respectively generated by the analog-to-digital converters 1 , and sends the arbitration result to the mode controller 6 of the chip.

[0097] In this way, the arbitrator 5 can arbitrate whether the first output signals generated by multiple analog-to-digital converters 1 have errors, and after generating the arbitration result, the result can be sent to the mode controller 6 to achieve the purpose of improving the accuracy of the result of the first output signal.

[0098] The arbitration result determined by the arbitrator 5 may include at least a normal output result and an abnormal interruption result. After judging multiple first output signals, if it is indicated that the first output result can be output normally, the normal output result is sent to the mode controller 6, that is, the first output signal is sent to the mode controller 6; after judging multiple first output signals, if it is indicated that the first output result cannot be output normally, the abnormal interruption signal is sent to the mode controller 6.

[0099] In some embodiments, Figure 5As shown, before the analog-to-digital converter 1 sequentially receives the same second input signal based on different sampling clocks in step S103, the method further includes steps S401 to S404.

[0100] Step S401: sending a control instruction for entering a serial mode to the alignment controller 3 and the clock controller 4 of the chip via the mode controller 6 of the chip.

[0101] Step S402 : the clock controller 4 controls the calibration signal generator 7 of the chip to send a third input signal to the analog-to-digital converter 1 based on the control instruction.

[0102] Step S403: sending the third output signal generated by the analog-to-digital converter 1 based on the third input signal to the alignment controller 3 .

[0103] Step S404: Send the calibration result generated by the alignment controller 3 based on the third output signal to the clock controller 4, so as to adjust the phase of the sampling clock of the analog-to-digital converter 1 via the clock controller 4 until the phase of the sampling clock of each analog-to-digital converter 1 appears to be evenly distributed in the sampling result.

[0104] In this way, after multiple mode controllers 6 enter the serial mode, the phases of the sampling clocks of multiple analog-to-digital converters 1 can be calibrated through clock control, calibration signal generator 7 and alignment controller 3, so that the phases of the sampling clocks of each analog-to-digital converter 1 can be displayed as an even distribution in the sampling results.

[0105] The above steps S401 to S404 can be understood as a calibration process to be performed after the analog-to-digital converter 1 enters the serial mode. After the calibration process is completed, the authenticity of the multiple first output signals obtained in the serial mode can be enhanced while ensuring the increase in the sampling rate.

[0106] The third input signal is different from the second input signal. The second input signal is a signal sent to the analog-to-digital converter 1 in serial mode after calibration is completed, and the third input signal is a signal sent to the analog-to-digital converter 1 in serial mode for the purpose of calibration. The third input signal can be a sine wave signal or a triangular wave signal, which is not specifically limited in this application.

[0107] Optionally, the third output signal can be sent directly to the multiplexer 8 via the calibration signal generator 7, or can be sent to the multiplexer 8 via the calibration signal generator 7 through the second interface 11, so as to calibrate the second interface 11 and achieve the purpose of full-process calibration. The second interface 11 can be understood as an interface corresponding to the calibration signal generator 7.

[0108] The present application also provides a multi-ADC control device 100, which is applied to a chip, wherein the chip is provided with a plurality of ADCs 1. Figure 6 As shown, the device includes an acquisition module 101 and a processing module 102. The acquisition module 101 is configured to acquire a mode control instruction for adjusting the working mode of the analog-to-digital converter 1, and the working mode of the analog-to-digital converter 1 includes at least a parallel mode and a serial mode. The processing module 102 is configured to control the analog-to-digital converter 1 to receive the same first input signal based on the same sampling clock when the mode control instruction instructs the analog-to-digital converter 1 to enter the parallel mode, and the analog-to-digital converter 1 generates a first output signal based on the first input signal, and sends the first output signal to the receiving buffer 2 of the chip; when the mode control instruction instructs the analog-to-digital converter 1 to enter the serial mode, the analog-to-digital converter 1 is controlled to sequentially receive the same second input signal based on different sampling clocks, and the analog-to-digital converter 1 generates a second output signal based on the second input signal, and sends the second output signal to the receiving buffer 2, so that the alignment controller 3 of the chip obtains the second output signal from the receiving buffer 2.

[0109] The present application sets the working modes of multiple analog-to-digital converters 1 in the chip to at least include a parallel mode and a serial mode, so that in the parallel mode, the analog-to-digital converters 1 are controlled to receive the same first input signal based on the same sampling clock, and the high reliability of the chip operation is increased based on the first output signals generated by the analog-to-digital converters 1. In the serial mode, the analog-to-digital converters 1 are controlled to receive the same second input signal in sequence based on different sampling clocks, and the high sampling rate of the chip operation is increased based on the second output signals generated by the analog-to-digital converters 1, thereby achieving the purpose of enabling the multiple analog-to-digital converters 1 in the chip to work in coordination.

[0110] In some embodiments, the parallel mode has multiple sub-modes, and the processing module 102 is further configured to: determine the number of the analog-to-digital converters 1 when the mode control instruction instructs the analog-to-digital converter 1 to enter the parallel mode; and determine the sub-mode that the analog-to-digital converter 1 is to enter based on the number of the analog-to-digital converters 1.

[0111] In some embodiments, the processing module 102 is further configured to: when the number of analog-to-digital converters 1 is a first threshold, determine that the sub-mode to be entered by the analog-to-digital converter 1 is a first sub-mode; generate an interrupt signal when there is a difference between the first output signals respectively generated by the analog-to-digital converters 1 in the first sub-mode, and the receiving buffer 2 maintains the first output signal; when the number of analog-to-digital converters 1 is a second threshold, determine that the sub-mode to be entered by the analog-to-digital converter 1 is a second sub-mode, and the second threshold is greater than the first threshold; when there is a difference between one of the multiple first output signals respectively generated by the analog-to-digital converter 1 in the second sub-mode and another first output signal, the receiving buffer 2 outputs the other first output signal.

[0112] In some embodiments, the processing module 102 is further configured to: when the number of the analog-to-digital converters 1 is a third threshold, determine the multiple analog-to-digital converters 1 whose number meets the first threshold as a first group, and / or determine the multiple analog-to-digital converters 1 whose number meets the second threshold as a second group; wherein the third threshold is greater than the second threshold; determine that the multiple analog-to-digital converters 1 in the first group respectively enter a first sub-mode, and that the multiple analog-to-digital converters 1 in the second group respectively enter a second sub-mode.

[0113] In some embodiments, the apparatus further includes a control module, and the control module is further configured to: control the analog-to-digital converter 1 to receive the first input signal based on the same sampling clock via the clock controller 4 of the chip.

[0114] In some embodiments, the processing module 102 is also configured to: send the first output signal to the arbitrator 5 of the chip via the receiving buffer 2; the arbitrator 5 determines the arbitration result based on the first output signal generated by the analog-to-digital converter 1 respectively, and sends the arbitration result to the mode controller 6 of the chip.

[0115] In some embodiments, the processing module 102 is also configured to: before the analog-to-digital converter 1 receives the same second input signal in sequence based on different sampling clocks, send a control instruction to enter the serial mode to the alignment controller 3 and the clock controller 4 of the chip via the mode controller 6 of the chip; the clock controller 4 controls the calibration signal generator 7 of the chip to send a third input signal to the analog-to-digital converter 1 based on the control instruction; send the third output signal generated by the analog-to-digital converter 1 based on the third input signal to the alignment controller 3; send the calibration result generated by the alignment controller 3 based on the third output signal to the clock controller 4, so as to adjust the phase of the sampling clock of the analog-to-digital converter 1 via the clock controller 4 until the phase of the sampling clock of each analog-to-digital converter 1 appears to be evenly distributed in the sampling result.

[0116] The embodiment of the present application further provides a chip, comprising the control device 100 of the multi-analog-to-digital converter described above.

[0117] The embodiment of the present application also provides a vehicle, including the above-mentioned chip. Optionally, the vehicle in the embodiment of the present application can be an "automobile", "vehicle" and "complete vehicle" or other similar terms including general motor vehicles, such as sedans, SUVs, MPVs, buses, trucks and other cargo or passenger vehicles, watercraft including various ships and boats, and aircraft, etc., including hybrid vehicles, electric vehicles, fuel vehicles, plug-in hybrid vehicles, fuel cell vehicles and other alternative fuel vehicles. Among them, a hybrid vehicle refers to a vehicle with two or more power sources, and an electric vehicle includes a pure electric vehicle, an extended-range electric vehicle, etc., which is not specifically limited in this application.

[0118] An embodiment of the present application further provides a storage medium, wherein the storage medium carries one or more computer programs, and when the one or more computer programs are executed by a processor, the steps of the control method of the multi-analog-to-digital converter as described above are implemented.

[0119] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.

[0120] It should be noted that when the processor is a general-purpose processor, DSP, ASIC, FPGA or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, the memory (storage module) is integrated in the processor.

[0121] It should also be understood that the first, second, third, fourth and various numerical numbers involved in this document are only distinctions made for the convenience of description and are not intended to limit the scope of the present application.

[0122] It should be understood that the term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0123] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0124] In various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0125] Those skilled in the art will appreciate that the various illustrative logical blocks (ILBs) and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0126] In the several embodiments provided in the present application, it should be understood that the disclosed methods, devices and electronic devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as 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 devices or units, which can be electrical, mechanical or other forms.

[0127] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0128] In addition, each functional unit in each embodiment of the present application 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.

[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0130] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A control method for a multi-analog-to-digital converter, characterized in that: Applied to a chip, wherein a plurality of analog-to-digital converters are provided in the chip, the method comprising: Acquire a mode control instruction for adjusting the working mode of the analog-to-digital converter, wherein the working mode of the analog-to-digital converter includes at least a parallel mode and a serial mode; In the case where the mode control instruction instructs the analog-to-digital converter to enter the parallel mode, controlling the analog-to-digital converter to receive the same first input signal based on the same sampling clock, the analog-to-digital converter to generate a first output signal based on the first input signal, and sending the first output signal to the receiving buffer of the chip; In the case where the mode control instruction instructs the analog-to-digital converter to enter the serial mode, the analog-to-digital converter is controlled to sequentially receive the same second input signal based on different sampling clocks, the analog-to-digital converter generates a second output signal based on the second input signal, and sends the second output signal to the receiving buffer, so that the alignment controller of the chip obtains the second output signal from the receiving buffer; wherein, The parallel mode has a plurality of sub-modes, and the method further comprises: In the case where the mode control instruction instructs the analog-to-digital converter to enter a parallel mode, determining the number of the analog-to-digital converters; The sub-mode that the analog-to-digital converter is to enter is determined based on the number of the analog-to-digital converters.

2. The control method of the multi-analog-to-digital converter according to claim 1, characterized in that: The determining the sub-mode to be entered by the analog-to-digital converter based on the number of the analog-to-digital converters specifically includes: When the number of the analog-to-digital converters is equal to a first threshold, determining that the sub-mode to be entered by the analog-to-digital converter is a first sub-mode; When there is a difference between the first output signals respectively generated by the analog-to-digital converters in the first sub-mode, an interrupt signal is generated, and the receiving buffer holds the first output signal; When the number of the analog-to-digital converters is a second threshold, determining that the sub-mode to be entered by the analog-to-digital converter is a second sub-mode, and the second threshold is greater than the first threshold; When one of the plurality of first output signals respectively generated by the analog-to-digital converter in the second sub-mode is different from another first output signal, the receiving buffer outputs the another first output signal.

3. The control method of the multi-analog-to-digital converter according to claim 2, characterized in that: The determining the sub-mode to be entered by the analog-to-digital converter based on the number of the analog-to-digital converters specifically includes: When the number of the analog-to-digital converters is a third threshold, the plurality of analog-to-digital converters whose number meets the first threshold are determined as a first group, and / or the plurality of analog-to-digital converters whose number meets the second threshold are determined as a second group; wherein the third threshold is greater than the second threshold; It is determined that the plurality of analog-to-digital converters in the first group enter a first sub-mode respectively, and that the plurality of analog-to-digital converters in the second group enter a second sub-mode respectively.

4. The control method of the multi-analog-to-digital converter according to claim 1, characterized in that: The method further comprises: The analog-to-digital converter is controlled by a clock controller of the chip to receive the first input signal based on the same sampling clock.

5. The control method of the multi-analog-to-digital converter according to claim 1, characterized in that: The method further comprises: sending the first output signal to an arbitrator of the chip via the receiving buffer; The arbitrator determines an arbitration result based on the first output signals respectively generated by the analog-to-digital converters, and sends the arbitration result to a mode controller of the chip.

6. The control method of the multi-analog-to-digital converter according to claim 1, characterized in that: Before the analog-to-digital converter sequentially receives the same second input signal based on different sampling clocks, the method further includes: Sending a control instruction for entering a serial mode to the alignment controller and the clock controller of the chip via the mode controller of the chip; The clock controller controls the calibration signal generator of the chip to send a third input signal to the analog-to-digital converter based on the control instruction; sending a third output signal generated by the analog-to-digital converter based on the third input signal to the alignment controller; The calibration result generated by the alignment controller based on the third output signal is sent to the clock controller, so as to adjust the phase of the sampling clock of the analog-to-digital converter via the clock controller until the phase of the sampling clock of each analog-to-digital converter appears evenly distributed on the sampling result.

7. A control device for a multi-analog-to-digital converter, characterized in that: Applied in a chip, wherein a plurality of analog-to-digital converters are provided in the chip, the device comprising: an acquisition module configured to acquire a mode control instruction for adjusting an operating mode of the analog-to-digital converter, wherein the operating mode of the analog-to-digital converter includes at least a parallel mode and a serial mode; a processing module configured to, when the mode control instruction instructs the analog-to-digital converter to enter a parallel mode, control the analog-to-digital converter to receive the same first input signal based on the same sampling clock, the analog-to-digital converter to generate a first output signal based on the first input signal, and send the first output signal to a receiving buffer of the chip; When the mode control instruction instructs the analog-to-digital converter to enter the serial mode, the analog-to-digital converter is controlled to sequentially receive the same second input signal based on different sampling clocks, the analog-to-digital converter generates a second output signal based on the second input signal, and sends the second output signal to the receiving buffer, so that the alignment controller of the chip obtains the second output signal from the receiving buffer; wherein the parallel mode has multiple sub-modes, The processing module is further configured to: determine the number of the analog-to-digital converters when the mode control instruction instructs the analog-to-digital converter to enter the parallel mode; and determine the sub-mode that the analog-to-digital converter is to enter based on the number of the analog-to-digital converters.

8. A chip, characterized in that: A control device comprising the multi-analog-to-digital converter as claimed in claim 7.

9. A vehicle, characterized in that: Comprising the chip as claimed in claim 8.

Citation Information

Cited By

  • Device and method for compensating precision of analog-to-digital converter

    CN119582849A