DSAC double-channel synchronous sampling method, microprocessor and rotary transformer motor

By performing analog-to-digital conversion and cross-correlation operations on dual-channel signals in DSADC, the phase adjustment instructions are determined, which solves the problem of phase delay in dual-channel synchronous sampling and improves the accuracy of synchronization results.

CN118631258APending Publication Date: 2024-09-10BEIJING TONGFANG MICROELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410845234.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

When the existing DSADC performs dual-channel synchronous sampling, the converted digital signal is prone to phase delay and cannot meet scenarios with strict synchronization requirements for signal phase.

Method used

Receive the sinusoidal test signal sent by the software device through the first channel and the second channel at the same time, perform analog-to-digital conversion on it, obtain the reference conversion signal under different shift values ​​corresponding to the pre-stored sinusoidal test signal, and determine the interaction between the signals. Correlation results, and adjust the output phase of the pre-sampled data according to the phase adjustment instructions.

Benefits of technology

It improves the synchronization accuracy of DSADC dual-channel sampling results, meets strict synchronization requirements, and avoids errors caused by trigger moments and timestamps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631258A
    Figure CN118631258A
Patent Text Reader

Abstract

The invention discloses a DSAC dual-channel synchronous sampling method, a microprocessor and a rotary transformer motor, and the method comprises the steps: enabling a DSAC to receive a sine test signal transmitted by software equipment through a first channel and a second channel at the same time, and carrying out the analog-to-digital conversion of the sine test signal, and obtaining a first conversion signal and a second conversion signal; obtaining pre-stored reference conversion signals under different shift values corresponding to the sine test signal, and respectively determining a cross-correlation result between the first conversion signal and each reference conversion signal and between the second conversion signal and each reference conversion signal; and sending the cross-correlation result to the software equipment, receiving a phase adjustment instruction sent by the software equipment, and adjusting the output phase of the pre-sampling data according to the phase adjustment instruction. According to the technical scheme of the embodiment of the invention, the strict synchronization requirement of the DSAC dual-channel sampling result can be met, and the accuracy of the synchronization result is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic control technology, and in particular to a DSADC dual-channel synchronous sampling method, a microprocessor and a resolver motor. Background Art

[0002] When the Delta-Sigma Analog-to-Digital Converter (DSADC) uses dual-channel synchronous sampling, the converted digital signal is prone to phase delay, which is not suitable for scenarios with strict synchronization requirements on signal phase (such as the current and voltage signals of three-phase alternating current, whose phase relationship provides instantaneous power, power factor and other information). Figure 1a This is a schematic diagram of the signal phase delay after sampling of a DSADC channel in the prior art. Taking one channel as an example, the red signal is the input converted digital signal, and the purple signal is the signal converted by the DSADC. Due to various factors in the DSADC circuit, a phase delay occurs between the two signals.

[0003] In the prior art, in order to reduce the phase delay between dual-channel sampling signals, the triggering time of the same-source clock trigger of the dual channels is usually controlled, and the signal delay is compensated by software according to the timestamp of the dual-channel acquisition signals.

[0004] However, due to the certain error between the trigger moment and the timestamp, the existing synchronous sampling method still cannot meet the scenarios with strict synchronization requirements on the signal phase. Summary of the invention

[0005] The present invention provides a DSADC dual-channel synchronous sampling method, a microprocessor and a resolver motor, which can meet the strict synchronization requirements of DSADC dual-channel sampling results and improve the accuracy of the synchronization results.

[0006] Receiving a sinusoidal test signal sent by the software device through the first channel and the second channel at the same time, performing analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal;

[0007] Obtaining pre-stored reference conversion signals at different shift values ​​corresponding to the sinusoidal test signal, and respectively determining cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal;

[0008] The cross-correlation result is sent to the software device, a phase adjustment instruction sent by the software device is received, and the output phase of the pre-sampled data is adjusted according to the phase adjustment instruction.

[0009] According to another aspect of the present invention, a DSADC dual-channel synchronous sampling device is provided, which is applied to DSADC, and the device comprises:

[0010] The analog-to-digital conversion module is used to simultaneously receive the sinusoidal test signal sent by the software device through the first channel and the second channel, and perform analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal;

[0011] A cross-correlation module, used to obtain reference conversion signals at different shift values ​​corresponding to the pre-stored sinusoidal test signal, and respectively determine the cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal;

[0012] The phase adjustment module is used to send the cross-correlation result to the software device, receive the phase adjustment instruction sent by the software device, and adjust the output phase of the pre-sampled data according to the phase adjustment instruction.

[0013] According to another aspect of the present invention, a microprocessor is provided, comprising the DSADC described in any embodiment of the present invention.

[0014] According to another aspect of the present invention, a resolver motor is provided, comprising at least one microprocessor according to any embodiment of the present invention.

[0015] The technical solution provided by the embodiment of the present invention simultaneously receives a sinusoidal test signal sent by a software device through a first channel and a second channel, performs analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal, obtains a reference conversion signal under different shift values ​​corresponding to the pre-stored sinusoidal test signal, respectively determines the first conversion signal and the second conversion signal, and the cross-correlation results between the reference conversion signals, sends the cross-correlation results to the software device, receives a phase adjustment instruction sent by the software device, and adjusts the output phase of the pre-sampled data according to the phase adjustment instruction. The technical means can meet the strict synchronization requirements of the DSADC dual-channel sampling results and improve the accuracy of the synchronization results.

[0016] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1a It is a schematic diagram of signal phase delay after DSADC channel sampling in the prior art;

[0019] Figure 1b is a flow chart of a DSADC dual-channel synchronous sampling method provided according to an embodiment of the present invention;

[0020] Figure 1c is a schematic diagram of a reference conversion signal provided according to an embodiment of the present invention;

[0021] Figure 1d 1 is a schematic diagram of a scenario applicable to a DSADC dual-channel synchronous sampling method provided in an embodiment of the present invention;

[0022] Figure 2 is a flow chart of another DSADC dual-channel synchronous sampling method provided according to an embodiment of the present invention;

[0023] Figure 3a is a flow chart of another DSADC dual-channel synchronous sampling method provided according to an embodiment of the present invention;

[0024] Figure 3b 1 is a schematic diagram of a scenario in which another DSADC dual-channel synchronous sampling method provided in an embodiment of the present invention is applicable;

[0025] Figure 4 is a structural schematic diagram of a DSADC dual-channel synchronous sampling device provided according to an embodiment of the present invention;

[0026] Figure 5 is a schematic diagram of the structure of a microprocessor provided according to an embodiment of the present invention;

[0027] Figure 6 It is a schematic structural diagram of a resolver motor provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 should fall within the scope of protection of the present invention.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned 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 data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Figure 1b The present invention provides a flowchart of a DSADC dual-channel synchronous sampling method. This embodiment is applicable to the case where the DSADC dual channels are controlled to perform synchronous sampling on signals. The method can be performed by a DSADC dual-channel synchronous sampling device, which can be configured in the DSADC. Figure 1b As shown, the method includes:

[0031] Step 110: simultaneously receive a sinusoidal test signal sent by the software device through the first channel and the second channel, perform analog-to-digital conversion on the sinusoidal test signal, and obtain a first conversion signal and a second conversion signal.

[0032] In this embodiment, before the DSADC uses dual channels to synchronously sample the signal, a sinusoidal test signal for phase testing may be simultaneously sent to the input ends of the dual channels (ie, the first channel and the second channel) in advance by a software device.

[0033] After the DSADC receives the sinusoidal test signal through the first channel and the second channel simultaneously, it can perform analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal corresponding to the first channel and a second conversion signal corresponding to the second channel.

[0034] Step 120: Obtain reference conversion signals at different shift values ​​corresponding to the pre-stored sinusoidal test signal, and respectively determine the cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal.

[0035] In this embodiment, optionally, before the software device sends the sinusoidal test signal to the first channel and the second channel of the DSADC, the standard digital signal corresponding to the sinusoidal test signal can be phase-shifted in advance to obtain reference conversion signals corresponding to different shift values, and then each of the reference conversion signals is stored in the storage medium (Read-Only Memory, ROM) of the DSADC.

[0036] In a specific embodiment, after the first conversion signal and the second conversion signal are obtained through the above steps, the cross-correlation result between the first conversion signal and each reference conversion signal in the ROM can be determined, and the cross-correlation result between the second conversion signal and each reference conversion signal in the ROM can be determined. Figure 1c It can be a schematic diagram of each reference conversion signal in ROM, such as Figure 1c As shown, the red signal may be a standard digital signal corresponding to the sinusoidal test signal, and the other black signals represent reference conversion signals obtained after the standard digital signal is processed with different phase shifts.

