JP5212799B2 - Inductive load control device, control method, and control program - Google Patents
Inductive load control device, control method, and control program Download PDFInfo
- Publication number
- JP5212799B2 JP5212799B2 JP2008149085A JP2008149085A JP5212799B2 JP 5212799 B2 JP5212799 B2 JP 5212799B2 JP 2008149085 A JP2008149085 A JP 2008149085A JP 2008149085 A JP2008149085 A JP 2008149085A JP 5212799 B2 JP5212799 B2 JP 5212799B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- inductive load
- control circuit
- current
- change amount
- 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.)
- Active
Links
Images
Landscapes
- Electronic Switches (AREA)
Description
本発明は、誘導性負荷要素に流す電流を制御する制御装置、制御方法、および制御プログラムに関する。 The present invention relates to a control device, a control method, and a control program for controlling a current flowing through an inductive load element.
従来、誘導性負荷要素を制御する制御装置として制御用の演算装置(CPU)と誘導性負荷要素の駆動回路系とを一体化した集積回路(IC)等を用いて、誘導性負荷要素に流す電流の制御処理を行なっている。これらのICは、誘導性負荷要素を駆動する駆動電流の制御にPWM(パルス幅変調)制御を利用するためのものである。この技術が、例えば特開平11−308107号公報(特許文献1)に開示されている。ここで、制御対象である誘導性負荷要素は、例えば自動車などの電磁式のアクチュエータのソレノイドなどであり、自動車の各種制御のために用いられ、当該自動車の燃費を向上させたり、当該自動車の動きをよりスムーズなものにしたりする目的のために複数使われている。この従来の制御装置においては、それら複数の誘導性負荷要素が連携して制御されている。 Conventionally, as a control device for controlling an inductive load element, an integrated circuit (IC) in which a control arithmetic unit (CPU) and a drive circuit system for the inductive load element are integrated is supplied to the inductive load element. Current control processing is performed. These ICs are for using PWM (Pulse Width Modulation) control to control the drive current that drives the inductive load element. This technique is disclosed, for example, in JP-A-11-308107 (Patent Document 1). Here, the inductive load element to be controlled is, for example, a solenoid of an electromagnetic actuator such as an automobile, and is used for various controls of the automobile to improve fuel consumption of the automobile or to move the automobile. It is used multiple times for the purpose of making things smoother. In this conventional control device, the plurality of inductive load elements are controlled in cooperation.
また、特開2000−35802号公報(特許文献2)には、各種データを受信する度に、データの値と前回の受信時の値との差を求め、差を検出間隔時間にて除算することにより、データの単位時間当たりの変化量を算出することが開示されている。
自動車等に利用される誘導性負荷要素の動作をより精密に制御するために、精密な駆動制御が必要とされている。このため、駆動制御の制御方式が複雑度を増し、制御用のCPUの処理能力に対する負荷が増加している。 In order to more precisely control the operation of inductive load elements used in automobiles and the like, precise drive control is required. For this reason, the control method of drive control has increased complexity, and the load on the processing capacity of the control CPU has increased.
この課題に対し、制御用のCPUと誘導性負荷要素の駆動回路部を分離させ、制御用のCPUの処理と誘導性負荷要素の駆動制御とを分散するようにすると、制御用のCPUの処理負荷の低減を図ることができる。このように、従来1つのICとして動作していた機能を分離すると、各々の間に通信経路を用いた制御データの送受信が必要となる。制御データを送信または受信するための従来の通信方式(例えば、I2C、SPI等のインターフェース)においては、通信経路上に流れるデータのビット数は、そのデータが取りうるデータ値の最大値の桁数(2進数で表されるビット数)を規定する通信プロトコルによって決められている。その結果、データを表現するためには必ずしも必要でないデータ量の通信が行われている。例えば、4ビットからなるデータを送信あるいは受信しようとした場合において、送受信するデータ値が0の場合(0000B、Bは2進表現であることを示す)であっても、あるいは15(1111B)であっても、通信時に送出されるデータに含まれるビット長は4ビットとされる。ところが、誘導性負荷要素の応答精度を向上させるため、各種のデータの電流設定値(あるいは指令値)として送信するデータ値のビット数が増加してきており、通信経路の通信速度が従来と同じであると仮定すると、ビット数が増加することにより制御用CPUから駆動回路部にデータが伝わる時間が遅くなり、その結果、副制御回路に接続している誘導性負荷要素の応答が遅れてしまう。 In response to this problem, if the control CPU and the drive circuit unit of the inductive load element are separated so that the process of the control CPU and the drive control of the inductive load element are distributed, the process of the control CPU The load can be reduced. As described above, when functions that have conventionally been operated as one IC are separated, it is necessary to transmit and receive control data using a communication path between them. In a conventional communication method for transmitting or receiving control data (for example, an interface such as I 2 C or SPI), the number of bits of data flowing on the communication path is the maximum value of the data value that the data can take. It is determined by a communication protocol that defines the number of digits (the number of bits expressed in binary). As a result, communication is performed with a data amount that is not necessarily required to represent data. For example, when transmitting or receiving 4-bit data, even if the data value to be transmitted / received is 0 (0000B, B indicates binary representation), or 15 (1111B) Even if it exists, the bit length contained in the data transmitted at the time of communication shall be 4 bits. However, in order to improve the response accuracy of inductive load elements, the number of bits of data values to be transmitted as current setting values (or command values) of various data has increased, and the communication speed of the communication path is the same as before. Assuming that there is an increase in the number of bits, the time during which data is transmitted from the control CPU to the drive circuit section is delayed, and as a result, the response of the inductive load element connected to the sub-control circuit is delayed.
本発明は上記課題の少なくともいくつかを解決することを課題とする。 An object of the present invention is to solve at least some of the above problems.
本発明においては、電流設定値が制御に伴って変化する前後の差分、すなわち増減が、増加か減少かいずれであるかを示すコードと、増減の幅とによって表わして通信を行うような制御装置を用いる。すなわち、本発明においては、外部ホストCPUの指示データと各種センサーからの信号とに基づいて誘導性負荷要素に流す電流を制御する誘導性負荷制御装置であって、前記外部ホストCPUの指示データと前記センサー信号とに基づいて前記誘導性負荷要素に流す電流についての電流設定値を電流設定信号によって指示する主制御回路と、該主制御回路からの前記電流設定信号を伝える通信経路と、該通信路と前記誘導性負荷要素に接続され、前記主制御回路からの前記電流設定信号に基づいて、誘導性負荷要素に流す電流値を制御する副制御回路とを備えてなり、前記電流設定信号に、前記電流設定値の増減を表わすデータのビット列をLSBに向かってMSBから走査し、該走査において最初に有効ビットが現れるビットの直前のビットまでのビットを前記ビット列から削除した残りのビットのデータである変化量データと、該変化量データの演算処理を指示するためのコマンドデータとを含む、誘導性負荷制御装置が提供される。 In the present invention, a control device that performs communication by representing the difference before and after the current set value changes with control, that is, the code indicating whether the increase or decrease is an increase or decrease, and the range of the increase or decrease Is used. That is, according to the present invention, an inductive load control device that controls a current flowing through an inductive load element based on instruction data of an external host CPU and signals from various sensors, the instruction data of the external host CPU and A main control circuit for instructing a current setting value for a current flowing through the inductive load element based on the sensor signal by a current setting signal; a communication path for transmitting the current setting signal from the main control circuit; and the communication And a sub-control circuit that is connected to the inductive load element and controls a current value that flows to the inductive load element based on the current setting signal from the main control circuit. A bit string of data representing increase / decrease of the current set value is scanned from the MSB toward the LSB, and the bit immediately before the bit in which the valid bit first appears in the scan is scanned. Including a change amount data and the remaining bits of deleted data bits until note from the bit string, and command data for instructing the calculation of the variation amount data, inductive load control device is provided.
ここで、副制御回路は、誘導性負荷要素に流す電流値を決定するための演算装置と電流を実際に制御する電流増幅部とを有し、1つ以上の誘導性負荷要素が接続されていることができる。副制御回路は、複数の制御回路の集合とすることもできる。この場合、各制御回路に誘導性負荷に流す電流を制御するための演算装置と電流増幅部を備えていてもよい。複数の誘導性負荷要素を独立して制御するために、通信経路は時間的に区分される複数のチャネルの通信を行うことができる。 Here, the sub-control circuit has an arithmetic unit for determining a current value to flow through the inductive load element and a current amplifying unit that actually controls the current, and one or more inductive load elements are connected. Can be. The sub control circuit may be a set of a plurality of control circuits. In this case, each control circuit may be provided with an arithmetic unit and a current amplifying unit for controlling the current flowing through the inductive load. In order to independently control a plurality of inductive load elements, a communication path can perform communication of a plurality of channels that are divided in time.
変化量データは、電流設定信号に含まれるデータであり、誘導性負荷に流れる電流設定値の増減の値を表わしている。なお、変化量データは、絶対値を表わす任意の態様のビット表現を用いることができる。また、正と負の値を2の補数によって表わすことができる。 The change amount data is data included in the current setting signal, and represents the increase / decrease value of the current setting value flowing through the inductive load. It should be noted that the change amount data can use a bit representation in an arbitrary form representing an absolute value. Positive and negative values can be represented by two's complement.
また、コマンドデータは、本明細書においては、後の演算処理をどのように行うべきかを表わす任意のコードである。一例として、増減が増加であるか減少であるかを示すコード(増減コード)である。また、別の例として、2の補数であることを表わすコードとすることができる。コマンドコードは、例えば1ビット、2ビット、3ビットなどの少なくとも1ビットのビット長のデータにより表現されることができる。実施例によって後述するように、増減コードと2の補数であることを示すコードとを組み合わせて2ビットのコードとすることもできる。 Further, in this specification, the command data is an arbitrary code indicating how to perform the subsequent arithmetic processing. As an example, it is a code (increase / decrease code) indicating whether the increase / decrease is an increase or decrease. As another example, a code representing a 2's complement can be used. The command code can be expressed by data having a bit length of at least 1 bit such as 1 bit, 2 bits, and 3 bits. As will be described later according to the embodiment, the increase / decrease code and the code indicating 2's complement can be combined to form a 2-bit code.
そして、有効ビットとなりうるビットの範囲は、電流設定値の増減量に依存する。増減量があるビット列で示されたときに、有効ビットとは、そのビット列のうち、増減量の絶対値が小さくなるようにデータを変化させた場合に、反転する可能性のあるビットの範囲である。データを二値によって表現する態様は各種の態様があるが、各値に対する有効ビットの範囲は表現によって変わるものではない。 The range of bits that can be valid bits depends on the amount of increase or decrease in the current setting value. When the increase / decrease amount is indicated by a bit string, the effective bit is the range of bits that can be inverted when the data is changed so that the absolute value of the increase / decrease amount becomes small. is there. There are various modes in which data is represented by binary values, but the range of effective bits for each value does not vary depending on the representation.
また、本発明においては、好適には、前記変化量データは、電流設定値の増減の絶対値を表わすデータのビット列を走査し、該走査に基づいて前記ビット列から削除した残りのビットのデータであり、前記コマンドデータは、前記電流設定値が直前の電流設定値より増加したか減少したかを表す増減コードを含み、前記副制御回路が、前記電流設定信号を受信し、該電流設定信号の中の前記コマンドデータにあるデータに応じて、直前の電流設定値に前記変化量データを加算するか減算するかを選択的に実行して新たな電流設定値を得て、該新たな電流設定値を前記電流設定値のデータとすることができる。 In the present invention, it is preferable that the change amount data is a data of a remaining bit deleted from the bit string based on the scan by scanning a bit string of data representing an absolute value of increase / decrease of the current set value. And the command data includes an increase / decrease code indicating whether the current set value has increased or decreased from the previous current set value, and the sub control circuit receives the current set signal, Depending on the data in the command data, the current data is selectively added to or subtracted from the previous current setting value to obtain a new current setting value, and the new current setting value is obtained. The value can be data of the current set value.
本発明では、別の好適な実施態様として、前記変化量データは、電流設定値の増減を表わす2の補数の形式のデータのビット列を走査し、該走査に基づいて前記ビット列から削除した残りのビットのデータであり、前記コマンドデータは、前記変化量データが2の補数の形式のデータであることを示すコードを含み、前記副制御回路は、前記電流設定信号を受信し、該電流設定信号の中の前記コマンドデータにあるデータが、前記変化量データが2の補数の形式のデータであることを示すときに、直前の電流設定値のデータと前記変化量データとを加算器によって演算して新たな電流設定値を得て、該新たな電流設定値を前記電流設定値のデータとすることができる。 In the present invention, as another preferred embodiment, the change amount data is obtained by scanning a bit string of data in a two's complement format representing increase / decrease of a current set value, and deleting the remaining data deleted from the bit string based on the scan Bit data, and the command data includes a code indicating that the change amount data is data in two's complement format, and the sub-control circuit receives the current setting signal, and the current setting signal When the data in the command data indicates that the amount of change data is two's complement data, the adder calculates the immediately preceding current set value data and the amount of change data. Thus, a new current set value can be obtained, and the new current set value can be used as data of the current set value.
本発明のある実施態様においては、前記主制御回路は、前記電流設定信号において時間的に区分される複数のチャネルによって前記電流設定信号を送信し、前記副制御回路には複数の誘導性負荷要素が接続されて、各チャネルによってそれぞれの誘導性負荷要素のための前記電流設定信号を受信して各誘導性負荷要素を独立に制御することができる。 In one embodiment of the present invention, the main control circuit transmits the current setting signal through a plurality of channels that are time-divided in the current setting signal, and the sub-control circuit has a plurality of inductive load elements. Can be connected to receive the current setting signal for each inductive load element by each channel and control each inductive load element independently.
また、別の実施態様においては、前記主制御回路は、第1および第2の変化量データに対する演算を、前記第1の変化量データと共に前記コマンドデータによって指示し、前記電流設定信号には、前記コマンドデータに関連付けて送信される第1の変化量データと、該第1の変化量データより後に送信される第2の変化量データとを含み、前記副制御回路は、受信した前記コマンドデータによる演算処理を、前記第1および第2の変化量データによる演算に施すことができる。 In another embodiment, the main control circuit instructs the calculation for the first and second variation data by the command data together with the first variation data, and the current setting signal includes: Including first change amount data transmitted in association with the command data and second change amount data transmitted after the first change amount data, wherein the sub control circuit receives the received command data Can be applied to the calculation based on the first and second variation data.
誘導性負荷制御の方法を実施することができる。すなわち、本発明においては、主制御回路と、誘導性負荷要素が接続された副制御回路と、主制御回路および副制御回路に接続された通信経路とを用いて、外部ホストCPUの指示データと各種センサーからの信号とに基づいて誘導性負荷要素に流す電流を制御する誘導性負荷要素の制御方法であって、前記主制御回路によって、誘導性負荷要素に流す電流の設定値である電流設定値についての増減を表わすデータのビット列をLSBに向かってMSBから走査し、該走査において最初に有効ビットが現れるビットの直前のビットまでのビットを前記ビット列から削除した残りのビットのデータである変化量データと、該変化量データの演算処理を指示するためのコマンドデータとを生成するデータ生成ステップと、前記主制御回路によって、変化量データとコマンドデータとを含む電流設定信号を前記通信経路を通じて送信することにより、前記外部ホストCPUの指示データと前記センサー信号とに基づいて前記誘導性負荷要素に流すべき設定値電流を前記電流設定信号によって指示するステップと、前記通信経路から前記電流設定信号を受信した副制御回路によって、前記主制御回路からの前記電流設定信号の電流設定値に基づいて、前記誘導性負荷要素に流す電流を制御する制御ステップとを含む誘導性負荷制御方法が提供される。 A method of inductive load control can be implemented. That is, in the present invention, using the main control circuit, the sub control circuit to which the inductive load element is connected, and the main control circuit and the communication path connected to the sub control circuit, the instruction data of the external host CPU and An inductive load element control method for controlling a current flowing through an inductive load element based on signals from various sensors, the current setting being a set value of a current passed through the inductive load element by the main control circuit A bit string of data representing increase / decrease in value is scanned from the MSB toward the LSB, and the change is the data of the remaining bits obtained by deleting the bits up to the bit immediately before the bit in which the valid bit first appears in the scan. A data generation step for generating quantity data and command data for instructing arithmetic processing of the change quantity data, and the main control circuit By transmitting a current setting signal including change amount data and command data through the communication path, a set value current to be supplied to the inductive load element based on the instruction data of the external host CPU and the sensor signal is The step of instructing by the current setting signal and the sub-control circuit that has received the current setting signal from the communication path cause the inductive load element to flow based on the current setting value of the current setting signal from the main control circuit And an inductive load control method including a control step of controlling current.
また、上記方法をコンピュータプログラムとして実施することもできる。 The above method can also be implemented as a computer program.
本発明のいずれかの実施形態においては、以下のいずれかの効果が得られる。通信データ量が少なくなるため、主制御回路から副制御回路に至る伝送時間が短縮され、命令に対する応答時間が短縮され、応答が高速化されたシステム動作が可能となる。また、通信時間が減少するため、通信にかかるシステムの消費電力を低減できる。そして、上記少なくともいずれかの効果は、複雑な回路構成を必要とするものでもない。 In any embodiment of the present invention, any of the following effects can be obtained. Since the amount of communication data is reduced, the transmission time from the main control circuit to the sub control circuit is shortened, the response time to the command is shortened, and the system operation with a faster response is possible. Further, since the communication time is reduced, the power consumption of the system for communication can be reduced. In addition, at least one of the above effects does not require a complicated circuit configuration.
以下、本願の発明の実施形態について図面を参照して詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
図1に本発明の誘導性制御装置のある実施の形態を用いる具体的な実施例の制御システムの構成を示す。本実施例のシステム100は、ホストCPU5と、誘導性負荷制御装置10と、ホストCPU5および誘導性負荷制御装置10に接続されるセンサー7とを含む。誘導性負荷制御装置10の内部には、主制御回路12と通信経路14と副制御回路16とがあり、主制御回路12と副制御回路16は通信経路14によって接続されている。副制御回路16は、誘導性負荷9の駆動回路となっていて、例えばPWM制御によって誘導性負荷9に流される駆動電流を制御する。
FIG. 1 shows the configuration of a control system of a specific example using an embodiment of the inductive control device of the present invention. The
図1に示したように、副制御回路16は1つのみならず複数個設けることもできる。ここでは、副制御回路(#1−#N)161〜16NのN個の副制御回路が設けられていて、それぞれが通信経路14によって主制御回路12に接続されている。副制御回路(#1−#N)161〜16Nには、それぞれ、誘導性負荷91〜9Nが接続されている。
As shown in FIG. 1, not only one
主制御回路12はホストCPU5の制御命令信号及び各種のセンサー7からのセンサー信号をもとに、複数接続している誘導性負荷91〜9Nの制御を行うための電流設定値を決定し、通信路を通して副制御回路(#1−#N)161〜16Nに指示する。以下、特に個別の副制御回路や誘導性負荷を特定する必要がない場合には、集合的に副制御回路16および誘導性負荷9として説明する。
The
図2に、通信経路14における主制御回路12と副制御回路(#1−#N)161〜16Nとの間のデータ通信のタイミングチャートを示す。本実施例では2ビットのコマンドデータと8ビットの電流設定信号データとからなる構成のデータを送信する例によって説明し、また、通信経路14は、複数の信号線を含む例によって説明するが、本願の発明の内容がこの例に限定されるものではない。
FIG. 2 shows a timing chart of data communication between the
通信経路14の送信に使用する信号には、ENn信号、CLK信号、及びDATA信号が含まれる。ENn信号のnはチャネル番号であり、各チャネルにより図1の主制御回路12と副制御回路161〜16Nが通信するタイミングが、対応するENn信号(n=1〜N)をイネーブルにすることによって指定される。また、CLK信号およびDATA信号は複数のチャネルに共通して使用される。例えば、主制御回路12から副制御回路16あるいはその逆の通信において、第n番目の誘導性負荷9nは、それを制御する副制御回路16nが受け取ったDATA信号のうち、ENn信号がイネーブルになっている(Lowレベルになっている)タイミングの信号を利用する。この信号には、図2のタイミングチャートに示すように2ビットのコマンドに続き、8ビットの電流設定値を含む。
Signals used for transmission on the
図3は、データ転送を行なう際にコマンドデータに入れる値の種別を示す。図3に示すように、コマンドデータが00Bのときをノーマルモードとする。ノーマルモードであることは、コマンドデータに続くデータが8ビットのデータであることを意味する。また、コマンドデータが01Bのとき、コマンドデータに続くデータは変化量データの示す分だけ増加することを示す。コマンドデータが10Bのとき、コマンドデータに続くデータは変化量データの示す分だけ減少することを示す。コマンドデータがコード11Bのときは、本発明のある実施態様においては、未定義としておくことができる。その場合、未定義であるため、受信側ではこのコマンドに対しては無視する。本実施例においては、コード11Bには2の補数を用いる場合を割り当てる。
FIG. 3 shows types of values to be entered in command data when performing data transfer. As shown in FIG. 3, the normal mode is set when the command data is 00B. The normal mode means that the data following the command data is 8-bit data. Further, when the command data is 01B, the data following the command data is increased by the amount indicated by the change amount data. When the command data is 10B, the data following the command data decreases by the amount indicated by the change amount data. When the command data is
図4に1つの誘導性負荷を制御する電流設定値の時間変化の例を示す。また、図5に図4の電流設定値を表にしたものを示す。以下、駆動電流は時刻t0からt7の間に図4のように、すなわち、時刻t0からt7まで、(10進数で)0、1、2、11、10、1、0、1と変化するように設定した場合の具体的な実施形態を示す。図5の第1列は設定時刻を時刻t0からt7として表している。第2列は各時刻における電流設定値を示しており、上記10進数の表記をそれぞれに8ビットの2進数にしたものである。そして、同列の最下段には、図4に示した範囲において電流設定値によって送信されるデータの量をビット数で示している。 FIG. 4 shows an example of the time change of the current set value for controlling one inductive load. FIG. 5 is a table showing the current setting values shown in FIG. Hereinafter, the driving current, as from time t 0 in FIG. 4 between t 7, that is, from time t 0 to t 7, (10 in decimal) 0,1,2,11,10,1,0,1 A specific embodiment in the case of setting to change is shown. The first column of Figure 5 represents a t 7 the set time from the time t 0. The second column shows the current setting value at each time, and the decimal notation is converted into an 8-bit binary number. In the lowermost row of the same column, the amount of data transmitted by the current set value in the range shown in FIG. 4 is shown by the number of bits.
図5には、第3列に、電流設定値を16進数によって表現したものも示している。具体的には、時刻t0のとき電流設定値は0H(Hは16進表現であることを示す。以下同様。)、時刻t1のとき電流設定値は1H、時刻t2のとき電流設定値は2H、時刻t3のとき電流設定値はBH、時刻t4のとき電流設定値はAH、時刻t5のとき電流設定値は1H、時刻t6のとき電流設定値は0H、時刻t7のとき電流設定値は1Hである。図5において、第4列は、1つ前の時刻の電流設定値t(n−1)に対する現在の電流設定値t(n)の差分である差分データを正負の符号を用いて10進数により示すものである(正であれば差分は増分、負であれば減分となる。)。そして、第5列は4列目の差分データの正負の符号から生成したコマンドデータを示している。第6列目は3列目によって示した差分の絶対値データ(変化量データ)を2進によって表現したものを示している。 FIG. 5 also shows the current setting value expressed in hexadecimal in the third column. Specifically, the current setting value at time t 0 is 0H (indicating that H is a hexadecimal representation. Forth.), The current setting value at time t 1 is 1H, the current set at time t 2 values 2H, current setting value at time t 3 is BH, the time the current set value when t 4 is AH, the current setting value at time t 5 is 1H, the current setting value at time t 6 is 0H, time t At 7, the current set value is 1H. In FIG. 5, the fourth column shows the difference data, which is the difference between the current set value t (n-1) at the previous time and the current set value t (n) , in decimal numbers using positive and negative signs. (If the value is positive, the difference is incremented, and if it is negative, it is decremented.) The fifth column shows command data generated from the positive and negative signs of the difference data in the fourth column. The sixth column shows the absolute value data (change amount data) of the difference shown by the third column expressed in binary.
図5において、第2列に示したように、時刻t0からt7まで全てのデータを8ビットで送受信した場合には64ビットのデータを送信する必要があり、64ビット分の送信時間が必要になる。これに対して、第5列および第6列に示したように、コマンドデータと変化量データを組み合わせて送信した場合、それぞれ16ビットおよび14ビットのデータ量となるため、データの送信に必要な時間は、30ビット分の時間となる。このようにして、本実施例においては送信されるデータを削減することができる。 In FIG. 5, as shown in the second column, when all data is transmitted and received in 8 bits from time t 0 to t 7, it is necessary to transmit 64-bit data, and the transmission time for 64 bits I need it. On the other hand, as shown in the fifth column and the sixth column, when command data and change amount data are transmitted in combination, the data amount is 16 bits and 14 bits, respectively, which is necessary for data transmission. The time is 30 bits. In this way, the data to be transmitted can be reduced in this embodiment.
次に、本実施例において送信されるデータの構成について図6に具体的に示す。なお、図6は、図5の場合とは異なり、電流設定値のビット長が16ビットであるとした場合の説明である。図6の左列には16ビットの電流設定値データを、右列には実際に送信される送信データ(電流設定信号)を示す。右列各欄の上段は電流設定値データそのままのノーマルデータを送信する場合のビット構成を示し、下段は、1つ前の時刻の電流設定値に対する現在の電流設定値の差を示す差分データを送信する場合のビット構成を示している。送信データ(電流設定信号)のMSB2ビットはコマンドデータとなっている。なお、図6の3種類のデータに対する1つ前の時刻の電流設定値は、全て0であるとしている。1つ前の時刻の電流設定値が0であるので、ノーマルデータの電流設定値データは、そのまま差分データと見なすことができる。右列各欄の下段に示される差分データとして送信されるデータは、2ビット長のコマンドデータと、それに続けて、電流設定値から求めた変化量のデータをビット順に並べたもの(図6の例では、上記のようにノーマルデータに等しい)を、LSBに向かってMSBから順に全てのビットを走査して、はじめに1となっているビットからLSBまでのデータを並べたものとからなる。単純に2ビット長のコマンドデータと図6左列の電流設定値データを合わせただけのノーマルデータの送信データに比べ、このように、変化量データが短縮されるため、通信データ量が削減され、電流設定値を伝達するために必要な通信時間を削減することができる。 Next, the configuration of data transmitted in the present embodiment is specifically shown in FIG. FIG. 6 is different from FIG. 5 in the case where the bit length of the current set value is 16 bits. The left column of FIG. 6 shows 16-bit current setting value data, and the right column shows transmission data (current setting signal) actually transmitted. The upper part of each column in the right column shows the bit configuration when transmitting normal data as it is, and the lower part shows the difference data indicating the difference between the current setting value and the current setting value at the previous time. The bit configuration for transmission is shown. The MSB2 bit of the transmission data (current setting signal) is command data. It is assumed that the current setting values at the previous time for the three types of data in FIG. Since the current set value at the previous time is 0, the normal data current set value data can be regarded as difference data as it is. The data transmitted as the difference data shown in the lower part of each column in the right column is a command data having a 2-bit length, followed by the change amount data obtained from the current set value in the order of bits (see FIG. 6). In the example, it is equal to normal data as described above), and all the bits are scanned in order from the MSB toward the LSB, and the data from the first bit to the LSB are first arranged. Compared with the normal data transmission data, which is simply a combination of the 2-bit command data and the current setting value data in the left column of FIG. 6, the change amount data is shortened in this way, so the communication data amount is reduced. The communication time required for transmitting the current set value can be reduced.
図7に送信データ作成フローを示す。先ず、図1の主制御回路のプログラムにおいて副制御回路ヘ送信するデータを、ノーマルデータを送信するかどうかの判断を行う(S702)。ノーマルデータを送信する場合、図2のコマンドデータに入れるコードを00Bとする(S704)。このとき、電流設定信号には電流設定値データをそのまま入れる(S706)。これを図4,5のt0の値によって例示すれば、8ビットデータをそのまま用いるため、00000000Bが用いられる。ノーマル送信データでない場合(S702)、保存されている前回の電流設定値(データ保存未実施のときには、0とする)との差を検出する(S708)。そして、増減量の表現を2の補数によって行うかどうかの判断を行う(S710)。 FIG. 7 shows a transmission data creation flow. First, in the program of the main control circuit of FIG. 1, it is determined whether normal data is transmitted as data to be transmitted to the sub control circuit (S702). When transmitting normal data, the code to be inserted into the command data of FIG. 2 is set to 00B (S704). At this time, the current setting value data is directly input to the current setting signal (S706). By way of example the value of t 0 in FIG. 4 and 5 this, for use as a 8-bit data, 00000000B is used. If it is not normal transmission data (S702), a difference from the previous stored current setting value (0 when data is not saved) is detected (S708). Then, it is determined whether or not the increase / decrease amount is expressed by 2's complement (S710).
2の補数を用いる場合には、コマンドデータに入れるコードを11Bとし(S712)、2の補数を用いる場合のデータ設定処理(データ設定処理2)を実行する(S714)。この処理については、後述する。また、絶対値を用いる(2の補数を用いない)場合には、検出した差が正か負かによって処理を分岐させる(S716)。なお、S708またはS716において、差の絶対値も求める。差がプラスであればコマンドデータに入れるコードを01Bとし(S718)、差がマイナスであればコマンドデータに入れるコードを10Bとする(S720)。その後、差の絶対値に対し、後述する図8の処理によりデータ設定処理1を行い(S722)、得られたデータが送信されるデータとなる。最後に電流設定値を記憶素子に一旦保存する(S724)。保存したデータは差の検出に使用される。
When 2's complement is used, the code to be entered in the command data is set to 11B (S712), and data setting processing (data setting processing 2) when 2's complement is used is executed (S714). This process will be described later. If an absolute value is used (2's complement is not used), the process branches depending on whether the detected difference is positive or negative (S716). In S708 or S716, the absolute value of the difference is also obtained. If the difference is positive, the code entered in the command data is 01B (S718), and if the difference is negative, the code entered in the command data is 10B (S720). Thereafter, the
次に、変化量データから通信データを設定するための処理および受信の処理に関し、絶対値を用いる場合のデータ処理設定1(S722)と2の補数を用いる場合のデータ処理設定2(S714)の詳細について説明する。図8Aにデータ処理設定1の処理についての処理フローを示し、図8Bにデータ処理設定2の処理についての処理フローを示す。なお、図8A、Bにおいては電流設定値のデータをDATA[7:0]によって表されるビット列を8ビットデータとしている。ここで、ビットmからnの特定のNビット(N=m−n+1)の表現にはDATA[m:n](m>n≧0)と表す。また、特定の1ビットは、DATA[m]と表す。一般性のある電流設定値の表現は、DATA[N−1:0]のビット列である。 Next, regarding the process for setting communication data from the variation data and the process of reception, data processing setting 1 when using an absolute value (S722) and data processing setting 2 when using two's complement (S714) Details will be described. FIG. 8A shows a processing flow for the data processing setting 1 processing, and FIG. 8B shows a processing flow for the data processing setting 2 processing. In FIGS. 8A and 8B, the data of the current setting value is a bit string represented by DATA [7: 0] as 8-bit data. Here, the expression of specific N bits (N = m−n + 1) from bits m to n is expressed as DATA [m: n] (m> n ≧ 0). One specific bit is represented as DATA [m]. A general expression of the current set value is a bit string of DATA [N-1: 0].
絶対値を用いる場合のデータ処理設定1(図8A)においては、先ず走査ビット位置を表すパラメータmの値を初期化する(S802)。なお、一般性を持たせた表現をするなら、データのビット数をMとした場合、m=M−1に初期化する。次に、DATA[m]が1かどうかを判定し(S804)、1であればデータビット幅(ビット数―1)をmとして電流設定値のデータからDATA[m:0]のみを抽出する(S806)。こうして通信データが決まるので終了する。これに対し、DATA[m]が1ではないとき、すなわち、DATA[m]が0のときには(S804)、さらにm=0かどうか判定し(S808)、m=0の場合は、ビットデータ幅(ビット数−1)=0、データ値=0とする。m=0でない場合には(S810)、mをデクリメント(m=m−1)し(S812)、再度DATA[m]が1となるまでこれを繰り返す。本処理は、mをデクリメントしながら各ビットを走査し、DATA[m]が1であるか、m=0になるまで処理を繰り返し、変化量データのうち最初に1となっているビットからLSBまでのデータビット幅とデータ値とを抽出する。言い換えるなら、各ビットを走査して最初に有効ビットが現れるビットの直前のビットまでのビットをビット列から削除した残りのビットのデータを変化量データとしている。また、各ビットが全て0であるときは、1ビットの0というデータを変化量データとする。 In data processing setting 1 (FIG. 8A) in the case of using an absolute value, first, a value of a parameter m representing a scanning bit position is initialized (S802). For general expression, if the number of data bits is M, it is initialized to m = M-1. Next, it is determined whether or not DATA [m] is 1 (S804), and if it is 1, only data [m: 0] is extracted from the data of the current setting value with the data bit width (number of bits−1) as m. (S806). Since communication data is determined in this way, the process ends. On the other hand, when DATA [m] is not 1, that is, when DATA [m] is 0 (S804), it is further determined whether m = 0 or not (S808). (Number of bits-1) = 0 and data value = 0. If m = 0 is not satisfied (S810), m is decremented (m = m-1) (S812), and this is repeated until DATA [m] becomes 1 again. This process scans each bit while decrementing m, and repeats the process until DATA [m] is 1 or m = 0, and the LSB from the bit that is first 1 in the change amount data The data bit width and data value up to are extracted. In other words, the data of the remaining bits obtained by scanning each bit and deleting the bits up to the bit immediately before the bit in which the valid bit first appears from the bit string is used as the change amount data. When all the bits are 0, data of 1 bit of 0 is used as the change amount data.
次に2の補数を用いる場合のデータ処理設定2について説明する。この場合、図7のS708で2の補数データ自身は得られているものとし、データ処理設定2は2の補数データに関する通信データ量を削減する処理を行う。この処理においては、2の補数データが正の値を示すときは0のビットがMSBから1ないし数ビット続き、負の値を示すときは1のビットがMSBから1ないし数ビット続くことを前提としている。2の補数を用いる場合のデータ処理設定2(図8B)においても、先ず走査ビット位置を表すパラメータmの値を初期化する(S832)。なお、次に、DATA[m]とDATA[m−1]と、つまり隣り合ったビット値と等しいかを判定し(S834)、等しくない場合には、データビット幅(ビット数−1)をmとして電流設定値のデータからDATA[m:0]のみを抽出する(S836)。こうして通信データが決まるので終了する。これに対し、DATA[m]とDATA[m−1]とが等しいとき(S834)には、さらにm=1かどうか判定し(S838)、m=1の場合は、DATA[m−1](もしくはDATA[m])が0かどうかによって(S842)、データビット幅=0、データ値=0とする(S844)か、データビット幅=0、データ値=1とする(S846)。これは、元のデータが、全てのビットがゼロのデータであるか、全てのビットが1のデータであるかを示している。なお、全てのビットが1となるのは、元の2の補数表現データが10進数の「−1」を表している場合である。 Next, data processing setting 2 in the case of using 2's complement will be described. In this case, it is assumed that the 2's complement data itself has been obtained in S708 of FIG. 7, and the data processing setting 2 performs a process of reducing the communication data amount related to the 2's complement data. In this processing, when 2's complement data indicates a positive value, it is assumed that a bit of 0 continues for 1 to several bits from the MSB, and when it indicates a negative value, 1 bit continues for 1 to several bits from the MSB. It is said. Also in data processing setting 2 (FIG. 8B) in the case of using 2's complement, first, the value of the parameter m representing the scanning bit position is initialized (S832). Next, it is determined whether DATA [m] and DATA [m-1] are equal to each other, that is, whether they are equal to adjacent bit values (S834). If they are not equal, the data bit width (bit number-1) is set. Only DATA [m: 0] is extracted from the data of the current setting value as m (S836). Since communication data is determined in this way, the process ends. On the other hand, when DATA [m] is equal to DATA [m−1] (S834), it is further determined whether m = 1 (S838). If m = 1, DATA [m−1] is determined. Depending on whether (or DATA [m]) is 0 (S842), the data bit width = 0 and the data value = 0 (S844), or the data bit width = 0 and the data value = 1 (S846). This indicates whether the original data is data in which all the bits are zero or data in which all the bits are 1. It should be noted that all bits are 1 when the original 2's complement representation data represents a decimal number “−1”.
m=1でない場合には(S838)、mをデクリメント(m=m−1)し(S840)、再度DATA[m]が1となるまでこれを繰り返す。本処理も、2の補数によって表現された増減量に対して、各ビットを走査して最初に有効ビットが現れるビットの直前のビットまでのビットをビット列から削除した残りのビットのデータを変化量データとしている。 If m = 1 is not satisfied (S838), m is decremented (m = m-1) (S840), and this is repeated until DATA [m] becomes 1 again. In this process, the amount of change expressed by the two's complement is changed by scanning each bit and removing the bits from the bit string up to the bit immediately before the bit where the effective bit first appears. It is data.
そして、図9にデータ受信フローを示す。ENn信号がハイレベルからローレベルになることでデータ受信を開始すると、まず、走査が完了したビット数を表すm値をm=0に初期化する(S902)。なお、データ受信は、図2に示すCLK信号で規定されるタイミングで行われる。1ビット受信すると、コマンドコードは2ビットのデータであるため、まず、m=2かどうかを判定し(S904)、m=2ではない場合には、コマンドコードのデータ記憶用変数CMD[1:0]のうちCMD[m]に、受信した1ビットのデータを保存し(S906)、m値をインクリメント(m=m+1)する(S908)。これをm=2となるまで繰り返す(S904)。m=2となると、コマンドコードのデータとして、CMD[1:0]を保存する(S910)。 FIG. 9 shows a data reception flow. When data reception is started when the ENn signal is changed from a high level to a low level, first, an m value indicating the number of bits for which scanning has been completed is initialized to m = 0 (S902). Note that data reception is performed at a timing defined by the CLK signal shown in FIG. When 1 bit is received, since the command code is 2-bit data, it is first determined whether m = 2 (S904). If m = 2 is not satisfied, the command code data storage variable CMD [1: 0] is stored in CMD [m] (S906), and the m value is incremented (m = m + 1) (S908). This is repeated until m = 2 (S904). When m = 2, CMD [1: 0] is stored as command code data (S910).
コマンドデータの次は電流値を示すデータなので、再度走査ビット数を表すm値をm=0に初期化する(S912)。以降、ENn信号がローレベルからハイレベルになるまで、連続してデータ受信を繰り返す(S914〜S918)。データ受信を終了したら(S914)、DATA[m:0]が取得される(S920)。そして、先に確定済みのコマンドデータの値に基づいて(S922)、ノーマルデータを受信している場合(コード00B)、絶対値を利用していて増減が正(増加)である場合(コード01B)、2の補数を利用している場合(コード11B)、絶対値を利用していて増減が負(減少)である場合(コード10B)に合わせた処理を行う。すなわち、ノーマルデータを受信している場合は、電流設定値に受信データDATA[m:0]をそのまま設定する(S924)。また、絶対値を利用していて増減が正(増加)である場合(コード01B)、および、2の補数を利用している場合(コード11B)には、現在の電流設定値に対して変化量データとなっているDATA[m:0]を加算する(S926)。そして、絶対値を利用していて増減が負(減少)である場合には(S10B)、コマンドコードの内容に応じて、増加のコマンドコードを受信しているときには、現在の電流設定値から変化量データとなっているDATA[m:0]を減算する(S928)。以上の処理により、少ない通信量によって増減が適切に反映された電流設定値が得られる。
Since the command data is data indicating the current value, the m value indicating the number of scanning bits is initialized to m = 0 again (S912). Thereafter, data reception is continuously repeated until the ENn signal changes from low level to high level (S914 to S918). When the data reception is completed (S914), DATA [m: 0] is acquired (S920). Then, based on the previously determined command data value (S922), when normal data is received (
なお、上述の実施例1は、絶対値による表現と2の補数による表現とが組み合わされた例を示したが、当業者には、2の補数を用いない実施形態においては、S710のような判断および2の補数を用いる場合の分岐は実行されないこと、また、なお、2の補数のみを用いる実施形態においては、S710の判断および2の補数を用いない場合の分岐は実行されないことは明らかである。いずれの場合であっても、通信量を削減するとの本願の発明のいずれかの効果が達成される。 In addition, although the above-mentioned Example 1 showed the example which combined the expression by an absolute value, and the expression by 2's complement, those skilled in the art are like S710 in embodiment which does not use 2's complement. It is clear that the decision and the branch when using the two's complement are not executed, and that in the embodiment using only the two's complement, the decision at S710 and the branch when not using the two's complement are not executed. is there. In any case, any effect of the invention of the present application to reduce the communication amount is achieved.
また、2の補数を用いる実施形態では、S916の加算演算を実行する加算器の入力ビット数をNとすると、(N−1)>mの場合は、S926に示す加算演算において、DATA[m:0]を、DATA[m:0]のMSBのさらに上位ビットとして、DATA[m]と等しい値のビットを(N−1−m)ビットを付加したDATA[N−1:0]に置き換える操作を行う。 In the embodiment using 2's complement, assuming that the number of input bits of the adder that performs the addition operation of S916 is N, if (N−1)> m, in the addition operation shown in S926, DATA [m :]] Is replaced with DATA [N-1: 0] with (N-1-m) bits added to the bits having the same value as DATA [m] as the higher-order bits of the MSB of DATA [m: 0]. Perform the operation.
図10に複数のデータを連続して送受信する場合のタイミングチャートを示す。図10では、コマンド1とデータ1から成るデータ群1と、コマンド2とデータ2から成るデータ群2を連続して送信する場合を示す。なお、データ1とデータ2に示されている1〜7の数字はビットの並び順を示すもので、データの値そのものではない(以下、同様。)。また、コマンドデータ1とコマンドデータ2に示されている1,1に特に意味はなく、実施例1のように2の補数表現であることを示すものではない(以下、同様。)。通信の決め事として、データ群1の後に必ずデータ群2が来るというように決めておいて、それに応じた送受信回路のシーケンスを組むことで、これら連続したデータ群の通信が可能となる。図10では、データ群1とデータ群2の間の識別は、ENn信号を1クロックの間だけローレベルからハイレベルにし、再びローレベルにすることで行なっている。図11も同様に2つのデータ群を送受信する場合のタイミングチャートを示しているが、データ群2はノーマルデータしか送受信しないとした場合を示し、コマンド2を省いた例である。図12は図11とは逆にデータ群1のコマンド1を省いた例である。この場合、データ群1のビット数を固定としたため、ENn信号によるデータ群1とデータ群2の識別を行なう必要が無い。なお、図10のデータ群1および2と、図11のデータ群1と、図12のデータ群2とについては、図示したものは8ビットのノーマルデータと同じビット長としているが、本発明の実施例1に従ってビット長が削減されたデータとすることができる。図10のように、複数のデータ群を組み合わせることによって、複数の誘導性負荷を制御する信号を通信経路を通じて通信することができる。また、図11や図12のようにノーマルデータと組み合わせることによって柔軟な通信態様を実現することができる。
FIG. 10 shows a timing chart when transmitting and receiving a plurality of data continuously. FIG. 10 shows a case where
次に、実施例3として、ENn信号を使わない複数のデータを送受信する例を示す。図13はこのENn信号を使わない例のタイミングチャートを示す。データの開始と終了の識別は、I2C等のインターフェースで使用される状態識別と同様であるが、データ群2のデータは固定長ではなく、有効ビットのみを利用するところがI2C等の従来技術と異なる。図13の例は、データ群1を固定ビット長とした例であるが、図10のように、データ群1とデータ群2の両方を有効ビット長のみの送受信としても良く、同様に図11のようにデータ群1を有効ビット長のみ送受信し、データ群2を固定ビット長としても良い。この場合、例えばI2C等で使われているリスタート条件をまねることでデータ群1の終了を検出することができる(データ信号でデータを送信する場合はデータ信号の変化するタイミングをCLK信号がローレベルの期間に限定し、CLK信号がハイレベルの期間にデータ信号が変化したらデータ群1が終了したと判断する。)。また、送信するデータ群は2つに限定するものではなく、2つ以上のデータ群に対しても同様に送受信を連続的に行なうことが可能となる。
Next, as a third embodiment, an example in which a plurality of data not using the ENn signal is transmitted and received will be described. FIG. 13 shows a timing chart of an example in which this ENn signal is not used. Start the identification of the end of the data is the same as the state identification to be used in the interface, such as I 2 C, data of the
以上、本発明の実施の形態につき述べたが、本発明は既述の実施の形態に限定されるものではなく、本発明の技術的思想に基づいて各種の変形、変更および組み合わせが可能である。例えば、上記実施例では増減コードを用いて電流設定値の増減の絶対値を表わす変化量データが有効ビットのみに削減されるような処理のみを示したが、例えば変化量が一定の範囲に収まるような変化が緩やかな制御をきめ細かく行う場合には変化量データのビット数を小さな一定の値とすることができるので、増減コードと変化量データを用いるだけで通信データを削減することができ、通信データ量の増大に伴う応答の悪化を防止する効果がもたらされる。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications, changes and combinations can be made based on the technical idea of the present invention. . For example, in the above-described embodiment, only the process in which the change amount data representing the absolute value of the increase / decrease in the current setting value is reduced to only the valid bits using the increase / decrease code is shown. For example, the change amount falls within a certain range. When fine control is performed such that the change is gentle, the number of bits of the change amount data can be set to a small constant value, so that communication data can be reduced only by using the increase / decrease code and change amount data. The effect of preventing the deterioration of the response accompanying the increase in the communication data amount is brought about.
100 システム
9,91〜9N 誘導性負荷
10 誘導性負荷制御装置
12 主制御回路
14 通信経路
16,161〜16N 副制御回路
100
Claims (12)
前記外部ホストCPUの指示データと前記センサー信号とに基づいて前記誘導性負荷要素に流す電流についての電流設定値を電流設定信号によって指示する主制御回路と、
該主制御回路からの前記電流設定信号を伝える通信経路と、
該通信路と前記誘導性負荷要素に接続され、前記主制御回路からの前記電流設定信号に基づいて、誘導性負荷要素に流す電流値を制御する副制御回路と
を備えてなり、前記電流設定信号に、前記電流設定値の増減を表わすデータのビット列をLSBに向かってMSBから走査し、該走査において最初に有効ビットが現れるビットの直前のビットまでのビットを前記ビット列から削除した残りのビットのデータである変化量データと、該変化量データの演算処理を指示するためのコマンドデータとを含む、誘導性負荷制御装置。 An inductive load control device for controlling a current flowing through an inductive load element based on instruction data of an external host CPU and signals from various sensors,
A main control circuit for instructing a current setting value for a current flowing through the inductive load element based on the instruction data of the external host CPU and the sensor signal by a current setting signal;
A communication path for transmitting the current setting signal from the main control circuit;
A sub-control circuit that is connected to the communication path and the inductive load element and controls a current value to flow through the inductive load element based on the current setting signal from the main control circuit, and the current setting In the signal, a bit string of data representing the increase or decrease of the current set value is scanned from the MSB toward the LSB, and the bits up to the bit immediately preceding the bit in which the valid bit first appears in the scan are deleted from the bit string. An inductive load control device including change amount data that is data of the above and command data for instructing arithmetic processing of the change amount data.
前記コマンドデータは、前記電流設定値が直前の電流設定値より増加したか減少したかを表す増減コードを含み、
前記副制御回路が、前記電流設定信号を受信し、該電流設定信号の中の前記コマンドデータにあるデータに応じて、直前の電流設定値に前記変化量データを加算するか減算するかを選択的に実行して新たな電流設定値を得て、該新たな電流設定値を前記電流設定値のデータとする、請求項1に記載の誘導性負荷制御装置。 The change amount data is data of the remaining bits scanned from a bit string of data representing an absolute value of increase / decrease of a current set value, and deleted from the bit string based on the scan,
The command data includes an increase / decrease code indicating whether the current set value has increased or decreased from the previous current set value,
The sub control circuit receives the current setting signal, and selects whether to add or subtract the change amount data to the previous current setting value according to data in the command data in the current setting signal The inductive load control device according to claim 1, wherein the inductive load control device according to claim 1 is executed to obtain a new current set value and use the new current set value as data of the current set value.
前記コマンドデータは、前記変化量データが2の補数の形式のデータであることを示すコードを含み、
前記副制御回路は、前記電流設定信号を受信し、該電流設定信号の中の前記コマンドデータにあるデータが、前記変化量データが2の補数の形式のデータであることを示すときに、直前の電流設定値のデータと前記変化量データとを加算器によって演算して新たな電流設定値を得て、該新たな電流設定値を前記電流設定値のデータとし、前記変化量データのビット数が前記加算器の入力ビット数より小さいときは、前記変化量データの最上位ビットと同じ値のビットを前記変化量データに対し前記最上位ビットのさらに上位ビットとして必要ビット数付加することにより前記変化量データのビット数を前記加算器の入力ビット数に等しくさせる、請求項1に記載の誘導性負荷制御装置。 The change amount data is data of the remaining bits obtained by scanning a bit string of data in a two's complement format representing increase / decrease of the current set value and deleting from the bit string based on the scan,
The command data includes a code indicating that the variation data is data in a two's complement format,
The sub-control circuit receives the current setting signal, and when the data in the command data in the current setting signal indicates that the variation data is data in a two's complement format, The current set value data and the change amount data are calculated by an adder to obtain a new current set value, the new current set value is used as the current set value data, and the number of bits of the change amount data Is smaller than the number of input bits of the adder, the required bit number is added to the variation data as a higher-order bit of the most significant bit by adding a bit having the same value as the most significant bit of the variation data. The inductive load control device according to claim 1, wherein the number of bits of change amount data is made equal to the number of input bits of the adder.
前記副制御回路には複数の誘導性負荷要素が接続されて、各チャネルによってそれぞれの誘導性負荷要素のための前記電流設定信号を受信して各誘導性負荷要素を独立に制御する、請求項1に記載の誘導性負荷制御装置。 The main control circuit transmits the current setting signal by a plurality of channels divided in time in the current setting signal,
A plurality of inductive load elements are connected to the sub-control circuit, and the current setting signal for each inductive load element is received by each channel to control each inductive load element independently. The inductive load control device according to 1.
前記電流設定信号には、前記コマンドデータに関連付けて送信される第1の変化量データと、該第1の変化量データより後に送信される第2の変化量データとを含み、
前記副制御回路は、受信した前記コマンドデータによる演算処理を、前記第1および第2の変化量データによる演算に施す、請求項1に記載の誘導性負荷制御装置。 The main control circuit instructs the operation on the first and second change amount data by the command data together with the first change amount data,
The current setting signal includes first change amount data transmitted in association with the command data, and second change amount data transmitted after the first change amount data,
2. The inductive load control device according to claim 1, wherein the sub-control circuit performs a calculation process based on the received command data on a calculation based on the first and second variation data.
前記主制御回路によって、誘導性負荷要素に流す電流の設定値である電流設定値についての増減を表わすデータのビット列をLSBに向かってMSBから走査し、該走査において最初に有効ビットが現れるビットの直前のビットまでのビットを前記ビット列から削除した残りのビットのデータである変化量データと、該変化量データの演算処理を指示するためのコマンドデータとを生成するデータ生成ステップと、
前記主制御回路によって、変化量データとコマンドデータとを含む電流設定信号を前記通信経路を通じて送信することにより、前記外部ホストCPUの指示データと前記センサー信号とに基づいて前記誘導性負荷要素に流すべき設定値電流を前記電流設定信号によって指示するステップと、
前記通信経路から前記電流設定信号を受信した副制御回路によって、前記主制御回路からの前記電流設定信号の電流設定値に基づいて、前記誘導性負荷要素に流す電流を制御する制御ステップと
を含む誘導性負荷制御方法。 Using the main control circuit, the sub control circuit to which the inductive load element is connected, and the communication path connected to the main control circuit and the sub control circuit, the instruction data of the external host CPU and the signals from various sensors are used. A control method of an inductive load element that controls a current flowing through the inductive load element based on
The main control circuit scans a bit string of data representing increase / decrease in the current set value, which is the set value of the current flowing through the inductive load element, from the MSB toward the LSB, and the bit in which the effective bit first appears in the scan. A data generation step for generating change amount data that is data of the remaining bits obtained by deleting the bits up to the immediately preceding bit from the bit string, and command data for instructing arithmetic processing of the change amount data;
The main control circuit transmits a current setting signal including change amount data and command data through the communication path, and flows to the inductive load element based on the instruction data of the external host CPU and the sensor signal. Indicating a power setpoint current by the current setting signal;
A control step of controlling a current flowing through the inductive load element based on a current setting value of the current setting signal from the main control circuit by a sub control circuit that has received the current setting signal from the communication path. Inductive load control method.
前記主制御回路が、電流設定値の増減の絶対値を表わすデータのビット列を走査するステップと、
前記主制御回路が、該走査に基づいて前記ビット列から削除した残りのビットのデータを前記変化量データとするステップと
を含み、
前記コマンドデータは、前記電流設定値が直前の電流設定値より増加したか減少したかを表す増減コードを含み、
前記制御ステップは、前記電流設定信号を受信した前記副制御回路が、該電流設定信号の中の前記コマンドデータにあるデータに応じて、直前の電流設定値に前記変化量データを加算するか減算するかを選択的に実行して新たな電流設定値を得て、該新たな電流設定値を前記電流設定値のデータとする、請求項6に記載の誘導性負荷制御方法。 The data generation step includes
The main control circuit scanning a bit string of data representing an absolute value of increase / decrease of a current set value;
The main control circuit includes, as the change amount data, data of the remaining bits deleted from the bit string based on the scanning, and
The command data includes an increase / decrease code indicating whether the current set value has increased or decreased from the previous current set value,
In the control step, the sub control circuit that has received the current setting signal adds or subtracts the change amount data to the previous current setting value according to data in the command data in the current setting signal. The inductive load control method according to claim 6, wherein a new current set value is obtained by selectively executing whether the new current set value is used as data of the current set value.
前記主制御回路が、電流設定値の増減を表わす2の補数の形式のデータのビット列を走査するステップと、
前記主制御回路が、該走査に基づいて前記ビット列から削除した残りのビットのデータを前記変化量データとするステップと
を含み、
前記コマンドデータは、前記変化量データが2の補数の形式のデータであることを示すコードを含み、
前記制御ステップは、該電流設定信号の中の前記コマンドデータにあるデータが、前記変化量データが2の補数の形式のデータであることを示すときに、前記電流設定信号を受信した前記副制御回路が、直前の電流設定値のデータと前記変化量データとを加算器によって演算して新たな電流設定値を得て、該新たな電流設定値を前記電流設定値のデータとし、前記変化量データのビット数が前記加算器の入力ビット数より小さいときは、前記変化量データの最上位ビットと同じ値のビットを前記変化量データに対し前記最上位ビットのさらに上位ビットとして必要ビット数付加することにより前記変化量データのビット数を前記加算器の入力ビット数に等しくさせるステップである、請求項6に記載の誘導性負荷制御方法。 The data generation step includes
The main control circuit scanning a bit string of data in two's complement format representing an increase or decrease in a current set value;
The main control circuit includes, as the change amount data, data of the remaining bits deleted from the bit string based on the scanning, and
The command data includes a code indicating that the variation data is data in a two's complement format,
The control step receives the current setting signal when the data in the command data in the current setting signal indicates that the variation data is data in a two's complement format. A circuit calculates an immediately preceding current set value data and the change amount data by an adder to obtain a new current set value, which is used as the current set value data, and the change amount When the number of data bits is smaller than the number of input bits of the adder, the required number of bits is added to the change amount data as a higher order bit of the most significant bit with the same value as the most significant bit of the change amount data. The inductive load control method according to claim 6, wherein the step of making the number of bits of the variation data equal to the number of input bits of the adder.
前記制御ステップは、複数の誘導性負荷要素が接続された前記副制御回路によって、各チャネルによってそれぞれの誘導性負荷要素のための前記電流設定信号を受信して各誘導性負荷要素を独立に制御する、請求項6に記載の誘導性負荷制御方法。 The data generation step is a step of generating change amount data and the command data to be transmitted by a plurality of channels divided in time by the main control circuit,
In the control step, the sub-control circuit to which a plurality of inductive load elements are connected receives the current setting signal for each inductive load element by each channel and controls each inductive load element independently. The inductive load control method according to claim 6.
前記データ生成ステップは、前記第1の変化量データと前記コマンドデータとを含む第1群のデータと、前記第2の変化量データを含む第2群のデータとを生成するステップであり、
前記制御ステップは、前記第1のデータ群と前記第2のデータ群とを受信した前記副制御回路によって、前記第1の変化量データと前記コマンドデータによる第1の電流設定値と、前記第2の変化量データと前記コマンドデータによる第2の電流設定値とに基づいて前記誘導性負荷要素に流す電流を制御するものである、請求項6に記載の誘導性負荷制御方法。 The command data is for instructing arithmetic processing of the first and second variation data,
The data generation step is a step of generating a first group of data including the first change amount data and the command data, and a second group of data including the second change amount data.
In the control step, the sub-control circuit that receives the first data group and the second data group performs a first current setting value based on the first variation data and the command data, The inductive load control method according to claim 6, wherein a current flowing through the inductive load element is controlled based on a change amount data of 2 and a second current setting value based on the command data.
前記通信経路は時間的に区分される複数のチャネルの通信を行い、
前記副制御回路は、各チャネルによってそれぞれの誘導性負荷要素のための電流設定信号を受信して各誘導性負荷要素を独立に制御する、請求項6に記載の誘導性負荷制御方法。 A plurality of inductive load elements are connected to the sub-control circuit,
The communication path performs communication of a plurality of channels divided in time,
The inductive load control method according to claim 6, wherein the sub control circuit receives a current setting signal for each inductive load element by each channel and controls each inductive load element independently.
主制御回路に、誘導性負荷要素に流す電流の設定値である電流設定値についての増減を表わすデータのビット列をLSBに向かってMSBから走査し、該走査において最初に有効ビットが現れるビットの直前のビットまでのビットを前記ビット列から削除した残りのビットのデータである変化量データと、該変化量データの演算処理を指示するためのコマンドデータとを生成するデータ生成ステップと、
主制御回路に、変化量データとコマンドデータとを含む電流設定信号を前記通信経路を通じて送信することにより、前記外部ホストCPUの指示データと前記センサー信号とに基づいて前記誘導性負荷要素に流すべき設定値電流を前記電流設定信号によって指示するステップと、
前記通信経路から前記電流設定信号を受信した副制御回路に、前記主制御回路からの前記電流設定信号の電流設定値に基づいて、前記誘導性負荷要素に流す電流を制御する制御ステップと
を実行させるための誘導性負荷制御プログラム。 Based on the instruction data of the external host CPU and signals from various sensors using the main control circuit, the sub control circuit to which the inductive load element is connected, and the communication path connected to the main control circuit and the sub control circuit An inductive load control program for controlling the current flowing through the inductive load element,
The main control circuit, a set value of the current flowing through the inductive load element scanned from MSB bit string of data representing the increase or decrease of the current set value toward the LSB, of the first valid bit appears bit in the scanning A data generation step for generating change amount data that is data of the remaining bits obtained by deleting the bits up to the immediately preceding bit from the bit string , and command data for instructing arithmetic processing of the change amount data;
By transmitting a current setting signal including change amount data and command data to the main control circuit through the communication path, it should flow to the inductive load element based on the instruction data of the external host CPU and the sensor signal. Indicating a setpoint current by means of the current setting signal;
A control step for controlling a current flowing through the inductive load element based on a current setting value of the current setting signal from the main control circuit to the sub control circuit that has received the current setting signal from the communication path. An inductive load control program.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008149085A JP5212799B2 (en) | 2008-06-06 | 2008-06-06 | Inductive load control device, control method, and control program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008149085A JP5212799B2 (en) | 2008-06-06 | 2008-06-06 | Inductive load control device, control method, and control program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2009296422A JP2009296422A (en) | 2009-12-17 |
| JP5212799B2 true JP5212799B2 (en) | 2013-06-19 |
Family
ID=41544161
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008149085A Active JP5212799B2 (en) | 2008-06-06 | 2008-06-06 | Inductive load control device, control method, and control program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5212799B2 (en) |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4091163B2 (en) * | 1998-04-21 | 2008-05-28 | 株式会社デンソー | Signal input device, control device, and current control device for inductive load |
| JP4255535B2 (en) * | 1998-07-16 | 2009-04-15 | 富士通テン株式会社 | Electronic control system |
| JP4075257B2 (en) * | 1999-12-03 | 2008-04-16 | 株式会社デンソー | Inductive load drive |
| JP2006141192A (en) * | 2004-10-12 | 2006-06-01 | Nissan Motor Co Ltd | Inductive load driving device and inductive load driving method |
-
2008
- 2008-06-06 JP JP2008149085A patent/JP5212799B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2009296422A (en) | 2009-12-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101752157B1 (en) | Encoding for partitioned data bus | |
| JP5212799B2 (en) | Inductive load control device, control method, and control program | |
| CN1719734B (en) | D/A converter and drive circuit using D/A converter | |
| CN106134132B (en) | Communication method and device for a voltage regulator of a motor vehicle alternator on a vehicle network, and corresponding voltage regulator and alternator | |
| JP5114129B2 (en) | Relay connection unit | |
| JP2001154704A (en) | Feedback control system | |
| JP5358989B2 (en) | Motor drive communication system | |
| EP1739569A1 (en) | Device and method for performing multi-function using unique port in wireless terminal | |
| GB2290203A (en) | Communication circuit for performing data transfer | |
| US5801840A (en) | Apparatus for decoding codes with less memory capacity | |
| JP2000330470A (en) | Exponentiation unit, modular exponentiation unit, elliptic exponentiation unit, arrangement thereof, and recording medium | |
| CN101281905A (en) | Semiconductor device and method for switching drive capability of semiconductor device | |
| JP2730399B2 (en) | Image data reduction device | |
| CN101278241B (en) | Transmission member with a segmented characteristic diagram | |
| JP2009117883A (en) | Arithmetic processing unit | |
| JPH0722398B2 (en) | Gamma conversion circuit | |
| JP2005244464A (en) | Lvds system, its transmitter side circuit, and its receiver side circuit | |
| KR20060053487A (en) | Thermal transfer image forming apparatus and method using low voltage homogeneous signal transmission and reception method | |
| JPH06105154A (en) | γ correction method | |
| JP3211519B2 (en) | Image processing device | |
| CN100576114C (en) | Pulse Width Modulated Load Driver | |
| KR20080075363A (en) | Analog / Digital Conversion Methods for Microprocessors | |
| JP2786031B2 (en) | A / D converter | |
| US7860939B2 (en) | Serial communication system | |
| JP2005354375A (en) | Multi-channel A / D converter |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20091112 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20091112 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20091112 |
|
| A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20110422 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110516 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20120926 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20121127 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130116 |
|
| 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: 20130201 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130214 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5212799 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160308 Year of fee payment: 3 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |