MCU parameter testing system and method

Through the automated testing method of the MCU parameter testing system, the two-way communication between the calculation unit, the control unit and the test unit, combined with the voltage and current measurement modules, the problems of inaccurate and low efficiency of microcontroller parameters are solved, and high accuracy and Highly efficient test results storage.

CN110377473BActive Publication Date: 2024-11-22GEEHY SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910784376.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-08-23
Publication Date
2024-11-22
Estimated Expiration
2039-08-23

AI Technical Summary

Technical Problem

The prior art is not accurate enough to measure the parameters of microcontrollers, and manual operations lead to inefficient data collection.

Method used

Design a MCU parameter testing system, including a computing unit, a control unit and a testing unit, realize automatic testing of the target MCU through two-way communication connection, use voltage, current measurement device, frequency meter and other modules to obtain parameter data, and use USB interface and The HID communication protocol performs data transmission and processing.

Benefits of technology

It improves the accuracy and testing efficiency of microcontroller parameter measurement, can comprehensively test MCU performance in different states, and store test results for easy analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110377473B_ABST
    Figure CN110377473B_ABST
Patent Text Reader

Abstract

The present invention provides an MCU parameter testing system and method, comprising a calculation unit, a control unit and a test unit, wherein the calculation unit is bidirectionally connected to the control unit and the test unit, the control unit is bidirectionally connected to the target MCU, and the test unit is unidirectionally connected to the target MCU, wherein: the calculation unit is used to issue a state configuration instruction to the control unit, and issue a test instruction to the test unit in response to state feedback information; the control unit is used to configure the target MCU in response to the state configuration instruction, and send state feedback information to the calculation unit; the test unit is used to measure the target MCU in response to the test instruction, obtain parameter data, and send the parameter data to the calculation unit. The present invention can realize automatic testing of single-chip microcomputer parameters and improve the accuracy of single-chip microcomputer parameter measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to automatic control technology, and in particular to an MCU parameter testing system and method. Background Art

[0002] Single-chip microcomputers are widely used in instrumentation, household appliances, intelligent management of medical equipment and process control, and in order to determine the quality of single-chip microcomputers, it is necessary to test the parameters of single-chip microcomputers. Test equipment is a set of electrical measuring instruments with screen digital display and high-resolution analog pointer display, which can be used to measure: AC and DC voltage and current, resistance, diode, circuit continuity, capacitance, frequency, power consumption and other parameters.

[0003] In the prior art, data is collected by manually operating test equipment, and the interface of the test circuit board is used to test the parameters and dynamic characteristics of the microcontroller. For example, the test equipment is used to detect the voltage, current, power consumption or frequency value of the detection points one by one, thereby determining whether the various parameter indicators of the microcontroller meet the application requirements.

[0004] However, the existing technology is not accurate enough in measuring the parameters of the microcontroller. Summary of the invention

[0005] The embodiment of the present invention provides an MCU parameter testing system and method, which can realize automatic testing of single-chip microcomputer parameters and improve the accuracy of single-chip microcomputer parameter measurement.

[0006] According to a first aspect of an embodiment of the present invention, there is provided an MCU parameter testing system, comprising a computing unit, a control unit and a testing unit, wherein the computing unit is bidirectionally connected to the control unit and the testing unit, the control unit is bidirectionally connected to the target MCU, and the testing unit is unidirectionally connected to the target MCU;

[0007] in,

[0008] The computing unit is used to issue a state configuration instruction to the control unit, and to issue a test instruction to the test unit in response to the state feedback information;

[0009] The control unit is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit;

[0010] The test unit is used to measure the target MCU in response to the test instruction, obtain parameter data, and send the parameter data to the calculation unit.

[0011] Optionally, in a possible implementation of the first aspect, the test unit includes a voltage and / or current measuring device and a frequency meter;

[0012] The voltage and / or current measuring device is used to measure the target MCU in response to the test instruction to obtain voltage data and / or current data;

[0013] The frequency meter is used to measure the target MCU in response to the test instruction to obtain frequency data;

[0014] The voltage data and / or current data and frequency data are sent to the calculation unit.

[0015] Optionally, in a possible implementation of the first aspect, the test unit includes at least one voltage measuring device and at least one current measuring device;

[0016] At least one of the voltage measuring devices and at least one of the current measuring devices are used to measure the target MCU in response to the test instruction, obtain the voltage data and the current data at the same time, and send the voltage data and the current data to the calculation unit;

[0017] The calculation unit obtains power consumption data according to the voltage data and the current data, and stores the power consumption data.

[0018] Optionally, in a possible implementation of the first aspect, the test unit includes a voltage stabilization source and a signal generator;

[0019] The voltage stabilizing source is used to provide a reference voltage to the target MCU in response to the test instruction;

[0020] The signal generator is used to respond to the test instruction, provide an input waveform to the target MCU according to the reference voltage and the current state, obtain output waveform data of the target MCU, and send the output waveform data to the calculation unit.

[0021] Optionally, in a possible implementation manner of the first aspect, after the signal generator sends the output waveform data to the calculation unit, the method includes:

[0022] The calculation unit performs AD conversion processing on the output waveform data to obtain ADC data, and stores the ADC data.

[0023] Optionally, in a possible implementation manner of the first aspect, the computing unit and the control unit are connected via a USB interface;

[0024] The calculation unit is further used to determine whether the target MCU can communicate normally through the HID communication protocol.

[0025] Optionally, in a possible implementation manner of the first aspect, before the control unit is used to configure the target MCU in response to the state configuration instruction and sends the state feedback information to the computing unit, it further includes:

[0026] Determine that the control unit has completed configuration of the target MCU.

[0027] Optionally, in a possible implementation of the first aspect, the control unit includes a control circuit board;

[0028] The control circuit board is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit.

[0029] Optionally, in a possible implementation manner of the first aspect, the control circuit board is electrically and detachably connected to the target MCU via a base.

[0030] Optionally, in a possible implementation manner of the first aspect, the type and number of pins of the base are the same as those of the target MCU.

[0031] A second aspect of an embodiment of the present invention provides an MCU parameter testing method, which is applied to the above-mentioned MCU parameter testing system, and the method includes:

[0032] The computing unit sends a state configuration instruction to the control unit;

[0033] The control unit configures the target MCU in response to the state configuration instruction and sends state feedback information to the computing unit;

[0034] The computing unit issues a test instruction to the testing unit in response to the state feedback information;

[0035] The test unit measures the target MCU in response to the test instruction, obtains parameter data, and sends the parameter data to the calculation unit for storage.

[0036] Optionally, in a possible implementation of the second aspect, the test unit includes a voltage and / or current measuring device and a frequency meter;

[0037] The voltage measuring device and / or the current measuring device is used to measure the target MCU in response to the test instruction to obtain voltage data and / or current data;

[0038] The frequency meter is used to measure the target MCU in response to the test instruction to obtain frequency data;

[0039] The voltage data and / or current data and frequency data are sent to the calculation unit.

[0040] Optionally, in a possible implementation of the second aspect, the test unit includes at least one voltage measuring device and at least one current measuring device;

[0041] At least one of the voltage measuring devices and at least one of the current measuring devices are used to measure the target MCU in response to the test instruction, obtain the voltage data and the current data at the same time, and send the voltage data and the current data to the calculation unit;

[0042] The calculation unit obtains power consumption data according to the voltage data and the current data, and stores the power consumption data.

[0043] Optionally, in a possible implementation of the second aspect, the test unit includes a voltage stabilization source and a signal generator;

[0044] The voltage stabilizing source is used to provide a reference voltage to the target MCU in response to the test instruction;

[0045] The signal generator is used to respond to the test instruction, provide an input waveform to the target MCU according to the reference voltage and the current state, obtain output waveform data of the target MCU, and send the output waveform data to the calculation unit.

[0046] Optionally, in a possible implementation manner of the second aspect, after the signal generator sends the output waveform data to the calculation unit, the method includes:

[0047] The calculation unit performs AD conversion processing on the output waveform data to obtain ADC data, and stores the ADC data.

[0048] Optionally, in a possible implementation manner of the second aspect, the computing unit and the control unit are connected via a USB interface;

[0049] The calculation unit is further used to determine whether the target MCU can communicate normally through the HID communication protocol.

[0050] Optionally, in a possible implementation manner of the second aspect, before the control unit is used to configure the target MCU in response to the state configuration instruction and sends the state feedback information to the computing unit, it further includes:

[0051] Determine that the control unit has completed configuration of the target MCU.

[0052] Optionally, in a possible implementation of the second aspect, the control unit includes a control circuit board;

[0053] The control circuit board is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit.

[0054] Optionally, in a possible implementation manner of the second aspect, the control circuit board is electrically and detachably connected to the target MCU via a base.

[0055] Optionally, in a possible implementation manner of the second aspect, the type and number of pins of the base are the same as those of the target MCU.

[0056] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a memory, a processor and a computer program, wherein the computer program is stored in the memory, and the processor runs the computer program to execute the methods of various possible designs of the first and second aspects of the present invention.

[0057] According to a fourth aspect of an embodiment of the present invention, a readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the method of various possible designs of the first aspect and the second aspect of the present invention.

[0058] The present invention provides a MCU parameter test system and method, which can form an automatic test system through a computing unit, a control unit, a test unit and a target MCU, wherein the computing unit is used to issue instructions to control the control unit and the test unit, and first sends a state configuration instruction to the control unit for adjusting the state of the target MCU, such as a dormant state, a low-power operating state, a high-power operating state, an operating state at different frequencies, a shutdown state, etc., so as to test different parameters of the target MCU in different states, and can test the performance of the target MCU more comprehensively. After adjusting the state of the target MCU, it is fed back to the computer unit, and the computer unit issues a test instruction to the test unit, starts to measure the target MCU, obtains the corresponding parameter data, and sends the parameter data to the computing unit, and can process and store the parameter data. The present invention can use multiple modules to realize automatic testing of the target MCU parameters, improve the accuracy of the single-chip microcomputer parameter test, and can also improve the test efficiency, and the test results can be stored in the computing unit, which is convenient for the tester to analyze. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 It is a structural schematic diagram of an MCU parameter testing system provided by an embodiment of the present invention;

[0060] Figure 2 It is a structural schematic diagram of a test unit of an MCU parameter test system provided by an embodiment of the present invention;

[0061] Figure 3 It is a structural schematic diagram of a test unit of another MCU parameter test system provided by an embodiment of the present invention;

[0062] Figure 4 It is a structural schematic diagram of a test unit of another MCU parameter test system provided by an embodiment of the present invention;

[0063] Figure 5 It is a structural schematic diagram of another MCU parameter testing system provided by an embodiment of the present invention;

[0064] Figure 6 It is a structural schematic diagram of a control unit of an MCU parameter testing system provided by an embodiment of the present invention;

[0065] Figure 7 It is a flow chart of a MCU parameter testing method provided by an embodiment of the present invention;

[0066] Figure 8 It is a schematic diagram of the hardware structure of a device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0069] It should be understood that in various embodiments of the present invention, the size of the sequence number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0070] It should be understood that in the present invention, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0071] It should be understood that in the present invention, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0072] It should be understood that in the present invention, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0073] Depending on the context, "if" as used herein may be interpreted as "when" or "when" or "in response to determining" or "in response to detecting."

[0074] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0075] First, the terms involved in the present invention are explained:

[0076] MCU: Microcontroller Unit, also known as single-chip microcomputer or single-chip microcomputer.

[0077] ADC data: refers to the data converted by the analog / digital converter or analog-to-digital converter, which refers to the data that converts the continuously changing analog signal into a discrete digital signal.

[0078] HID: It is the abbreviation of Human Interface Device. HID is a USB communication protocol. HID devices do not necessarily have to have a human-machine interface. As long as the device complies with the HID protocol, it is a HID device. The USB HID class is a standard device class for USB devices. It belongs to the human-computer interaction device and is used to control some aspects of computer operation. One advantage of USB HID devices is that the operating system comes with a driver for the HID class, and users do not need to develop a driver. They can complete the communication by using the API system call.

