Master-slave phase-locked loop system and method for extracting motor position

By using a master-slave dual phase-locked loop system, utilizing a hardware DPLL phase-locked loop and an MCS multi-threaded processor, high-precision and real-time extraction of motor position is achieved, solving the problems of insufficient accuracy and poor real-time performance of traditional phase-locked loops in dynamic changes, and improving the reliability of the system.

CN123184550APending Publication Date: 2026-11-27WUHAN BINARY SEMICON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611209453.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Traditional phase-locked loops (PLLs) suffer from insufficient accuracy, lag in dynamic tracking, and poor real-time performance in motor position extraction, which affects the reliability of the system, especially under conditions of rapid dynamic changes.

Method used

A master-slave dual phase-locked loop system is adopted, which utilizes a hardware DPLL phase-locked loop and an MCS multi-threaded processor. The hardware slave phase-locked loop quickly locks the signal and outputs a coarse angular velocity value, while the software phase-locked loop performs fine correction, thereby achieving high-precision and real-time extraction of the motor position.

Benefits of technology

This improves the accuracy and real-time performance of motor position extraction, shortens the stabilization time of the phase-locked loop, and enhances the system's dynamic response and anti-interference capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123184550A_ABST
    Figure CN123184550A_ABST
Patent Text Reader

Abstract

The application discloses a master-slave double phase-locked loop system and method for extracting motor position, and belongs to the technical field of motor control, and comprises the following: a signal receiving module, which is arranged in a multi-thread processor MCS inside a GTM, and is used for collecting two-way orthogonal signals Vsin and Vcos representing motor rotor position; a trigger signal generating module, which is connected with the signal receiving module, and is used for generating a trigger pulse signal based on the two-way orthogonal signals; a slave phase-locked loop hardware module, which is used for receiving the trigger pulse signal and synchronously solving, and outputting a rough angular velocity value; and a master phase-locked loop module, which is realized by a MCS multi-thread processor software, and is used for receiving the two-way orthogonal signals and the rough angular velocity value, taking the rough angular velocity value as a feedforward compensation amount, and calculating and outputting a rotor angle value and a motor angular velocity value through a software phase-locked loop algorithm. The system can solve the problems of slow dynamic convergence and poor real-time performance of a single software phase-locked loop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of motor control technology, and specifically relates to a master-slave double phase-locked loop system and method for extracting motor position. Background Technology

[0002] In high-performance motor control, such as field-oriented control (FOC) of permanent magnet synchronous motors, accurate and real-time acquisition of rotor position and speed information is crucial. Whether it is a "sensory" approach relying on physical sensors (such as rotary transformers and eddy current sensors) or a "sensory-free" algorithm based on motor models and electrical signals, the ultimate goal is to extract the phase (i.e., position) and frequency (i.e., speed) from a pair of orthogonal sine / cosine signals (sin / cos).

[0003] Phase-locked loop (PLL) technology has become the mainstream and key technology for realizing this extraction process because it can achieve frequency synchronization and phase tracking between input and output signals.

[0004] While traditional phase-locked loops (PLLs) can achieve angle decoding, the inherent high-order harmonics and noise in the signal can severely affect the accuracy of the PLL when extracting position from back electromotive force or resolver signals.

[0005] While variant schemes such as the Synchronous Frequency Extraction Filter (SSF) and the Second-Order Generalized Integrator (SOGI) can filter, they may introduce phase lag or increase algorithm complexity during dynamic processes. Furthermore, software-based PLL algorithms incur delays, and complex PLL algorithms may suffer from insufficient real-time performance and accuracy in angle extraction due to computational delays. Under rapidly changing conditions, conventional PLLs may struggle to stabilize quickly, impacting system reliability. Summary of the Invention

[0006] To address the aforementioned issues, this application provides a master-slave dual phase-locked loop (PLL) system and method for extracting motor position. By utilizing a hardware DPLL phase-locked loop, TIM / MAP / ATOM hardware units, and an MCS multi-threaded parallel processor built into the chip's GTM module, the shortcomings of traditional pure software PLLs, such as slow convergence and lag in dynamic tracking, can be overcome.

[0007] The following is the technical content of this disclosure: A master-slave dual phase-locked loop system for extracting motor position, comprising: The signal receiving module, deployed in the multi-threaded processor MCS inside the GTM, is used to acquire two orthogonal signals Vsin and Vcos that characterize the position of the motor rotor. A trigger signal generation module, connected to the signal receiving module, is used to generate a trigger pulse signal based on two orthogonal signals. The phase-locked loop hardware module receives the trigger pulse signal and synchronously calculates and outputs a rough angular velocity value. The main phase-locked loop module, implemented by the MCS multi-threaded processor software, is used to receive two orthogonal signals and the coarse angular velocity value. Using the coarse angular velocity value as the feedforward compensation, the module calculates and outputs the rotor angle value and the motor angular velocity value through the software phase-locked loop algorithm.

[0008] Furthermore, The signal receiving module is also used to perform synchronous digital filtering on the two acquired orthogonal signals, and transmit the filtered orthogonal signals to the trigger signal generation module and the main phase-locked loop module respectively.

[0009] Furthermore, The trigger pulse signal is a pulse signal with a missing tooth indicator, which is used to indicate the end position of a complete rotation of the rotor from the phase-locked loop hardware module.

[0010] Furthermore, The phase-locked loop hardware module is integrated inside the GTM and includes a TIM unit, a MAP unit and a DPLL hardware unit. The trigger pulse signal is transmitted sequentially through ATOM, ARU, TIM, and MAP to the DPLL hardware unit, which calculates the coarse angular velocity value.

[0011] Furthermore, The MCS includes multiple hardware channels. The signal receiving module, trigger signal generating module, and main phase-locked loop module are each split into independent tasks and mapped to different hardware channels for pipelined parallel operation.

[0012] Furthermore, The main phase-locked loop module processes the computational data using Q23 per-unit integer format, which is compatible with the MCS24-bit non-floating-point arithmetic architecture.

[0013] Furthermore, It also includes a fault diagnosis module, which is connected to the main phase-locked loop module and is used to verify whether the rotor angle and motor angular velocity values ​​output by the main phase-locked loop module exceed the preset threshold. When the values ​​are abnormal, a fault interruption signal is issued.

[0014] Furthermore, The trigger signal generation module generates a pulse signal with a missing tooth identifier in the following ways: The coarse angle is calculated based on the arctangent of the quadrature signal. The level is flipped when the angle increment crosses the angle threshold. If the current angle is in the preset end interval, the level is not flipped to generate a missing tooth.

[0015] Furthermore, The trigger signal generation module generates a pulse signal with a missing tooth identifier in the following ways: The ATOM level is controlled to flip based on the amplitude relationship between Vsin and Vcos in the four quadrants. The level is not flipped when the angle is in the fourth quadrant interval, so as to generate missing teeth.

[0016] A method for extracting motor position based on the aforementioned master-slave dual phase-locked loop system for extracting motor position includes: Two orthogonal signals, Vsin and Vcos, representing the position of the motor rotor are acquired, and synchronous digital filtering is performed on the two orthogonal signals. A trigger pulse signal with a missing tooth indicator is generated based on the two filtered orthogonal signals Vsin and Vcos. The trigger pulse signal is transmitted to the phase-locked loop hardware module for synchronous calculation, and a coarse angular velocity value is output. The system receives two filtered orthogonal signals, Vsin and Vcos, along with the coarse angular velocity value. Using the coarse angular velocity value as the feedforward compensation, it calculates and outputs the rotor angle value and the motor angular velocity value through a software phase-locked loop algorithm.

[0017] Compared with the prior art, this application has the following advantages: This application achieves high-speed and high-precision calculation of motor rotor position through a dual-loop collaborative approach of hardware-assisted pre-calculation and software fine correction. The MCS completes the quadrature signal acquisition and generates a pulse synchronization signal, which is sent to the hardware phase-locked unit. The hardware circuit can quickly estimate the coarse speed value without software calculation delay. Then, the coarse speed is used as a feedforward quantity and sent to the software phase-locked loop to participate in the phase error closed-loop calculation. The feedforward value directly reduces the initial deviation of the phase-locked loop and reduces the iteration cycle required for loop integral adjustment. Therefore, it can solve the problems of slow dynamic convergence and poor real-time performance of single software phase-locked loop.

[0018] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 A schematic diagram of the phase-locked loop system of this disclosure is shown; Figure 2 A schematic diagram illustrating the principle of the master-slave dual-locked loop algorithm according to an embodiment of this disclosure is shown; Figure 3 A schematic diagram of a PWM wave with missing teeth according to an embodiment of the present disclosure is shown; Figure 4 A schematic diagram of a software pipeline according to an embodiment of this disclosure is shown; Figure 5 A schematic diagram illustrating the principle of generating a trigger signal according to Embodiment 1 of this disclosure is shown; Figure 6 A schematic diagram illustrating the principle of generating a trigger signal in Embodiment 2 of this disclosure is shown. Detailed Implementation

[0021] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0022] To address the aforementioned issues, this disclosure decomposes the main phase-locked loop (PLL) algorithm into multiple tasks and runs them on a multi-threaded processor. Simultaneously, it utilizes a hardware PLL as a feedforward input, significantly accelerating the stabilization process of the main PLL and improving the system's real-time performance and accuracy. The system includes a multi-threaded processor unit, a data storage unit, and a hardware PLL unit, enabling efficient parallel task processing and signal optimization, making it suitable for high-dynamic, high-precision motor control requirements.

[0023] like Figure 1 This is a schematic diagram of the system disclosed herein, which specifically includes: I. Basic Hardware Carrier: GTM General Purpose Timer Module The entire system and algorithm disclosed herein are implemented using the chip's built-in general-purpose timer GTM hardware module. GTM is a dedicated integrated hardware module for engine and motor control scenarios, internally integrating multiple functional subunits, including: Multi-threaded processor (MCS) (Programmable multi-hardware thread controller); Digital phase-locked loop (DPLL) (Dedicated hardware phase-locked circuit). ARU (Internal Data Interaction and Transmission Unit, used for data forwarding between modules); TIM input capture unit, ATOM compare output unit.

[0024] II. Overall Architecture: This solution adopts a dual-loop collaborative architecture consisting of a hardware PLL and a software master PLL. The two loops work together to calculate the motor rotor position. The core division of labor and collaborative logic are as follows: 1. From PLL (hardware loop) Implemented using the GTM's built-in DPLL hardware circuit, it belongs to the auxiliary tracking loop: Input signals: acquired by a rotary transformer or eddy current sensor, or two orthogonal signals Vsin and Vcos output by a sensorless observation algorithm for motors; Core advantages: Hardware circuits inherently possess high speed and low latency characteristics; Function: Quickly completes phase and frequency locking of input signal and outputs a coarse angular velocity prediction value.

[0025] 2. Main PLL (software loop) Implemented using the GTM's internal MCS multi-threaded processor, this is the final main loop for data output. Operating platform: GTM's built-in programmable multi-hardware thread controller (MCS); Core functions: Supports complete software phase-locked loop (PLL) algorithms, performing complex filtering, signal processing, and phase error compensation calculations; (Master-slave dual PLL algorithm, such as...) Figure 2 As shown, sin and Vcos are the input sine and cosine signals, ωdpll is the angular velocity calculated by the hardware module DPLL in the GTM, which is sent as input to the software PLL. ω is the angular velocity calculated by the MCS module through the software PLL. θ is the angle calculated by the MCS module through the software PLL. Output results: high-precision and highly stable rotor angle and motor speed, which are supplied for motor closed-loop vector control.

[0026] 3. Master-slave dual-loop collaborative working mechanism The signal is quickly locked in the PLL hardware loop first, and a rough angular velocity prediction value is output as feedforward data to the main PLL. This predicted value provides an initial approximation benchmark for the main PLL, significantly shortening the convergence and stabilization time of the software phase-locked loop. The main PLL combines the original orthogonal signal with the hardware feedforward prediction value to complete the fine correction calculation and output the final accurate rotor position and speed information.

[0027] The MCS software is broken down into multiple tasks, which are executed in a pipeline on multiple hardware threads. The specific implementation is as follows: The MCS implements four modules through software: signal receiving module, trigger signal generation module, main PLL module, and fault diagnosis module.

[0028] The signal receiving module consists of three tasks: receiving a sine wave (Vsin), receiving a cosine wave (Vcos), and filtering. The first two tasks execute synchronously, sending the received signal to the filtering task. The filtering task then filters the data and sends it to both the main PLL module and the trigger signal generation module.

[0029] The trigger signal generation module is implemented by a single task. Upon receiving two orthogonal signals (Vsin and Vcos), it quickly calculates a coarse angle value using the arctangent. It then checks if the angle increment exceeds a threshold (e.g., set to 30°). If it does, it controls the ATOM to flip its level once via the ARU or by directly writing the ATOM's output value, thus generating a trigger signal. This trigger signal is then sent to the PLL module to calculate the coarse angular velocity value ωdpll.

[0030] The main PLL module is implemented by one task. After receiving two orthogonal signals (Vsin and Vcos), it calculates the precise angle θ and angular velocity ω by combining the coarse value ωdpll calculated from the PLL module DPLL.

[0031] Fault diagnosis is implemented by one task. After the main PLL module outputs the result, the fault diagnosis module checks whether the signal amplitude and frequency are within a reasonable range. If they exceed the threshold, it reports to the CPU via an interrupt for phase-locked loop fault diagnosis.

[0032] The algorithm of the main PLL module is broken down into multiple tasks, which are mapped to different channels of the MCS to form a pipeline for parallel execution, improving the operation speed of the PLL and enhancing dynamic response capabilities. Since the MCS core is 24-bit and does not support floating-point numbers, the physical quantities used are converted to integers for calculation through per-unit standardization. The Q23 format is used for per-unit standardization, which means that after standardizing floating-point numbers, they are represented using 1 sign bit and 23 data bits. The per-unit base value is chosen to be a power of 2 to facilitate faster MCS operations.

[0033] Using the technology disclosed herein, without using a dedicated decoding chip or occupying CPU resources, the master-slave dual phase-locked loop described in this invention can be realized solely by relying on the hardware resources within the GTM.

[0034] In this technology, the DPLL in GTM is used as an auxiliary PLL to provide hardware feedforward prediction to the main PLL, giving the main PLL a "starting line advantage." This allows the entire system to track sudden changes in speed and load much faster than a single software loop. The main PLL does not have to sacrifice bandwidth and filtering strength in pursuit of speed. It can perform fine adjustments near a nearly stable "operating point," resulting in stronger anti-interference capabilities and higher steady-state accuracy.

[0035] Meanwhile, the software PLL algorithm is broken down into multiple tasks, which are executed in a pipeline using multiple hardware threads in the MCS, accelerating execution speed and improving dynamic response capabilities. (Software pipeline, such as...) Figure 4 (As shown) The following are embodiments of this disclosure: Example 1: The system consists of five parts: a signal receiving module, a trigger signal generation module, a slave PLL module, a master PLL module, and a fault diagnosis module. The signal receiving module, trigger signal generation module, master PLL module, and fault diagnosis module are implemented in software and run within the MCS. The slave PLL module is implemented entirely in hardware.

[0036] The signal receiving module synchronously receives a sine signal Vsin and a cosine signal Vcos. These two signals can be obtained from ADC sampling or are values ​​with sine and cosine information output by sensorless algorithms, etc. The received sine and cosine signals are then filtered, and the filtered quadrature signals are sent to the main PLL module and the trigger signal generation module, respectively.

[0037] After receiving two orthogonal signals, the trigger signal generation module calculates the arctangent value and then looks up a coarse angle value in a table based on the arctangent value. It then checks if the angle increment exceeds a threshold (e.g., set to 30°). If it does, it controls the ATOM to flip its voltage level once via the ARU or by directly writing to the ATOM's output value. A trigger signal (a PWM signal) is generated every 60°. To inform the hardware that a revolution has ended, the voltage level remains unchanged at 300° and 330°, resulting in a missing tooth signal to indicate to the DPLL module that a revolution has ended. This trigger signal is sent to the slave PLL module to calculate the coarse angular velocity value ωdpll. (e.g., ...) Figure 3 This is a schematic diagram of a PWM wave with missing teeth. This PWM wave is sent from the MCS to the DPLL via the ARU based on the input Vsin and Vcos signals. (e.g.) Figure 5 The diagram shown illustrates the principle of generating a trigger signal. The PLL module consists of three hardware units of GTM: TIM, MAP, and DPLL. TIM receives the trigger signal generated by the ATOM controlled by the MCS and sends it to the DPLL module via the MAP module. After receiving the trigger signal, the DPLL module will synchronize according to the expected missing tooth position of the signal, locate the current position, and calculate the angular velocity ωdpll.

[0038] The main PLL module first reads two orthogonal signals; then, the sine and cosine of the angle are obtained by a look-up table method. According to the angle output by the main PLL module, a sine value sin(θ) and a cosine value cos(θ) are obtained through table lookup; next, according to the formula ωerr = Vsin cos(θ) - Vcos sin(θ), the phase error ωerr is calculated; finally, ωerr is used as an input for PI calculation, the result of the PI calculation is added to ωdpll output by the hardware PLL, and then filtered to obtain the angular velocity ω, which is integrated to obtain the angle θ.

[0039] The fault diagnosis module checks the angular velocity ω and angle θ output by the main PLL to determine whether they exceed reasonable thresholds; if they do, an interrupt is generated and reported to the CPU.

[0040] Embodiment 2: The system is divided into five parts: a signal receiving module, a trigger signal generation module, a slave PLL module, a master PLL module, and a fault diagnosis module. The signal receiving module, the trigger signal generation module, the master PLL module, and the fault diagnosis module are implemented by software and run in the MCS. The slave PLL module is implemented purely by hardware.

[0041] The signal receiving module synchronously receives the sine signal Vsin and the cosine signal Vcos. These two signals can be sampled from an ADC, or can be values with sine and cosine information output by sensorless algorithms, etc. Then, the received sine and cosine signals are filtered, and the filtered orthogonal signals are sent to the master PLL module and the trigger signal generation module respectively.

[0042] The trigger signal generation module completes two tasks: comparing the two orthogonal signals and controlling the ATOM to generate the trigger signal. The specific implementation is as follows: When Vsin > 0 and Vcos > 0: If Vsin < Vcos, control the ATOM to output 1, If Vsin > Vcos, control the ATOM to output 0, When Vsin > 0 and Vcos < 0: If Vsin + Vcos > 0, control the ATOM to output 1, If Vsin + Vcos < 0, control the ATOM to output 0, When Vsin < 0 and Vcos < 0: If Vsin > Vcos, control the ATOM to output 1, If Vsin < Vcos, control the ATOM to output 0, When Vsin<0, Vcos>0: Control the output of ATOM to 1.

[0043] Following the above method, a trigger signal (a PWM signal) is generated every 90°, and a missing tooth is generated in the fourth quadrant to inform the DPLL module that one revolution has ended. This trigger signal is sent to the PLL module to calculate the coarse angular velocity value ωdpll. (e.g.) Figure 6 The diagram shown illustrates the principle of generating a trigger signal. The PLL module consists of three hardware units of GTM: TIM, MAP, and DPLL. TIM receives the trigger signal generated by the ATOM controlled by the MCS and sends it to the DPLL module via the MAP module. After receiving the trigger signal, the DPLL module will synchronize according to the expected missing tooth position of the signal, locate the current position, and calculate the angular velocity ωdpll.

[0044] The main PLL module first reads two orthogonal signals; then it uses a lookup table to calculate the sine and cosine of the angle. Based on the angle output by the main PLL module, it looks up a sine value sin(θ) and a cosine value cos(θ); then it uses the formula ωerr=Vsin cos(θ)-Vcos sin(θ) is used to calculate the phase error ωerr; finally, ωerr is used as input to perform PI calculation, the result of the PI calculation is added to ωdpll output by the hardware PLL, filtered to obtain the angular velocity ω, and ω is integrated to obtain the angle θ.

[0045] The fault diagnosis module checks the angular velocity ω and angle θ output by the main PLL to determine whether they exceed reasonable thresholds. If they do, an interrupt is generated and reported to the CPU.

[0046] Example 3: The system consists of three parts: a signal receiving module, a main PLL module, and a fault diagnosis module, all of which are implemented in software and run in the MCS.

[0047] The signal receiving module synchronously receives a sine signal Vsin and a cosine signal Vcos. These two signals can be obtained from ADC sampling or are values ​​with sine and cosine information output by sensorless algorithms, etc. The received sine and cosine signals are then filtered, and the filtered quadrature signals are sent to the main PLL module and the trigger signal generation module, respectively.

[0048] The main PLL module first reads two orthogonal signals; then it uses a lookup table to calculate the sine and cosine of the angle. Based on the angle output by the main PLL module, it looks up a sine value sin(θ) and a cosine value cos(θ); then it uses the formula ωerr=Vsin cos(θ)-Vcos sin(θ) is used to calculate the phase error ωerr; finally, ωerr is used as input to perform PI calculation, the result of the PI calculation is filtered to obtain the angular velocity ω, and ω is integrated to obtain the angle θ.

