JP6409663B2 - Semiconductor device for motor control - Google Patents

Semiconductor device for motor control Download PDF

Info

Publication number
JP6409663B2
JP6409663B2 JP2015077636A JP2015077636A JP6409663B2 JP 6409663 B2 JP6409663 B2 JP 6409663B2 JP 2015077636 A JP2015077636 A JP 2015077636A JP 2015077636 A JP2015077636 A JP 2015077636A JP 6409663 B2 JP6409663 B2 JP 6409663B2
Authority
JP
Japan
Prior art keywords
control
motor
register
unit
phase
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015077636A
Other languages
Japanese (ja)
Other versions
JP2016197976A (en
Inventor
長谷川 功
長谷川  功
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2015077636A priority Critical patent/JP6409663B2/en
Publication of JP2016197976A publication Critical patent/JP2016197976A/en
Application granted granted Critical
Publication of JP6409663B2 publication Critical patent/JP6409663B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、モータを制御するためのモータ制御用の半導体装置に関する。   The present invention relates to a motor control semiconductor device for controlling a motor.

モータ制御用の半導体装置は、CPU等の主制御部と、例えばPWM制御する際のパルス幅やパルス周期などを設定するためのレジスタとを備えている(例えば、特許文献1参照)。このようなモータ制御用の半導体装置は、例えば三相モータを駆動する場合において、モータの回転位置に基づいて通電パターンを判定し、その通電パターンで通電相すべき相に通電されるようにアクセス先のレジスタを切り替える等の処理を行っている。   A semiconductor device for motor control includes a main control unit such as a CPU and a register for setting, for example, a pulse width and a pulse period when PWM control is performed (for example, see Patent Document 1). Such a semiconductor device for motor control, for example, when driving a three-phase motor, determines an energization pattern based on the rotational position of the motor and accesses so that the phase to be energized is energized by the energization pattern. Processing such as switching the previous register is performed.

特開平成10−075597号公報JP-A-10-075597

しかしながら、従来では、上記した処理を主制御部でコンピュータプログラムを実行することでソフトウェア的に行っていた。そのため、主制御部の処理負荷の増大、およびプログラムコード長の増大を招いていた。また、高い処理能力が必要となることから、モータ制御用の半導体装置自体のコストが増加するとともに、プログラムコード長が増大することで大きな容量のメモリが必要となる等、周辺回路のコストが増加する要因にもなっていた。   However, conventionally, the above-described processing is performed by software by executing a computer program in the main control unit. For this reason, the processing load of the main control unit is increased and the program code length is increased. In addition, since high processing capacity is required, the cost of the semiconductor device for motor control itself increases, and the cost of peripheral circuits increases, such as the need for a large capacity memory due to the increase in program code length. It was also a factor.

本発明は、上記した事情に鑑みてなされたものであり、その目的は、主制御部の処理負荷およびプログラムコード長の増大を抑制することができるモータ制御用の半導体装置を提供することにある。   The present invention has been made in view of the above circumstances, and an object thereof is to provide a motor control semiconductor device capable of suppressing an increase in processing load and program code length of a main control unit. .

請求項1に記載した発明によれば、モータ制御用の半導体装置は、モータを駆動するための駆動指令を生成する主制御部と、主制御部に接続され、モータを駆動するための制御信号を生成するモータ制御部と、を備え、モータ制御部は、モータの回転位置を検出する位置検出部と、位置検出部で検出されたモータの回転位置に基づいて通電すべき相を自身で判定し、当該通電すべき相が通電されるように駆動指令が設定される仮想レジスタ部と、仮想レジスタ部に設定された駆動指令に基づいて制御信号を生成する信号生成部と、を備える。   According to the first aspect of the present invention, a semiconductor device for motor control includes a main control unit that generates a drive command for driving the motor, and a control signal that is connected to the main control unit and drives the motor. A motor control unit that generates a motor, and the motor control unit itself determines a position to be energized based on a position detection unit that detects a rotation position of the motor and a rotation position of the motor detected by the position detection unit. And a virtual register unit in which a drive command is set so that the phase to be energized is energized, and a signal generation unit that generates a control signal based on the drive command set in the virtual register unit.

これにより、モータ制御用の半導体装置では、従来のような通電パターンの特定および当該通電パターンで通電されるべき相に通電するための制御レジスタの選択等の処理を主制御部で行う必要がない。したがって、主制御部の処理負荷の増大およびプログラムコード長の増大を抑制することができる。また、必要なメモリ容量が削減されるため、コストの増加を抑制することができる。   As a result, in the semiconductor device for motor control, it is not necessary for the main control unit to perform processing such as specifying the energization pattern and selecting a control register for energizing the phase to be energized according to the energization pattern as in the prior art. . Therefore, an increase in processing load on the main control unit and an increase in program code length can be suppressed. In addition, since the necessary memory capacity is reduced, an increase in cost can be suppressed.

第1実施形態のモータ制御用の半導体装置の電気的構成を模式的に示す図The figure which shows typically the electric constitution of the semiconductor device for motor control of 1st Embodiment. 正転時の制御態様を模式的に示す図The figure which shows the control mode at the time of forward rotation typically 正転時の位置信号、通電パターンおよび通電相の関係を示す図The figure which shows the relationship of the position signal at the time of forward rotation, a conduction pattern, and a conduction phase 反転時の制御態様を模式的に示す図The figure which shows the control mode at the time of inversion typically 反転時の位置信号、通電パターンおよび通電相の関係を示す図The figure which shows the relationship of the position signal at the time of inversion, a conduction pattern, and a conduction phase 制御対象となるレジスタの関係を示す図Diagram showing the relationship of registers to be controlled CPUによるモータ制御処理の流れを示す図The figure which shows the flow of the motor control processing by CPU 第2実施形態のモータ制御用の半導体装置の電気的構成を模式的に示す図The figure which shows typically the electric constitution of the semiconductor device for motor control of 2nd Embodiment. 第3実施形態のモータ制御用の半導体装置の電気的構成を模式的に示す図The figure which shows typically the electrical constitution of the semiconductor device for motor control of 3rd Embodiment. 第4実施形態のモータ制御用の半導体装置の電気的構成を模式的に示す図The figure which shows typically the electric constitution of the semiconductor device for motor control of 4th Embodiment.

以下、本発明の複数の実施形態について図面を参照しながら説明する。なお、各実施形態において実質的に共通する部位には同一符号を付し、その詳細な説明は省略する。
(第1実施形態)
以下、第1実施形態について、図1から図7を参照しながら説明する。
Hereinafter, a plurality of embodiments of the present invention will be described with reference to the drawings. In addition, the same code | symbol is attached | subjected to the site | part substantially common in each embodiment, and the detailed description is abbreviate | omitted.
(First embodiment)
The first embodiment will be described below with reference to FIGS.

図1に示すように、モータ制御用の半導体装置1(以下、単に半導体装置1と称する)は、インバータ回路2に接続されている。本実施形態のインバータ回路2は、図示は省略するが、例えばIGBT等のスイッチング素子をハイサイド側とローサイド側に直列に接続した直列回路を、U相、V相、W相の三相分設けた構成となっている。以下、半導体装置1からインバータ回路2に与える信号を制御信号(図1にはUH、UL、VH、VL、WH、WLと示す)と称し、インバータ回路2からモータ3に与えられる信号を駆動信号(図1には、EU、EV、EWと示す)と称して説明する。   As shown in FIG. 1, a motor control semiconductor device 1 (hereinafter simply referred to as a semiconductor device 1) is connected to an inverter circuit 2. In the inverter circuit 2 of the present embodiment, although not shown, for example, a series circuit in which switching elements such as IGBTs are connected in series on the high side and the low side is provided for three phases of U phase, V phase, and W phase. It becomes the composition. Hereinafter, a signal given from the semiconductor device 1 to the inverter circuit 2 is referred to as a control signal (indicated as UH, UL, VH, VL, WH, WL in FIG. 1), and a signal given from the inverter circuit 2 to the motor 3 is a drive signal. (Referred to as EU, EV, and EW in FIG. 1).

半導体装置1は、CPU4、モータ制御回路5、PWM信号生成回路6および位置検出回路7等を備えている。CPU4(主制御部に相当する)は、半導体装置1の主たる制御回路であり、図示しないROM等に記憶されているコンピュータプログラムを実行することにより、半導体装置1全体を制御する。また、CPU4は、モータ3を駆動するための駆動指令を生成する。   The semiconductor device 1 includes a CPU 4, a motor control circuit 5, a PWM signal generation circuit 6, a position detection circuit 7, and the like. The CPU 4 (corresponding to a main control unit) is a main control circuit of the semiconductor device 1 and controls the entire semiconductor device 1 by executing a computer program stored in a ROM (not shown) or the like. Further, the CPU 4 generates a drive command for driving the motor 3.

モータ制御回路5(モータ制御部に相当する)は、モータ3を制御するための制御信号を生成して出力する。本実施形態の場合、モータ制御回路5は、矩形波制御によりモータ3の駆動を制御する。このため、モータ制御回路5は、PWM信号生成回路6(信号生成部に相当する)で制御信号(いわゆるPWM(Pulse Width Modulation)信号)を生成して出力する。このとき、PWM信号生成回路6で生成される制御信号のパルス幅やパルス周期は、仮想レジスタ回路8(仮想レジスタ部に相当する)に設定されている駆動指令(レジスタ値)によって規定される。つまり、PWM信号生成回路6は、仮想レジスタ回路8から駆動指令を読み出すことで、ハードウェア的に制御信号を生成する。   A motor control circuit 5 (corresponding to a motor control unit) generates and outputs a control signal for controlling the motor 3. In the present embodiment, the motor control circuit 5 controls the driving of the motor 3 by rectangular wave control. For this reason, the motor control circuit 5 generates and outputs a control signal (a so-called PWM (Pulse Width Modulation) signal) by the PWM signal generation circuit 6 (corresponding to a signal generation unit). At this time, the pulse width and pulse period of the control signal generated by the PWM signal generation circuit 6 are defined by a drive command (register value) set in the virtual register circuit 8 (corresponding to the virtual register unit). That is, the PWM signal generation circuit 6 reads the drive command from the virtual register circuit 8 to generate a control signal in hardware.

仮想レジスタ回路8は、内部バス9によってCPU4に接続されている。この仮想レジスタ回路8は、上記したインバータ回路2を構成するハイサイド側とローサイド側のスイッチング素子に対応して、ハイサイド側仮想レジスタ回路8Hとローサイド側仮想レジスタ回路8Lとに区分けされている。   The virtual register circuit 8 is connected to the CPU 4 by an internal bus 9. The virtual register circuit 8 is divided into a high-side virtual register circuit 8H and a low-side virtual register circuit 8L corresponding to the high-side and low-side switching elements constituting the inverter circuit 2 described above.

このうち、ハイサイド側仮想レジスタ回路8Hは、U相のハイサイド側に対応する制御レジスタ10H、V相のハイサイド側に対応する制御レジスタ11H、および、W相のハイサイド側に対応する制御レジスタ12Hの3つの制御レジスタで構成されるハイサイド側レジスタ群14H(ハイサイド側のレジスタ群に相当する)と、このハイサイド側レジスタ群14Hを制御するレジスタ制御回路13H(レジスタ制御手段に相当する)とを備えている。   Among these, the high-side virtual register circuit 8H includes a control register 10H corresponding to the U-phase high side, a control register 11H corresponding to the V-phase high side, and a control corresponding to the W-phase high side. A high-side register group 14H (corresponding to a high-side register group) composed of three control registers of the register 12H, and a register control circuit 13H (corresponding to register control means) for controlling the high-side register group 14H And).

各制御レジスタ10H、11H、12Hには、対応する制御信号のパルス幅やパルス周期を設定するための駆動指令がCPU4から設定される。このとき、ハイサイド側仮想レジスタ回路8Hは、データバスが共通化されているとともに、1つのアドレス比較器15Hによって単独のアドレス(ADD_H)に割り付けられている。このため、ハイサイド側仮想レジスタ回路8Hは、複数の制御レジスタ10H、11H、12Hを有しているものの、CPU4からは単一のレジスタとしてアクセスされることになる。   In each of the control registers 10H, 11H, and 12H, a drive command for setting the pulse width and pulse period of the corresponding control signal is set from the CPU 4. At this time, the high-side virtual register circuit 8H has a common data bus and is assigned to a single address (ADD_H) by one address comparator 15H. For this reason, the high-side virtual register circuit 8H has a plurality of control registers 10H, 11H, and 12H, but is accessed from the CPU 4 as a single register.

このとき、データバスが共通化されているため、全ての制御レジスタ10H、11H、12Hにデータ(図1には駆動指令と示す)が到達するものの、実際にデータが設定される制御レジスタは、レジスタ制御回路13Hにより決定される。
このレジスタ制御回路13Hは、詳細は後述するが、単一のレジスタとしてCPU4からアクセスされた際、位置検出回路7(位置検出部に相当する)の検出結果に基づいて、CPU4のアクセス先を制御レジスタ10H、11H、12Hのいずれかに設定する。また、レジスタ制御回路13Hは、本実施形態の場合、詳細は後述するが、アクセス先に設定されなかった制御レジスタをオフする機能も備えている。
At this time, since the data bus is shared, data (shown as a drive command in FIG. 1) reaches all the control registers 10H, 11H, and 12H, but the control register in which the data is actually set is It is determined by the register control circuit 13H.
As will be described in detail later, the register control circuit 13H controls the access destination of the CPU 4 based on the detection result of the position detection circuit 7 (corresponding to the position detection unit) when accessed from the CPU 4 as a single register. Set to any of the registers 10H, 11H, and 12H. In the present embodiment, the register control circuit 13H also has a function of turning off a control register that is not set as an access destination, as will be described in detail later.

一方、ローサイド側仮想レジスタ回路8Lは、U相のローサイド側に対応する制御レジスタ10L、V相のローサイド側に対応する制御レジスタ11L、およびW相のローサイド側に対応する制御レジスタ12Lの3つの制御レジスタで構成されるローサイド側レジスタ群14L(ローサイド側のレジスタ群に相当する)と、このローサイド側レジスタ群14Lを制御するレジスタ制御回路13L(レジスタ制御手段に相当する)とを備えている。   On the other hand, the low-side virtual register circuit 8L includes three controls: a control register 10L corresponding to the U-phase low-side, a control register 11L corresponding to the V-phase low-side, and a control register 12L corresponding to the W-phase low-side. A low-side register group 14L composed of registers (corresponding to a low-side register group) and a register control circuit 13L (corresponding to register control means) for controlling the low-side register group 14L are provided.

各制御レジスタ10L、11L、12Lには、対応する制御信号のパルス幅やパルス周期を設定するための駆動指令がCPU4から設定される。このとき、ローサイド側仮想レジスタ回路8Lは、データバスが共通化されているとともに、1つのアドレス比較器15Lによって単独のアドレス(ADD_L)に割り付けられている。このため、ローサイド側仮想レジスタ回路8Lは、複数の制御レジスタ10L、11L、12Lを有しているものの、CPU4からは単一のレジスタとしてアクセスされることになる。
このとき、データバスが共通化されているため、全ての制御レジスタ10L、11L、12Lにデータ(図1には駆動指令と示す)が到達するものの、実際にデータが設定される制御レジスタは、レジスタ制御回路13Lにより決定される。
In each of the control registers 10L, 11L, and 12L, a drive command for setting the pulse width and pulse period of the corresponding control signal is set by the CPU 4. At this time, the low-side virtual register circuit 8L has a common data bus and is assigned to a single address (ADD_L) by one address comparator 15L. Therefore, the low-side virtual register circuit 8L has a plurality of control registers 10L, 11L, and 12L, but is accessed from the CPU 4 as a single register.
At this time, since the data bus is shared, data (shown as a drive command in FIG. 1) reaches all the control registers 10L, 11L, and 12L, but the control register in which the data is actually set is It is determined by the register control circuit 13L.

このレジスタ制御回路13Lは、詳細は後述するが、単一のレジスタとしてCPU4からアクセスされた際、位置検出回路7の検出結果に基づいて、CPU4のアクセス先を制御レジスタ10L、11L、12Lのいずれかに設定する。また、レジスタ制御回路13Lは、本実施形態の場合、詳細は後述するが、アクセス先に設定されなかった制御レジスタをオフする機能も備えている。   The register control circuit 13L will be described in detail later, but when accessed from the CPU 4 as a single register, the access destination of the CPU 4 is set as one of the control registers 10L, 11L, and 12L based on the detection result of the position detection circuit 7. Set it. In the present embodiment, the register control circuit 13L has a function of turning off a control register that is not set as an access destination, as will be described in detail later.

位置検出回路7は、モータ3に設けられている位置センサ16から出力される位置信号に基づいて、モータ3の回転位置を検出する。また、詳細は後述するが、位置検出回路7は、モータ3の回転位置にもとづいて通電パターン(図3、図5参照)を特定し、その特定結果(図1には位置情報と示す)を出力する。   The position detection circuit 7 detects the rotational position of the motor 3 based on the position signal output from the position sensor 16 provided in the motor 3. Although the details will be described later, the position detection circuit 7 identifies the energization pattern (see FIGS. 3 and 5) based on the rotational position of the motor 3, and the identification result (shown as position information in FIG. 1). Output.

位置センサ16(16U、16V、16W)は、モータ3の各相の誘起電圧を検出する。また、位置センサ16は、検出した各相の誘起電圧と基準値とを比較した比較結果をHレベルまたはLレベルの位置信号として出力する。なお、位置センサ16は、使用環境等に応じて例えばホールIC等で構成してもよい。   The position sensor 16 (16U, 16V, 16W) detects an induced voltage of each phase of the motor 3. Further, the position sensor 16 outputs a comparison result obtained by comparing the detected induced voltage of each phase with a reference value as a position signal of H level or L level. Note that the position sensor 16 may be constituted by, for example, a Hall IC according to the use environment or the like.

次に上記した構成の作用について説明する。
モータ3を矩形波制御する場合、ロータの回転角度に応じてスイッチング素子のオン/オフを切り替えてロータを回転させることになる。このとき、スイッチング素子のオン/オフ状態(動作態様)は、ロータが電気角で60度回転するごとに切り替えられる。つまり、モータ3が1回転する場合、6つの通電パターンが存在する。そのため、モータ3を正回転させる場合には、1回転中の駆動信号(EU、EV、EW)、位置信号(HU、HV、HW)および制御信号(UH、UL、VH、VL、WH、WL)は、図2に示すような対応関係となる。
Next, the operation of the above configuration will be described.
When the motor 3 is subjected to rectangular wave control, the switching element is switched on / off according to the rotation angle of the rotor to rotate the rotor. At this time, the ON / OFF state (operation mode) of the switching element is switched every time the rotor rotates 60 degrees in electrical angle. That is, when the motor 3 rotates once, there are six energization patterns. Therefore, when the motor 3 is rotated forward, the drive signal (EU, EV, EW), the position signal (HU, HV, HW) and the control signal (UH, UL, VH, VL, WH, WL) during one rotation. ) Is a correspondence as shown in FIG.

なお、この図2のような対応関係は、モータ3を矩形波制御する際の一般的な関係であるため詳細な説明は省略するが、ハイサイド側のスイッチング素子がパルス状にオン/オフされ、対応するローサイド側のスイッチング素子のオンされることで、通電すべき相に通電が行われる。   The correspondence relationship as shown in FIG. 2 is a general relationship when the motor 3 is controlled by a rectangular wave, and thus detailed description thereof is omitted. However, the switching element on the high side is turned on / off in a pulsed manner. When the corresponding switching element on the low side is turned on, the phase to be energized is energized.

例えばモータ3を正回転させる場合、位置信号と通電パターンとは、図3にも示すように、以下のような対応関係になる。なお、通電パターンの番号は便宜的なものである。
・HU=H、HV=L、HW=Hのとき通電パターン「1」
・HU=H、HV=L、HW=Lのとき通電パターン「2」
・HU=H、HV=H、HW=Lのとき通電パターン「3」
・HU=L、HV=H、HW=Lのとき通電パターン「4」
・HU=L、HV=H、HW=Hのとき通電パターン「5」
・HU=L、HV=L、HW=Hのとき通電パターン「6」
このとき、通電パターンと通電相との関係は、以下のようになる。
For example, when the motor 3 is rotated forward, the position signal and the energization pattern have the following correspondence as shown in FIG. Note that the energization pattern numbers are for convenience.
・ When HU = H, HV = L, HW = H, energization pattern “1”
・ When HU = H, HV = L, HW = L, energization pattern “2”
・ When HU = H, HV = H, HW = L, the energization pattern “3”
・ When HU = L, HV = H, HW = L, energization pattern “4”
・ When HU = L, HV = H, HW = H, energization pattern “5”
・ When HU = L, HV = L, HW = H, energization pattern “6”
At this time, the relationship between the energization pattern and the energized phase is as follows.

・通電パターン「1」:通電相はU相→V相
・通電パターン「2」:通電相はU相→W相
・通電パターン「3」:通電相はV相→W相
・通電パターン「4」:通電相はV相→U相
・通電パターン「5」:通電相はW相→U相
・通電パターン「6」:通電相はW相→V相
一方、モータ3を反転(正回転とは逆向きに回転)させる場合には、駆動信号、位置信号および制御信号は、図4に示すような動作態様となる。このため、反転時にも、正回転時と同様に6つの通電パターンが存在する。このとき、図5にも示すように、通電パターンと通電相との対応関係は正転時と同じであるものの、位置信号と通電パターンとの対応関係は、以下のようになる。
• Energization pattern “1”: Energized phase is U phase → V phase • Energized pattern “2”: Energized phase is U phase → W phase • Energized pattern “3”: Energized phase is V phase → W phase • Energized pattern “4” ”: Energized phase is V phase → U phase • Energized pattern“ 5 ”: Energized phase is W phase → U phase • Energized pattern“ 6 ”: Energized phase is W phase → V phase On the other hand, the motor 3 is reversed (forward rotation) 4), the drive signal, the position signal, and the control signal are operated as shown in FIG. For this reason, there are six energization patterns at the time of inversion as well as at the time of forward rotation. At this time, as shown in FIG. 5, the correspondence between the energization pattern and the energization phase is the same as that during forward rotation, but the correspondence between the position signal and the energization pattern is as follows.

・HU=H、HV=L、HW=Hのとき通電パターン「4」
・HU=H、HV=L、HW=Lのとき通電パターン「5」
・HU=H、HV=H、HW=Lのとき通電パターン「6」
・HU=L、HV=H、HW=Lのとき通電パターン「1」
・HU=L、HV=H、HW=Hのとき通電パターン「2」
・HU=L、HV=L、HW=Hのとき通電パターン「3」
・ When HU = H, HV = L, HW = H, energization pattern “4”
・ When HU = H, HV = L, HW = L, energization pattern “5”
・ When HU = H, HV = H, HW = L, energization pattern “6”
・ When HU = L, HV = H, HW = L, energization pattern “1”
・ When HU = L, HV = H, HW = H, energization pattern “2”
・ When HU = L, HV = L, HW = H, energization pattern “3”

さて、ここで、比較例として従来の制御手法について説明する。従来の制御手法では、通電パターンとレジスタとの対応関係を記憶しておき、検出されたモータ3の回転位置に基づく通電パターンの特定、当該通電パターンで通電されるべき相に通電するためのレジスタの選択、選択したレジスタへの駆動指令の設定をソフトウェアで実行していた。このため、それぞれの通電パターンに対応するために6通りのプログラムコードを記述する必要があり、また、それぞれの通電パターンにおいてU相、V相およびW相の各スイッチング素子のオン/オフを制御するための駆動指令の設定が必要となっていた。その結果、処理負荷の増大やプログラムコード長の増大、それに伴うコストの増加を招いていた。   Now, a conventional control method will be described as a comparative example. In the conventional control method, the correspondence relationship between the energization pattern and the register is stored, the energization pattern is specified based on the detected rotational position of the motor 3, and the register for energizing the phase to be energized in the energization pattern. And setting the drive command to the selected register using software. For this reason, it is necessary to describe six kinds of program codes in order to correspond to the respective energization patterns, and on / off of each switching element of the U phase, the V phase and the W phase is controlled in each energization pattern. It was necessary to set a drive command for this purpose. As a result, an increase in processing load, an increase in program code length, and an associated increase in cost have been caused.

そこで、本実施形態では、以下のようにして処理負荷やプログラムコード長が増大すること、および、それに伴ってコストが増加してしまうことを抑制している。
半導体装置1の場合、レジスタ制御回路13には、上記したような通電パターンと通電すべき相との対応関係が予め設定されている。そして、レジスタ制御回路13は、位置検出回路7で特定された通電パターンに基づいて、CPU4のアクセス先を通電すべき相に対応する制御レジスタに設定する。具体的には、レジスタ制御回路13は、図6に示す対応関係が設定されている。本実施形態の場合、通電パターン「1」では、CPU4のアクセス先となる制御レジスタは、ハイサイド側がU相の制御レジスタ10H、ローサイド側がV相の制御レジスタ11Lになるように設定されている。
Therefore, in the present embodiment, the increase in processing load and program code length and the accompanying increase in cost are suppressed as follows.
In the case of the semiconductor device 1, the register control circuit 13 is preset with a correspondence relationship between the energization pattern and the phase to be energized as described above. The register control circuit 13 sets the access destination of the CPU 4 to the control register corresponding to the phase to be energized based on the energization pattern specified by the position detection circuit 7. Specifically, the correspondence shown in FIG. 6 is set in the register control circuit 13. In the present embodiment, in the energization pattern “1”, the control register that is the access destination of the CPU 4 is set so that the U-side control register 10H is on the high side and the V-phase control register 11L is on the low side.

このとき、位置検出回路7により通電パターンが「1」であると特定された場合には、ハイサイド側のレジスタ制御回路13Hは、CPU4のアクセス先を制御レジスタ10Hに切り替える。これにより、CPU4が単一アドレス(ここでは、ADD_H)にデータ(駆動指令)を書き込むアクセスを行った場合には、そのデータは、通電すべき相に対応する制御レジスタ、すなわち、ここでは制御レジスタ10Hに書き込まれることになる。なお、レジスタ制御回路13Hは、アクセス先でない制御レジスタ11H、12Hをオフ(スイッチング素子がオフされる状態)にする。   At this time, when the position detection circuit 7 specifies that the energization pattern is “1”, the high-side register control circuit 13H switches the access destination of the CPU 4 to the control register 10H. As a result, when the CPU 4 performs an access to write data (drive command) to a single address (here, ADD_H), the data is stored in the control register corresponding to the phase to be energized, that is, the control register here. 10H will be written. The register control circuit 13H turns off the control registers 11H and 12H that are not access destinations (a state in which the switching element is turned off).

そのため、CPU4がモータ3を制御する場合には、図7に示すように、CPU4は、モータ3の回転速度等を検出するモータ状態検出を行うと(S1)、それに対応するデータ(駆動指令)を、ハイサイド側仮想レジスタ回路8Hに出力する(S2)。このとき、上記したようにアクセス先つまりデータの書き込み先となる制御レジスタは、モータ制御回路5側で自動的に選択される。このため、CPU4から単一アドレス(ここでは、ADD_H)にアクセスすれば、データ(駆動指令)は、例えば制御レジスタ10Hに設定されることになる。つまり、半導体装置1では、通電パターンの特定および当該通電パターンで通電されるべき相に通電するためのレジスタの選択等の処理をCPU4で行わなくても、所望の制御レジスタに対して駆動指令を設定することができる。   Therefore, when the CPU 4 controls the motor 3, as shown in FIG. 7, when the CPU 4 detects a motor state for detecting the rotation speed of the motor 3 (S1), the corresponding data (drive command) Is output to the high-side virtual register circuit 8H (S2). At this time, as described above, the control register that is the access destination, that is, the data write destination, is automatically selected on the motor control circuit 5 side. Therefore, when the CPU 4 accesses a single address (here, ADD_H), the data (drive command) is set in the control register 10H, for example. That is, in the semiconductor device 1, even if the CPU 4 does not perform processing such as specifying an energization pattern and selecting a register for energizing a phase to be energized in the energization pattern, a drive command is issued to a desired control register. Can be set.

一方、ローサイド側のレジスタ制御回路13Lにおいては、レジスタ制御回路13Lにより、位置検出回路7により通電パターンが「1」であると特定された場合には、CPU4のアクセス先を制御レジスタ11Lに設定される。このため、CPU4が単一アドレス(ここでは、ADD_L)にデータ(駆動指令)を設定するためのアクセスを行った場合には、そのデータは、通電すべき相に対応する制御レジスタ11Lに設定されることになる。なお、レジスタ制御回路13Lは、アクセス先でない制御レジスタ10L、12Lをオフにする。   On the other hand, in the low-side register control circuit 13L, when the position detection circuit 7 specifies that the energization pattern is “1” by the register control circuit 13L, the access destination of the CPU 4 is set in the control register 11L. The For this reason, when the CPU 4 performs access for setting data (drive command) in a single address (here, ADD_L), the data is set in the control register 11L corresponding to the phase to be energized. Will be. The register control circuit 13L turns off the control registers 10L and 12L that are not access destinations.