[0079] Single-chip microcomputers are widely used in the fields of instrumentation, household appliances, intelligent management of medical equipment, and process control. In order to determine the configuration of the single-chip microcomputer, the parameters of the single-chip microcomputer need to be tested. The test equipment is a set of electrical measuring instruments with a screen digital display and a high-resolution analog pointer display, which can be used to measure parameters such as AC and DC voltage and current, resistance, diode, circuit on / off, capacitance, frequency, and power consumption. In the prior art, the test equipment is manually operated to collect data, and the interface of the test circuit board is tested to test the parameters and dynamic characteristics of the single-chip microcomputer. For example, the test equipment is used to detect the voltage, current, power consumption or frequency value of the detection point one by one, thereby determining whether the parameters of the single-chip microcomputer meet the application requirements. However, this method requires manual reading of parameters, which has a large subjective influencing factor and is prone to problems such as inaccurate readings, resulting in inaccurate measurement of the single-chip microcomputer parameters. In addition, each parameter read needs to be manually recorded, resulting in difficult data collection and low efficiency.

[0080] In order to solve the above technical problems, an MCU parameter testing system and method provided in an embodiment of the present invention can utilize multiple modules to realize automatic testing of target MCU parameters, thereby improving the accuracy of microcontroller parameter testing while also improving testing efficiency, and the test results can be stored in a computing unit for easy analysis by testers.

[0081] See also Figure 1 , is a schematic diagram of the structure of an MCU parameter test system provided by an embodiment of the present invention. The system 10 includes a calculation unit 11, a control unit 12 and a test unit 13. The details are as follows:

[0082] Among them, the connection relationship between the 10 modules of the system is as follows:

[0083] The computing unit 11 is bidirectionally connected to the control unit 12 and the test unit 13, and the control unit 12 is bidirectionally connected to the target MCU. It can be understood that the bidirectional communication connection means that data can be transmitted between the two. For example, the computing unit 11 can send signals and data to the control unit 12 and the test unit 13, and the control unit 12 and the test unit 13 can also send signals and data to the computing unit 11. The test device is unidirectionally connected to the target MCU. It can be understood that the unidirectional communication connection means that signals and data can only be sent to one party between the two. For example, the test device can send signals and data to the target MCU, but the target MCU cannot send signals and data to the test device.

[0084] In practical applications, the computing unit 11 and the control unit 12 can be connected through an interface, wherein the interface type can be a USB interface 14, a USART interface, a LAN interface or a GPIB interface, or other interfaces that enable bidirectional communication between the computing unit 11 and the control unit 12. The computing unit 11 and the test unit 13 can be interconnected through an RS232 interface, or can be an I2C, HID, USART or other interface.

[0085] The testing process of the system is as follows:

[0086] The calculation unit 11 is used to send a state configuration instruction to the control unit 12, and respond to the state feedback information to send a test instruction to the test unit 13. The user can operate the calculation unit 11 to send different state configuration instructions to the control unit 12 as needed.

[0087] Specifically, the computing unit 11 may include but is not limited to a computer, which is used to issue control instructions to the control unit 12 and the testing unit 13 . It can be understood that the control unit 12 and the testing unit 13 control the target MCU under the control of the computing unit 11 .

[0088] The state configuration instructions are used to control the target MCU to enter different states, so that different parameters of the target MCU in different states can be tested, thereby more comprehensively judging whether the target MCU meets the application requirements in various states.

[0089] For example, the state of the target MCU may be a sleep state, a low-power operation state, a high-power operation state, an operation state at a different frequency, a shutdown state, and the like.

[0090] Among them, the test instruction is used to control the test unit 13 to perform a test on the target MCU. It should be noted that the computing unit 11 issues the test instruction after receiving the status feedback information of the control unit 12. It can be understood that after the computing unit 11 determines that the control unit 12 has completed the configuration of the target MCU, it starts to control the test unit 13 to test the target MCU. Then, this test data is the parameter data of the target MCU in the current state. For example, the parameter data may be a voltage parameter in a low-power operating state.

[0091] The control unit 12 is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit 11 .

[0092] Specifically, the control unit 12 receives a state configuration instruction and starts to configure the target MCU. For example, the received state configuration instruction is used to instruct to adjust the state of the target MCU to a low-power operation state. Then the control unit 12 configures the target MCU to be in a low-power operation state.