[0037] In one implementation of this embodiment, when determining the cross-correlation result between signals, it can be determined by calculating the Euclidean distance, which is not limited in this embodiment.

[0038] Step 130: Send the cross-correlation result to the software device, receive a phase adjustment instruction sent by the software device, and adjust the output phase of the pre-sampled data according to the phase adjustment instruction.

[0039] In this embodiment, optionally, the cross-correlation result between the first conversion signal and each reference conversion signal, and the cross-correlation result between the second conversion signal and each reference conversion signal may be sent to the software device.

[0040] After the software device obtains the cross-correlation result, it can determine the degree of shift between the first conversion signal and the second conversion signal compared to the standard digital signal according to the cross-correlation result, and determine the phase adjustment instruction according to the shift degree. After the DSADC receives the phase adjustment instruction, it can adjust the output phase of the pre-sampled data of each channel to ensure that the dual-channel sampling results are strictly synchronized.

[0041] In a specific embodiment, Figure 1d A schematic diagram of a scenario in which a DSADC dual-channel synchronous sampling method in this embodiment is applicable is shown as follows: Figure 1d As shown, before the DSADC dual channels synchronously sample the signal, the first channel ( Figure 1d DSADC0) and the second channel ( Figure 1dIn the embodiment of the present invention, DSADC1) sends a sine wave signal for testing, and DSADC can perform analog-to-digital conversion on the sine wave signals of the two channels respectively to obtain a first conversion signal and a second conversion signal, and then determine the cross-correlation result (pos0) between the first conversion signal and each reference conversion signal in the ROM, and the cross-correlation result (pos1) between the second conversion signal and each reference conversion signal in the ROM through a cross-correlation calculation module pre-deployed in DSADC, and then DSADC sends the two cross-correlation results to the software device, and the software device can determine the phase adjustment instruction (delay0 and delay1) according to the cross-correlation result, and DSADC can adjust the output phase of the pre-sampled data of the first channel and the second channel respectively according to the phase adjustment instruction.

[0042] The technical solution provided by the embodiment of the present invention simultaneously receives a sinusoidal test signal sent by a software device through a first channel and a second channel, performs analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal, obtains a reference conversion signal under different shift values ​​corresponding to the pre-stored sinusoidal test signal, respectively determines the first conversion signal and the second conversion signal, and the cross-correlation results between the reference conversion signals, sends the cross-correlation results to the software device, receives a phase adjustment instruction sent by the software device, and adjusts the output phase of the pre-sampled data according to the phase adjustment instruction. Compared with the prior art method of controlling the triggering moment of the same-source clock trigger of the dual-channel and compensating the signal delay by software according to the timestamp of the dual-channel acquisition signal, a method of determining the phase adjustment instruction according to the cross-correlation result between the test conversion signal and the reference conversion signal is provided, which avoids the errors caused by the triggering moment and the timestamp, can meet the strict synchronization requirements of the DSADC dual-channel sampling results, and improves the accuracy of the synchronization results.

[0043] Figure 2 A flowchart of another DSADC dual-channel synchronous sampling method provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes:

[0044] Step 210: simultaneously receive the sinusoidal test signal sent by the software device through the first channel and the second channel, perform analog-to-digital conversion on the sinusoidal test signal, and obtain a first conversion signal and a second conversion signal.

[0045] Step 220: Obtain reference conversion signals at different shift values ​​corresponding to the pre-stored sinusoidal test signal.

[0046] Step 230: Obtain a pre-configured phase adjustment accuracy request.

[0047] In this embodiment, the user may pre-configure a phase adjustment precision request for the DSADC, such as a coarse-grained adjustment request or a fine-grained adjustment request, etc. Specifically, the phase adjustment precision request may be obtained through an indication bit of a configuration module in the DSADC.

[0048] Step 240: According to the phase adjustment accuracy request, convolution operations are performed on the first conversion signal and the second conversion signal with each reference conversion signal to obtain cross-correlation results.

[0049] In a specific embodiment, taking the first conversion signal as an example, assuming that the signal value in the first conversion signal is A 1 ,A 2 ,A 3 …A k , the signal value in a certain reference conversion signal is B 1 ,B 2 ,B 3 …B k , then the cross-correlation result between the first conversion signal and the reference conversion signal can be determined by the following formula:

[0050]

[0051] In one implementation of this embodiment, according to the phase adjustment accuracy request, the first conversion signal and the second conversion signal are respectively convolved with each reference conversion signal to obtain a cross-correlation result, including:

[0052] If the phase adjustment accuracy request is a first accuracy request (i.e., a fine-grained adjustment request), convolution operations are performed on the first conversion signal and the second conversion signal with all reference conversion signals to obtain cross-correlation results;

[0053] If the phase adjustment accuracy request is a second accuracy request (i.e., a coarse-grained adjustment request), the first conversion signal, the second conversion signal, and each reference conversion signal are sampled according to a preset acquisition interval; the sampled first conversion signal and the second conversion signal are convolved with each sampled reference conversion signal to obtain a cross-correlation result;

[0054] The second precision is less than the first precision.

[0055] In this embodiment, specifically, if the adjustment request configured by the user is a fine-grained adjustment request, all signal values ​​in the first conversion signal can be convolved with all signal values ​​in the reference conversion signal, and all signal values ​​in the second conversion signal can be convolved with all signal values ​​in the reference conversion signal to obtain the cross-correlation results between the first conversion signal and each reference conversion signal, as well as the cross-correlation results between the second conversion signal and each reference conversion signal.

[0056] On the contrary, if the adjustment request configured by the user is a coarse-grained adjustment request, the first conversion signal, the second conversion signal and each reference conversion signal can be sampled according to the preset acquisition interval, and then the signal value of the sampled first conversion signal can be convolved with the signal value of each sampled reference conversion signal, and at the same time, the signal value of the sampled second conversion signal can be convolved with the signal value of each sampled reference conversion signal to obtain a cross-correlation result.

[0057] The advantage of this setting is that it can meet the user's requirements for different phase adjustment accuracies and improve the flexibility of the DSADC dual-channel synchronous sampling method.

[0058] Step 250: Send the cross-correlation result to the software device, and receive a phase adjustment instruction sent by the software device.

[0059] Step 260: Adjust the output phase of the pre-sampled data according to the phase adjustment instruction and the phase adjustment accuracy request.

[0060] In this embodiment, specifically, after receiving the phase adjustment instruction, the DSADC may adjust the output phase of the pre-sampled data of each channel according to the phase adjustment instruction and the phase adjustment accuracy request.

[0061] For example, assuming that the phase adjustment accuracy request is a coarse-grained adjustment request, the output phase of the channel pre-sampled data can be adjusted according to the preset acquisition interval; assuming that the phase adjustment accuracy request is a fine-grained adjustment request, the output phase of each data point in the channel pre-sampled data can be adjusted.

[0062] The technical solution provided by the embodiment of the present invention simultaneously receives a sinusoidal test signal sent by a software device through a first channel and a second channel, performs analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal, obtains a reference conversion signal under different shift values ​​corresponding to a pre-stored sinusoidal test signal, obtains a pre-configured phase adjustment accuracy request, and performs convolution operations on the first conversion signal and the second conversion signal with each reference conversion signal according to the phase adjustment accuracy request to obtain a cross-correlation result, sends the cross-correlation result to the software device, receives a phase adjustment instruction sent by the software device, and adjusts the output phase of the pre-sampled data according to the phase adjustment instruction and the phase adjustment accuracy request. The technical solution can meet the strict synchronization requirements of the DSADC dual-channel sampling results and improve the accuracy of the synchronization results.

[0063] Figure 3a A flowchart of another DSADC dual-channel synchronous sampling method provided by an embodiment of the present invention is shown in FIG. Figure 3aAs shown, the method includes:

[0064] Step 310: simultaneously receive a sinusoidal test signal sent by the software device through the first channel and the second channel, perform analog-to-digital conversion on the sinusoidal test signal, and obtain a first conversion signal and a second conversion signal.

[0065] Step 320: Obtain reference conversion signals at different shift values ​​corresponding to the pre-stored sinusoidal test signal, and respectively determine the cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal.

[0066] Step 330: Obtain, from the cross-correlation results between the first conversion signal and each reference conversion signal, a first shift value corresponding to the reference conversion signal when the cross-correlation value is maximum.

[0067] In this step, specifically, the cross-correlation values ​​between the first conversion signal and each reference conversion signal can be arranged in order from large to small, and then the reference conversion signal corresponding to the maximum cross-correlation value and the shift value of the reference conversion signal compared to the standard digital signal (that is, the first shift value) are obtained.

[0068] Step 340: Obtain, from the cross-correlation results between the second conversion signal and each reference conversion signal, a second shift value corresponding to the reference conversion signal when the cross-correlation value is maximum.

[0069] In this step, specifically, the cross-correlation values ​​between the second conversion signal and each reference conversion signal can be arranged in order from large to small, and then the reference conversion signal corresponding to the maximum cross-correlation value and the shift value of the reference conversion signal compared to the standard digital signal (that is, the second shift value) are obtained.

[0070] Step 350: Send the first shift value and the second shift value to the software device.

[0071] Step 360: Receive the phase adjustment instruction sent by the software device, and adjust the output phase of the pre-sampled data according to the phase adjustment instruction.

[0072] In this embodiment, optionally, the software device may determine the degree of shift of the first conversion signal and the second conversion signal compared to the standard digital signal according to the first shift value and the second shift value, respectively, and determine the phase adjustment instruction according to the shift degree.

[0073] In one implementation of this embodiment, the phase adjustment instruction may include a difference between the first shift value and the second shift value, and a target channel corresponding to the difference; adjusting the output phase of the pre-sampled data according to the phase adjustment instruction includes: adjusting the output phase of the pre-sampled data of the target channel according to the difference.

[0074] In this embodiment, the target channel may be a channel corresponding to a smaller shift value. Assuming that the first shift value corresponding to the maximum cross-correlation value between the first conversion signal and each reference conversion signal is 5, and the second shift value corresponding to the maximum cross-correlation value between the second conversion signal and each reference conversion signal is 3, the software device may determine that the target channel is the second channel, and send the difference between the two shift values ​​to the second channel, and the DSADC may adjust the output phase of the pre-sampled data of the second channel according to the difference.

[0075] The advantage of such a setting is that by sending the difference between the shift values ​​to the DSADC through a software device, the DSADC can directly adjust the output phase of the target channel according to the difference, thereby improving the adjustment efficiency of the channel output phase.

[0076] In a specific embodiment, Figure 3b A schematic diagram of a scenario in which a DSADC dual-channel synchronous sampling method in this embodiment is applicable is shown as follows: Figure 3b As shown, after the first channel and the second channel in the DSADC receive the sinusoidal wave signal respectively, the sinusoidal wave signal can be processed by the analog-to-digital conversion modules (DSADC analog modulation module and DSADC digital demodulation module) corresponding to the first channel and the second channel respectively to obtain the first conversion signal and the second digital test signal, and then according to the phase adjustment accuracy request (such as the coarse-grained adjustment request or the granularity adjustment request), the first conversion signal and the second conversion signal are determined, and the cross-correlation results between the reference conversion signals in the ROM are determined, and the first shift value and the second shift value corresponding to the maximum cross-correlation value are sent to the software device.

[0077] After the software device determines the difference between the first shift value and the second shift value, if the first shift value is smaller than the second shift value, the difference can be sent to the delay unit corresponding to the first channel, and the DSADC control module adjusts the output phase of the pre-sampled data of the first channel according to the difference; if the second shift value is smaller than the first shift value, the difference can be sent to the delay unit corresponding to the second channel, and the DSADC control module adjusts the output phase of the pre-sampled data of the second channel according to the difference.

[0078] The technical solution provided by the embodiment of the present invention receives a sinusoidal test signal sent by a software device through a first channel and a second channel at the same time, performs analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal, respectively determines the first conversion signal and the second conversion signal, and the cross-correlation results between each reference conversion signal, obtains a first shift value corresponding to the reference conversion signal when the cross-correlation value is maximum in the cross-correlation result between the first conversion signal and each reference conversion signal, obtains a second shift value corresponding to the reference conversion signal when the cross-correlation value is maximum in the cross-correlation result between the second conversion signal and each reference conversion signal, sends the first shift value and the second shift value to the software device, receives a phase adjustment instruction sent by the software device, and adjusts the output phase of the pre-sampled data according to the phase adjustment instruction. The technical means can meet the strict synchronization requirements of the DSADC dual-channel sampling results and improve the accuracy of the synchronization results.

[0079] Figure 4 A schematic diagram of the structure of a DSADC dual-channel synchronous sampling device provided by an embodiment of the present invention, wherein the device is applied to a DSADC, such as Figure 4 As shown, the device includes: an analog-to-digital conversion module 410, a cross-correlation module 420 and a phase adjustment module 430.

[0080] The analog-to-digital conversion module 410 is used to simultaneously receive the sinusoidal test signal sent by the software device through the first channel and the second channel, and perform analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal;

[0081] The cross-correlation module 420 is used to obtain reference conversion signals at different shift values ​​corresponding to the pre-stored sinusoidal test signal, and respectively determine the cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal;

[0082] The phase adjustment module 430 is used to send the cross-correlation result to the software device, receive a phase adjustment instruction sent by the software device, and adjust the output phase of the pre-sampled data according to the phase adjustment instruction.

[0083] The technical solution provided by the embodiment of the present invention simultaneously receives a sinusoidal test signal sent by a software device through a first channel and a second channel, performs analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal, obtains a reference conversion signal under different shift values ​​corresponding to the pre-stored sinusoidal test signal, respectively determines the first conversion signal and the second conversion signal, and the cross-correlation results between the reference conversion signals, sends the cross-correlation results to the software device, receives a phase adjustment instruction sent by the software device, and adjusts the output phase of the pre-sampled data according to the phase adjustment instruction. The technical means can meet the strict synchronization requirements of the DSADC dual-channel sampling results and improve the accuracy of the synchronization results.

[0084] Based on the above embodiment, the phase adjustment instruction includes the difference between the first shift value and the second shift value, and the target channel corresponding to the difference.

[0085] The cross-correlation module 420 includes:

[0086] A convolution operation unit, configured to obtain a pre-configured phase adjustment accuracy request, and perform convolution operations on the first conversion signal and the second conversion signal with each reference conversion signal according to the phase adjustment accuracy request to obtain a cross-correlation result;

[0087] A first accuracy response unit, configured to, if the phase adjustment accuracy request is a first accuracy request, perform convolution operations on the first conversion signal and the second conversion signal with all reference conversion signals to obtain a cross-correlation result;

[0088] A second precision response unit is used for sampling the first conversion signal, the second conversion signal and each reference conversion signal according to a preset acquisition interval if the phase adjustment precision request is a second precision request; performing convolution operations on the sampled first conversion signal and the second conversion signal with each sampled reference conversion signal to obtain a cross-correlation result;

[0089] The second precision is less than the first precision.

[0090] The phase adjustment module 430 includes:

[0091] A first shift value acquisition unit, configured to acquire, from the cross-correlation results between the first conversion signal and each reference conversion signal, a first shift value corresponding to the reference conversion signal when the cross-correlation value is maximum;

[0092] A second shift value acquisition unit, configured to acquire, from the cross-correlation results between the second conversion signal and each reference conversion signal, a second shift value corresponding to the reference conversion signal when the cross-correlation value is maximum;

[0093] a shift value sending unit, configured to send the first shift value and the second shift value to the software device;

[0094] A difference processing unit, used for adjusting the output phase of the pre-sampled data of the target channel according to the difference;

[0095] A precision processing unit, configured to adjust the output phase of the pre-sampled data according to the phase adjustment instruction and the phase adjustment precision request

[0096] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not fully described in the embodiments of the present invention, please refer to the methods provided by all the above embodiments of the present invention.

[0097] Figure 5 is a schematic diagram of the structure of a microprocessor in an embodiment of the present invention. In this embodiment, the microprocessor 501 includes the DSADC described in any embodiment of the present invention.

[0098] In this embodiment, the DSADC in the microprocessor receives the sinusoidal test signal sent by the software device through the first channel and the second channel at the same time, performs analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal, obtains the reference conversion signal under different shift values ​​corresponding to the pre-stored sinusoidal test signal, determines the first conversion signal and the second conversion signal, and the cross-correlation results between the reference conversion signals, respectively, sends the cross-correlation results to the software device, receives the phase adjustment instruction sent by the software device, and adjusts the output phase of the pre-sampled data according to the phase adjustment instruction. This technical means can meet the strict synchronization requirements of the dual-channel sampling results and improve the accuracy of the resolver motor control results.

[0099] Figure 6 is a schematic diagram of the structure of a resolver motor in an embodiment of the present invention. In this embodiment, the resolver motor 601 includes the microprocessor 501 described in any embodiment of the present invention.

[0100] By deploying the microprocessor described in any embodiment of the present invention in a resolver motor, the accuracy of data transmission results in the resolver motor can be improved and the stability of the operation process of the resolver motor can be enhanced.

[0101] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A DSADC dual-channel synchronous sampling method, It is characterized in that Applied to DSADC, the method comprises: Receiving a sinusoidal test signal sent by the software device through the first channel and the second channel at the same time, performing analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal; Obtaining pre-stored reference conversion signals at different shift values ​​corresponding to the sinusoidal test signal, and respectively determining cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal; The cross-correlation result is sent to the software device, a phase adjustment instruction sent by the software device is received, and the output phase of the pre-sampled data is adjusted according to the phase adjustment instruction.

2. The method according to claim 1, It is characterized in that Determining the cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal respectively, including: Get a pre-configured phase adjustment accuracy request; According to the phase adjustment accuracy request, convolution operations are performed on the first conversion signal and the second conversion signal with each reference conversion signal to obtain cross-correlation results.

3. The method according to claim 2, It is characterized in that According to the phase adjustment accuracy request, the first conversion signal and the second conversion signal are respectively convolved with each reference conversion signal to obtain a cross-correlation result, including: If the phase adjustment accuracy request is a first accuracy request, performing convolution operations on the first conversion signal and the second conversion signal with all reference conversion signals respectively to obtain cross-correlation results; If the phase adjustment accuracy request is a second accuracy request, sampling the first conversion signal, the second conversion signal, and each reference conversion signal according to a preset sampling interval; Performing convolution operations on the sampled first conversion signal and the second conversion signal with the sampled reference conversion signals to obtain cross-correlation results; The second precision is less than the first precision.

4. The method according to claim 1, It is characterized in that Sending the cross-correlation result to the software device comprises: In the cross-correlation results between the first conversion signal and each reference conversion signal, a first shift value corresponding to the reference conversion signal when the cross-correlation value is maximum is obtained; In the cross-correlation results between the second conversion signal and each reference conversion signal, a second shift value corresponding to the reference conversion signal when the cross-correlation value is maximum is obtained; The first shift value and the second shift value are sent to the software device.

5. The method according to claim 4, It is characterized in that The phase adjustment instruction includes a difference between the first shift value and the second shift value, and a target channel corresponding to the difference; Adjusting the output phase of the pre-sampled data according to the phase adjustment instruction includes: According to the difference, the output phase of the pre-sampled data of the target channel is adjusted.

6. The method according to claim 2, It is characterized in that Adjusting the output phase of the pre-sampled data according to the phase adjustment instruction includes: The output phase of the pre-sampled data is adjusted according to the phase adjustment instruction and the phase adjustment accuracy request.

7. A DSADC dual-channel synchronous sampling device, It is characterized in that Applied to DSADC, the device comprises: The analog-to-digital conversion module is used to simultaneously receive the sinusoidal test signal sent by the software device through the first channel and the second channel, and perform analog-to-digital conversion on the sinusoidal test signal to obtain a first conversion signal and a second conversion signal; A cross-correlation module is used to obtain pre-stored reference conversion signals at different shift values ​​corresponding to the sinusoidal test signal, and to respectively determine cross-correlation results between the first conversion signal and the second conversion signal and each reference conversion signal; The phase adjustment module is used to send the cross-correlation result to the software device, receive the phase adjustment instruction sent by the software device, and adjust the output phase of the pre-sampled data according to the phase adjustment instruction.

8. The device according to claim 7, It is characterized in that The cross-correlation module includes: The convolution operation unit is used to obtain a pre-configured phase adjustment accuracy request, and according to the phase adjustment accuracy request, respectively perform convolution operations on the first conversion signal and the second conversion signal with each reference conversion signal to obtain a cross-correlation result.

9. A microprocessor, It is characterized in that Comprising a DSADC as described in any one of claims 1-6.

10. A resolver motor, It is characterized in that Comprising at least one microprocessor as claimed in claim 9.