そのため、CPU4は、モータ3の状態に対応するデータ(駆動指令)をローサイド側仮想レジスタ回路8Lに出力すれば(S3)、すなわち、単一アドレス(ここでは、ADD_L)に対してアクセスするだけで、所望の制御レジスタに対して駆動指令を設定することができる。   Therefore, if the CPU 4 outputs data (drive command) corresponding to the state of the motor 3 to the low-side virtual register circuit 8L (S3), that is, only accesses to a single address (here, ADD_L). A drive command can be set for a desired control register.

なお、通電パターンが「2」〜「6」の場合も同様であり、CPU4は、ハイサイド側仮想レジスタ回路8Hまたはローサイド側仮想レジスタ回路8Lに対して単一アドレスでアクセスするだけで、所望の制御レジスタにデータ(駆動指令)を設定することができる。例えば、このため、通電パターンが「2」の場合には、CPU4からのデータ(駆動指令)は、ハイサイド側ではU相の制御レジスタ10Hに、ローサイド側ではW相の制御レジスタ12Lに設定される。   The same applies to the energization patterns “2” to “6”, and the CPU 4 simply accesses the high-side virtual register circuit 8H or the low-side virtual register circuit 8L with a single address to obtain a desired pattern. Data (drive command) can be set in the control register. For example, when the energization pattern is “2”, the data (drive command) from the CPU 4 is set in the U-phase control register 10H on the high side and in the W-phase control register 12L on the low side. The

また、通電パターンが「3」の場合には、CPU4のアクセス先となる制御レジスタは、ハイサイド側ではV相の制御レジスタ11H、ローサイド側がW相の制御レジスタ12Lになる。また、通電パターンが「4」の場合には、CPU4のアクセス先となる制御レジスタは、ハイサイド側がV相の制御レジスタ11H、ローサイド側がU相の制御レジスタ10Lになる。また、通電パターンが「5」の場合には、CPU4のアクセス先となる制御レジスタは、ハイサイド側がW相の制御レジスタ12H、ローサイド側がU相の制御レジスタ10Lになる。また、通電パターンが「6」の場合には、CPU4のアクセス先となる制御レジスタは、ハイサイド側がW相の制御レジスタ12H、ローサイド側がV相の制御レジスタ11Lになる。   When the energization pattern is “3”, the control registers to be accessed by the CPU 4 are the V-phase control register 11H on the high side and the W-phase control register 12L on the low side. When the energization pattern is “4”, the control registers to be accessed by the CPU 4 are the V-phase control register 11H on the high side and the U-phase control register 10L on the low side. When the energization pattern is “5”, the control registers to be accessed by the CPU 4 are the W-phase control register 12H on the high side and the U-phase control register 10L on the low side. When the energization pattern is “6”, the control registers to be accessed by the CPU 4 are the W-phase control register 12H on the high side and the V-phase control register 11L on the low side.

このように、半導体装置1では、CPU4が仮想レジスタ回路8に対してアクセスを行った場合、そのアクセス先は、モータ制御回路5側で自動的に切り替えられる。これにより、CPU4での処理を削減することができる。なお、モータ3を正回転とするか反転とするかの判断はCPU4で行われており、正回転であるか反転であるかを仮想レジスタ回路8側に設定することで、特定された通電パターンに対応する制御レジスタが選択される。   As described above, in the semiconductor device 1, when the CPU 4 accesses the virtual register circuit 8, the access destination is automatically switched on the motor control circuit 5 side. Thereby, the process in CPU4 can be reduced. Note that the CPU 4 determines whether the motor 3 is rotated forward or reversely, and the specified energization pattern is determined by setting the virtual register circuit 8 as to whether the motor 3 is rotated forward or reversed. The control register corresponding to is selected.

以上説明した実施形態によれば、次のような効果を得ることができる。
モータ制御用の半導体装置1は、モータ3を駆動するための駆動指令を生成するCPU4(主制御部)と、CPU4に接続され、モータ3を駆動するための制御信号を生成するモータ制御回路5(モータ制御部)とを備えている。そして、このモータ制御回路5は、モータ3の回転位置を検出する位置検出回路7(位置検出部)と、位置検出回路7で検出したモータ3の回転位置に基づいて通電すべき相を自身で判定し、当該通電すべき相が通電されるように前記駆動指令が設定される仮想レジスタ回路8(仮想レジスタ部)と、仮想レジスタ回路8に設定された駆動指令に基づいて駆動信号を生成するPWM信号生成回路6(信号生成部)と、を備える。
According to the embodiment described above, the following effects can be obtained.
The semiconductor device 1 for motor control includes a CPU 4 (main control unit) that generates a drive command for driving the motor 3, and a motor control circuit 5 that is connected to the CPU 4 and generates a control signal for driving the motor 3. (Motor control unit). The motor control circuit 5 itself detects the position to be energized based on the position detection circuit 7 (position detection unit) for detecting the rotation position of the motor 3 and the rotation position of the motor 3 detected by the position detection circuit 7. A virtual register circuit 8 (virtual register unit) in which the drive command is set so that the phase to be energized is energized, and a drive signal is generated based on the drive command set in the virtual register circuit 8 And a PWM signal generation circuit 6 (signal generation unit).

これにより、半導体装置1では、従来のような通電パターンの特定および当該通電パターンで通電されるべき相に通電するためのレジスタの選択等の処理をCPU4で行う必要がない。したがって、CPU4の処理負荷およびプログラムコード長の増大を抑制することができる。また、メモリ容量を削減することができるため、コストの増加を抑制することができる。   Thereby, in the semiconductor device 1, it is not necessary for the CPU 4 to perform processing such as specifying an energization pattern and selecting a register for energizing a phase to be energized according to the energization pattern as in the prior art. Therefore, an increase in the processing load on the CPU 4 and the program code length can be suppressed. Further, since the memory capacity can be reduced, an increase in cost can be suppressed.

また、仮想レジスタ回路8は、制御信号として生成される信号数(本実施形態では、例えば6つ)に対応して複数設けられ、CPU4からアクセスされる際のアドレスが共通化されている複数の制御レジスタ10〜12と、位置検出回路7で検出されたモータ3の回転位置に基づいて通電すべき相に対応する制御レジスタ10〜12を判定し、当該判定した前記制御レジスタ10〜12に対して駆動指令を設定するレジスタ制御回路13(レジスタ制御手段)、により構成されている。
これにより、複数の制御レジスタ10〜12が設けられている場合であっても、CPU4のアクセス先は、モータ制御回路5側で自動的に切り替えられる。これにより、CPU4の処理負荷を低減することができる。
In addition, a plurality of virtual register circuits 8 are provided corresponding to the number of signals generated as control signals (for example, six in this embodiment), and a plurality of addresses when accessing from the CPU 4 are shared. The control registers 10 to 12 corresponding to the phase to be energized are determined based on the control registers 10 to 12 and the rotational position of the motor 3 detected by the position detection circuit 7, and the determined control registers 10 to 12 are determined. And a register control circuit 13 (register control means) for setting a drive command.
Thereby, even when the plurality of control registers 10 to 12 are provided, the access destination of the CPU 4 is automatically switched on the motor control circuit 5 side. Thereby, the processing load of CPU4 can be reduced.

このとき、CPU4からは単一アドレスにアクセスすればよいので、CPU4の処理負荷をさらに低減することができる。
また、本実施形態では、インバータ回路2によって駆動されるモータ3を対象としている。そして、仮想レジスタ回路8は、複数の制御レジスタ10〜12のうちインバータ回路2のハイサイド側の制御信号を生成するためのハイサイド側レジスタ群14Hと、インバータ回路2のローサイド側の制御信号を生成するためのローサイド側レジスタ群14Lとに区分けされている。さらに、ハイサイド側レジスタ群14Hに属する制御レジスタ10H、11H、12H、ローサイド側レジスタ群14Lに属する制御レジスタ10L、11L、12Lは、それぞれアドレスが共通化されている。
At this time, since the CPU 4 only needs to access a single address, the processing load on the CPU 4 can be further reduced.
In the present embodiment, the motor 3 driven by the inverter circuit 2 is targeted. The virtual register circuit 8 generates a high side register group 14H for generating a control signal on the high side of the inverter circuit 2 among the plurality of control registers 10 to 12, and a control signal on the low side of the inverter circuit 2 It is divided into a low-side register group 14L for generation. Furthermore, the control registers 10H, 11H and 12H belonging to the high-side register group 14H and the control registers 10L, 11L and 12L belonging to the low-side register group 14L have a common address.

このため、ハイサイド側とローサイド側とで異なる駆動指令を設定したい場合であっても、ハイサイド側のレジスタ群とローサイド側のレジスタ群とでアドレスを共通化しているので、CPU4からはいずれかのアドレスにアクセスすればそれぞれ適切な制御レジスタに駆動指令を設定することができ、最小限のCPU4の処理負荷でモータ3を制御することができる。   For this reason, even when it is desired to set different drive commands for the high side and the low side, the address is shared between the high side register group and the low side register group. If the address is accessed, a drive command can be set in each appropriate control register, and the motor 3 can be controlled with a minimum processing load of the CPU 4.

(第2実施形態)
以下、第2実施形態について、図8を参照しながら説明する。
本実施形態の場合、図8に示すように、モータ制御用の半導体装置20は、第1実施形態の半導体装置1の構成に加えて、位置信号生成回路21およびタイマ22を備えている。また、本実施形態の場合、モータ3は、位置センサレス制御によって制御されている。
(Second Embodiment)
Hereinafter, the second embodiment will be described with reference to FIG.
In the case of the present embodiment, as shown in FIG. 8, the semiconductor device 20 for motor control includes a position signal generation circuit 21 and a timer 22 in addition to the configuration of the semiconductor device 1 of the first embodiment. In the present embodiment, the motor 3 is controlled by position sensorless control.

位置信号生成回路21(位置信号生成部に相当する)は、タイマ22を用いて、予め定められているパターンの位置信号を生成して位置検出回路7に出力する。そして、位置検出回路7は、モータ3を始動するとき、位置信号生成回路21で生成された位置信号に基づいてモータ3の回転位置を検出する。   The position signal generation circuit 21 (corresponding to the position signal generation unit) uses the timer 22 to generate a position signal having a predetermined pattern and outputs the position signal to the position detection circuit 7. The position detection circuit 7 detects the rotational position of the motor 3 based on the position signal generated by the position signal generation circuit 21 when starting the motor 3.

位置センサレス制御を行う場合、モータ3の始動時には回転位置を検出できないことから、一般的に、モータ3を強制的に回転させる強制転流が行われている。この場合、従来では、強制転流のための制御レジスタの選択や駆動指令の設定をCPU4で行っていた。つまり、半導体装置20は、第1実施形態と同様の構成を備えることで通常動作時の処理負荷を低減できるものの、位置センサレス制御を行う場合には、始動時にCPU4の処理負荷が増大する可能性があった。   When performing position sensorless control, since the rotational position cannot be detected when the motor 3 is started, generally, forced commutation for forcibly rotating the motor 3 is performed. In this case, conventionally, the CPU 4 selects a control register for forced commutation and sets a drive command. In other words, the semiconductor device 20 can reduce the processing load during normal operation by providing the same configuration as in the first embodiment, but when performing position sensorless control, the processing load on the CPU 4 may increase during startup. was there.

そこで、本実施形態では、位置信号生成回路21において予め定められているパターンの位置信号を生成している。この場合、位置信号生成回路21で生成される位置信号は、所定の周期で上記した通電パターンが切り替わるような態様の信号として生成される。そして、位置検出回路7は、位置信号生成回路21で生成された位置信号に基づいて、すなわち、所定の周期で通電パターンが切り替わる信号に基づいて、モータ3の始動時に通電すべき相を特定する。   Therefore, in this embodiment, the position signal generation circuit 21 generates a position signal having a predetermined pattern. In this case, the position signal generated by the position signal generation circuit 21 is generated as a signal in such a manner that the energization pattern described above is switched at a predetermined cycle. Then, the position detection circuit 7 specifies a phase to be energized when the motor 3 is started based on the position signal generated by the position signal generation circuit 21, that is, based on a signal for switching the energization pattern at a predetermined cycle. .

これにより、CPU4において通電すべき相の特定等の処理を行う必要が無くなり、CPU4の処理負荷を低減することができる。また、位置センサレス制御の始動時に位置情報が得られない場合でも、CPU4に負担をかけることなく、モータ3を始動させることができる。   Thereby, it is not necessary to perform processing such as specifying a phase to be energized in the CPU 4, and the processing load on the CPU 4 can be reduced. Even if position information cannot be obtained at the time of starting the position sensorless control, the motor 3 can be started without imposing a burden on the CPU 4.

(第3実施形態)
以下、第3実施形態について、図9を参照しながら説明する。
本実施形態の場合、図9に示すように、モータ制御用の半導体装置30は、第1実施形態の半導体装置1の構成に加えて、異常検出回路31(異常検出部に相当する)を備えている。この異常検出回路31は、CPU4で異常を検出したときや、外部端子32に接続されている外部機器(図示省略)から異常が発生したことを示す信号が入力されたとき、あるいは、異常検出回路31自身で異常を検出したときなど、半導体装置30やモータ3あるいは周辺装置等になんらかの異常が生じた場合に、その旨を仮想レジスタ回路8に出力する。
(Third embodiment)
Hereinafter, the third embodiment will be described with reference to FIG.
In the present embodiment, as shown in FIG. 9, the motor control semiconductor device 30 includes an abnormality detection circuit 31 (corresponding to an abnormality detection unit) in addition to the configuration of the semiconductor device 1 of the first embodiment. ing. The abnormality detection circuit 31 is detected when an abnormality is detected by the CPU 4, a signal indicating that an abnormality has occurred is input from an external device (not shown) connected to the external terminal 32, or an abnormality detection circuit. When any abnormality occurs in the semiconductor device 30, the motor 3, the peripheral device, or the like, such as when an abnormality is detected by itself 31, the fact is output to the virtual register circuit 8.

そして、仮想レジスタ回路8は、異常検出回路31によって異常が検出されたときには、CPU4からの駆動指令にかかわらず、モータ3への通電を停止する停止指令が設定される。より具体的には、異常検出回路31で検出した異常がレジスタ制御回路13に入力され、レジスタ制御回路13によって、全ての制御レジスタ10〜12がオフされる。この全ての制御レジスタ10〜12がオフされた状態が、停止指令が設定された状態に相当する。   When the abnormality detection circuit 31 detects an abnormality, the virtual register circuit 8 is set with a stop command for stopping energization of the motor 3 regardless of the drive command from the CPU 4. More specifically, the abnormality detected by the abnormality detection circuit 31 is input to the register control circuit 13, and all the control registers 10 to 12 are turned off by the register control circuit 13. A state in which all the control registers 10 to 12 are turned off corresponds to a state in which a stop command is set.