[0093] It should be noted that after the control unit 12 completes the configuration of the target MCU, it detects the target MCU to determine whether it is in a corresponding state. For example, the control unit 12 determines whether the target MCU is currently in a low-power operation state. If so, it sends a state feedback information to the computing unit 11 to inform the computing unit 11 that the current state is the required state.

[0094] The testing unit 13 is used to measure the target MCU in response to the testing instruction, obtain parameter data, and send the parameter data to the calculating unit 11 .

[0095] Specifically, the test equipment includes different types of measuring instruments, for example, a device for measuring voltage and current, or a frequency meter 132, etc., for measuring parameters of the target MCU.

[0096] It should be noted that after the test device measures the parameters, the parameter data needs to be sent to the calculation unit 11, which stores or further analyzes and processes the parameter data to better determine whether the target MCU meets the application requirements.

[0097] The above embodiment can utilize multiple modules to realize automatic testing of target MCU parameters, thereby improving the accuracy of single-chip microcomputer parameter testing and the testing efficiency, and the test results can be stored in the calculation unit 11 for easy analysis by test personnel.

[0098] In actual applications, when evaluating the performance and application requirements of the target MCU, the parameters that need to be tested may include current, voltage, frequency, power consumption, ADC parameters or HID testing.

[0099] To test the current, voltage and frequency of the above parameters, refer to Figure 2 , is a structural diagram of a test unit 13 of an MCU parameter test system provided by an embodiment of the present invention. The test unit 13 may include a voltage and / or current measuring device 131 and a frequency meter 132, wherein the voltage and / or current measuring device 131 may be a multi-function multimeter, or a voltmeter, an ammeter or other device capable of measuring current and voltage, etc., and the frequency meter 132 may be any frequency meter 132 capable of testing the frequency parameters of the target MCU, as follows:

[0100] The voltage and / or current measuring device 131 is used to measure the target MCU in response to the test instruction and obtain voltage data and / or current data. It can be understood that the voltage and / or current measuring device 131 is connected to the target MCU and, under the control of the calculation unit 11, starts to test the voltage data and / or current data of the target MCU, thereby obtaining the voltage data and / or current data.

[0101] The frequency meter 132 is used to measure the target MCU in response to the test instruction and obtain frequency data. It can be understood that the frequency meter 132 is connected to the target MCU and, under the control of the calculation unit 11, starts to test the frequency data of the target MCU, thereby obtaining the frequency data.

[0102] After the voltage data and / or current data and frequency data are obtained, they need to be sent to the calculation unit 11 for storage or processing.

[0103] It should be noted that, in the present embodiment, the acquired voltage data and / or current data, and frequency data are data tested when the target MCU is in a certain state. For example, the measured data are voltage data and / or current data, and frequency data when the target MCU is in a low power consumption state. When they are sent to the computing unit 11, the computing unit 11 will store or process the voltage data and / or current data, and frequency data corresponding to the current state.

[0104] To test the power consumption in the above parameters, see Figure 3 , is a structural diagram of another test unit 13 of an MCU parameter test system provided by an embodiment of the present invention. The test unit 13 may include at least one voltage measuring device and at least one current measuring device 131, wherein the voltage and current measuring devices 131 may be multi-function multimeters, for example, at least two multimeters 131, or at least one voltmeter and at least one frequency meter, as follows:

[0105] The voltage measuring device and the current measuring device 131 are used to measure the target MCU in response to the test instruction and obtain the voltage data and current data at the same time. It can be understood that the power consumption at each time point is obtained by the voltage data and current data at each time point. Therefore, the voltage measuring device 131 measures the voltage of the target MCU at a certain time point, and the current measuring device 131 is used to measure the current of the target MCU at the same time, and the voltage data and current data are sent to the calculation unit 11. The calculation unit 11 obtains the power consumption data based on the voltage data and the current data, thereby obtaining the power consumption at each time point and storing the power consumption data.

[0106] It should be noted that, in this embodiment, the power consumption data obtained is data tested when the target MCU is in a certain state. For example, the measured data is power consumption data when the target MCU is in a low power consumption state, a running state, and at different frequencies. When it is sent to the computing unit 11, the computing unit 11 will store or process the power consumption data corresponding to the current state.

[0107] To test the power consumption in the above parameters, see Figure 4 , is a structural diagram of a test unit 13 of another MCU parameter test system provided by an embodiment of the present invention. The test unit 13 may include a voltage stabilizer 133 and a signal generator 134, as follows:

[0108] The voltage regulator 133 is used to provide a reference voltage to the target MCU in response to the test instruction. It can be understood that the voltage regulator 133 provides a stable external reference voltage to the target MCU and provides a reference for the signal generator 134.

[0109] The signal generator 134 is used to respond to the test instruction to provide an input waveform to the target MCU according to the reference voltage and the current state, and to obtain the output waveform data of the target MCU, and send the output waveform data to the calculation unit 11.

[0110] In some embodiments, after the signal generator 134 sends the output waveform data to the computing unit 11, in order to obtain ADC data more intuitively, the computing unit 11 can perform AD conversion on the output waveform data, process the analog signal into a digital signal, obtain the ADC data, and store the ADC data.

[0111] To implement the HID test in the above parameters, see Figure 5 , is a schematic diagram of the structure of another MCU parameter test system provided by an embodiment of the present invention. In the system, the calculation unit 11 and the control unit 12 are connected via a USB interface 14, as follows:

[0112] The computing unit 11 is connected to the control unit 12 via the USB interface 14 to test whether the target MCU can communicate normally via the HID communication protocol.

[0113] Among them, the computing unit 11 controls the control unit 12 and the target MCU to be powered on, and determines whether the target MCU can establish a connection with the computing unit 11; controls the control unit 12 and the target MCU to be powered off, and determines whether the target MCU can be disconnected from the computing unit 11; controls the target MCU to be reset, and determines whether the target MCU can re-establish a connection with the computing unit 11; if the results of the above conditions are all yes, it is determined that the target MCU can communicate normally through the HID communication protocol.

[0114] Since the target MCU type is different, its pin type and pin number are also different. For ease of operation, refer to Figure 6 , is a schematic diagram of the structure of a control unit 12 of an MCU parameter test system provided by an embodiment of the present invention. In the system, the control unit 12 includes a control circuit board 121, which is as follows:

[0115] The control circuit board 121 is used to configure the target MCU in response to the status configuration instruction and send status feedback information to the computing unit 11 . The control circuit board 121 and the target MCU are electrically and detachably connected via the base 122 .

[0116] Among them, the base 122 is used to connect the control circuit board 121 and the target MCU, and the pin type and number of the base 122 are the same as those of the target MCU. It can be understood that both the control circuit board 121 and the target MCU can be plugged and connected with the base 122. For example, the base 122 can be provided with an area for the target MCU to connect, and a conductive connection socket 123 for the pins of the target MCU to be inserted is provided in this area. The target MCU can be connected to the base 122 by inserting the pins into the corresponding conductive connection socket 123; for another example, the control circuit board 121 can be provided with an area for the base 122 to connect, and a conductive connection socket 123 for the pins of the base 122 to be inserted is provided in this area. The base 122 can be connected to the control circuit board 121 by inserting the pins into the corresponding conductive connection socket 123; thereby realizing the electrical detachable connection between the control circuit board 121 and the target MCU through the base 122. It can be understood that when the type of the target MCU is changed, it is only necessary to replace the base 122 corresponding to the target MCU to realize the quick connection between the control circuit board 121 and the target MCU, which is more convenient to operate.

[0117] See also Figure 7 , is a flow chart of a MCU parameter testing method provided by an embodiment of the present invention, which is applied to the above-mentioned MCU parameter testing system. The method includes steps S101-S104, which are specifically as follows:

[0118] S101, the computing unit 11 sends a state configuration instruction to the control unit 12;

[0119] S102, the control unit 12 configures the target MCU in response to the state configuration instruction, and sends state feedback information to the computing unit 11;

[0120] S103, the computing unit 11 sends a test instruction to the testing unit 13 in response to the state feedback information;

[0121] S104 , the testing unit 13 measures the target MCU in response to the testing instruction, obtains parameter data, and sends the parameter data to the calculating unit 11 .

[0122] Figure 7 The MCU parameter testing method of the embodiment shown is Figure 1 The implementation principle and technical effect of the system shown are similar and will not be repeated here.

[0123] Optionally, the test unit 13 includes a voltage and / or current measuring device 131 and a frequency meter 132; the voltage and / or current measuring device 131 is used to measure the target MCU in response to the test instruction to obtain voltage data and / or current data;

[0124] The frequency meter 132 is used to measure the target MCU in response to the test instruction and obtain frequency data; and send the voltage data and / or current data and frequency data to the calculation unit 11.

[0125] Optionally, the test unit 13 includes at least one voltage measuring device and at least one current measuring device 131. The voltage measuring device and the current measuring device 131 are used to measure the target MCU in response to the test instruction, obtain voltage data and current data at the same time, and send the voltage data and current data to the calculation unit 11; the calculation unit 11 obtains power consumption data according to the voltage data and current data, and stores the power consumption data.

[0126] Optionally, the test unit 13 includes a voltage regulator 133 and a signal generator 134; the voltage regulator 133 is used to respond to the test instruction to provide a reference voltage to the target MCU; the signal generator 134 is used to respond to the test instruction to provide an input waveform to the target MCU based on the reference voltage and the current state, and obtain the output waveform data of the target MCU, and send the output waveform data to the calculation unit 11.

[0127] Optionally, after the signal generator 134 sends the output waveform data to the calculation unit 11, the following steps are included:

[0128] The calculation unit 11 performs AD conversion processing on the output waveform data to obtain ADC data, and stores the ADC data.

[0129] Optionally, the calculation unit 11 and the control unit 12 are connected via a USB interface 14; the calculation unit 11 is also used to determine whether the target MCU can communicate normally via HID.

[0130] Optionally, before the control unit 12 is used to configure the target MCU in response to the state configuration instruction and sends the state feedback information to the computing unit 11, it also includes:

[0131] It is determined that the control unit 12 has completed the configuration of the target MCU.

[0132] Optionally, the control unit 12 includes a control circuit board 121 , and the control circuit board 121 is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit 11 .

[0133] Optionally, the control circuit board 121 is electrically and detachably connected to the target MCU via a base 122 ; the type and number of pins of the base 122 are the same as those of the target MCU.

[0134] like Figure 1 As shown, it should be noted that the MCU parameter test system provided by the present invention can be constructed by connecting the control device, each measuring device and the computing device to each other using an interface, wherein the required measuring device can be selected as needed to be connected to the MCU parameter test system, such as Figures 2 to 5 As shown. The MCU parameter test system can also be an integrated test platform, and each measurement module can be detachably integrated into the MCU parameter test system. Specifically, the MCU parameter test system can be a PCB board integrated test platform, which integrates a control unit, a test unit, and is connected to a computing unit by wired communication through an interface. The wired communication mode between the control unit and the computing unit can be specifically a USB interface 14, a USART interface, a LAN interface or a GPIB interface; the wired communication mode between the test unit and the computing unit can be specifically an RS232 interface, I2C, HID, USART and other interfaces. The control unit and the test unit can be connected to the computing unit by wireless communication, and the wireless communication mode can be specifically Bluetooth, WIFI or other feasible wireless communication modes, etc., wherein each measurement module can be a PCB board that can be detachably inserted into the integrated PCB board of the MCU parameter test system, and the user can select the required measurement module according to the needs and insert it into the integrated PCB board of the MCU parameter test system.

[0135] See also Figure 8 , is a schematic diagram of the hardware structure of a device provided in an embodiment of the present invention, the device comprising: a processor 81, a memory 82 and a computer program; wherein:

[0136] The memory 82 is used to store computer programs, and the memory may also be a flash memory. The computer program is, for example, an application program, a functional module, etc. for implementing the above method.

[0137] The processor 81 is used to execute the computer program stored in the memory to implement each step performed by the device in the above method. For details, please refer to the relevant description in the above method embodiment.

[0138] Optionally, the memory 82 may be independent or integrated with the processor 81 .

