# US 12,184,214 B2 · Motor control device

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

- Number: US 12,184,214 B2
- Document ID: US12184214B2
- Status: Granted
- Kind: B2
- Application number: 18/153,442
- Filed: 2023-01-12
- Published: 2023-08-17
- Granted: 2024-12-31
- Earliest claimed: 2022-02-16
- Assignees: Denso Corporation
- Applicants: Denso Corporation
- Inventors: Ryo Suzuki
- Web page: https://patentgrep.com/patent/US12184214B2

## CPC

- H02M 7/5395: by pulse-width modulation
- H02P 27/08: with pulse width modulation
- H02M 7/537: using semiconductor devices only, e.g. single switched pulse inverters
- H02P 6/08: Arrangements for controlling the speed or torque of a single motor (H02P6/10, H02P6/28 take precedence)
- H02P 27/085: {wherein the PWM mode is adapted on the running conditions of the motor, e.g. the switching frequency}
- H02M: APPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF (transformers H01F; dynamo-electric converters H02K47/00; controlling transformers, reactors or choke coils, control or regulation of electric motors, generators or dynamo-electric converters H02P)
- H02P: CONTROL OR REGULATION OF ELECTRIC MOTORS, ELECTRIC GENERATORS OR DYNAMO-ELECTRIC CONVERTERS; CONTROLLING TRANSFORMERS, REACTORS OR CHOKE COILS

## Abstract

A motor control device includes a timer circuit, a control mode setting unit, a PWM control unit, an angle calculation unit, and an angle synchronization control unit. The PWM control unit switches the operation mode of the angle synchronization control unit according to the control mode set by the control mode setting unit, and executes the PWM control when the operation mode of the angle synchronization control unit is the PWM mode. The angle synchronization control unit executes the angle synchronization control when the operation mode is the angle synchronization mode.

## Claims

### Claim 1

A motor control device for driving a motor by operating an inverter having a plurality of switching elements that connect a positive electrode and a negative electrode of a DC power supply and a plurality of terminals of the motor, the motor control device comprising:
a timer circuit that includes: a plurality of compare registers for storing an on and off timing of each switching element for each pair of a positive side switching element and a negative side switching element respectively connected to the plurality of terminals of the motor in the inverter; and a counter for clocking, and is configured to output a signal representing the on and off timing of each switching element when a value of each of the compare registers matches a value of the counter;
a control mode setting unit configured to set a control mode of the motor to be one of a PWM mode for turning on and off each switching element at a predetermined timing at regular time intervals and an angle synchronization mode for turning on and off each switching element according to a rotation angle of the motor, based on a command torque input from an external device;
a PWM control unit configured to perform, at regular time intervals, a PWM control for calculating the on and off timing to be set to each compare register for driving the motor with the command torque and outputting the on and off timing to the timer circuit when the control mode set by the control mode setting unit is the PWM mode;
an angle calculation unit configured to calculate, as a rotation angle of the motor, the on and off timing of each switching element for driving the motor with the command torque at every predetermined rotation angle of the motor; and
an angle synchronization control unit configured to execute an angle synchronization control for writing the on and off timing to each compare register to turn on and off each switching element at the rotation angle calculated by the angle calculation unit, wherein:
the timer circuit includes a plurality of data registers that store a plurality of on and off timings output from the PWM control unit to each of the compare registers;
the timer circuit is configured to write the on and off timings stored in the plurality of data registers to the compare registers respectively at the regular time intervals;
the angle synchronization control unit switches an operation mode of the angle synchronization control unit as a first operation mode to the angle synchronization mode to start the angle synchronization control when the motor reaches a predetermined rotation angle position next time after receiving a first switching command in a case where the first operation mode is the PWM mode;
the angle synchronization control unit switches the first operation mode to the PWM mode to stop the angle synchronization control when receiving a second switching command in a case where the first operation mode is the angle synchronization mode;
the PWM control unit outputs the first switching command to the angle synchronization control unit to continue the PWM control when the control mode acquired from the control mode setting unit is the angle synchronization mode until the first operation mode of the angle synchronization control unit is switched from the PWM mode to the angle synchronization mode;
the PWM control unit outputs the second switching command to the angle synchronization control unit to switch the first operation mode of the angle synchronization control unit to the PWM control immediately before starting a next PWM control after the regular time interval has elapsed in a case where the control mode acquired from the control mode setting unit is the PWM mode, and the first operation mode of the angle synchronization control unit is the angle synchronization mode; and
the angle synchronization control unit: sets the first operation mode to the angle synchronization mode according to the first switching command output from the PWM control unit; writes a predetermined value not matching the value of the counter; and then, starts the angle synchronization control.

### Claim 2 (depends on 1)

The motor control device according to claim 1, wherein:
the PWM control unit:
obtains the control mode from the control mode setting unit and compares the control mode with the first operation mode of the angle synchronization control unit at each of a start and an end of an operation at the regular time intervals, respectively;
sets the operation mode of the PWM control unit as a second operation mode to the angle synchronization mode when both the control mode and the first operation mode are the angle synchronization mode;
sets the second operation mode to the PWM mode when at least one of the control mode and the first operation mode is the PWM mode;
stores the on and off timings written in the data registers of the timer circuit, respectively, by the PWM control as resetting data;
writes the resetting data in each of the data registers when the second operation mode set at the start of the operation is the angle synchronization mode and the second operation mode set at the end of the operation is the PWM mode, and outputs the second switching command to the angle synchronization control unit immediately before starting the operation after the regular time interval; and
writes the predetermined value in each of the data registers of the timer circuit when the second operation mode set at the start of the operation is the PWM mode, the first operation mode of the angle synchronization control unit is the angle synchronization mode, and the second operation mode set at the end of the operation is the PWM mode.

### Claim 3 (depends on 1)

The motor control device according to claim 1, wherein:
the PWM control unit sets a timing for outputting the second switching command to the angle synchronization control unit in the timer circuit, and outputs the second switching command to the angle synchronization control unit from the timer circuit at a set timing.

### Claim 4 (depends on 1)

The motor control device according to claim 1, wherein:
the motor control device is configured by a microcomputer including the timer circuit, and the angle synchronization control unit is configured by a core different from a CPU core functioning as the PWM control unit.