これにより、インバータ回路2の全てのスイッチング素子がオフされ、モータ3への通電が行われなくなる。つまり、モータ3が、強制遮断される。これにより、緊急に全出力をオフしなければならない強制遮断時に、CPU4の動作状態にかかわらず、速やかにモータ3を停止させることができる。
また、CPU4の動作状態にかかわらず強制遮断することができるため、CPU4が暴走したような状態であっても、モータ3を停止させることができる。
Thereby, all the switching elements of the inverter circuit 2 are turned off, and the motor 3 is not energized. That is, the motor 3 is forcibly shut off. As a result, the motor 3 can be quickly stopped regardless of the operating state of the CPU 4 at the time of forced shut-off when all outputs must be turned off urgently.
Moreover, since it can be forcibly cut off regardless of the operation state of the CPU 4, the motor 3 can be stopped even in a state where the CPU 4 has runaway.

(第4実施形態)
以下、第4実施形態について、図10を参照しながら説明する。
本実施形態の場合、図10に示すように、モータ制御用の半導体装置40は、第1実施形態の半導体装置1と類似するものの、複数の制御レジスタ10〜12を有する仮想レジスタ回路8は、1つのレジスタ制御回路13によって制御されている。
(Fourth embodiment)
Hereinafter, the fourth embodiment will be described with reference to FIG.
In the case of this embodiment, as shown in FIG. 10, the motor control semiconductor device 40 is similar to the semiconductor device 1 of the first embodiment, but the virtual register circuit 8 having a plurality of control registers 10 to 12 is It is controlled by one register control circuit 13.

矩形波制御によりモータ3を制御する場合、上記した図2〜図6に示すようにハイサイド側は、CPU4からの駆動指令に基づいてパルス状にオン/オフを繰り返すものの、ローサイド側は、オンまたはオフのいずれかの状態になっている。このため、通電パターンと、ローサイド側の制御レジスタ10L、11L、12Lのオン/オフとの対応関係(図6参照)をレジスタ制御回路13に設定しておけば、矩形波制御においては、ローサイド側の制御レジスタ10L、11L、12Lに対してCPU4からアクセスを行わなくてもよいと考えられる。   When controlling the motor 3 by the rectangular wave control, the high side repeats on / off in a pulsed manner based on the drive command from the CPU 4 as shown in FIGS. Or it is either off. Therefore, if the correspondence relationship between the energization pattern and the ON / OFF of the low-side control registers 10L, 11L, and 12L (see FIG. 6) is set in the register control circuit 13, in the rectangular wave control, the low-side side It is considered that the CPU 4 does not need to access the control registers 10L, 11L, and 12L.

そのため、半導体装置30では、複数の制御レジスタ10〜12を有する仮想レジスタ回路8を単一のアドレスに割り付け、データバスをハイサイド側の制御レジスタ10H、11H、12Hで共通化している。これにより、通電パターンが特定されたとき、レジスタ制御回路13は、CPU4からのアクセス先を通電パターンに応じたハイサイド側のいずれかの制御レジスタ10H、11H、12Hに切り替えるとともに、ローサイド側の制御レジスタ10L、11L、12Lに対しては、図6に示した対応関係に基づいて、オン/オフを設定する。
これにより、CPU4は、矩形波制御を行う場合には上記した図7のステップS3を省略することができる。つまり、CPU4の処理負荷をさらに低減することができる。
Therefore, in the semiconductor device 30, the virtual register circuit 8 having the plurality of control registers 10 to 12 is assigned to a single address, and the data bus is shared by the high-side control registers 10H, 11H, and 12H. Thus, when the energization pattern is specified, the register control circuit 13 switches the access destination from the CPU 4 to any one of the control registers 10H, 11H, and 12H on the high side according to the energization pattern, and controls on the low side. On / off is set for the registers 10L, 11L, and 12L based on the correspondence shown in FIG.
Thereby, the CPU 4 can omit the above-described step S3 of FIG. 7 when performing the rectangular wave control. That is, the processing load on the CPU 4 can be further reduced.

(その他の実施形態)
本発明は、上記した実施形態で例示したものに限定されるものではなく、その要旨を逸脱しない範囲で任意に変形あるいは拡張することができる。
各実施形態を組み合わせてもよい。例えば、第2実施形態の構成に第3実施形態の異常検出回路31を設けてもよいし、第3実施形態や第4実施形態の構成を第2実施形態のような位置センサレス制御に適用してもよい。
各実施形態で示した数値や制御レジスタの数等は一例であり、これに限定されるものでは無い。
(Other embodiments)
The present invention is not limited to those exemplified in the above-described embodiments, and can be arbitrarily modified or expanded without departing from the gist thereof.
You may combine each embodiment. For example, the abnormality detection circuit 31 of the third embodiment may be provided in the configuration of the second embodiment, and the configuration of the third embodiment or the fourth embodiment is applied to the position sensorless control as in the second embodiment. May be.
The numerical values, the number of control registers, and the like shown in each embodiment are examples, and are not limited thereto.

図面中、1、20、30、40は半導体装置(モータ制御用の半導体装置)、2はインバータ回路、3はモータ、4はCPU(主制御部)、5はモータ制御回路(モータ制御部)、6はPWM信号生成回路(信号生成部)、7は位置検出回路(位置検出部)、8は仮想レジスタ回路(仮想レジスタ部)、8Hはハイサイド側仮想レジスタ回路(仮想レジスタ部)、8Lはローサイド側仮想レジスタ回路(仮想レジスタ部)、10〜12、10H、10L、11H、11L、12H、12Lは制御レジスタは、13、13H、13Lはレジスタ制御回路(レジスタ制御部)、14はレジスタ群、14Hはハイサイド側レジスタ群(ハイサイド側のレジスタ群)、14Lはローサイド側レジスタ群(ローサイド側のレジスタ群)、21は位置信号生成回路(位置信号生成部)、31は異常検出回路(異常検出部)を示す。   In the drawings, 1, 20, 30, and 40 are semiconductor devices (semiconductor devices for motor control), 2 is an inverter circuit, 3 is a motor, 4 is a CPU (main control unit), and 5 is a motor control circuit (motor control unit). , 6 is a PWM signal generation circuit (signal generation unit), 7 is a position detection circuit (position detection unit), 8 is a virtual register circuit (virtual register unit), 8H is a high-side virtual register circuit (virtual register unit), 8L Is a low-side virtual register circuit (virtual register unit), 10-12, 10H, 10L, 11H, 11L, 12H, 12L are control registers, 13, 13H, 13L are register control circuits (register control units), and 14 is a register 14H is a high-side register group (high-side register group), 14L is a low-side register group (low-side register group), and 21 is a position signal. Forming circuit (position signal generating unit), 31 denotes an abnormality detection circuit (abnormality detection unit).

Claims (4)

