An analog-to-digital conversion multi-channel automated verification device and microcontroller unit

By designing a multi-channel automation verification device for analog-digital conversion, using the connection between the automation verification device and the microcontroller unit, outputting analog signals and obtaining analog-to-digital conversion results, the problem of inefficient testing of analog-to-digital conversion function of microcontroller units in the prior art is solved. , realizes efficient and comprehensive testing and fault detection.

CN117060926BActive Publication Date: 2025-02-14GEEHY SEMICON CO LTD

Patent Information

Application Number
CN202311084609.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-02-14
Estimated Expiration
2043-08-25

AI Technical Summary

Technical Problem

In the prior art, the analog-to-digital conversion function test of microcontroller units mainly relies on manual verification, and is inefficient and cannot meet the high-efficiency production requirements.

Method used

Design an analog-to-digital conversion multi-channel automation verification device, which can output analog signals and obtain analog-to-digital conversion results by electrically connecting to the analog-to-digital conversion channel and communication port of the microcontroller unit, and quickly use the first data and the second data to compare Efficiently test the analog-to-digital conversion function of the microcontroller unit.

Benefits of technology

It realizes comprehensive and efficient testing of the analog-to-digital conversion function of the microcontroller unit, and can quickly determine whether there is a fault in the analog-to-digital conversion function, improving the testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117060926B_ABST
    Figure CN117060926B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of integrated circuit testing, and in particular to an analog-to-digital conversion multi-channel automated verification device and a microcontroller unit. The verification device is electrically connected to each analog signal acquisition channel of the microcontroller unit, and is used to output analog signals to each analog signal acquisition channel; the verification device is also electrically connected to the communication port of the microcontroller unit, and is used to send a trigger signal to the microcontroller unit, and obtain the analog-to-digital conversion result corresponding to the analog signal; the trigger signal is used to instruct the microcontroller unit to start analog-to-digital conversion; the analog-to-digital conversion result at least includes the first data collected during the conversion data period of the analog-to-digital conversion module of the microcontroller unit outputting the analog signal, and the second data collected after the first time length of the first data is collected; the verification device determines whether the analog-to-digital conversion function of the microcontroller unit has a fault according to the analog-to-digital conversion result.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The invention relates to the field of integrated circuit testing, and in particular to an analog-to-digital conversion multi-channel automation and microcontroller unit. [Background technology]

[0002] The analog-to-digital converter (ADC) module is a type of circuit used to convert a continuous signal in analog form into a discrete signal in digital form. The microcontroller unit (MCU) is integrated with an analog-to-digital conversion module to convert analog signals into corresponding digital signals, which is referred to as analog-to-digital conversion. Specifically, the microcontroller unit is provided with more than a dozen analog signal acquisition channels, which can be combined into a variety of conversion methods. At present, the analog-to-digital conversion function test of the microcontroller unit usually adopts the manual verification method, which is inefficient and cannot meet the requirements of high-efficiency production. Therefore, how to improve the testing of the analog-to-digital conversion function of the microcontroller unit is a problem that needs to be solved urgently. [Summary of the invention]

[0003] In order to solve the above problems, the embodiments of the present invention provide an analog-to-digital conversion multi-channel automated verification device and a micro control unit, which can perform a comprehensive and efficient test on the analog-to-digital conversion function of the micro control unit.

[0004] In a first aspect, an embodiment of the present invention provides an analog-to-digital conversion multi-channel automated verification device, comprising:

[0005] The verification device is electrically connected to each analog signal acquisition channel of the micro control unit, and is used to output analog signals to each analog signal acquisition channel;

[0006] The verification device is also electrically connected to the communication port of the microcontroller unit, and is used to send a trigger signal to the microcontroller unit, and obtain the analog-to-digital conversion result corresponding to the analog signal; wherein the trigger signal is used to instruct the microcontroller unit to start analog-to-digital conversion; the analog-to-digital conversion result at least includes the first data collected during the period when the analog-to-digital conversion module of the microcontroller unit outputs the conversion data of the analog signal, and the second data collected after a first time length of collecting the first data; the first time length is greater than or equal to the conversion time of the analog-to-digital conversion module;

[0007] The verification device determines whether there is a fault in the analog-to-digital conversion function of the micro control unit according to the analog-to-digital conversion result.

[0008] In a second aspect, an embodiment of the present invention provides a micro control unit, including:

[0009] Analog-to-digital conversion module, analog signal acquisition channel, communication port, configuration module and storage module;

[0010] The communication port is used to receive verification device configuration instructions and trigger signals;

[0011] The configuration module is used to configure the analog-to-digital conversion parameters accordingly according to the configuration instructions;

[0012] The analog-to-digital conversion module is used to perform analog-to-digital conversion on the analog signal in the analog signal acquisition channel based on the analog-to-digital conversion parameters, and output corresponding conversion data;

[0013] The storage module is used to store the analog-to-digital conversion result; the analog-to-digital conversion result at least includes the first data collected during the period when the analog-to-digital conversion module outputs the conversion data, and the second data collected after a first time length of collecting the first data; the first time length is greater than or equal to the conversion time of the analog-to-digital conversion module;

[0014] The communication port is also used to send the analog-to-digital conversion result in the storage module to the verification device to verify whether there is a fault in the analog-to-digital conversion function of the analog-to-digital conversion module.

[0015] In the embodiment of the present invention, by acquiring the analog-to-digital conversion result corresponding to the analog signal and comparing the first data with the second data in the analog-to-digital conversion result, the different analog-to-digital conversion functions under various combinations of the microcontroller unit can be comprehensively tested and verified quickly and efficiently.

Brief Description of the Drawings

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0017] Figure 1 A schematic diagram of the connection relationship of an analog-to-digital conversion multi-channel automated verification device provided by an embodiment of the present invention;

[0018] Figure 2 A connection circuit diagram of a verification device provided by an embodiment of the present invention;

[0019] Figure 3 A flowchart of an analog-to-digital conversion multi-channel automated verification method provided by an embodiment of the present invention;

[0020] Figure 4 A schematic diagram of the structure of a terminal device provided by an embodiment of the present invention. [Specific implementation method]

[0021] In order to better understand the technical solution of this specification, the embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0022] It should be clear that the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0023] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit this specification. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0024] In the current common MCU, the ADC module is often set with more than a dozen channels, which can combine multiple conversion modes. Specifically, in a single channel, if a single trigger signal triggers only one analog-to-digital conversion, it is a single conversion mode, and if a single trigger signal triggers continuous analog-to-digital conversion, it is a continuous conversion mode. In multiple channels, each channel can be grouped. For example, some channels can be specified as group A and some channels as group B. Each group of different channels can customize the sequence of conversion order. In multi-channel, if a single trigger signal completes the conversion of all channels stored in the register, it is a scan mode. In scan mode, if the continuous conversion mode is enabled, the analog-to-digital conversion will continue from the first channel in the channel sequence. If the continuous conversion mode is not enabled, it is a single conversion, and the conversion stops after completing all channels in the channel sequence. In multi-channel, if a single trigger signal only triggers the analog-to-digital conversion of some channels in the channel sequence, it is an intermittent mode.

[0025] As can be seen from the above content, the ADC module in the MCU involves a variety of conversion methods. The manual verification method used in the prior art will lead to problems such as high labor costs and low verification efficiency. Therefore, in order to overcome the above defects, the embodiment of the present invention obtains the analog-to-digital conversion result of the analog signal by the microcontroller unit and compares them, thereby performing an efficient and comprehensive test on the analog-to-digital conversion function in the microcontroller unit. Figure 1 A schematic diagram of the connection relationship of an analog-to-digital conversion multi-channel automated verification device provided by an embodiment of the present invention. Figure 1As shown in , the analog-to-digital conversion multi-channel automated verification device 101 (hereinafter referred to as the verification device) is electrically connected to each analog signal acquisition channel (CH0-CHn) of the micro control unit 102, and is used to output analog signals to each analog signal acquisition channel. The verification device 101 is also electrically connected to the communication port of the micro control unit 102, and is used to send a trigger signal to the micro control unit 102, and obtain the analog-to-digital conversion result corresponding to the analog signal. Among them, the trigger signal is used to instruct the micro control unit 102 to start analog-to-digital conversion.