[0049] The fault diagnosis module checks the angular velocity ω and angle θ output by the main PLL to determine whether they exceed reasonable thresholds. If they do, an interrupt is generated and reported to the CPU.

[0050] This embodiment does not use a slave PLL, but only uses the master PLL to extract angular velocity and angle. This method is simpler, uses fewer modules, and can be quickly applied to motor angle decoding. It can be applied to angle extraction in decoding algorithms for motor eddy current sensors, rotary transformers, etc., as well as in various sensorless algorithms such as sliding diaphragm observers and flux linkage observers.

[0051] Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A master-slave dual phase-locked loop system for extracting motor position, characterized in that, include: The signal receiving module, deployed in the multi-threaded processor MCS inside the GTM, is used to acquire two orthogonal signals Vsin and Vcos that characterize the position of the motor rotor. A trigger signal generation module, connected to the signal receiving module, is used to generate a trigger pulse signal based on two orthogonal signals. The phase-locked loop hardware module receives the trigger pulse signal and synchronously calculates and outputs a rough angular velocity value. The main phase-locked loop module, implemented by the MCS multi-threaded processor software, is used to receive two orthogonal signals and the coarse angular velocity value. Using the coarse angular velocity value as the feedforward compensation, the module calculates and outputs the rotor angle value and the motor angular velocity value through the software phase-locked loop algorithm.

2. The system according to claim 1, characterized in that, The signal receiving module is also used to perform synchronous digital filtering on the two acquired orthogonal signals, and transmit the filtered orthogonal signals to the trigger signal generation module and the main phase-locked loop module respectively.

3. The system according to claim 2, characterized in that, The trigger pulse signal is a pulse signal with a missing tooth indicator, which is used to indicate the end position of a complete rotation of the rotor from the phase-locked loop hardware module.

4. The system according to claim 1, characterized in that, The phase-locked loop hardware module is integrated inside the GTM and includes a TIM unit, a MAP unit and a DPLL hardware unit. The trigger pulse signal is transmitted sequentially through ATOM, ARU, TIM, and MAP to the DPLL hardware unit, which calculates the coarse angular velocity value.

5. The system according to claim 1, characterized in that, The MCS includes multiple hardware channels. The signal receiving module, trigger signal generating module, and main phase-locked loop module are each split into independent tasks and mapped to different hardware channels for pipelined parallel operation.

6. The system according to claim 1, characterized in that, The main phase-locked loop module processes the computational data using Q23 per-unit integer format, which is compatible with the MCS24-bit non-floating-point arithmetic architecture.

7. The system according to claim 1, characterized in that, It also includes a fault diagnosis module, which is connected to the main phase-locked loop module and is used to verify whether the rotor angle and motor angular velocity values ​​output by the main phase-locked loop module exceed the preset threshold. When the values ​​are abnormal, a fault interruption signal is issued.

8. The system according to claim 3, characterized in that, The trigger signal generation module generates a pulse signal with a missing tooth identifier in the following ways: The coarse angle is calculated based on the arctangent of the quadrature signal. The level is flipped when the angle increment crosses the angle threshold. If the current angle is in the preset end interval, the level is not flipped to generate a missing tooth.

9. The system according to claim 3, characterized in that, The trigger signal generation module generates a pulse signal with a missing tooth identifier in the following ways: The ATOM level is controlled to flip based on the amplitude relationship between Vsin and Vcos in the four quadrants. The level is not flipped when the angle is in the fourth quadrant interval, so as to generate missing teeth.

10. A method for extracting motor position based on the master-slave dual phase-locked loop system for extracting motor position as described in claim 1, characterized in that, include: Two orthogonal signals, Vsin and Vcos, representing the position of the motor rotor are acquired, and synchronous digital filtering is performed on the two orthogonal signals. A trigger pulse signal with a missing tooth indicator is generated based on the two filtered orthogonal signals Vsin and Vcos. The trigger pulse signal is transmitted to the phase-locked loop hardware module for synchronous calculation, and a coarse angular velocity value is output. The system receives two filtered orthogonal signals, Vsin and Vcos, along with the coarse angular velocity value. Using the coarse angular velocity value as the feedforward compensation, it calculates and outputs the rotor angle value and the motor angular velocity value through a software phase-locked loop algorithm.