Analog signal sampling system, sampling method and chip based on SARADC

By using multiple SARADC and analog signal output ports in the SARADC analog signal sampling system, and using the selection/switch of the ADC module to control the open and closed signals of the analog selector, the time-division multiplexing of the IO end and the accuracy of signal sampling are achieved. , which solves the problems of excessive resource consumption on the IO side and inaccurate sampling values.

CN118300610BActive Publication Date: 2024-10-01NANJING XINCHI SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410719962.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

In the SARADC-based analog signal sampling system, excessive IO end resource consumption leads to low operational efficiency, and when the same IO end is polled and sampled by multiple ADC modules, it may cause inaccurate sampling values.

Method used

An analog signal sampling system using at least two SARADCs and multiple analog signal output ports controls the analog selector to open and close signals through the selection/switch output end of the ADC module to achieve time-sharing multiplexing of the IO end and multiple During the transition period of the bit selection signal, a switch is used to open the analog selector to avoid affecting the signal sampling of other ADC converters.

Benefits of technology

It saves IO side resources, avoids the problem of shortage of IO side resources, ensures the accuracy of sampling values ​​during the transition period of multi-bit selection signals, and prevents inaccurate sampling values ​​caused by glitches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118300610B_ABST
    Figure CN118300610B_ABST
Patent Text Reader

Abstract

The present application discloses an analog signal sampling system, sampling method and chip based on SARADC, belonging to the field of chip technology. The SARADC in the analog signal sampling system includes an analog selector, a load and an ADC module; the ADC module outputs a disconnection signal to the analog selector through the selection / switch output terminal so that the analog selector is not connected to the analog signal sampling system; then a multi-bit selection signal is output to the analog selector through the selection / switch output terminal to configure multiple IO terminals that need to be sampled in the analog selector; then a closing signal is output to the analog selector through the selection / switch output terminal so that the analog selector is connected to the analog signal sampling system; the analog signal output from the IO terminal and flowing through the load is sampled. The present application can avoid the problem of shortage of IO terminal resources, and can also avoid the problem of inaccurate sampling values ​​caused by glitches when the same IO terminal is polled and sampled by multiple ADC modules.
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 an analog signal sampling system, a sampling method and a chip based on SARADC. Background Art

[0002] SARADC (Successive Approximation Register Analog-to-Digital Converter) is a successive approximation register analog-to-digital converter, which is a common analog-to-digital converter that samples and quantizes analog signals by successive approximation. Specifically, the analog signal is first input into the sample-and-hold circuit, and then under the control of the ADC, a reference voltage is compared with the voltage in the sample-and-hold circuit, and the digital output of the bit is determined based on the comparison result. This process is repeated many times until all bits are gradually determined as digital outputs.

[0003] like Figure 1 As shown, in the related art, the analog signal sampling system based on SARADC includes SARADC and four IO terminals, SARADC includes an analog selector, a load and an ADC module, the analog selector includes four analog signal input terminals, a selection signal input terminal and an analog signal output terminal, each analog signal input terminal is connected to an IO terminal, the selection signal input terminal is connected to the selection signal output terminal of the ADC module, the analog signal output terminal is connected to one end of the load, and the other end of the load is connected to the signal input terminal of the ADC module. Among them, the ADC module controls the analog selector to select one analog signal through the selection signal, so that the ADC module samples the analog signal of the path.

[0004] When the ADC module is used to poll and sample the external voltage, each analog signal input terminal needs to be connected to an IO terminal, which consumes a large amount of IO terminal resources. Summary of the invention

[0005] The present application provides an analog signal sampling system, sampling method and chip based on SARADC, which are used to solve the problem of low operating efficiency caused by the processing method in the related technology. The technical solution is as follows:

[0006] According to a first aspect of the present application, there is provided an analog signal sampling system based on SARADC, the analog signal sampling system comprising: at least two SARADCs and a plurality of analog signal output ports;

[0007] Each SARADC at least includes an analog selector, a load and an ADC module; the analog selector includes at least four analog signal input terminals, a selection / switch input terminal and an analog signal output terminal, each analog signal input terminal is connected to an IO terminal, the selection / switch input terminal is connected to the selection / switch output terminal of the ADC module, the analog signal output terminal is connected to the first terminal of the load, and the second terminal of the load is connected to the analog signal input terminal of the ADC module; wherein at least one IO terminal is connected to the analog signal input terminals of different analog selectors to perform time-division multiplexing on the IO terminals;