[0026] The above-mentioned analog-to-digital conversion result at least includes the first data collected during the conversion data period of the analog-to-digital conversion module of the microcontroller unit 102 outputting the analog signal, and the second data collected after the first time length of collecting the first data. The first time length is greater than or equal to the conversion time of the analog-to-digital conversion module. The conversion time is the time required to convert an analog data into a digital signal in a certain mode. The steps of performing analog-to-digital conversion of the ADC module include sampling, holding, quantization and encoding. The conversion time is the total time required to complete the above steps.

[0027] The verification device 101 determines whether the analog-to-digital conversion function of the micro control unit 102 has a fault according to the analog-to-digital conversion result.

[0028] Figure 2 A connection diagram of a verification device provided by an embodiment of the present invention. Figure 2 As shown in FIG. 1 , the verification device 101 includes: a host 1011 and a programmable signal source 1012. The micro control unit 102 includes: an analog-to-digital conversion module 1021, a communication port 1022, a configuration module 1023, a storage module 1024 and analog signal acquisition channels CH0-CHn.

[0029] like Figure 2 As shown in , the host 1011 is connected to the programmable signal source 1012 and is used to configure the parameters of each signal output channel of the programmable signal source 1012.

[0030] Each signal output channel of the programmable signal source 1012 is correspondingly connected to each analog signal acquisition channel of the micro control unit 102, and is used to output analog signals to the analog signal acquisition channel of the micro control unit 102 based on the parameters configured by the host.

[0031] The host 1011 is electrically connected to the communication port 1022 of the microcontroller unit 102, and is used to send a trigger signal to the microcontroller unit 102 and obtain an analog-to-digital conversion result from the microcontroller unit 102, and determine whether the analog-to-digital conversion function of the microcontroller unit 102 has a fault according to the analog-to-digital conversion result.

[0032] The host 1011 is also used to send configuration instructions to the microcontroller unit 102 through the communication port 1022. The configuration instructions are used to configure the analog-to-digital conversion parameters of the microcontroller unit 102. The analog-to-digital conversion parameters include one or more combinations of the analog-to-digital conversion mode, the analog signal acquisition channel called, and the conversion sequence.

[0033] For the micro control unit 102 , the communication port 1022 is used to receive the configuration instructions and trigger signals sent by the verification device 101 .

[0034] The configuration module 1023 is used to configure the analog-to-digital conversion parameters accordingly according to the configuration instructions.

[0035] The analog-to-digital conversion module 1021 is used to perform analog-to-digital conversion on the analog signal in the analog signal acquisition channel based on the analog-to-digital conversion parameters, and output corresponding conversion data.

[0036] The storage module 1024 is used to store the analog-to-digital conversion result. The analog-to-digital conversion result at least includes the first data collected during the period when the analog-to-digital conversion module 1021 outputs the converted data, and the second data collected after the first time length of collecting the first data. The first time length is greater than or equal to the conversion time of the analog-to-digital conversion module.

[0037] The communication port 1022 is also used to send the analog-to-digital conversion result in the storage module 1024 to the verification device 101 to verify whether there is a fault in the analog-to-digital conversion function of the analog-to-digital conversion module.

[0038] In some embodiments, when the analog-to-digital conversion mode is a single conversion of a single channel and a single trigger signal, the host 1011 is specifically used to:

[0039] When the first data corresponds to the analog signal output by the programmable signal source 1012, and the first data is inconsistent with the second data, it is determined that there is no fault in the single conversion function of a single channel and a single trigger signal of the micro control unit 102. In a specific example, the programmable signal source 1012 can be implemented in the form of a programmable power supply, and the host 1011 controls the voltage (or other analog parameters such as current) of each output port of the programmable power supply. After that, the programmable power supply outputs the voltage V0 set by the host 1011 to the designated analog signal acquisition channel CHx of the micro control unit (CHx is any channel from CH0 to CHn). After that, the host 1011 sends a trigger signal to the communication port 1022 of the micro control unit 102 to trigger the micro control unit 102 to perform analog-to-digital conversion on the analog signal acquisition channel CHx. After receiving the trigger signal, the micro control unit 102 starts to perform analog-to-digital conversion on the analog signal (i.e., voltage V0) of the analog signal acquisition channel CHx.

[0040] After the analog-to-digital conversion is completed, the data of the conversion completion flag bit in the microcontroller unit 102 is rewritten to 1 (of course, it can also be expressed in other forms). Then the data of the conversion data bit is assigned to the digital signal value or analog signal value corresponding to V0. At this time, the data of the conversion data bit is read to obtain the value of the conversion data bit, which is the first data, recorded as A1. After waiting for at least one conversion time, the data of the conversion data bit is read again. Since the current test is a single conversion, and at least one conversion time has been waited, the host 1011 does not send the second trigger signal again at this time, so the microcontroller unit 102 cannot perform analog-to-digital conversion on the analog signal V0, so the value of the conversion data bit at this time is an error code or a preset invalid value, that is, the second data, recorded as A2. Therefore, when the single conversion function of the analog signal acquisition channel CHx is normal, the value of A1 should be equal to the value of V0 (A1 is the analog signal value). For example, the value of A1 is 1.2v, and the value of V0 is also 1.2v. Or, the voltage value corresponding to the value of A1 is equal to the value of V0 (A1 digital signal value). For example, the value of V0 is 1.2v, the value of A1 is 1110, and the analog signal value corresponding to the digital signal 1110 is 1.2v. When the value of A1 corresponds to the analog signal V0, and the value of A1 is inconsistent with A2, it can be determined that there is no fault in the single conversion function of the single trigger signal of the channel currently tested by the micro control unit 102. Afterwards, the method can be used to test in sequence whether there is a fault in the single conversion function of the single trigger signal of other analog signal acquisition channels of the micro control unit.

[0041] In some embodiments, when the analog-to-digital conversion mode is continuous conversion of a single channel and a single trigger signal, the host 1011 is specifically used to:

[0042] When both the first data and the second data correspond to the analog signal output by the programmable signal source 1012, it is determined that there is no fault in the continuous conversion function of a single channel and a single trigger signal of the micro control unit 102. In a specific example, as in the above embodiment, the data of the conversion data bit is read twice to obtain the first data A1 and the second data A2. Since the continuous sampling mode is enabled, the micro control unit 102 continues to perform analog-to-digital conversion on the analog signal V0 until the micro control unit 102 stops working (for example, a control signal controls it to stop converting). Therefore, before the micro control unit 102 stops working, the data of the conversion completion flag bit is always 1. Therefore, when the continuous conversion function of the single trigger signal of the analog signal acquisition channel CHx is normal, the values ​​of A1 and A2 are the same and both correspond to the analog signal V0. For example, the value of A1 is 1.2v, the value of A2 is 1.2v, and the value of V0 is also 1.2v.

[0043] Optionally, in order to increase the accuracy of the test results, the values ​​of the conversion data bits can be collected multiple times to obtain multiple data such as A1, A2, A3, etc. When the multiple data all correspond to V0, it can be determined that there is no fault in the single conversion function of the single trigger signal. After that, this method can be used to test in turn whether there is a fault in the continuous conversion function of the single trigger signal of other analog signal acquisition channels of the microcontroller unit.

[0044] In some embodiments, when the analog-to-digital conversion mode is a single conversion in a scanning mode with multiple channels and a single trigger signal, the host 1011 is specifically used to:

[0045] When the first data and the second data corresponding to the multiple analog signal acquisition channels are inconsistent, and the first data corresponding to the multiple analog signal acquisition channels correspond one-to-one to the analog signal output by the programmable signal source 1012, it is determined that there is no fault in the single conversion function of multiple channels and a single trigger signal. In a specific example, the microcontroller unit 102 includes 16 analog signal acquisition channels, namely CH0 to CH15. The host 1011 controls the programmable signal source 1012 to provide 16 evenly distributed voltage levels, namely V0 to V15, to the 16 analog signal acquisition channels of the microcontroller unit 102.

[0046] Afterwards, the host 1011 sends a trigger signal to the microcontroller unit 102. Afterwards, the data of the conversion data bit is sampled once to obtain the first data of the analog signal acquisition channels CH0 to CH15, which are recorded as A10, A11, A12...A115. After waiting for a conversion time, the data of the conversion data bit is sampled again to obtain the second data of the analog signal acquisition channels CH0 to CH15, which are recorded as A20, A21, A22...A215. Similar to the above embodiment, when the analog-to-digital conversion function of the microcontroller unit 102 is normal, the first data of the analog signal acquisition channel CH0 is A10, and the second data is A20, then the value of A10 is different from the value of A20, and the value of A10 corresponds to the voltage V0 output by the programmable signal source 1012 to the analog signal acquisition channel CH0. The same is true for the remaining analog signal acquisition channels CH1 to CH15.

[0047] In some embodiments, when the analog-to-digital conversion mode is a continuous conversion of a scanning mode with multiple channels and a single trigger signal, the host 1011 is specifically used to:

[0048] When the first data corresponding to the multiple analog signal acquisition channels are consistent with the second data, and the first data and the second data corresponding to the multiple analog signal acquisition channels correspond one-to-one to the analog signal output by the programmable signal source, it is determined that there is no fault in the continuous conversion function of multiple channels and a single trigger signal. In a specific example, the microcontroller unit 102 includes 16 analog signal acquisition channels, namely CH0 to CH15. The host 1011 controls the programmable signal source 1012 to provide 16 evenly distributed voltage levels, namely V0 to V15, to the 16 analog signal acquisition channels of the microcontroller unit 102.

[0049] Afterwards, the host 1011 sends a trigger signal to the microcontroller unit 102. Afterwards, the data of the conversion data bit is sampled once to obtain the first data of the analog signal acquisition channels CH0 to CH15, which are recorded as A10, A11, A12...A115. After waiting for a conversion time, the data of the conversion data bit is read again to obtain the second data of the analog signal acquisition channels CH0 to CH15, which are recorded as A20, A21, A22...A215. Similar to the above embodiment, when the analog-to-digital conversion function of the microcontroller unit 102 is normal, the first data of the analog signal acquisition channel CH0 is A10, and the second data is A20, then the value of A10 is the same as the value of A20, and the value of A10 and the value of A20 both correspond to the voltage V0 output by the programmable signal source 1012 to the analog signal acquisition channel CH0. The same is true for the remaining analog signal acquisition channels CH1 to CH15. That is, A10, A11, A12, ... A115 are consistent with A20, A21, A22, ... A215, and the values ​​of A10 and A20 correspond to V0, the values ​​of A11 and A21 correspond to V1, ... the values ​​of A115 and A215 correspond to V15.

[0050] Optionally, in order to increase the reliability of the test, the number of sampling times may be increased to obtain the third data, the fourth data, etc. of each analog signal acquisition channel, thereby increasing the sample data to ensure the accuracy of the test.

[0051] In some embodiments, when the analog-to-digital conversion mode is a discontinuous mode single conversion with multiple channels and multiple trigger signals, the host 1011 is specifically used to:

[0052] At least two trigger signals are sent, each trigger signal triggers a different group of the analog signal acquisition channels, and each group of the analog signal acquisition channels includes one or more channels.

[0053] When the first data corresponding to the analog signal acquisition channel of each group is inconsistent with the second data, and the first data corresponding to the analog signal acquisition channel of each group corresponds to the analog signal output by the programmable signal source one-to-one, it is determined that there is no fault in the discontinuous mode single conversion function of multiple channels and multiple trigger signals. In a specific example, the microcontroller unit 102 includes 16 analog signal acquisition channels, namely CH0 to CH15. The host 1011 provides 16 evenly distributed gear voltages, namely V0 to V15, to the 16 analog signal acquisition channels of the microcontroller unit 102 by controlling the programmable signal source 1012. Set the analog signal acquisition channels CH0, CH2, CH4, CH6, CH8, CH10, CH12 and CH14 as group A. Set the analog signal acquisition channels CH1, CH3, CH5, CH7, CH9, CH11, CH13, and CH15 as group B.

[0054] Afterwards, the host 1011 first sends a first trigger signal to the micro control unit 102, and the first trigger signal is used to instruct the micro control unit 102 to perform analog-to-digital conversion on the analog signal acquisition channels of group A. Then, the data of the converted data bits are read to obtain the first data corresponding to each analog signal acquisition channel included in group A, which are recorded as A0, A2, A4, A6, A8, A10, A12, and A14. And the corresponding second data are recorded as A0_2, A2_2, A4_2, A6_2, A8_2, A10_2, A12_2, and A14_2.

[0055] Afterwards, the host 1011 sends a second trigger signal to the micro control unit 102, and the second trigger signal is used to instruct the micro control unit 102 to perform analog-to-digital conversion on the analog signal acquisition channels of group B. Afterwards, the data of the converted data bits are sampled to obtain the first data corresponding to each analog signal acquisition channel included in group B, which are recorded as A1, A3, A5, A7, A9, A11, A13, and A15. And the corresponding second data are recorded as A1_2, A3_2, A5_2, A7_2, A9_2, A11_2, A13_2, and A15_2.

[0056] When the analog-to-digital conversion function of the microcontroller unit 102 is normal, the first data A0, A2...A14 and the second data A0_2, A2_2...A14_2 of each analog signal acquisition channel included in group A are inconsistent. The first data A1, A3...A15 and A1_2, A2_2...A15_2 of each analog signal acquisition channel included in group B are inconsistent. And A0, A1, A2...A14, A15 correspond to the output voltages V0, V1, V2...V14, V15 of the corresponding programmable signal sources.

[0057] Corresponding to the above-mentioned analog-to-digital conversion multi-channel automatic verification device, an embodiment of the present invention provides an analog-to-digital conversion multi-channel automatic verification method. Figure 3 A flowchart of an analog-to-digital conversion multi-channel automated verification method provided by an embodiment of the present invention. Figure 3 As shown in , the method includes:

[0058] Step 301: configure the analog signal output by the programmable signal source, and configure the analog-to-digital conversion parameters of the microcontroller unit.

[0059] Step 302: Send a trigger signal to the micro control unit, where the trigger signal is used to instruct the micro control unit to perform analog-to-digital conversion on the collected analog signal according to the conversion parameter.

[0060] Step 303, obtaining the corresponding analog-to-digital conversion result from the microcontroller unit. The analog-to-digital conversion result at least includes the first data collected during the conversion data period of the analog-to-digital conversion module of the microcontroller unit outputting the analog signal, and the second data collected after the first time length of collecting the first data. The first time length is greater than or equal to the conversion time of the analog-to-digital conversion module. The analog-to-digital conversion parameters include one or more combinations of the analog-to-digital conversion mode, the called analog signal acquisition channel, and the conversion order.

[0061] Step 304: Determine whether the analog-to-digital conversion function of the microcontroller unit has a fault according to the analog-to-digital conversion result.

[0062] In some embodiments, when the analog-to-digital conversion mode is a single conversion of a single channel and a single trigger signal, the above step 304 specifically includes:

[0063] When the first data corresponds to the analog signal output by the programmable signal source and the first data is inconsistent with the second data, it is determined that there is no fault in the single conversion function of the single channel and the single trigger signal of the micro control unit.

[0064] In some embodiments, when the analog-to-digital conversion mode is continuous conversion of a single channel and a single trigger signal, determining whether the analog-to-digital conversion function of the microcontroller unit has a fault according to the analog-to-digital conversion result includes:

[0065] When both the first data and the second data correspond to the analog signal output by the programmable signal source, it is determined that there is no fault in the single conversion function of the single channel and the single trigger signal of the micro control unit.

[0066] In some embodiments, when the analog-to-digital conversion mode is a single conversion in a scanning mode with multiple channels and a single trigger signal, the above step 304 specifically includes:

[0067] When the first data corresponding to multiple analog signal acquisition channels are inconsistent with the second data, and the first data corresponding to multiple analog signal acquisition channels all correspond one-to-one to the analog signals output by the programmable signal source, it is determined that there is no fault in the single conversion function of multiple channels and a single trigger signal.

[0068] In some embodiments, when the analog-to-digital conversion mode is a continuous conversion of a scanning mode with multiple channels and a single trigger signal, the above step 304 specifically includes:

[0069] When the first data corresponding to multiple analog signal acquisition channels are consistent with the second data, and the first data and second data corresponding to multiple analog signal acquisition channels correspond one-to-one to the analog signals output by the programmable signal source, it is determined that there is no fault in the continuous conversion function of multiple channels and a single trigger signal.

[0070] In some embodiments, when the analog-to-digital conversion mode is a discontinuous mode single conversion of multiple channels and multiple trigger signals, the above step 304 specifically includes:

[0071] At least two trigger signals are sent, each trigger signal triggers a different group of the analog signal acquisition channels, and each group of analog signal acquisition channels includes one or more channels.

[0072] When the first data corresponding to the analog signal acquisition channel of each group is inconsistent with the second data, and the first data corresponding to the analog signal acquisition channel of each group corresponds one-to-one to the analog signal output by the programmable signal source, it is determined that there is no fault in the intermittent mode single conversion function of multiple channels and multiple trigger signals.

[0073] Figure 4 A schematic diagram of the structure of a terminal device provided in an embodiment of the present invention is shown in FIG. Figure 4 As shown, the terminal device may include a processor, a memory, and a computer program, wherein the computer program is stored in the memory, and the computer program includes instructions, and when the instructions are executed, the terminal device executes the instructions of this specification. Figure 3 The illustrated embodiment provides an analog-to-digital conversion multi-channel automated verification method.

[0074] like Figure 4 As shown, the terminal device is in the form of a general computing device. The components of the terminal device may include but are not limited to: one or more processors 410, communication interface 420 and memory 430, and a communication bus 440 connecting different system components (including memory 430, communication interface 420 and processor 410).

[0075] The communication bus 440 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0076] The terminal device typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the terminal device, including volatile and non-volatile media, removable and non-removable media.

[0077] The memory 430 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The terminal device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 430 may include at least one program product having a set (e.g., at least one) of program modules, which are configured to perform the functions of each embodiment of the present specification.

[0078] A program / utility having a set (at least one) of program modules may be stored in memory 430, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in this specification.

[0079] The processor 410 executes various functional applications and data processing by running the programs stored in the memory 430, such as implementing the present specification. Figure 3 The illustrated embodiment provides an analog-to-digital conversion multi-channel automated verification method.

[0080] The embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figure 3 The illustrated embodiment provides an analog-to-digital conversion multi-channel automated verification method.

[0081] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ReadOnly Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasable Programmable ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0082] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0083] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0084] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0085] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.

[0086] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0087] It should be noted that the devices involved in the embodiments of this specification may include but are not limited to personal computers (Personal Computer; hereinafter referred to as: PC), personal digital assistants (Personal Digital Assistant; hereinafter referred to as: PDA), wireless handheld devices, tablet computers (Tablet Computer), mobile phones, MP3 displays, MP4 displays, etc.

[0088] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods 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. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0089] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0090] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a connector, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.

[0091] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. An analog-to-digital conversion multi-channel automated verification device, characterized in that: include: The verification device is electrically connected to each analog signal acquisition channel of the micro control unit, and is used to output analog signals to each analog signal acquisition channel; The verification device is also electrically connected to the communication port of the microcontroller unit, and is used to send a trigger signal to the microcontroller unit, and obtain the analog-to-digital conversion result corresponding to the analog signal; wherein the trigger signal is used to instruct the microcontroller unit to start analog-to-digital conversion; the analog-to-digital conversion result at least includes the first data collected during the period when the analog-to-digital conversion module of the microcontroller unit outputs the conversion data of the analog signal, and the second data collected after a first time length of collecting the first data; the first time length is greater than or equal to the conversion time of the analog-to-digital conversion module; The verification device compares the first data, the second data and the analog signal, and determines whether there is a fault in the analog-to-digital conversion function of the micro control unit according to the comparison result.

2. The verification device according to claim 1, characterized in that: The verification device specifically includes a host and a programmable signal source; The host is electrically connected to the programmable signal source and is used to configure parameters of each signal output channel of the programmable signal source; The respective signal output channels of the programmable signal source are correspondingly connected to the respective analog signal acquisition channels of the micro control unit, and are used to output analog signals to the analog signal acquisition channels of the micro control unit based on the parameters configured by the host; The host is electrically connected to the communication port of the microcontroller unit, and is used to send the trigger signal to the microcontroller unit and obtain the analog-to-digital conversion result from the microcontroller unit, and compare the first data, the second data and the analog signal to determine whether there is a fault in the analog-to-digital conversion function of the microcontroller unit.

3. The verification device according to claim 2, characterized in that: The host is also used to send configuration instructions to the microcontroller unit through the communication port, and the configuration instructions are used to configure the analog-to-digital conversion parameters of the microcontroller unit; the analog-to-digital conversion parameters include one or more combinations of analog-to-digital conversion mode, called analog signal acquisition channel, and conversion sequence.

4. The verification device according to claim 3, characterized in that: When the analog-to-digital conversion mode is a single conversion of a single channel and a single trigger signal, the host is specifically used to: When the first data corresponds to the analog signal output by the programmable signal source and the first data is inconsistent with the second data, it is determined that there is no fault in the single conversion function of the single channel and the single trigger signal of the micro control unit.

5. The verification device according to claim 3, characterized in that: When the analog-to-digital conversion mode is continuous conversion of a single channel and a single trigger signal, the host is specifically used to: When both the first data and the second data correspond to the analog signal output by the programmable signal source, it is determined that there is no fault in the single conversion function of the single channel and the single trigger signal of the micro control unit.

6. The verification device according to claim 3, characterized in that: When the analog-to-digital conversion mode is a single conversion in a scanning mode with multiple channels and a single trigger signal, the host is specifically used to: When the first data corresponding to the multiple analog signal acquisition channels are inconsistent with the second data, and the first data corresponding to the multiple analog signal acquisition channels all correspond one-to-one to the analog signals output by the programmable signal source, it is determined that there is no fault in the single conversion function of the multiple channels and the single trigger signal.

7. The verification device according to claim 3, characterized in that: When the analog-to-digital conversion mode is a continuous conversion of a scanning mode of multiple channels and a single trigger signal, the host is specifically used to: When the first data corresponding to the multiple analog signal acquisition channels are consistent with the second data, and the first data and the second data corresponding to the multiple analog signal acquisition channels both correspond one-to-one to the analog signals output by the programmable signal source, it is determined that there is no fault in the continuous conversion function of the multiple channels and the single trigger signal.

8. The verification device according to claim 3, characterized in that: When the analog-to-digital conversion mode is a discontinuous mode single conversion of multiple channels and multiple trigger signals, the host is specifically used for: At least two trigger signals are sent, each trigger signal triggers a different group of the analog signal acquisition channels, and each group of the analog signal acquisition channels is one or more; when the first data corresponding to the analog signal acquisition channels of each group are inconsistent with the second data, and the first data corresponding to the analog signal acquisition channels of each group correspond one-to-one with the analog signal output by the programmable signal source, it is determined that there is no fault in the intermittent mode single conversion function of the multiple channels and multiple trigger signals.

9. A micro control unit, characterized in that: include: Analog-to-digital conversion module, analog signal acquisition channel, communication port, configuration module and storage module; The communication port is used to receive configuration instructions and trigger signals sent by the verification device; The configuration module is used to configure the analog-to-digital conversion parameters accordingly according to the configuration instructions; The analog-to-digital conversion module is used to perform analog-to-digital conversion on the analog signal in the analog signal acquisition channel based on the analog-to-digital conversion parameters, and output corresponding conversion data; The storage module is used to store the analog-to-digital conversion result; the analog-to-digital conversion result at least includes the first data collected during the period when the analog-to-digital conversion module outputs the conversion data, and the second data collected after a first time length of collecting the first data; the first time length is greater than or equal to the conversion time of the analog-to-digital conversion module; The communication port is also used to send the analog-to-digital conversion result in the storage module to the verification device, and the verification device compares the first data, the second data and the analog signal to verify whether there is a fault in the analog-to-digital conversion function of the analog-to-digital conversion module.

Citation Information

Patent Citations

  • System and method for testing analog-to-digital converter

    CN112152623A

  • Microcircuit for verifying ADC module in MCU

    CN210807230U

Cited By

  • Analog-to-digital conversion circuit temperature compensation test system and method, and computer program product

    CN121710915A