[0139] When the memory 82 is a device independent of the processor 81, the device may further include:

[0140] The bus 83 is used to connect the memory 82 and the processor 81 .

[0141] The present invention also provides a readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided in the above-mentioned various embodiments.

[0142] Among them, the readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application-specific integrated circuit (Application Specific Integrated Circuits, abbreviated as: ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the readable storage medium can also exist in a communication device as discrete components. The readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0143] The present invention also provides a program product, which includes an execution instruction, which is stored in a readable storage medium. At least one processor of a device can read the execution instruction from the readable storage medium, and at least one processor executes the execution instruction so that the device implements the methods provided in the above various embodiments.

[0144] In the embodiments of the above-mentioned devices, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the present invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A MCU parameter testing system, characterized in that: It includes a calculation unit, a control unit and a test unit, wherein the calculation unit is bidirectionally connected to the control unit and the test unit, the control unit is bidirectionally connected to the target MCU, and the test unit is unidirectionally connected to the target MCU; in, The computing unit is used to issue a state configuration instruction to the control unit, and to issue a test instruction to the test unit in response to the state feedback information; the state configuration instruction is used to control the target MCU to enter different states, so as to test different parameters of the target MCU in different states; the state configuration instruction is triggered by the user as needed; the state of the target MCU includes a sleep state, a low-power operation state, a high-power operation state, an operation state at different frequencies and / or a shutdown state; The control unit is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit; The test unit is used to measure the target MCU in response to the test instruction, obtain parameter data, and send the parameter data to the calculation unit; The test unit includes a voltage and / or current measuring device and a frequency meter, wherein the voltage and / or current measuring device is used to measure the target MCU in response to the test instruction to obtain voltage data and / or current data, and the frequency meter is used to measure the target MCU in response to the test instruction to obtain frequency data, and send the voltage data and / or current data and frequency data to the calculation unit; The computing unit is further configured to store or analyze the parameter data after receiving the parameter data sent by the testing unit; The test unit includes at least one voltage measuring device and at least one current measuring device; At least one of the voltage measuring devices and at least one of the current measuring devices are used to measure the target MCU in response to the test instruction, obtain the voltage data and the current data at the same time, and send the voltage data and the current data to the calculation unit; The calculation unit acquires power consumption data according to the voltage data and the current data, and stores the power consumption data; The test unit includes a voltage stabilizing source and a signal generator; The voltage stabilizing source is used to provide a reference voltage to the target MCU in response to the test instruction; The signal generator is used to respond to the test instruction, provide an input waveform to the target MCU according to the reference voltage and the current state, obtain output waveform data of the target MCU, and send the output waveform data to the calculation unit.

2. The system according to claim 1, characterized in that After the signal generator sends the output waveform data to the calculation unit, the method includes: The calculation unit performs AD conversion processing on the output waveform data to obtain ADC data, and stores the ADC data.

3. The system according to claim 1, characterized in that The computing unit and the control unit are connected via a USB interface; The calculation unit is further used to determine whether the target MCU can communicate normally through the HID communication protocol.

4. The system according to claim 1, characterized in that Before the control unit is used to configure the target MCU in response to the state configuration instruction and sends the state feedback information to the computing unit, it also includes: Determine that the control unit has completed configuration of the target MCU.

5. The system according to claim 1, characterized in that The control unit includes a control circuit board; The control circuit board is used to configure the target MCU in response to the state configuration instruction and send state feedback information to the computing unit.

6. The system according to claim 5, characterized in that The control circuit board is electrically and detachably connected to the target MCU via a base.

7. The system according to claim 6, characterized in that The pin type and number of the base are the same as those of the target MCU.

8. A method for testing MCU parameters, characterized in that: Applied to the MCU parameter testing system according to any one of claims 1 to 7, the method comprising: The computing unit sends a state configuration instruction to the control unit; The control unit configures the target MCU in response to the state configuration instruction and sends state feedback information to the computing unit; The computing unit issues a test instruction to the testing unit in response to the state feedback information; The test unit measures the target MCU in response to the test instruction, obtains parameter data, and sends the parameter data to the calculation unit.