[0008] The ADC module is used to output a disconnect signal to the analog selector through the selection / switch output terminal so that the analog selector is not connected to the analog signal sampling system; then output a multi-bit selection signal to the analog selector through the selection / switch output terminal so as to configure multiple IO terminals that need to be sampled in the analog selector; then output a closing signal to the analog selector through the selection / switch output terminal so that the analog selector is connected to the analog signal sampling system; and sample the analog signal output from the IO terminal and flowing through the load.

[0009] In a possible implementation, the ADC module is further configured to output the disconnection signal to the analog selector within n clock cycles before outputting the multi-bit selection signal;

[0010] The ADC module is also used to output the closing signal to the analog selector within the next m clock cycles of outputting the multi-bit selection signal, and the sum of n and m clock cycles is greater than or equal to the jump duration of the multi-bit selection signal.

[0011] In a possible implementation, the ADC module includes an ADC controller and an ADC converter;

[0012] The analog signal input terminal of the ADC converter is the analog signal input terminal of the ADC module, and the selection / switch output terminal of the ADC controller is the selection / switch output terminal of the ADC module;

[0013] The trigger signal output terminal of the ADC controller is connected to the trigger signal input terminal of the ADC converter, and the sampling enable / sampling result terminal of the ADC controller is connected to the sampling enable / sampling result terminal of the ADC converter.

[0014] In a possible implementation, the ADC controller is configured to output a multi-bit selection signal to the analog selector through the selection / switch terminal when outputting a trigger signal to the ADC converter through the trigger signal output terminal.

[0015] In a possible implementation, the ADC converter is used to sample the analog signal output from the configured IO terminal and flowing through the load, and output the sampling enable and the sampling result to the ADC controller through the sampling enable / sampling result terminal;

[0016] The ADC controller is used to receive the sampling enable and the sampling result.

[0017] According to a second aspect of the present application, a SAR ADC-based analog signal sampling method is provided, which is used in the analog signal sampling system as described above, and the method includes:

[0018] The ADC module outputs a disconnect signal to the analog selector through the selection / switch output terminal, so that the analog selector is not connected to the analog signal sampling system;

[0019] The ADC module outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure a plurality of IO terminals that need to be sampled in the analog selector;

[0020] The ADC module outputs a closing signal to the analog selector through the selection / switch output terminal, so that the analog selector is connected to the analog signal sampling system;

[0021] The ADC module samples the analog signal output from the IO terminal and flowing through the load.

[0022] In a possible implementation, the ADC module outputs a disconnect signal to the analog selector through the selection / switch output terminal, including: the ADC module also outputs the disconnect signal to the analog selector within the first n clock cycles of outputting the multi-bit selection signal;

[0023] The ADC module outputs a closed signal to the analog selector through the selection / switch output terminal, including: the ADC module also outputs the closed signal to the analog selector within the next m clock cycles after outputting the multi-bit selection signal, and the sum of n and m clock cycles is greater than or equal to the jump duration of the multi-bit selection signal.

[0024] In a possible implementation, when the ADC module includes an ADC controller and an ADC converter, the ADC module outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal, including:

[0025] When the ADC controller outputs a trigger signal to the ADC converter through the trigger signal output terminal, it outputs a multi-bit selection signal to the analog selector through the selection / switch terminal.

[0026] In a possible implementation, the ADC module samples the analog signal output from the IO terminal and flowing through the load, including:

[0027] The ADC converter samples the analog signal output from the configured IO terminal and flowing through the load, and outputs the sampling enable and the sampling result to the ADC controller through the sampling enable / sampling result terminal;

[0028] The ADC controller receives the sampling enable and the sampling result.

[0029] According to a third aspect of the present application, a chip is provided, characterized in that the chip includes the analog signal sampling system as described above.

[0030] The beneficial effects of the technical solution provided by this application include at least:

[0031] At least one IO terminal in the analog signal sampling system is connected to the analog signal input terminals of different analog selectors to realize time-division multiplexing of the IO terminals, save IO terminal resources, and avoid the problem of shortage of IO terminal resources. In addition, the ADC module first outputs a disconnection signal to the analog selector through the selection / switch output terminal to prevent the analog selector from being connected to the analog signal sampling system; then outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure multiple IO terminals that need to be sampled in the analog selector; then outputs a closing signal to the analog selector through the selection / switch output terminal to connect the analog selector to the analog signal sampling system. In this way, the analog selector can be disconnected by using a switch during the transition of the multi-bit selection signal, which will not affect the signal sampling of other ADC converters, and avoids the problem of inaccurate sampling values ​​caused by glitches when the same IO terminal is polled and sampled by multiple ADC modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] 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 ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 It is a structural schematic diagram of an analog signal sampling system based on SARADC in the related art;

[0034] Figure 2 It is a structural schematic diagram of an analog signal sampling system based on SARADC in the related art;

[0035] Figure 3It is a scheduling sampling timing diagram of an analog signal sampling system based on SARADC in the related art;

[0036] Figure 4 It is a schematic diagram of the transition of a multi-bit selection signal;

[0037] Figure 5 It is a structural schematic diagram of an analog signal sampling system based on SARADC provided by an embodiment of the present application;

[0038] Figure 6 This is a scheduling sampling timing diagram of an analog signal sampling system based on SARADC provided by an embodiment of the present application;

[0039] Figure 7 This is a flow chart of an analog signal sampling method provided by an embodiment of the present application. DETAILED DESCRIPTION

[0040] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0041] Figure 1 In the analog signal sampling system based on SARADC shown, each analog signal input terminal needs to be connected to an IO terminal (the analog signal input terminal 0 of analog selector 1 is connected to the IO1 terminal, the analog signal input terminal 1 of analog selector 1 is connected to the IO2 terminal, the analog signal input terminal 2 of analog selector 1 is connected to the IO3 terminal, the analog signal input terminal 3 of analog selector 1 is connected to the IO4 terminal, the analog signal input terminal 0 of analog selector 2 is connected to the IO5 terminal, the analog signal input terminal 1 of analog selector 2 is connected to the IO2' terminal, the analog signal input terminal 2 of analog selector 2 is connected to the IO6 terminal, and the analog signal input terminal 3 of analog selector 2 is connected to the IO4' terminal), which will consume a large number of IO terminal resources. In order to save IO terminal resources, the analog signal sampling system based on SARADC can be improved to control different ADC modules to perform time-division multiplexing scheduling sampling on the IO terminals.

[0042] like Figure 2As shown, the improved analog signal sampling system includes an analog selector, a load, an ADC controller and an ADC converter. The analog selector includes four analog signal input terminals, a selection signal input terminal and an analog signal output terminal. Each analog signal input terminal is connected to an IO terminal (the analog signal input terminal 0 of analog selector 1 is connected to the IO1 terminal, the analog signal input terminal 1 of analog selector 1 and the analog signal input terminal 1 of analog selector 2 are connected to the IO2 terminal respectively, the analog signal input terminal 2 of analog selector 1 is connected to the IO3 terminal, the analog signal input terminal 3 of analog selector 1 is connected to the IO4 terminal, and the analog signal input terminal 4 of analog selector 1 is connected to the IO5 terminal. The analog signal input terminal 3 of the analog selector 2 is connected to the IO4 terminal respectively, the analog signal input terminal 0 of the analog selector 2 is connected to the IO5 terminal, and the analog signal input terminal 2 of the analog selector 2 is connected to the IO6 terminal), the selection signal input terminal is connected to the selection signal output terminal of the ADC controller, the analog signal output terminal is connected to one end of the load, and the other end of the load is connected to the signal input terminal of the ADC converter, the trigger signal output terminal of the ADC controller is connected to the trigger signal input terminal of the ADC converter, and the sampling enable / sampling result terminal of the ADC controller is connected to the sampling enable / sampling result terminal of the ADC converter. Among them, at least one IO terminal is connected to the analog signal input terminal of different analog selectors to time-division multiplex the IO terminals; the ADC module controls the analog selector to select one analog signal through the selection signal, so that the ADC module samples the analog signal of this path.

[0043] The improved analog signal sampling system scheduling sampling timing diagram is as follows: Figure 3 As shown, the ADC controller outputs a trigger signal to the ADC converter and outputs a selection signal to the analog selector; the analog selector configures multiple IO terminals that need to be sampled according to the selection signal;

[0044] The ADC converter samples the analog signal output from the configured IO terminal and flowing through the load, and outputs the sampling enable and the sampling result to the ADC controller; the ADC controller receives the sampling enable and the sampling result.

[0045] In the right Figure 2 When the IO2 end in time-division multiplexing is performed, there are two situations:

[0046] (1) If analog selector 1 selects IO2 for sampling, IO2 is connected to ADC converter 1 through the path of analog selector 1, through the load; if analog selector 2 does not select IO2 for sampling, the path between IO2 and ADC converter 2 is disconnected, which is equivalent to an open circuit.

[0047] (2) When analog selector 1 selects IO2 for sampling, IO2 is connected to ADC converter 1 through the path of analog selector 1 and the load; when analog selector 2 selects IO2 for sampling, IO2 is connected to ADC converter 2 through the path of analog selector 2 and the load.

[0048] In the above two sampling situations, the sampling value of the IO2 terminal by the ADC converter 1 will be different due to different loads. Therefore, it is necessary to schedule the ADC controller 1 and the ADC controller 2 to avoid inaccurate sampling values.

[0049] ADC controller 1 and ADC controller 2 need to output multi-bit selection signals to select multiple IO terminals that need to be sampled. For example, when selecting IO1, the 2-bit selection signal is 00; when selecting IO2, the 2-bit selection signal is 01; when selecting IO3, the 2-bit selection signal is 10; when selecting IO4, the 2-bit selection signal is 11. However, there is always a sequence relationship when the multi-bit selection signals change, which will cause the wrong intermediate state selection signal to be generated during the change process. Take the example of mode selector 1 selecting IO1 port to IO3 port, such as Figure 4 As shown in the figure, when the 2-bit selection signal changes from "00" to "11", the low-order selection signal bit0 will be changed to 1 first. At this time, the intermediate state selection signal is "01", and then the high-order selection signal bit1 will be changed to 1, and finally the accurate selection signal "11" will be obtained. In other words, when the 2-bit selection signal changes from "00" to "11", "01" will be generated briefly. If ADC converter 2 samples the IO2 terminal at this time, and the analog selector 1 passes through the "1" moment during the process of jumping from "0" to "3", it will cause the load corresponding to the IO2 terminal to change, resulting in inaccurate sampling value of the IO2 terminal by ADC converter 2.

[0050] In this application, we set a switch between the ADC controller and the analog selector. During the transition period of the multi-bit selection signal, the switch is used to disconnect the analog selector without affecting the signal sampling of other ADC converters.

[0051] An embodiment of the present application provides an analog signal sampling system based on SAR ADC, which may include at least two SAR ADCs and multiple analog signal output ports. The number of SAR ADCs and analog signal output ports may be set according to actual needs and is not limited in this embodiment.

[0052] Each SARADC at least includes an analog selector, a load and an ADC module; the analog selector includes at least four analog signal input terminals, a selection / switch input terminal and an analog signal output terminal, each analog signal input terminal is connected to an IO terminal, the selection / switch input terminal is connected to the selection / switch output terminal of the ADC module, the analog signal output terminal is connected to the first terminal of the load, and the second terminal of the load is connected to the analog signal input terminal of the ADC module; wherein at least one IO terminal is connected to the analog signal input terminals of different analog selectors to perform time-division multiplexing of the IO terminals.

[0053] like Figure 5 As shown, in one example, the analog signal sampling system includes two SARADCs, each analog selector includes four analog signal input terminals, and analog selector 1 and analog selector 2 time-division multiplex the IO2 terminal and the IO4 terminal. Specifically, the analog signal input terminal 0 of analog selector 1 is connected to the IO1 terminal, the analog signal input terminal 1 of analog selector 1 and the analog signal input terminal 1 of analog selector 2 are respectively connected to the IO2 terminal, the analog signal input terminal 2 of analog selector 1 is connected to the IO3 terminal, the analog signal input terminal 3 of analog selector 1 and the analog signal input terminal 3 of analog selector 2 are respectively connected to the IO4 terminal, the analog signal input terminal 0 of analog selector 2 is connected to the IO5 terminal, and the analog signal input terminal 2 of analog selector 2 is connected to the IO6 terminal.

[0054] In this embodiment, the ADC module includes an ADC controller and an ADC converter; the analog signal input end of the ADC converter is the analog signal input end of the ADC module, and the selection / switch output end of the ADC controller is the selection / switch output end of the ADC module; the trigger signal output end of the ADC controller is connected to the trigger signal input end of the ADC converter, and the sampling enable / sampling result end of the ADC controller is connected to the sampling enable / sampling result end of the ADC converter.

[0055] The sampling process of the analog signal sampling system is explained below.

[0056] The ADC module is used to output a disconnect signal to the analog selector through the selection / switch output terminal so that the analog selector is not connected to the analog signal sampling system; then output a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure multiple IO terminals that need to be sampled in the analog selector; then output a closing signal to the analog selector through the selection / switch output terminal so that the analog selector is connected to the analog signal sampling system; and sample the analog signal output from the IO terminal and flowing through the load. In simple terms, when outputting a multi-bit selection signal to the analog selector, the analog selector is controlled not to be connected to the analog signal sampling system, that is, the analog selector is disconnected, so that the load in the analog selector will not affect the signal sampling of other ADC converters.

[0057] In this embodiment, the scheduling sampling timing diagram of the analog signal sampling system is as follows: Figure 6 As shown, the ADC controller outputs a disconnect signal to the analog selector so that the analog selector is not connected to the analog signal sampling system; the ADC controller outputs a trigger signal to the ADC converter and outputs a selection signal to the analog selector; the analog selector configures multiple IO terminals that need to be sampled according to the selection signal; the ADC controller outputs a closing signal to the analog selector so that the analog selector is connected to the analog signal sampling system; the ADC controller outputs a sampling enable signal to the ADC converter; the ADC converter samples the analog signal output from the configured IO terminal and flowing through the load, and outputs the sampling result to the ADC controller.

[0058] The ADC controller is used to output a trigger signal to the ADC converter through the trigger signal output terminal, and output a multi-bit selection signal to the analog selector through the selection / switch terminal.

[0059] The ADC converter is used to sample the analog signal output from the configured IO terminal and flowing through the load, and output the sampling enable and sampling result to the ADC controller through the sampling enable / sampling result terminal; the ADC controller is used to receive the sampling enable and sampling result.

[0060] In this embodiment, the ADC module is also used to output a disconnect signal to the analog selector within the first n clock cycles of the output multi-bit selection signal; the ADC module is also used to output a close signal to the analog selector within the last m clock cycles of the output multi-bit selection signal, and the sum of the n and m clock cycles is greater than or equal to the transition duration of the multi-bit selection signal. According to the different transition durations, different values ​​can be set for n and m, which are not limited in this embodiment.

[0061] Usually, the transition period of the multi-bit selection signal is half a clock period, that is, the sum of n and m clock periods is greater than or equal to half a clock period. In addition, the sum of n and m clock periods also needs to be less than a predetermined duration (the predetermined duration is greater than the transition duration) to ensure the sampling rate of a single ADC converter.

[0062] Taking n and m as half a clock cycle as an example, the ADC controller outputs a disconnect signal to the analog selector in the first half clock cycle (clock falling edge) of the trigger signal, and outputs a close signal to the analog selector half a clock cycle after the trigger signal and the selection signal jump (clock falling edge). In addition, using the first / last half cycle of the trigger jump does not affect the sampling rate of a single ADC converter.

[0063] In summary, in the analog signal sampling system based on SARADC provided by the embodiment of the present application, at least one IO terminal in the analog signal sampling system is connected to the analog signal input terminal of different analog selectors to realize time-division multiplexing of the IO terminal, save IO terminal resources, and avoid the problem of shortage of IO terminal resources. In addition, the ADC module first outputs a disconnection signal to the analog selector through the selection / switch output terminal so that the analog selector is not connected to the analog signal sampling system; then outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure multiple IO terminals that need to be sampled in the analog selector; then outputs a closing signal to the analog selector through the selection / switch output terminal so that the analog selector is connected to the analog signal sampling system. In this way, the analog selector can be disconnected by using a switch during the transition of the multi-bit selection signal, which will not affect the signal sampling of other ADC converters, and avoid the problem of inaccurate sampling values ​​caused by glitches when the same IO terminal is polled and sampled by multiple ADC modules.

[0064] like Figure 7 As shown, it shows a flow chart of an analog signal sampling method based on SARADC provided by an embodiment of the present application. The analog signal sampling method can be applied to Figure 5 In the analog signal sampling system shown in FIG. 1 , the analog signal sampling method may include:

[0065] Step 701: The ADC module outputs a disconnection signal to the analog selector through the selection / switch output terminal, so that the analog selector is disconnected from the analog signal sampling system.

[0066] The ADC module outputs a disconnection signal to the analog selector within the first n clock cycles of outputting the multi-bit selection signal, wherein n can be an integer or a decimal, which is not limited in this embodiment.

[0067] When the ADC module includes an ADC controller and an ADC converter, the ADC controller outputs a disconnect signal to the analog selector through a selection / switch output terminal.

[0068] Step 702: The ADC module outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure multiple IO terminals that need to be sampled in the analog selector.

[0069] When the ADC module includes an ADC controller and an ADC converter, the ADC controller outputs a trigger signal to the ADC converter through the trigger signal output terminal, and outputs a multi-bit selection signal to the analog selector through the selection / switch terminal.

[0070] Step 703: The ADC module outputs a closing signal to the analog selector through the selection / switch output terminal, so that the analog selector is connected to the analog signal sampling system.

[0071] The ADC module also outputs a closing signal to the analog selector within the last m clock cycles of outputting the multi-bit selection signal, wherein m can be an integer or a decimal, which is not limited in this embodiment.

[0072] Different values ​​may be set for n and m according to different jump durations, which are not limited in this embodiment.

[0073] Usually, the transition period of the multi-bit selection signal is half a clock period, that is, the sum of n and m clock periods is greater than or equal to half a clock period. In addition, the sum of n and m clock periods also needs to be less than a predetermined duration (the predetermined duration is greater than the transition duration) to ensure the sampling rate of a single ADC converter.

[0074] Taking n and m as half a clock cycle as an example, the ADC controller outputs a disconnect signal to the analog selector in the first half clock cycle (clock falling edge) of the trigger signal, and outputs a close signal to the analog selector half a clock cycle after the trigger signal and the selection signal jump (clock falling edge). In addition, using the first / last half cycle of the trigger jump does not affect the sampling rate of a single ADC converter.

[0075] In step 704 , the ADC module samples the analog signal output from the IO terminal and flowing through the load.

[0076] Specifically, the ADC converter samples the analog signal output from the configured IO terminal and flowing through the load, and outputs the sampling enable and the sampling result to the ADC controller through the sampling enable / sampling result terminal; the ADC controller receives the sampling enable and the sampling result.

[0077] In summary, in the analog signal sampling method based on SARADC provided in the embodiment of the present application, the ADC module first outputs a disconnection signal to the analog selector through the selection / switch output terminal so that the analog selector is not connected to the analog signal sampling system; then outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure multiple IO terminals that need to be sampled in the analog selector; then outputs a closing signal to the analog selector through the selection / switch output terminal to connect the analog selector to the analog signal sampling system. In this way, the analog selector can be disconnected by using a switch during the transition of the multi-bit selection signal, which will not affect the signal sampling of other ADC converters, thereby avoiding the problem of inaccurate sampling values ​​caused by glitches when the same IO terminal is polled and sampled by multiple ADC modules.

[0078] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the analog signal sampling method as described above.

[0079] An embodiment of the present application provides a chip, wherein the chip includes the above-mentioned analog signal sampling system.

[0080] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0081] The above description is not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the embodiments of the present application.

Claims

1. An analog signal sampling system based on SARADC, It is characterized in that The analog signal sampling system comprises: at least two SARADCs and a plurality of analog signal output ports; Each SARADC at least includes an analog selector, a load and an ADC module; the analog selector includes at least four analog signal input terminals, a selection / switch input terminal and an analog signal output terminal, each analog signal input terminal is connected to an IO terminal, the selection / switch input terminal is connected to the selection / switch output terminal of the ADC module, the analog signal output terminal is connected to the first terminal of the load, and the second terminal of the load is connected to the analog signal input terminal of the ADC module; wherein at least one IO terminal is connected to the analog signal input terminals of different analog selectors to perform time-division multiplexing on the IO terminals; The ADC module is used to output a disconnect signal to the analog selector through the selection / switch output terminal so that the analog selector is not connected to the analog signal sampling system; then output a multi-bit selection signal to the analog selector through the selection / switch output terminal so as to configure multiple IO terminals that need to be sampled in the analog selector; then output a closing signal to the analog selector through the selection / switch output terminal so that the analog selector is connected to the analog signal sampling system; and sample the analog signal output from the IO terminal and flowing through the load.

2. The analog signal sampling system based on SARADC according to claim 1, It is characterized in that The ADC module is also used to output the disconnection signal to the analog selector within the first n clock cycles of outputting the multi-bit selection signal; The ADC module is also used to output the closing signal to the analog selector within the next m clock cycles of outputting the multi-bit selection signal, and the sum of n and m clock cycles is greater than or equal to the transition duration of the multi-bit selection signal.

3. The analog signal sampling system based on SARADC according to claim 1, It is characterized in that The ADC module includes an ADC controller and an ADC converter; The analog signal input terminal of the ADC converter is the analog signal input terminal of the ADC module, and the selection / switch output terminal of the ADC controller is the selection / switch output terminal of the ADC module; The trigger signal output terminal of the ADC controller is connected to the trigger signal input terminal of the ADC converter, and the sampling enable / sampling result terminal of the ADC controller is connected to the sampling enable / sampling result terminal of the ADC converter.

4. The analog signal sampling system based on SARADC according to claim 3, It is characterized in that The ADC controller is used to output a trigger signal to the ADC converter through the trigger signal output terminal, and output a multi-bit selection signal to the analog selector through the selection / switch terminal.

5. The analog signal sampling system based on SARADC according to claim 4, It is characterized in that The ADC converter is used to sample the analog signal output from the configured IO terminal and flowing through the load, and output the sampling enable and the sampling result to the ADC controller through the sampling enable / sampling result terminal; The ADC controller is used to receive the sampling enable and the sampling result.

6. An analog signal sampling method based on SARADC, It is characterized in that Used in the analog signal sampling system according to any one of claims 1 to 5, the method comprises: The ADC module outputs a disconnect signal to the analog selector through the selection / switch output terminal, so that the analog selector is not connected to the analog signal sampling system; The ADC module outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal to configure a plurality of IO terminals that need to be sampled in the analog selector; The ADC module outputs a closing signal to the analog selector through the selection / switch output terminal, so that the analog selector is connected to the analog signal sampling system; The ADC module samples the analog signal output from the IO terminal and flowing through the load.

7. The analog signal sampling method based on SARADC according to claim 6, It is characterized in that The ADC module outputs a disconnect signal to the analog selector through the selection / switch output terminal, including: the ADC module also outputs the disconnect signal to the analog selector within the first n clock cycles of outputting the multi-bit selection signal; The ADC module outputs a closed signal to the analog selector through the selection / switch output terminal, including: the ADC module also outputs the closed signal to the analog selector within the next m clock cycles after outputting the multi-bit selection signal, and the sum of n and m clock cycles is greater than or equal to the jump duration of the multi-bit selection signal.

8. The analog signal sampling method based on SARADC according to claim 6, It is characterized in that When the ADC module includes an ADC controller and an ADC converter, the ADC module outputs a multi-bit selection signal to the analog selector through the selection / switch output terminal, including: When the ADC controller outputs a trigger signal to the ADC converter through the trigger signal output terminal, it outputs a multi-bit selection signal to the analog selector through the selection / switch terminal.

9. The analog signal sampling method based on SARADC according to claim 8, It is characterized in that The ADC module samples the analog signal output from the IO terminal and flowing through the load, including: The ADC converter samples the analog signal output from the configured IO terminal and flowing through the load, and outputs the sampling enable and the sampling result to the ADC controller through the sampling enable / sampling result terminal; The ADC controller receives the sampling enable and the sampling result.

10. A chip, It is characterized in that The chip includes the analog signal sampling system as described in any one of claims 1 to 5.