# US 2022/0045640 A1 · Sampling trigger method, microprocessor, motor controller, and electric vehicle

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0045640 A1
- Document ID: US20220045640A1
- Status: Published application
- Kind: A1
- Application number: 17/495,754
- Filed: 2021-10-06
- Published: 2022-02-10
- Earliest claimed: 2020-05-28
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co.,Ltd.
- Inventors: Xuejuan Kong; Lixia Zou; Ying Liu
- Web page: https://patentgrep.com/patent/US20220045640A1

## CPC

- G01R 25/00: Arrangements for measuring phase angle between a voltage and a current or between voltages or currents
- H02P 23/18: Controlling the angular speed together with angular position or phase
- G01D 5/204: {by influencing the mutual induction between two or more coils (G01D5/22 takes precedence)}
- G01D 21/00: Measuring or testing not otherwise provided for
- H02P 27/04: using variable-frequency supply voltage, e.g. inverter or converter supply voltage
- H03M 1/462: {Details of the control circuitry, e.g. of the successive approximation register}
- H03M 1/485: {for position encoding, e.g. using resolvers or synchros}
- G01R 31/2829: {Testing of circuits in sensor or actuator systems (testing of apparatus for measuring electric or magnetic variables G01R35/00; testing of indicating or recording apparatus G01D; in airbag systems B60R21/0173; checking gas analysers G01N33/007; monitoring or fail-safe circuits for electromagnets H01F7/1844)}
- H03M 1/124: {Sampling or signal conditioning arrangements specially adapted for A/D converters}
- Y02T 10/72: Electric energy management in electromobility
- G01R: MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES (indicating correct tuning of resonant circuits H03J3/12)
- H02P: CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS
- G01D: MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- Y02T: CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION

## Abstract

This application relates to a motor controller applied to an electric vehicle, a microprocessor in the motor controller, and a sampling trigger method applied to the microprocessor. The sampling trigger method includes: a signal generation module generates an exciting fundamental wave signal to drive the resolver to work; a signal processing module determines an exciting symbol based on the exciting fundamental wave signal, where the exciting symbol includes alternate high-level signals and low-level signals, and the signal processing module further determines a zero crossing point signal of the exciting fundamental wave signal based on the exciting symbol; and a phase shift processing module performs phase shift processing on the zero crossing point signal to obtain a sampling trigger signal, to trigger the microprocessor to sample the resolver feedback signal. In this solution, fewer peripheral circuits of a chip are used, thereby improving a product integration degree.

## Claims

### Claim 1

A sampling trigger method, applied to a microprocessor, wherein the microprocessor is coupled to a resolver and a drive motor, and the microprocessor samples a resolver feedback signal related to an electrical angle of the drive motor and that is output by the resolver, the sampling trigger method comprises:
generating an exciting fundamental wave signal to drive the resolver;
determining an exciting symbol based on the exciting fundamental wave signal, wherein the exciting symbol consists of alternate high-level signals and low-level signals;
determining a zero-crossing point signal of the exciting fundamental wave signal based on the exciting symbol;
performing phase shift processing on the zero-crossing point signal to obtain a resolver feedback signal; and
sampling the resolver feedback signal.

### Claim 2 (depends on 1)

The sampling trigger method according to claim 1, wherein the microprocessor comprises a first sampling module, and the first sampling module is a successive approximation register analog to digital converter SAR-ADC; and the triggering the microprocessor to sample the resolver feedback signal comprises: triggering the SAR-ADC to sample the resolver feedback signal.

### Claim 3 (depends on 1)

The sampling trigger method according to claim 1, wherein the high-level signal corresponds to a part that is of the exciting fundamental wave signal and whose voltage is greater than a reference threshold voltage, the low-level signal corresponds to a part that is of the exciting fundamental wave signal and whose voltage is less than the reference threshold voltage, and a rising edge or a falling edge of the exciting symbol corresponds to a part that is of the exciting fundamental wave signal and whose voltage is equal to the reference threshold voltage.

### Claim 4 (depends on 3)

The sampling trigger method according to claim 3, wherein the determining a zero crossing point signal of the exciting fundamental wave signal based on the exciting symbol comprises: determining the zero crossing point signal of the exciting fundamental wave signal based on the rising edge and/or the falling edge of the exciting symbol.

### Claim 5 (depends on 1)

The sampling trigger method according to claim 1, wherein a phase shift of the sampling trigger signal relative to the zero-crossing point signal is greater than a 90° phase shift of the exciting fundamental wave signal from a zero crossing point to a peak point, and the phase shift can be adjusted.

### Claim 6 (depends on 1)

The sampling trigger method according to claim 1, wherein an absolute value of a difference between phase shift processing time of the zero-crossing point signal and primary reference time is less than a preset threshold, and the primary reference time is time of phase shift of the exciting fundamental wave signal from a zero-crossing point to a peak point and delay time of passing through a resolver sampling feedback loop by the exciting fundamental wave signal.

### Claim 7 (depends on 1)

The sampling trigger method according to claim 1, wherein the generating an exciting fundamental wave signal to drive the resolver to work comprises: further generating a carrier signal while generating the exciting fundamental wave signal, and comparing the exciting fundamental wave signal with the carrier signal to generate an exciting modulation signal, wherein an exciting signal is obtained after the exciting modulation signal is filtered and amplified, to drive the resolver to work; and
the performing phase shift processing on the zero-crossing point signal to obtain a sampling trigger signal comprises: performing phase shift processing on the zero crossing point signal to obtain a sampling trigger signal corresponding to a peak and/or a valley of a signal obtained after the exciting signal passes through a resolver sampling feedback loop.

### Claim 8 (depends on 1)

The sampling trigger method according to claim 1, wherein after the triggering the microprocessor to sample the resolver feedback signal, the sampling trigger method further comprises:
calculating the electrical angle of the drive motor based on collected data.

### Claim 9

A microprocessor, connected to a drive motor by using a resolver, and configured to sample a resolver feedback signal that is of an electrical angle of the drive motor and that is output by the resolver, wherein the microprocessor comprises:
a signal generation module, configured to generate an exciting fundamental wave signal to drive the resolver to work;
a signal processing module, configured to determine an exciting symbol based on the exciting fundamental wave signal, wherein the exciting symbol consists of alternate high-level signals and low-level signals, and the signal processing module is further configured to determine a zero crossing point signal of the exciting fundamental wave signal based on the exciting symbol; and
a phase shift processing module, configured to perform phase shift processing on the zero crossing point signal to obtain a sampling trigger signal, to trigger the microprocessor to sample the resolver feedback signal.

### Claim 10 (depends on 9)

The microprocessor according to claim 9, wherein the microprocessor comprises a successive approximation register analog to digital converter SAR-ADC; and the phase shift processing module is configured to perform phase shift processing on the zero-crossing point signal to obtain the sampling trigger signal, to trigger the SAR-ADC to sample the resolver feedback signal.

### Claim 11 (depends on 9)

The microprocessor according to claim 9, wherein the high-level signal corresponds to a part that is of the exciting fundamental wave signal and whose voltage is greater than a reference threshold voltage, the low-level signal corresponds to a part that is of the exciting fundamental wave signal and whose voltage is less than the reference threshold voltage, and a rising edge or a falling edge of the exciting symbol corresponds to a part that is of the exciting fundamental wave signal and whose voltage is equal to the reference threshold voltage.

### Claim 12 (depends on 11)

The microprocessor according to claim 11, wherein the signal processing module is configured to determine the zero-crossing point signal of the exciting fundamental wave signal based on the rising edge and/or the falling edge of the exciting symbol.

### Claim 13 (depends on 9)

The microprocessor according to claim 9, wherein a phase shift of the sampling trigger signal relative to the zero-crossing point signal is greater than a 90° phase shift of the exciting fundamental wave signal from a zero crossing point to a peak point, and the phase shift can be set.

### Claim 14 (depends on 9)

The microprocessor according to claim 9, wherein an absolute value of a difference between phase shift processing time of the zero-crossing point signal and primary reference time is less than a preset threshold, and the primary reference time is time of phase shift of the exciting fundamental wave signal from a zero-crossing point to a peak point and delay time of passing through a resolver sampling feedback loop by the exciting fundamental wave signal.

### Claim 15 (depends on 9)

The microprocessor according to claim 9, wherein the signal generation module is further configured to: generate a carrier signal, and compare the exciting fundamental wave signal with the carrier signal to generate an exciting modulation signal, wherein an exciting signal is obtained after the exciting modulation signal is filtered and amplified, to drive the resolver to work; and the phase shift processing module is configured to perform phase shift processing on the zero crossing point signal to obtain a sampling trigger signal corresponding to a peak and/or a valley of a signal obtained after the exciting signal passes through a resolver sampling feedback loop.

### Claim 16 (depends on 9)

The microprocessor according to claim 9, wherein the microprocessor further comprises a first calculation module, and the first calculation module is configured to calculate an electrical angle of the drive motor based on collected data.

### Claim 17

A motor controller, comprising an inverter circuit, wherein an input end of the inverter circuit is connected to a power battery, and an output end of the inverter circuit is connected to a drive motor; the inverter circuit is configured to convert a high-voltage direct current output by the power battery into an alternating current to enable the drive motor to work; and the motor controller further comprises a microprocessor coupled to the drive motor using a resolver, wherein the microprocessor comprises:
a signal generation module, configured to generate an exciting fundamental wave signal to drive the resolver to work;
a signal processing module, configured to determine an exciting symbol based on the exciting fundamental wave signal, wherein the exciting symbol consists of alternate high-level signals and low-level signals, and the signal processing module is further configured to determine a zero-crossing point signal of the exciting fundamental wave signal based on the exciting symbol; and
a phase shift processing module, configured to perform phase shift processing on the zero-crossing point signal to obtain a sampling trigger signal, to trigger the microprocessor to sample the resolver feedback signal.

### Claim 18 (depends on 17)

The motor controller according to claim 17, wherein the motor controller further comprises a resolver exciting processing circuit and a resolver feedback processing circuit; the resolver exciting processing circuit is electrically connected between the microprocessor and the resolver, and is configured to filter and amplify an exciting modulation signal; and the resolver feedback processing circuit is connected between the resolver and the microprocessor, and is configured to convert a resolver feedback signal into a single-ended signal.

### Claim 19 (depends on 18)

The motor controller according to claim 18, wherein the motor controller further comprises a diagnosis signal sampling circuit; and the diagnosis signal sampling circuit is electrically connected to both the resolver exciting processing circuit and the resolver feedback processing circuit, and is configured to: collect an exciting signal and a resolver feedback signal obtained after processing by the resolver feedback processing circuit, and generate a corresponding loopback detection signal;
the microprocessor further comprises a first diagnosis module; and the first diagnosis module is configured to diagnose, based on the loopback detection signal, whether the resolver exciting processing circuit and the resolver feedback processing circuit are faulty;
the microprocessor further comprises a second sampling module, a second calculation module, and a second diagnosis module; the second sampling module is configured to sample the resolver feedback signal; and the second calculation module is configured to calculate an electrical angle of the drive motor based on data collected by the second sampling module, wherein one electrical angle is used for torque control, and the other electrical angle is used for torque monitoring; and
the second diagnosis module is configured to diagnose, in real time, data collected by a first sampling module and the second sampling module, and is further configured to diagnose the two electrical angles in real time, so that the electrical angles meet an input quantity requirement of a torque function safety design.

### Claim 20 (depends on 17)

The motor controller of claim 17, where the controller is embodied in an electronic vehicle.