モータを駆動するための駆動指令を生成する主制御部(4)と、
前記主制御部(4)に接続され、前記モータを駆動するための制御信号を生成するモー
タ制御部(5)と、を備え、
前記モータ制御部(5)は、
前記モータの回転位置を検出する位置検出部(7)と、
前記位置検出部(7)で検出された前記モータの回転位置に基づいて通電すべき相を自身で判定し、当該通電すべき相が通電されるように前記駆動指令が設定される仮想レジスタ部(8)と、
前記仮想レジスタ部(8)に設定された前記駆動指令に基づいて前記制御信号を生成する信号生成部(6)と、を備え、
前記仮想レジスタ部(8)は、
前記制御信号として生成される信号数に対応して複数設けられ、前記主制御部(4)からアクセスされる際のアドレスが共通化されている複数の制御レジスタ(10、11、12)と、
前記位置検出部(7)で検出された前記モータの回転位置に基づいて通電すべき相に対応する前記制御レジスタ(10、11、12)を判定し、当該判定した前記制御レジスタ(10、11、12)に対して前記駆動指令が設定されるように制御するレジスタ制御手段(13)と、により構成されていることを特徴とするモータ制御用の半導体装置。
A main control unit (4) for generating a drive command for driving the motor;
A motor control unit (5) connected to the main control unit (4) and generating a control signal for driving the motor;
The motor control unit (5)
A position detector (7) for detecting the rotational position of the motor;
A virtual register unit that determines the phase to be energized by itself based on the rotational position of the motor detected by the position detection unit (7) and sets the drive command so that the phase to be energized is energized (8) and
A signal generation unit (6) that generates the control signal based on the drive command set in the virtual register unit (8) ,
The virtual register unit (8)
A plurality of control registers (10, 11, 12) provided in correspondence with the number of signals generated as the control signal and having a common address when accessed from the main control unit (4);
The control register (10, 11, 12) corresponding to the phase to be energized is determined based on the rotational position of the motor detected by the position detector (7), and the determined control register (10, 11) is determined. , 12), and a register control means (13) for controlling the drive command to be set, and a motor control semiconductor device.
前記モータは、インバータ回路(2)によって駆動されるものであり、The motor is driven by an inverter circuit (2),
前記仮想レジスタ部(8)は、複数の前記制御レジスタ(10、11、12)のうち前記インバータ回路(2)のハイサイド側の前記制御信号を生成するためのハイサイド側のレジスタ群(14H)と、前記インバータ回路のローサイド側の前記制御信号を生成するためのローサイド側のレジスタ群(14L)とに区分けされ、各レジスタ群(14H、14L)に属する前記制御レジスタ(10、11、12)のアドレスが共通化されていることを特徴とする請求項1記載のモータ制御用の半導体装置。The virtual register unit (8) includes a high-side register group (14H) for generating the control signal on the high-side side of the inverter circuit (2) among the plurality of control registers (10, 11, 12). ) And a low-side register group (14L) for generating the control signal on the low-side side of the inverter circuit, and the control registers (10, 11, 12) belonging to each register group (14H, 14L) 2. The motor control semiconductor device according to claim 1, wherein the address of the motor control is shared.
前記モータ(3)は、位置センサレス制御によって制御されるものであり、The motor (3) is controlled by position sensorless control,
予め定められているパターンの位置信号を生成する位置信号生成部(21)を備え、A position signal generation unit (21) for generating a position signal of a predetermined pattern;
前記位置検出部(7)は、前記モータ(3)を始動するとき、前記位置信号生成部(21)で生成された前記位置信号に基づいて前記モータ(3)の回転位置を検出することを特徴とする請求項1または2記載のモータ制御用の半導体装置。  The position detector (7) detects the rotational position of the motor (3) based on the position signal generated by the position signal generator (21) when starting the motor (3). 3. The motor control semiconductor device according to claim 1, wherein the motor control semiconductor device is a motor control semiconductor device.
異常を検出する異常検出部(31)を備え、An abnormality detection unit (31) for detecting an abnormality is provided,
前記仮想レジスタ部(8)は、前記異常検出部(31)によって異常が検出されたとき、前記主制御部(4)からの前記駆動指令にかかわらず前記モータ(3)への通電を停止する停止指令が設定されることを特徴とする請求項1から3のいずれか一項記載のモータ制御用の半導体装置。The virtual register unit (8) stops energization of the motor (3) regardless of the drive command from the main control unit (4) when an abnormality is detected by the abnormality detection unit (31). 4. The motor control semiconductor device according to claim 1, wherein a stop command is set.
JP2015077636A 2015-04-06 2015-04-06 Semiconductor device for motor control Expired - Fee Related JP6409663B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015077636A JP6409663B2 (en) 2015-04-06 2015-04-06 Semiconductor device for motor control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015077636A JP6409663B2 (en) 2015-04-06 2015-04-06 Semiconductor device for motor control

Publications (2)

Publication Number Publication Date
JP2016197976A JP2016197976A (en) 2016-11-24
JP6409663B2 true JP6409663B2 (en) 2018-10-24

Family

ID=57358689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015077636A Expired - Fee Related JP6409663B2 (en) 2015-04-06 2015-04-06 Semiconductor device for motor control

Country Status (1)

Country Link
JP (1) JP6409663B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0720391B2 (en) * 1985-03-14 1995-03-06 アイチ−エマソン電機株式会社 Controller for three-phase brushless motor
JP5407297B2 (en) * 2007-11-30 2014-02-05 株式会社リコー Motor control device, motor control method, and image forming apparatus
JP2011109764A (en) * 2009-11-16 2011-06-02 Panasonic Corp Semiconductor device for inverter control, motor drive, and air conditioner
JP6081734B2 (en) * 2012-08-13 2017-02-15 ラピスセミコンダクタ株式会社 Semiconductor device, electronic device, and control signal generation method

Also Published As

Publication number Publication date
JP2016197976A (en) 2016-11-24

Similar Documents

Publication Publication Date Title
JP5410690B2 (en) Brushless motor control device and brushless motor
JP5132172B2 (en) Motor drive integrated circuit
CN106253761B (en) Motor controller with flexible protection mode
JP2010246210A (en) Method and system for driving motor, heat pump system, and fan motor system
JP6365112B2 (en) Control device for in-vehicle motor
JP6487879B2 (en) Motor control circuit, motor drive control device, and control method of motor drive control device
US9379647B2 (en) Motor driving control device and control method of motor driving control device
JP6082683B2 (en) Motor drive control device and control method of motor drive control device
EP3644495B1 (en) Motor control device and control method of motor control device
US10003288B2 (en) Motor control circuit and fan including the same
JP2004312855A (en) Motor and disk drive
JP6409663B2 (en) Semiconductor device for motor control
JP6558854B2 (en) Cooling fan control device
JP2017103925A (en) Motor drive device and method for controlling motor drive device
JP2006115641A (en) Control method and device for brushless electric motor, and vehicles of brushless electric motor
JP7449805B2 (en) Motor drive control device and motor unit
JP6831346B2 (en) Motor device and motor drive control method
JP6488490B1 (en) Motor control device and motor device
JP2009177915A (en) Brushless motor drive controller
JP6152309B2 (en) Motor drive device
US11929699B2 (en) Double wound motor control apparatus and method
JP3245720B2 (en) DC motor control circuit
JP5837547B2 (en) Abnormality detection device for circuit system of stepping motor
JP2018198497A (en) Motor drive control device and motor drive control method
JP6365315B2 (en) Motor starting device and motor starting method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170905

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180629

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180710

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180801

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20180828

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180910

R151 Written notification of patent or utility model registration

Ref document number: 6409663

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees