JP6373512B2 - Air conditioner control device - Google Patents

Air conditioner control device Download PDF

Info

Publication number
JP6373512B2
JP6373512B2 JP2017549883A JP2017549883A JP6373512B2 JP 6373512 B2 JP6373512 B2 JP 6373512B2 JP 2017549883 A JP2017549883 A JP 2017549883A JP 2017549883 A JP2017549883 A JP 2017549883A JP 6373512 B2 JP6373512 B2 JP 6373512B2
Authority
JP
Japan
Prior art keywords
adjustment
speed
microcomputer
adjustment value
unit
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
JP2017549883A
Other languages
Japanese (ja)
Other versions
JPWO2017081729A1 (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Publication of JPWO2017081729A1 publication Critical patent/JPWO2017081729A1/en
Application granted granted Critical
Publication of JP6373512B2 publication Critical patent/JP6373512B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/02Speed or phase control by the received code signals, the signals containing no special synchronisation information
    • H04L7/033Speed or phase control by the received code signals, the signals containing no special synchronisation information using the transitions of the received signal to control the phase of the synchronising-signal-generating means, e.g. using a phase-locked loop

Description

本発明は、マイクロコンピュータが用いられた空気調和機の制御装置に関する。   The present invention relates to a control device for an air conditioner using a microcomputer.

従来のデータ通信装置における通信速度決定としては、通信速度調整用信号のビット毎のパルス幅を計測して、その平均値を通信速度とする技術が開示されている(例えば、特許文献1参照)。   As the communication speed determination in the conventional data communication apparatus, a technique is disclosed in which the pulse width for each bit of the communication speed adjustment signal is measured and the average value is used as the communication speed (see, for example, Patent Document 1). .

特開2013−120979号公報JP 2013-12079A

センサー用或いは表示用のマイクロコンピュータと制御部を含んだマイクロコンピュータとの通信に非同期通信機能を使用している従来の空気調和機においては、経年変化などで通信速度生成用の発振子の周波数ずれが大きくなった場合に、通信不能となることを防ぐ必要がある。このため、上記した両方のマイクロコンピュータに経年変化が小さい高い精度の発振子を使う必要があった。   In a conventional air conditioner that uses the asynchronous communication function for communication between the sensor or display microcomputer and the microcomputer including the control unit, the frequency shift of the oscillator for generating communication speed due to secular change or the like. When it becomes large, it is necessary to prevent communication from being disabled. For this reason, it is necessary to use a high-accuracy oscillator with little secular change for both of the above-described microcomputers.

本発明は、上記に鑑みてなされたものであって、センサー用或いは表示用のマイクロコンピュータに低い精度の発振子を使用しても通信不能となることを防ぐことが可能な空気調和機の制御装置を得ることを目的とする。   The present invention has been made in view of the above, and controls an air conditioner capable of preventing communication failure even when a low-accuracy oscillator is used in a sensor or display microcomputer. The object is to obtain a device.

上述した課題を解決し、目的を達成するために、本発明に係る空気調和機の制御装置は、分周比を保持するベースクロック分周カウンタと、調整値を保持する微調整カウンタと、を備えることを特徴とする。本発明は、分周比と調整値とを加算した調整後の分周比で第一の発振子の周波数を分周したクロックを生成する通信速度生成用分周器と、第二の発振子の出力に基づいて通信するマイクロコンピュータと、クロックに基づいた通信速度で、マイクロコンピュータと通信する非同期通信部と、マイクロコンピュータが非同期通信部に速度調整用信号を最初に送信した後であって非同期通信部がマイクロコンピュータに調整完了信号を送信するまでの間に、調整値を調整する調整部と、をさらに備えることを特徴とする。
To solve the above problems and achieve the object, the control apparatus of the air conditioner according to the present invention comprises a base clock dividing counter which holds the division ratio, and a fine adjustment counter which holds an adjustment value, the It is characterized by providing. The present invention relates to a communication speed generating frequency divider that generates a clock obtained by dividing the frequency of a first oscillator by an adjusted frequency dividing ratio obtained by adding a frequency dividing ratio and an adjustment value, and a second oscillator. Asynchronous communication unit that communicates with a microcomputer at a communication speed based on a clock, and a microcomputer that first transmits a speed adjustment signal to the asynchronous communication unit. An adjustment unit that adjusts an adjustment value until the communication unit transmits an adjustment completion signal to the microcomputer is further provided.

本発明に係る空気調和機の制御装置は、センサー用或いは表示用のマイクロコンピュータに低い精度の発振子を使用しても通信不能となることを防ぐことが可能になるという効果を奏する。   The control device for an air conditioner according to the present invention has an effect that it is possible to prevent communication from being disabled even if a low-accuracy oscillator is used in a sensor or display microcomputer.

本発明の実施の形態1にかかる空気調和機の構成を示すブロック図The block diagram which shows the structure of the air conditioner concerning Embodiment 1 of this invention. 実施の形態1にかかるマイクロコンピュータの構成を示すブロック図1 is a block diagram showing a configuration of a microcomputer according to a first embodiment. 実施の形態1にかかる通信速度の調整方法を示すフローチャート1 is a flowchart showing a communication speed adjustment method according to a first embodiment; 実施の形態1にかかる通信シーケンス図Communication sequence diagram according to the first embodiment

以下に、本発明の実施の形態に係る空気調和機の制御装置を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。   Below, the control device of the air conditioner concerning an embodiment of the invention is explained in detail based on a drawing. Note that the present invention is not limited to the embodiments.

実施の形態1.
図1は、本発明の実施の形態1にかかる空気調和機70の構成を示すブロック図である。図2は、実施の形態1にかかるマイクロコンピュータ100の構成を示すブロック図である。図3は、実施の形態1にかかる通信速度の調整方法を示すフローチャートである。図4は、実施の形態1にかかる通信シーケンス図である。
Embodiment 1 FIG.
FIG. 1 is a block diagram showing a configuration of an air conditioner 70 according to the first embodiment of the present invention. FIG. 2 is a block diagram of the configuration of the microcomputer 100 according to the first embodiment. FIG. 3 is a flowchart of a communication speed adjustment method according to the first embodiment. FIG. 4 is a communication sequence diagram according to the first embodiment.

空気調和機70は、風向制御機および送風機といった空気調和機本体10と、空気調和機本体10を制御する空気調和機の制御装置11と、を備える。   The air conditioner 70 includes an air conditioner body 10 such as a wind direction controller and a blower, and an air conditioner control device 11 that controls the air conditioner body 10.

空気調和機の制御装置11は、空気調和機制御用マイクロコンピュータである第一のマイクロコンピュータ3と、第一のマイクロコンピュータ3にクロックを供給する第一の発振子1と、センサー用或いは表示用のマイクロコンピュータである第二のマイクロコンピュータ6と、第二のマイクロコンピュータ6にクロックを供給する第二の発振子7と、を備える。第一のマイクロコンピュータ3は、第一の発振子1が供給するクロックに基づいて通信し、第二のマイクロコンピュータ6は、第二の発振子7が供給するクロックに基づいて通信する。第一のマイクロコンピュータ3および第二のマイクロコンピュータ6は、共に非同期シリアル通信機能を有している。第一の発振子1は高精度な発振子であり、第二の発振子7は第一の発振子1より精度が低い低精度な発振子である。第二の発振子7には、経年変化が比較的大きな発振子を使用してもかまわない。   The air conditioner control device 11 includes a first microcomputer 3 that is an air conditioner control microcomputer, a first oscillator 1 that supplies a clock to the first microcomputer 3, a sensor or a display. A second microcomputer 6 that is a microcomputer and a second oscillator 7 that supplies a clock to the second microcomputer 6 are provided. The first microcomputer 3 communicates based on the clock supplied by the first oscillator 1, and the second microcomputer 6 communicates based on the clock supplied by the second oscillator 7. Both the first microcomputer 3 and the second microcomputer 6 have an asynchronous serial communication function. The first oscillator 1 is a high-accuracy oscillator, and the second oscillator 7 is a low-accuracy oscillator having a lower accuracy than the first oscillator 1. As the second oscillator 7, an oscillator having a relatively large secular change may be used.

第一のマイクロコンピュータ3は、空気調和機本体10を制御する制御部2と、第二のマイクロコンピュータ6と相互に非同期通信が可能な非同期通信部4と、通信速度を決定するクロックを非同期通信部4に供給する通信速度自己調整部5と、を備える。制御部2と非同期通信部4とは双方向接続されている。   The first microcomputer 3 asynchronously communicates the control unit 2 that controls the air conditioner body 10, the asynchronous communication unit 4 that can communicate asynchronously with the second microcomputer 6, and a clock that determines the communication speed. A communication speed self-adjusting unit 5 to be supplied to the unit 4. The control unit 2 and the asynchronous communication unit 4 are bidirectionally connected.

通信速度自己調整部5は、第一の発振子1から供給されるクロックに基づいて通信速度を決定するクロックを非同期通信部4に供給する速度ジェネレータである。通信速度自己調整部5は、ベースクロックを決定する分周比を保持するベースクロック分周カウンタ50と、通信速度を微調整する調整部51と、調整部51が決定した調整値Nを保持する微調整カウンタ52と、ベースクロック分周カウンタ50が保持する分周比と微調整カウンタ52が保持する調整値とを加算して調整後の分周比として出力する加算器53と、加算器53が出力する調整後の分周比に基づいて通信速度を決定するクロックを生成する通信速度生成用分周器54と、非同期通信部4が発生する受信エラーに基づいて受信異常信号を調整部51に送る受信異常判定部55と、を備える。   The communication speed self-adjusting unit 5 is a speed generator that supplies a clock that determines the communication speed based on the clock supplied from the first oscillator 1 to the asynchronous communication unit 4. The communication speed self-adjusting unit 5 holds a base clock frequency dividing counter 50 that holds a frequency dividing ratio for determining a base clock, an adjusting unit 51 that finely adjusts a communication speed, and an adjustment value N determined by the adjusting unit 51. A fine adjustment counter 52, an adder 53 that adds the frequency division ratio held by the base clock frequency division counter 50 and the adjustment value held by the fine adjustment counter 52, and outputs the result as an adjusted frequency division ratio, and an adder 53 The communication speed generation frequency divider 54 for generating a clock for determining the communication speed based on the adjusted frequency division ratio output from the receiver, and the reception abnormality signal based on the reception error generated by the asynchronous communication section 4 are adjusted. And a reception abnormality determination unit 55 to be sent to.

ベースクロック分周カウンタ50には、第一の発振子1が供給するクロックの周波数を分周する固定値である分周比の数値が保持されている。具体例としては、第一の発振子1が供給するクロックの周波数が480kHzで、ベースクロック分周カウンタ50が保持する分周比は200といった値である。   The base clock frequency dividing counter 50 holds a numerical value of a frequency dividing ratio, which is a fixed value for dividing the frequency of the clock supplied by the first oscillator 1. As a specific example, the frequency of the clock supplied by the first oscillator 1 is 480 kHz, and the frequency division ratio held by the base clock frequency division counter 50 is 200.

微調整カウンタ52が保持する調整値Nは、後述する調整フローに従って、調整部51が調整する。具体的には、増加させる場合はN=N+1、減少させる場合はN=N−1といったやり方で徐々に変化させる。毎回の増減の値は、1に限らず、2以上であっても構わない。   The adjustment value 51 held by the fine adjustment counter 52 is adjusted by the adjustment unit 51 according to the adjustment flow described later. Specifically, N = N + 1 when increasing, and N = N−1 when gradually decreasing. The increase / decrease value for each time is not limited to 1, and may be 2 or more.

上記した具体例の場合、加算器53は、ベースクロック分周カウンタ50が保持する分周比200と微調整カウンタ52が保持する調整値Nとを加算した調整後の分周比(200+N)を、通信速度生成用分周器54に出力する。通信速度生成用分周器54には第一の発振子1からのクロックが供給されており、このクロックを加算器53の出力である調整後の分周比(200+N)で分周する。具体的には、第一の発振子1が供給するクロックの周波数が480kHzの場合、通信速度生成用分周器54は、(480/(200+N))kHzのクロックを分周して生成し、非同期通信部4に提供する。   In the case of the specific example described above, the adder 53 adds the adjusted division ratio (200 + N) obtained by adding the division ratio 200 held by the base clock division counter 50 and the adjustment value N held by the fine adjustment counter 52. And output to the communication speed generating frequency divider 54. The communication speed generation frequency divider 54 is supplied with a clock from the first oscillator 1, and divides this clock by an adjusted frequency dividing ratio (200 + N) which is an output of the adder 53. Specifically, when the frequency of the clock supplied by the first oscillator 1 is 480 kHz, the communication speed generation frequency divider 54 divides and generates a clock of (480 / (200 + N)) kHz, Provided to the asynchronous communication unit 4.

非同期通信部4は、通信速度生成用分周器54から供給されたクロックに基づいた通信速度で第二のマイクロコンピュータ6と非同期通信する。N=0の場合、通信速度生成用分周器54は、(480/200)kHz、即ち2.4kHzのクロックを非同期通信部4に提供するので、非同期通信部4は、初期通信速度である2.4kbps(bits per second)で第二のマイクロコンピュータ6と通信する。ベースクロック分周カウンタ50に保持させる分周比を変えることにより、非同期通信部4の初期通信速度は、4.8kbps、9.6kbps…といった非同期通信で用いられる一般的な通信速度に変更することが可能である。本実施の形態1における通信速度の調整方法においては、ベースクロック分周カウンタ50に保持させる分周比は固定し、調整部51が調整値Nを変化させることにより非同期通信部4の通信速度を微調整する。   The asynchronous communication unit 4 performs asynchronous communication with the second microcomputer 6 at a communication speed based on the clock supplied from the communication speed generating frequency divider 54. When N = 0, the communication speed generation frequency divider 54 provides a clock of (480/200) kHz, that is, 2.4 kHz to the asynchronous communication unit 4, so that the asynchronous communication unit 4 has the initial communication speed. It communicates with the second microcomputer 6 at 2.4 kbps (bits per second). By changing the frequency dividing ratio held in the base clock frequency dividing counter 50, the initial communication speed of the asynchronous communication unit 4 is changed to a general communication speed used in asynchronous communication such as 4.8 kbps, 9.6 kbps, etc. Is possible. In the communication speed adjustment method according to the first embodiment, the frequency division ratio held in the base clock frequency division counter 50 is fixed, and the adjustment unit 51 changes the adjustment value N to change the communication speed of the asynchronous communication unit 4. Make fine adjustments.

通信機能を有する第二のマイクロコンピュータ6と非同期通信部4とは、双方のシリアル通信ポートを介して双方向に接続されており、第二のマイクロコンピュータ6からの情報は、非同期通信部4を介して制御部2へ送られる。制御部2はこの情報を利用して空気調和機本体10を制御する。   The second microcomputer 6 having a communication function and the asynchronous communication unit 4 are bidirectionally connected via both serial communication ports, and information from the second microcomputer 6 is transmitted to the asynchronous communication unit 4. To the control unit 2. The controller 2 controls the air conditioner body 10 using this information.

第一のマイクロコンピュータ3および第二のマイクロコンピュータ6は、それぞれ図2に示すような構成のマイクロコンピュータ100で実現される。マイクロコンピュータ100は、演算および制御を実行するCPU(Central Processing Unit)101と、CPU101がワークエリアに用いるRAM(Random Access Memory)102と、プログラムおよびデータを記憶するROM(Read Only Memory)103と、外部と信号をやりとりするハードウェアであるI/O(Input/Output)104と、クロックを生成する発振子を含む周辺装置105と、を備える。   The first microcomputer 3 and the second microcomputer 6 are each realized by a microcomputer 100 configured as shown in FIG. The microcomputer 100 includes a CPU (Central Processing Unit) 101 that executes calculation and control, a RAM (Random Access Memory) 102 that the CPU 101 uses as a work area, a ROM (Read Only Memory) 103 that stores programs and data, It includes an I / O (Input / Output) 104 that is hardware for exchanging signals with the outside, and a peripheral device 105 that includes an oscillator that generates a clock.

具体的には、図1の制御部2、調整部51および受信異常判定部55の機能は、ROM103に記憶されるプログラムをCPU101が実行することにより実現される。非同期通信部4は、I/O104により実現される。第一の発振子1、ベースクロック分周カウンタ50、微調整カウンタ52、加算器53および通信速度生成用分周器54は、周辺装置105により実現される。ただし、ソフトウェアで実現されている機能がハードウェアで実現されてもよいし、ハードウェアで実現されている機能がソフトウェアで実現されてもよく、上記実現例に限定されるわけではない。   Specifically, the functions of the control unit 2, the adjustment unit 51, and the reception abnormality determination unit 55 in FIG. 1 are realized by the CPU 101 executing a program stored in the ROM 103. The asynchronous communication unit 4 is realized by the I / O 104. The first oscillator 1, the base clock frequency dividing counter 50, the fine adjustment counter 52, the adder 53 and the communication speed generating frequency divider 54 are realized by the peripheral device 105. However, the function implemented by software may be implemented by hardware, and the function implemented by hardware may be implemented by software, and is not limited to the above implementation example.

次に、図3のフローチャートを用いて実施の形態1にかかる通信速度の調整方法の動作の流れを説明する。   Next, an operation flow of the communication speed adjustment method according to the first exemplary embodiment will be described with reference to the flowchart of FIG.

空気調和機70に電源が入力され第一のマイクロコンピュータ3が通電されて動作が開始した場合、第一のマイクロコンピュータ3が第二のマイクロコンピュータ6と通信を開始しようとした場合、または空気調和機70が空調運転を開始した場合、第二のマイクロコンピュータ6はパワーオンリセットされ、初回の通信、即ち第一のマイクロコンピュータ3への送信を開始する(ステップS1)。第二の発振子7の周波数変化は急激に起きるわけではないため、本フローチャートの実施の頻度は適宜選択可能である。   When power is input to the air conditioner 70 and the first microcomputer 3 is energized to start operation, the first microcomputer 3 tries to start communication with the second microcomputer 6, or the air conditioner When the machine 70 starts the air conditioning operation, the second microcomputer 6 is reset to power-on, and starts the first communication, that is, transmission to the first microcomputer 3 (step S1). Since the frequency change of the second oscillator 7 does not occur abruptly, the frequency of execution of this flowchart can be selected as appropriate.

ステップS1で、第二のマイクロコンピュータ6が送信を開始したときの、第一のマイクロコンピュータ3の最初の通信速度、即ち受信速度は上述した初期通信速度である(ステップS2)。即ち、調整部51がN=0として、第一の発振子1が供給するクロックの周波数をベースクロック分周カウンタ50が保持している分周比で割った周波数に対応する通信速度で、非同期通信部4は受信を開始する。上記数値例に従えば、480/200=2.4kbpsで受信を開始する。パワーオンリセットされた第二のマイクロコンピュータ6は、図4の速度調整用信号21を非同期通信部4に送信する。速度調整用信号21の具体例は、速度調整用コード“55H”にパリティが付加された信号である。“55H”は16進数表記であり、2進数で示すと“01010101”となる。なお、速度調整用信号21の例はこれに限定されない。以下、通信速度の微調整が終了するまで、図4に示すように速度調整用信号21は繰り返し第二のマイクロコンピュータ6から非同期通信部4に送信され続ける。即ち、速度調整用信号21が第二のマイクロコンピュータ6から非同期通信部4に送信されている状態で以下の通信速度の微調整が実行される。   In step S1, when the second microcomputer 6 starts transmission, the initial communication speed of the first microcomputer 3, that is, the reception speed is the above-described initial communication speed (step S2). That is, the adjustment unit 51 sets N = 0, and the communication frequency corresponding to the frequency obtained by dividing the frequency of the clock supplied by the first oscillator 1 by the frequency division ratio held by the base clock frequency division counter 50 is asynchronous. The communication unit 4 starts reception. According to the above numerical example, reception starts at 480/200 = 2.4 kbps. The second microcomputer 6 that has been power-on reset transmits the speed adjustment signal 21 of FIG. 4 to the asynchronous communication unit 4. A specific example of the speed adjustment signal 21 is a signal in which parity is added to the speed adjustment code “55H”. “55H” is in hexadecimal notation and is expressed as “01010101” in binary. The example of the speed adjustment signal 21 is not limited to this. Hereinafter, as shown in FIG. 4, the speed adjustment signal 21 is repeatedly transmitted from the second microcomputer 6 to the asynchronous communication unit 4 until fine adjustment of the communication speed is completed. That is, the following fine adjustment of the communication speed is executed in a state where the speed adjustment signal 21 is transmitted from the second microcomputer 6 to the asynchronous communication unit 4.

まず、調整部51は調整値Nを0から加算して、受信異常判定部55は非同期通信部4で速度調整用信号21に対して受信エラーが発生するか否かを判定する(ステップS3)。具体的には、N=N+1として、調整値Nを1ずつ増加させる。通信速度生成用分周器54は(480/(200+N))kHzのクロックを生成するので、調整値Nの増加に伴い非同期通信部4の受信速度は2.4kbpsより遅くなっていく。受信エラーが発生せずに(ステップS3:No)正常に通信ができる間、ステップS3を繰り返す。調整部51が調整値Nを加算することにより受信速度を遅くしていき、非同期通信部4が速度調整用信号21に対して受信エラーを発生すると(ステップS3:Yes)、受信異常判定部55は、当該受信エラーに基づいて調整部51に受信異常信号を送る。受信異常信号を受け取った調整部51は調整値Nの加算を終了してステップS4に進む。ステップS3で受信エラーが発生したときの調整値Nの値であるAを調整部51は保持しておく。なお、調整値Nの毎回の加算値は1に限らず、2以上であっても構わない。受信エラーの具体例はパリティエラーであるが、これに限定されない。   First, the adjustment unit 51 adds the adjustment value N from 0, and the reception abnormality determination unit 55 determines whether a reception error occurs in the speed adjustment signal 21 in the asynchronous communication unit 4 (step S3). . Specifically, the adjustment value N is increased by 1 with N = N + 1. Since the communication speed generation frequency divider 54 generates a clock of (480 / (200 + N)) kHz, as the adjustment value N increases, the reception speed of the asynchronous communication unit 4 becomes slower than 2.4 kbps. Step S3 is repeated while normal communication can be performed without a reception error (step S3: No). When the adjustment unit 51 adds the adjustment value N to reduce the reception speed and the asynchronous communication unit 4 generates a reception error for the speed adjustment signal 21 (step S3: Yes), the reception abnormality determination unit 55 Sends a reception abnormality signal to the adjustment unit 51 based on the reception error. The adjustment unit 51 that has received the reception abnormality signal ends the addition of the adjustment value N, and proceeds to step S4. The adjustment unit 51 holds A, which is the value of the adjustment value N when a reception error occurs in step S3. In addition, the addition value of the adjustment value N every time is not limited to 1, and may be 2 or more. A specific example of the reception error is a parity error, but is not limited to this.

ステップS4で、調整部51は調整値Nを0に戻す。その後、調整部51は調整値Nを0から減算して、受信異常判定部55は非同期通信部4で速度調整用信号21に対して受信エラーが発生するか否かを判定する(ステップS5)。具体的には、N=N−1として、調整値Nを1ずつ減少させる。通信速度生成用分周器54は(480/(200+N))kHzのクロックを生成するので、調整値Nの減少に伴い非同期通信部4の受信速度は2.4kbpsより速くなっていく。受信エラーが発生せずに(ステップS5:No)正常に通信できる間、ステップS5を繰り返す。調整部51が調整値Nを減算することにより受信速度を速くしていき、非同期通信部4が速度調整用信号21に対して受信エラーを発生すると(ステップS5:Yes)、受信異常判定部55は、当該受信エラーに基づいて調整部51に受信異常信号を送る。受信異常信号を受け取った調整部51は調整値Nの減算を終了してステップS6に進む。ステップS5で受信エラーが発生したときの調整値Nの値であるBを調整部51は保持しておく。なお、調整値Nの毎回の減算値は1に限らず、2以上であっても構わない。   In step S4, the adjustment unit 51 returns the adjustment value N to zero. Thereafter, the adjustment unit 51 subtracts the adjustment value N from 0, and the reception abnormality determination unit 55 determines whether a reception error occurs in the speed adjustment signal 21 in the asynchronous communication unit 4 (step S5). . Specifically, the adjustment value N is decreased by 1 with N = N−1. Since the communication speed generation frequency divider 54 generates a clock of (480 / (200 + N)) kHz, as the adjustment value N decreases, the reception speed of the asynchronous communication unit 4 becomes faster than 2.4 kbps. Step S5 is repeated while normal communication is possible without occurrence of a reception error (step S5: No). When the adjustment unit 51 subtracts the adjustment value N to increase the reception speed and the asynchronous communication unit 4 generates a reception error with respect to the speed adjustment signal 21 (step S5: Yes), the reception abnormality determination unit 55 Sends a reception abnormality signal to the adjustment unit 51 based on the reception error. Receiving the reception abnormality signal, the adjustment unit 51 ends the subtraction of the adjustment value N, and proceeds to step S6. The adjustment unit 51 holds B, which is the value of the adjustment value N when a reception error occurs in step S5. The subtraction value for each adjustment value N is not limited to 1 and may be 2 or more.

以上で、通信速度の微調整が終了し、ステップS6では、調整部51がステップS3で保持したAおよびステップS5で保持したBに基づいて調整値Nの決定値である最終調整値N’を求めて微調整カウンタ52に設定する。これにより、非同期通信部4の調整後の通信速度(480/(200+N’))が決定される(ステップS6)。   With the above, fine adjustment of the communication speed is completed, and in step S6, the final adjustment value N ′, which is the determined value of the adjustment value N, is determined based on A held by the adjustment unit 51 in step S3 and B held in step S5. It is obtained and set in the fine adjustment counter 52. Thus, the adjusted communication speed (480 / (200 + N ′)) of the asynchronous communication unit 4 is determined (step S6).

具体的には、調整部51は、保持しているAとBとの平均値である(A+B)/2を計算して最終調整値N’とする。この結果、(480/(200+(A+B)/2))bpsが調整後の通信速度として決定される。また、(480/(200+N))が、受信エラーが発生したときの受信速度である(480/(200+A))bpsと(480/(200+B))bpsとの平均速度となるようなNを調整部51が最終調整値N’として求めて、調整後の通信速度(480/(200+N’))を決定してもよい。また、図3のフローチャートにおいて変化させた通信速度の中で、正常に通信が可能な受信速度の最小値は(480/(200+A−1))bpsであり、正常に通信が可能な受信速度の最大値は(480/(200+B+1))bpsであるので、(480/(200+N))が両者の平均値となるようなNを調整部51が最終調整値N’として求めても構わない。   Specifically, the adjustment unit 51 calculates (A + B) / 2, which is the average value of A and B held, and sets it as the final adjustment value N ′. As a result, (480 / (200+ (A + B) / 2)) bps is determined as the adjusted communication speed. Also, N is adjusted so that (480 / (200 + N)) is the average speed of (480 / (200 + A)) bps and (480 / (200 + B)) bps, which is the reception speed when a reception error occurs. The unit 51 may obtain the final adjustment value N ′ and determine the adjusted communication speed (480 / (200 + N ′)). Also, among the communication speeds changed in the flowchart of FIG. 3, the minimum value of the reception speed at which normal communication is possible is (480 / (200 + A-1)) bps, and the reception speed at which normal communication is possible is Since the maximum value is (480 / (200 + B + 1)) bps, the adjustment unit 51 may obtain N as the final adjustment value N ′ such that (480 / (200 + N)) is an average value of both.

いずれにしても、ステップS3およびS5で求めたAおよびBを利用して、調整部51が最終調整値N’を求めるのであれば詳細は限定されない。最終調整値N’が決定されると、通信速度生成用分周器54は、分周比と最終調整値N’との和である調整後の分周比(200+N’)で第一の発振子1が供給するクロックを分周して調整後のクロックを生成する。非同期通信部4は、以後は、調整後のクロックに基づいて調整後の通信速度(480/(200+N’))で第二のマイクロコンピュータ6と通信する。非同期通信部4においては、受信速度および送信速度は同じ速度ジェネレータである通信速度自己調整部5に基づいて同じ速度になるように決定されるので、上記フローで受信速度が決定されることにより送信速度も一義的に定まり、通信速度の決定がなされることになる。なお、上記では第一の発振子1が供給するクロックの周波数が480kHzで、ベースクロック分周カウンタ50が保持する分周比を200として説明したが、他の数値例であっても同様である。   In any case, the details are not limited as long as the adjustment unit 51 obtains the final adjustment value N ′ by using A and B obtained in steps S3 and S5. When the final adjustment value N ′ is determined, the communication speed generation frequency divider 54 performs the first oscillation at the adjusted frequency division ratio (200 + N ′) that is the sum of the frequency division ratio and the final adjustment value N ′. The clock supplied by the child 1 is divided to generate an adjusted clock. Thereafter, the asynchronous communication unit 4 communicates with the second microcomputer 6 at the adjusted communication speed (480 / (200 + N ′)) based on the adjusted clock. In the asynchronous communication unit 4, since the reception speed and the transmission speed are determined to be the same based on the communication speed self-adjusting unit 5 which is the same speed generator, the transmission is performed by determining the reception speed in the above flow. The speed is also uniquely determined, and the communication speed is determined. In the above description, the frequency of the clock supplied by the first oscillator 1 is 480 kHz and the frequency dividing ratio held by the base clock frequency dividing counter 50 is 200. However, the same applies to other numerical examples. .

図3のフローチャートによる通信速度の微調整が終了すると、図4に示すように、第一のマイクロコンピュータ3から第二のマイクロコンピュータ6に、第二のマイクロコンピュータ6との速度調整が終わったことを示す調整完了信号22が送信される。調整完了信号22の具体例は、速度調整用コード“55H”とは別の“AAH”である。“AAH”は16進数表記であり、2進数で示すと“10101010”となる。第二のマイクロコンピュータ6は、非同期通信部4が送信する調整完了信号22を受信した後、通常信号23を第一のマイクロコンピュータ3に送信開始する。通常信号23の具体例は、第二のマイクロコンピュータ6が備えるセンサーが取得したデータである。   When the fine adjustment of the communication speed according to the flowchart of FIG. 3 is completed, the speed adjustment with the second microcomputer 6 is completed from the first microcomputer 3 to the second microcomputer 6 as shown in FIG. An adjustment completion signal 22 is transmitted. A specific example of the adjustment completion signal 22 is “AAH” different from the speed adjustment code “55H”. “AAH” is in hexadecimal notation and is expressed as “10101010” in binary. The second microcomputer 6 starts transmitting the normal signal 23 to the first microcomputer 3 after receiving the adjustment completion signal 22 transmitted by the asynchronous communication unit 4. A specific example of the normal signal 23 is data acquired by a sensor included in the second microcomputer 6.

以上説明したように、実施の形態1に係る空気調和機の制御装置11では、第一のマイクロコンピュータ3の通信速度自己調整部5において初期通信速度に微調整を加えることで通信速度の調整しろを設ける。第一のマイクロコンピュータ3の通信速度に調整しろを設けることにより、第二の発振子7の周波数の初期ばらつきおよび経年変化ばらつきによる第二のマイクロコンピュータ6の通信速度の変化に対応することが可能となり、両者が安定して通信することができるという効果が得られる。第一のマイクロコンピュータ3が第二のマイクロコンピュータ6の通信速度に合わせて通信速度を調整することができるので、第二のマイクロコンピュータ6の通信速度を決定する第二の発振子7に高精度の発振子を使用する必要がなくなり総合的なコストダウンが期待できる。また、発振子の経年変化の影響を受けにくく安定した通信が可能になるため製品寿命が長くなるという効果も有する。   As described above, in the air conditioner control device 11 according to the first embodiment, the communication speed self-adjusting unit 5 of the first microcomputer 3 finely adjusts the initial communication speed to adjust the communication speed. Is provided. By providing a margin for adjusting the communication speed of the first microcomputer 3, it is possible to cope with the change in the communication speed of the second microcomputer 6 due to the initial variation of the frequency of the second oscillator 7 and the variation over time. Thus, the effect that both can communicate stably is obtained. Since the first microcomputer 3 can adjust the communication speed according to the communication speed of the second microcomputer 6, the second oscillator 7 that determines the communication speed of the second microcomputer 6 has high accuracy. This eliminates the need to use an oscillator and can reduce the overall cost. In addition, there is an effect that the product life is extended because stable communication is possible without being affected by the secular change of the oscillator.

また、通信速度を絶対値で設定するのではなく、速度調整用コードを正常に受信することが可能か否かの判断に基づいて最終調整値N’を決定していることから、第一のマイクロコンピュータ3の方の周波数が多少ずれたとしても第二のマイクロコンピュータ6との通信が可能となるように通信速度を自己調整することができる。   In addition, since the communication speed is not set as an absolute value, the final adjustment value N ′ is determined based on the determination as to whether or not the speed adjustment code can be normally received. Even if the frequency of the microcomputer 3 is slightly shifted, the communication speed can be self-adjusted so that communication with the second microcomputer 6 is possible.

実施の形態1においては、図3のフローチャートによる通信速度の微調整が終わった時点で、ステップS6において決定された通信速度で調整完了信号22を第二のマイクロコンピュータ6へ送信することにより、速度調整を効率良く実施している。しかし、第二のマイクロコンピュータ6が速度調整用信号21を予め定めた時間だけ送信し、第一のマイクロコンピュータ3はその時間内で通信速度を微調整して正常に通信可能な通信速度帯域を定めて、その中から最終的な通信速度を決定するようにしてもかまわない。   In the first embodiment, at the time when the fine adjustment of the communication speed according to the flowchart of FIG. 3 is finished, the adjustment completion signal 22 is transmitted to the second microcomputer 6 at the communication speed determined in step S6. Adjustment is carried out efficiently. However, the second microcomputer 6 transmits the speed adjustment signal 21 for a predetermined time, and the first microcomputer 3 finely adjusts the communication speed within the time to set a communication speed band in which normal communication is possible. It is also possible to determine the final communication speed from among them.

以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。   The configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.

1 第一の発振子、2 制御部、3 第一のマイクロコンピュータ、4 非同期通信部、5 通信速度自己調整部、6 第二のマイクロコンピュータ、7 第二の発振子、10 空気調和機本体、11 空気調和機の制御装置、21 速度調整用信号、22 調整完了信号、23 通常信号、50 ベースクロック分周カウンタ、51 調整部、52 微調整カウンタ、53 加算器、54 通信速度生成用分周器、70 空気調和機、100 マイクロコンピュータ、101 CPU、102 RAM、103 ROM、104 I/O、105 周辺装置。   DESCRIPTION OF SYMBOLS 1 1st oscillator, 2 control part, 1st microcomputer, 4 asynchronous communication part, 5 communication speed self-adjustment part, 6 2nd microcomputer, 7 2nd oscillator, 10 air conditioner main body, DESCRIPTION OF SYMBOLS 11 Air conditioner control device, 21 Speed adjustment signal, 22 Adjustment completion signal, 23 Normal signal, 50 Base clock frequency division counter, 51 Adjustment unit, 52 Fine adjustment counter, 53 Adder, 54 Frequency division for communication speed generation 70, air conditioner, 100 microcomputer, 101 CPU, 102 RAM, 103 ROM, 104 I / O, 105 peripheral devices.

Claims (5)

分周比を保持するベースクロック分周カウンタと、
調整値を保持する微調整カウンタと
前記分周比と前記調整値とを加算した調整後の分周比で第一の発振子の周波数を分周したクロックを生成する通信速度生成用分周器と、
第二の発振子の出力に基づいて通信するマイクロコンピュータと、
前記クロックに基づいた通信速度で、前記マイクロコンピュータと通信する非同期通信部と、
前記マイクロコンピュータが前記非同期通信部に速度調整用信号を最初に送信した後であって前記非同期通信部が前記マイクロコンピュータに調整完了信号を送信するまでの間に、前記調整値を調整する調整部と、
を備えることを特徴とする空気調和機の制御装置。
A base clock division counter that holds the division ratio;
A fine adjustment counter that holds the adjustment value ,
A communication speed generating frequency divider that generates a clock obtained by dividing the frequency of the first oscillator by an adjusted frequency dividing ratio obtained by adding the frequency dividing ratio and the adjustment value;
A microcomputer that communicates based on the output of the second oscillator;
An asynchronous communication unit that communicates with the microcomputer at a communication speed based on the clock;
An adjustment unit that adjusts the adjustment value after the microcomputer first transmits a speed adjustment signal to the asynchronous communication unit and before the asynchronous communication unit transmits an adjustment completion signal to the microcomputer. When,
The control apparatus of the air conditioner characterized by comprising.
前記調整部は、前記マイクロコンピュータが前記非同期通信部に前記速度調整用信号を送信している状態で前記調整値を変えることにより前記通信速度を変化させ、前記非同期通信部が前記速度調整用信号に対して受信エラーを発生したときの前記調整値に基づいて最終調整値を求め、
前記通信速度生成用分周器は、前記分周比と前記最終調整値とを加算した調整後の分周比で前記第一の発振子の周波数を分周した前記クロックを生成する
ことを特徴とする請求項1に記載の空気調和機の制御装置。
The adjustment unit, the changing the communication speed by the microcomputer changes the adjustment value in a state that transmits the speed adjustment signal to said asynchronous communication unit, the asynchronous communication unit said speed adjustment signal The final adjustment value is obtained based on the adjustment value when a reception error occurs with respect to
The communication speed generation divider generates the clock obtained by dividing the frequency of the first oscillator by an adjusted division ratio obtained by adding the division ratio and the final adjustment value. The air conditioner control device according to claim 1.
前記調整部は、前記調整値を増加させて前記非同期通信部が前記速度調整用信号に対して受信エラーを発生したときの前記調整値と、前記調整値を減少させて前記非同期通信部が前記速度調整用信号に対して受信エラーを発生したときの前記調整値と、に基づいて前記最終調整値を求める
ことを特徴とする請求項2に記載の空気調和機の制御装置。
The adjustment unit increases the adjustment value so that the asynchronous communication unit generates a reception error with respect to the speed adjustment signal, and decreases the adjustment value so that the asynchronous communication unit The control device for an air conditioner according to claim 2, wherein the final adjustment value is obtained based on the adjustment value when a reception error occurs with respect to the speed adjustment signal.
前記調整部は、前記調整値を増加させて前記非同期通信部が前記速度調整用信号に対して受信エラーを発生したときの前記調整値と、前記調整値を減少させて前記非同期通信部が前記速度調整用信号に対して受信エラーを発生したときの前記調整値との平均値を、前記最終調整値とする
ことを特徴とする請求項2に記載の空気調和機の制御装置。
The adjustment unit increases the adjustment value so that the asynchronous communication unit generates a reception error with respect to the speed adjustment signal, and decreases the adjustment value so that the asynchronous communication unit The control device for an air conditioner according to claim 2, wherein an average value of the adjustment value when a reception error occurs with respect to the speed adjustment signal is the final adjustment value.
前記マイクロコンピュータがパワーオンリセットされた後に、前記調整部は前記最終調整値を求める
ことを特徴とする請求項2から4のいずれか1項に記載の空気調和機の制御装置。
The control device for an air conditioner according to any one of claims 2 to 4, wherein the adjustment unit obtains the final adjustment value after the microcomputer is power-on reset.
JP2017549883A 2015-11-09 2015-11-09 Air conditioner control device Expired - Fee Related JP6373512B2 (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2015/081499 WO2017081729A1 (en) 2015-11-09 2015-11-09 Air conditioner control apparatus

Publications (2)

Publication Number Publication Date
JPWO2017081729A1 JPWO2017081729A1 (en) 2018-03-01
JP6373512B2 true JP6373512B2 (en) 2018-08-15

Family

ID=58694855

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017549883A Expired - Fee Related JP6373512B2 (en) 2015-11-09 2015-11-09 Air conditioner control device

Country Status (2)

Country Link
JP (1) JP6373512B2 (en)
WO (1) WO2017081729A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6324734A (en) * 1986-07-17 1988-02-02 Nec Corp Clock reproducing circuit
JPH04291822A (en) * 1991-03-20 1992-10-15 Canon Inc A/d converter
JP4456432B2 (en) * 2004-08-02 2010-04-28 富士通株式会社 Apparatus and method for performing synchronous transmission using reference signal

Also Published As

Publication number Publication date
WO2017081729A1 (en) 2017-05-18
JPWO2017081729A1 (en) 2018-03-01

Similar Documents

Publication Publication Date Title
US10416706B2 (en) Calibration unit for calibrating an oscillator, oscillator arrangement and method for calibrating an oscillator
US9257968B2 (en) Duty cycle correction circuit and operation method thereof
US10042383B2 (en) Navigation system and mouse device
JP2008028854A (en) Clock generator
JP6373512B2 (en) Air conditioner control device
CN102169710A (en) Semiconductor apparatus
JP5994020B2 (en) Integrated processor and CDR circuit
JP2007194711A (en) Microcomputer
JP4626498B2 (en) Microcomputer
JP2004157995A (en) Reference voltage correction device and method
JP2017017671A (en) Electronic circuit, and method of controlling oscillator
JP2014529810A (en) SENSOR DEVICE IN VEHICLE AND METHOD FOR DRIVING SENSOR DEVICE IN VEHICLE
JP6511122B1 (en) Information processing apparatus, program, and method for determining authenticity of attached device
CN108092625B (en) Signal amplitude calibration method and device
CN107066030B (en) Signal source and multi-frequency output compensation method and system thereof
JPWO2013183149A1 (en) Robot controller
JP6379925B2 (en) Communication waveform generator
KR20190080625A (en) Duplicated board setting method and the board thereof
JP5250380B2 (en) Absolute delay time generator
JP7333705B2 (en) circuit system
JP2012251944A (en) Sensor module
US20230019282A1 (en) Ring oscillator, random number generator including the same, and operation method of random number generator
JP6884467B2 (en) Charging system
JP3470186B2 (en) Wander generator
JP2023121618A (en) Transmitter circuit, receiver circuit, and communication circuit

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20171024

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171024

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: 20180619

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180717

R150 Certificate of patent or registration of utility model

Ref document number: 6373512

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees