JP4288424B2 - Program writing system - Google Patents
Program writing system Download PDFInfo
- Publication number
- JP4288424B2 JP4288424B2 JP2005059157A JP2005059157A JP4288424B2 JP 4288424 B2 JP4288424 B2 JP 4288424B2 JP 2005059157 A JP2005059157 A JP 2005059157A JP 2005059157 A JP2005059157 A JP 2005059157A JP 4288424 B2 JP4288424 B2 JP 4288424B2
- Authority
- JP
- Japan
- Prior art keywords
- program
- voltage
- power supply
- terminal
- supply circuit
- 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
- Stored Programmes (AREA)
- Power Sources (AREA)
Description
本発明は、電気機器のマイコンにプログラムを書き込むプログラム書込システムに関する。 The present invention relates to a program writing system for writing a program to a microcomputer of an electric device.
図3は、従来のプログラム書込システム300を示す概略回路図である。プログラム書込システム300は、プログラム送信装置302から送信されるプログラムのデータを、電気機器301内のマイクロコンピュータ(以下、マイコンとする)314に書き込む。プログラム書込時には、電気機器301は待機(スタンバイ)状態であるので、主電源回路312はオフ状態であり、待機電源回路311が入力電圧を整流および平滑してマイコン314に供給する。マイコン314は、待機電源回路311から供給された電圧によって、プログラム書込を実行する。
FIG. 3 is a schematic circuit diagram showing a conventional
また、近年、電気機器の省電力化が要求され、マイコンにスタンバイ状態における消費電力を低減する低消費電力モードが設けられるようになっている。これに伴い、待機電源回路311はマイコン314が低消費電力モードで動作できる程度の電圧を供給すれば十分であるので、待機電源回路311のトランス317がかなり小型化されている。しかしながら、マイコン314へのプログラム書込時には、マイコン314に大きな電圧が必要であり、小型化されたトランス317を有する待機電源回路311では、プログラム書込時に必要な電圧をマイコン314に供給できないという問題が生じる。
In recent years, power saving of electric devices is required, and a low power consumption mode for reducing power consumption in a standby state is provided in a microcomputer. Accordingly, since it is sufficient for the standby
この問題を解決するために、マイコン314へのプログラム書込時に、外部の電源回路を電気機器301に接続して、マイコン314に電圧を供給する方法が提案されている。しかし、この方法では、専用のコネクタを電気機器301内に設ける必要があり、コストが増加する。さらに、専用のコネクタを外部の電源回路に接続する必要があるので、作業工数が増加する。
In order to solve this problem, there has been proposed a method of supplying a voltage to the
また、プログラム書込時に、主電源回路312をオン状態にし、主電源回路312からの電圧をマイコン314に供給する方法が提案されている。この場合、電気機器301が待機状態であり、マイコン314が低消費電力モードであるので、マイコン314は、トランジスタ325をオン状態にし(リレースイッチ324Aをオン状態にし)主電源回路312をオン状態に制御するための信号を主電源制御端子bから出力することができない。すなわち、マイコン314は、格納されるプログラムに基づいて動作を実行するので、プログラム書込時は動作を実行できない。そのため、機械的なスイッチをトランジスタ325に並列に接続して、機械的なスイッチを作業者の手作業でオン状態にすることによって、(リレースイッチ324をオン状態にし、)主電源回路312をオン状態にし、主電源回路312からの電圧をマイコン314に供給する方法が提案されている。しかし、この方法では、機械的なスイッチを設ける必要がありコストが増加し、かつ、スイッチを手作業でオン状態にするので作業工数が増加するという問題がある。
Further, a method has been proposed in which the main
また、ショートピンを使って、トランジスタ325のコレクタ−エミッタ間を短絡することによって、主電源回路312をオン状態にし、主電源回路からの電圧をマイコンに供給する方法が提案されている。この方法では、工数が増加すると共に、プログラム書込終了後にショートピンが取り除かれずに、誤って電気機器内に残ってしまう可能性がある。
In addition, a method has been proposed in which the main
本発明は上記従来の課題を解決するためになされたものであり、その目的は、作業者の工数を増加させることなく、プログラム書込時に主電源回路をオン状態にし、主電源回路からの電圧をマイコンに供給するプログラム書込システムを提供することである。 SUMMARY OF THE INVENTION The present invention has been made to solve the above-described conventional problems. The object of the present invention is to turn on the main power supply circuit at the time of program writing without increasing the man-hours of the operator, and to reduce the voltage from the main power supply circuit. Is to provide a program writing system for supplying a microcomputer to a microcomputer.
本発明の好ましい実施形態によるプログラム書込システムは、電気機器と、該電気機器にプログラムを送信するプログラム送信装置と、該電気機器と該プログラム送信装置との間に接続される書込治具とを備える。該電気機器は、プログラムを書き換え可能な制御手段と、入力電圧が与えられ主回路および該制御手段に電圧を供給する主電源回路と、入力電圧が与えられ該制御手段に電圧を供給する待機電源回路と、スイッチをオフ状態にすることにより該主電源回路をオフ状態にし、該スイッチをオン状態にすることにより該主電源回路をオン状態にする切換手段と、該書込治具と接続される第1の接続手段とを有する。該書込治具は、該第1の接続手段と接続される第2の接続手段を有する。該プログラム書込システムは、該第1の接続手段と該第2の接続手段とが接続された際に、該待機電源回路からの電圧を該切換手段に供給して、該スイッチをオン状態にする主電源制御手段をさらに備える。 A program writing system according to a preferred embodiment of the present invention includes an electric device, a program transmission device that transmits a program to the electric device, and a writing jig connected between the electric device and the program transmission device. Is provided. The electric device includes a control unit capable of rewriting a program, a main circuit supplied with an input voltage and a main power supply circuit supplying the voltage to the control unit, and a standby power source supplying a voltage to the control unit supplied with the input voltage A circuit, switching means for turning off the main power supply circuit by turning off the switch and turning on the main power supply circuit by turning on the switch, and the writing jig. First connecting means. The writing jig has second connection means connected to the first connection means. When the first connection means and the second connection means are connected, the program writing system supplies a voltage from the standby power supply circuit to the switching means to turn on the switch. And a main power control means.
電気機器を書込治具に接続する(第1の接続手段を第2の接続手段に接続する)と、待機電源回路から電圧が切換手段に供給され、切換手段のスイッチ(例えば、リレースイッチ)がオン状態になる。スイッチがオン状態になると主電源回路がオン状態になるので、主電源回路からの電圧を制御手段に供給できるようになる。制御手段は主電源回路からの電圧を受けてプログラムの書き込みを実行する。プログラム書込作業時に、書込治具はプログラム送信装置に常時接続されている状態であるので、作業者は、単に電気機器を書込治具に接続するだけで、主電源回路をオン状態にすることができる。つまり、書込治具を介して接続するだけであるので、図3の場合に比べて作業工数は増加しない。従って、作業工数を増加させることなく、プログラム書込時に主電源回路をオン状態にすることができる。さらに、主電源回路をオン状態にするために電気機器内に機械的なスイッチまたはショートピンを使用しないので、作業者が機械的なスイッチをオフにするのを忘れたり、ショートピンを取り除くことを忘れたりするという問題が生じない。さらに機械的なスイッチを電気機器内に設ける必要がないので、コストが増加しない。さらに、主電源回路をオン状態にするために外部電源回路を使用しないので、専用コネクタを設ける必要がない。従って、コストが増加せず、作業工数が増加しない。 When the electrical device is connected to the writing jig (the first connecting means is connected to the second connecting means), a voltage is supplied from the standby power supply circuit to the switching means, and the switch of the switching means (for example, a relay switch) Turns on. When the switch is turned on, the main power supply circuit is turned on, so that the voltage from the main power supply circuit can be supplied to the control means. The control means receives the voltage from the main power supply circuit and executes program writing. Since the writing jig is always connected to the program transmission device during the program writing operation, the operator simply turns on the main power supply circuit by simply connecting an electrical device to the writing jig. can do. That is, since it is only connected via the writing jig, the number of work steps does not increase compared to the case of FIG. Therefore, the main power supply circuit can be turned on at the time of program writing without increasing the number of work steps. In addition, no mechanical switch or short pin is used in the electrical equipment to turn on the main power circuit, so the operator forgets to turn off the mechanical switch or removes the short pin. There is no problem of forgetting. Furthermore, since it is not necessary to provide a mechanical switch in the electric device, the cost does not increase. Furthermore, since no external power supply circuit is used to turn on the main power supply circuit, there is no need to provide a dedicated connector. Therefore, the cost does not increase and the number of work steps does not increase.
好ましい実施形態においては、上記切換手段は上記スイッチをオンオフ制御するトランジスタを含む。上記主電源制御手段は、上記第1の接続手段が含む第1の電圧供給端子と第1の切換制御端子、および、上記第2の接続手段が含む第2の電圧供給端子と第2の切換制御端子を有する。該第1の電圧供給端子は、上記待機電源回路および上記主電源回路の出力に接続され、該第1の切換制御端子は該トランジスタの制御電極に接続され、該第2の電圧供給端子は該第2切換制御端子に接続されている。該主電源制御手段は、該第1の電圧供給端子と該第2の電圧供給端子とを接続し、かつ、該第1の切換制御端子と該第2の切換制御端子とを接続することにより、該待機電源回路からの電圧を該切換手段に供給する。 In a preferred embodiment, the switching means includes a transistor for controlling on / off of the switch. The main power supply control means includes a first voltage supply terminal and a first switching control terminal included in the first connection means, and a second voltage supply terminal and a second switch included in the second connection means. It has a control terminal. The first voltage supply terminal is connected to outputs of the standby power supply circuit and the main power supply circuit, the first switching control terminal is connected to a control electrode of the transistor, and the second voltage supply terminal is The second switching control terminal is connected. The main power supply control means connects the first voltage supply terminal and the second voltage supply terminal, and connects the first switch control terminal and the second switch control terminal. The voltage from the standby power supply circuit is supplied to the switching means.
第1の電圧供給端子と第2の電圧供給端子とを接続し、かつ、第1の切換制御端子と第2の切換制御端子とを接続することにより、第1の電圧供給端子と第1の切換制御端子とが短絡される。第1の電圧供給端子は待機電源回路の出力に接続され、第1の切換制御端子はトランジスタの制御電極に接続されているので、トランジスタの制御電極に待機電源回路からの電圧が供給される。トランジスタは、制御電極に電圧が供給されるとオン状態になり、スイッチ(リレースイッチ)がオン状態になり、主電源回路をオン状態にすることができる。従って、第1の接続手段と第2の接続手段とを接続することにより、主電源回路をオン状態にすることができる。 By connecting the first voltage supply terminal and the second voltage supply terminal and connecting the first switch control terminal and the second switch control terminal, the first voltage supply terminal and the first voltage supply terminal are connected to each other. The switching control terminal is short-circuited. Since the first voltage supply terminal is connected to the output of the standby power supply circuit and the first switching control terminal is connected to the control electrode of the transistor, the voltage from the standby power supply circuit is supplied to the control electrode of the transistor. When a voltage is supplied to the control electrode, the transistor is turned on, the switch (relay switch) is turned on, and the main power supply circuit can be turned on. Therefore, the main power supply circuit can be turned on by connecting the first connecting means and the second connecting means.
好ましい実施形態においては、上記書込治具は、上記プログラム送信装置に接続される第3の接続手段をさらに有し、上記プログラム送信装置は、該第3の接続手段に接続される第4の接続手段を有する。 In a preferred embodiment, the writing jig further includes third connection means connected to the program transmission device, and the program transmission device includes a fourth connection means connected to the third connection means. It has a connection means.
書込治具が第3の接続手段を有し、プログラム送信装置が第4の接続手段を有するので、書込治具は、必要に応じて(プログラムを書き込む電気機器に対応して)、プログラム送信装置に接続したり、取り外したりすることができる。従って、待機電源回路からの電圧のみで制御手段にプログラムを書き込める電気機器の場合は、書込治具をプログラム送信装置から取り外し、電気機器をプログラム送信装置に直接接続する。これにより、主電源回路をオフの状態で制御手段にプログラムを書き込むことができる。従って、待機電源回路からの電圧でマイコンへのプログラム書込を実行できる場合、主電源回路をオン状態にしないので、無駄な電力消費を低減できる。 Since the writing jig has the third connecting means, and the program transmitting apparatus has the fourth connecting means, the writing jig can be programmed as needed (corresponding to the electric device for writing the program). Can be connected to or disconnected from the transmitter. Therefore, in the case of an electric device that can write a program to the control means only with a voltage from the standby power supply circuit, the writing jig is removed from the program transmission device, and the electric device is directly connected to the program transmission device. Thereby, the program can be written in the control means with the main power supply circuit turned off. Accordingly, when the program can be written into the microcomputer with the voltage from the standby power supply circuit, the main power supply circuit is not turned on, so that useless power consumption can be reduced.
本発明の別の局面においてはプログラム書込可能な電気機器が提供され得る。この電気機器は、プログラムを送信するプログラム送信装置に接続される書込治具に接続可能な第1の接続手段と、プログラムを書き換え可能な制御手段と、入力電圧が与えられ主回路および該制御手段に電圧を供給する主電源回路と、入力電圧が与えられ該制御手段に電圧を供給する待機電源回路と、スイッチと該スイッチをオンオフ制御するトランジスタとを含み、該スイッチをオフ状態にすることにより該主電源回路をオフ状態にし、該スイッチをオン状態にすることにより該主電源回路をオン状態にする切換手段とを有する。該第1の接続手段は、該待機電源回路および該主電源回路の出力に接続された第1の電圧供給端子、および、該トランジスタの制御電極に接続された第2の切換制御端子を含む。該電気機器は、該第1の接続手段が該書込治具に接続された際に、該電圧供給端子と該切換制御端子とが短絡され、該待機電源回路からの電圧を該トランジスタの制御電極に供給することにより、該スイッチをオン状態にする。 In another aspect of the present invention, a programmable electric device can be provided. The electrical apparatus includes a first connection means connectable to a writing jig connected to a program transmission device for transmitting a program, a control means capable of rewriting the program, a main circuit supplied with an input voltage, and the control Including a main power supply circuit for supplying voltage to the means, a standby power supply circuit for supplying input voltage to the control means, a switch and a transistor for controlling on / off of the switch, and turning off the switch Switching means for turning off the main power supply circuit and turning on the switch to turn on the main power supply circuit. The first connection means includes a first voltage supply terminal connected to the outputs of the standby power supply circuit and the main power supply circuit, and a second switching control terminal connected to the control electrode of the transistor. When the first connecting means is connected to the writing jig, the electrical apparatus is configured such that the voltage supply terminal and the switching control terminal are short-circuited, and the voltage from the standby power supply circuit is controlled by the transistor. By supplying the electrode, the switch is turned on.
プログラム書込時に、第1の接続手段と第2の接続手段とを接続することにより、待機電源回路からの電圧を切換手段に供給し、主電源回路をオン状態にすることができる。従って、待機電源回路からはマイコンにプログラムを書き込むための電圧を供給できない場合に、主電源回路を自動的にオン状態にし主電源回路からの電圧でプログラムを書き込むことができる。 By connecting the first connecting means and the second connecting means at the time of program writing, the voltage from the standby power supply circuit can be supplied to the switching means and the main power supply circuit can be turned on. Therefore, when the standby power supply circuit cannot supply the voltage for writing the program to the microcomputer, the main power supply circuit can be automatically turned on and the program can be written with the voltage from the main power supply circuit.
以下、本発明の好ましい実施形態について、図面を参照して具体的に説明するが、本発明はこれらの実施形態には限定されない。図1は、本発明の好ましい実施形態によるプログラム書込システム100を説明するための概略回路図である。プログラム書込システム100は、電気機器1と、電気機器1にプログラムを送信するプログラム送信装置2と、書込治具3とを備える。書込治具3はプログラム送信装置2に接続されており、プログラム書込時に、電気機器1が書込治具3に接続されることによって、電気機器1内の主電源回路12をオン状態にすることができる。
Hereinafter, preferred embodiments of the present invention will be specifically described with reference to the drawings. However, the present invention is not limited to these embodiments. FIG. 1 is a schematic circuit diagram for explaining a
電気機器1は、待機電源回路11、主電源回路12、マイコン用電源回路13、制御手段14、切換手段15および第1の接続手段16を備える。
The
待機電源回路11は、主に待機状態(主電源回路12がオフ状態で、待機電源回路11がオン状態)の時に、制御手段(例えばマイコン)14および/または図示しないマイコン14の周辺回路(例えば、リモコン信号受信回路および表示回路等)に電圧を供給する回路である。待機電源回路11は、トランス17および整流回路18を備えている。トランス17は、その一次側巻線が商用交流電源に接続され(入力交流電圧が与えられ)、一次巻線と二次巻線との巻数比に基づいて入力交流電圧を所定の電圧に変換して整流回路18に与える。整流回路18は、トランス17からの電圧を整流および平滑して直流電圧を生成する。整流回路18は、全波整流回路D1、コンデンサC1および抵抗R1を含む。
The standby
主電源回路12は、図示しない主回路(電源供給先の回路であり例えばアンプ回路等)およびマイコン14に電圧を供給する回路である。主電源回路12は、トランス19および整流回路20を備えている。トランス19は、商用交流電源に接続され(入力交流電圧が与えられ)、一次巻線と二次巻線との巻数比に基づいて、入力交流電圧を所定の電圧に変換して整流回路20に与える。整流回路20は、トランス19からの電圧を整流および平滑して、直流電圧を生成する。整流回路20は、全波整流回路D2およびコンデンサC2を含む。
The main
マイコン用電源回路13は、待機電源回路11および/または主電源回路12からの電圧を受けて、マイコン14に電圧を与える回路である。マイコン用電源回路13は、逆電流防止用のダイオードD3、D4、コンデンサC3および安定化回路21を備える。コンデンサC3にはマイコン14に与えるための電圧が充電される。待機時には待機電源回路11のみからコンデンサC3に電圧が充電され、通常動作時(主電源回路3がオン状態の時)には待機電源回路11および主電源回路12からコンデンサC3に電圧が充電される。安定化回路21は、コンデンサC3からの電圧が与えられ、マイコン14の動作に必要な安定化直流電圧を生成する。安定化回路21の出力端は、マイコン14の電圧入力端子aに接続されている。
The microcomputer
制御手段14は、待機電源回路11および/または主電源回路12から電圧が供給され、電気機器1全体を制御するものであり、代表的にはマイコン(micro computer)が採用され得る。マイコン14は、CPU(中央演算処理装置)22、フラッシュEEPROM23、電圧入力端子a、主電源制御端子b、および一または複数のプログラム書込端子cを有する。CPU22は、EEPROM23に格納されたプログラムを実行することにより電気機器1の各部(主回路、待機電源回路11および主電源回路12等)を制御する。EEPROM23は、書込治具3を介してプログラム送信装置2から送信されたプログラムを格納する。電圧入力端子aは、マイコン用電源回路13からマイコン14を動作するために必要な電圧が与えられる端子である。主電源制御端子bは、主電源回路12のオン状態/オフ状態を制御するための(すなわち、後述のリレースイッチ24Aをオン/オフするための)信号を出力する端子である。プログラム書込端子cは、EEPROM23に書き込むプログラムが供給される端子である。
The control means 14 is supplied with a voltage from the standby
切換手段15は、主電源回路12のオン状態およびオフ状態を切り換えるものである。切換手段15は、代表的には、リレー回路24およびリレードライブ用のトランジスタ25を有する。リレー回路24は、リレースイッチ24Aおよび巻線24Bを含む。リレースイッチ24Aは、商用交流電源とトランス19との間に接続される。主電源回路12はリレースイッチ24Aの後段に接続され、待機電源回路11はリレースイッチ24Aの前段に接続されているので、リレースイッチ24Aをオフ状態にすると、主電源回路12のみがオフ状態になる。巻線24Bの一端は整流回路18の出力端に接続され、他端はトランジスタ25のコレクタに接続されている。トランジスタ25は、ベースに与えられる電圧に基づいて、リレー回路24をオン/オフ制御する素子である。トランジスタ25は、ベース(制御電極)が抵抗R2を介してマイコン14の主電源制御端子bおよび後述する第1の切換制御端子16Bに接続され、エミッタが接地電位GNDに接続されている。
The switching means 15 switches the on state and the off state of the main
第1の接続手段16は、書込治具3(後述する第2の接続手段26)に接続され、書込治具3を介してプログラム送信装置2からプログラムのデータが供給される。さらに、第1の接続手段16は、書込治具3を介してプログラム送信装置2に電圧を供給する。第1の接続手段16は、代表的にはコネクタであり、第1の電圧供給端子16Aおよび第1の切換制御端子16Bを少なくとも含む。第1の接続手段16は、さらに、一または複数のプログラム入力端子16C、および接地端子16Dを含む。第1の電圧供給端子16Aは、安定化回路21の出力端に接続され(すなわち、待機電源回路11および主電源回路12の出力端に接続され)、プログラム書込時にマイコン14へ供給される電圧を、プログラム送信装置2にも供給する端子である。第1の切換制御端子16Bは、抵抗R2を介してトランジスタ25のべースに接続されており、待機電源回路11からの電圧をトランジスタ25のベースに供給することにより、リレー回路24をオン/オフ制御する端子である。プログラム書込端子16Cは、プログラムのデータが供給される端子であり、プログラムの内容に応じて任意のものが設けられる。接地端子16Dは、電気機器1の接地電位GNDに接続される端子である。
The first connecting
書込治具3は、電気機器1からの電圧をプログラム送信装置2に供給し、かつ、プログラム送信装置2からのプログラムデータを電気機器1に供給する。書込治具3は、第2の接続手段26および第3の接続手段27を有する。第2の接続手段26は、プログラム書込時に、第1の接続手段16に接続される。第2の接続手段26は、第1の接続手段16から電圧が入力され、かつ、第1の接続手段16にプログラムのデータを出力する。第2の接続手段26は、代表的にはコネクタであり、第1の接続手段16の各端子16A〜16Dに対応する端子を含む。つまり、第2の接続手段26は、第2の電圧供給端子26Aおよび第2の切換制御端子26Bを少なくとも含む(詳細は、主電源制御手段として後述する)。第2の接続手段26は、さらに、一または複数のプログラム出力端子26Cおよび接地端子26Dを含む。プログラム書込時に、プログラム出力端子26Cはプログラム入力端子16Cに接続され、接地端子26Dは接地端子16Dにそれぞれ接続される。
The writing
第3の接続手段27は、プログラム書込時にプログラム送信装置2に接続されている。第3の接続手段27は、プログラム送信装置2からプログラムのデータが入力され、第2の接続手段26に出力する。さらに、第3の接続手段27は、第2の接続手段26からの電圧をプログラム送信装置2に出力する。第3の接続手段27は、代表的にはコネクタであり、第3の電圧供給端子27A、一または複数のプログラム入力端子27Cおよび接地端子27Dを含む。第3の電圧供給端子27Aは第2の電圧供給端子26Aに、プログラム入力端子27Cはプログラム出力端子26Cに、接地端子27Dは接地端子26Dにそれぞれ書込治具3内で接続されている。
The third connecting
電気機器1および書込治具3は、主電源制御手段を有する。主電源制御手段は、マイコン14(主電源制御端子b)からの信号を使用せずに、切換手段15のリレースイッチ24Aをオン状態にする。つまり、主電源制御手段は、第1の接続手段16と第2の接続手段26とが接続された際に、待機電源回路11からの電圧を切換手段15に供給して、リレースイッチ24Aをオン状態にすることにより、主電源回路12をオン状態に制御する。主電源制御手段は、第1の電圧供給端子16A、第1の切換制御端子16B、第2の電圧供給端子26Aおよび第2の切換制御端子26Bを含む。第2の電圧供給端子26Aと第2の切換制御端子26Bとは書込治具3内部で接続されている。従って、プログラム書込時に、第1の電圧供給端子16Aと第2の電圧供給端子26Aとを接続し、第1の切換制御端子16Bと第2の切換制御端子26Bとを接続することにより、第1の電圧供給端子16Aと第1の切換制御端子16Bとが短絡される。すなわち、安定化回路21(待機電源回路11)の出力とトランジスタ25のベースとが短絡される。従って、待機電源回路11からの電圧がトランジスタ25のベースに供給されることになる。
The
プログラム送信装置2は、マイコン29のRAM31内に格納されているプログラムのデータを、書込治具3を介して電気機器1に送信するものであり、一般的にフラッシュライターと呼ばれている。プログラム送信装置2は、第4の接続手段28を有する。第4の接続手段28は、プログラム書込時に、第3の接続手段27に接続されている。第4の接続手段28は第3の接続手段27から電圧が入力され、第3の接続手段27にプログラムのデータを出力する。第4の接続手段28は、代表的にはコネクタであり、第3の接続手段27の各端子27A、27C、27Dに対応する端子を含む。つまり、第4の接続手段28は、第4の電圧入力端子28A、一または複数のプログラム出力端子28Cおよび接地端子28Dを含む。第4の電圧供給端子28Aは第3の電圧供給端子27Aに接続され、プログラム出力端子28Cはプログラム入力端子27Cに接続され、接地端子28Dは接地端子27Dにそれぞれ接続される。操作部32は、プログラムのデータを送信開始する指示を作業者が入力するためのものであり、操作ボタン等である。マイコン29内のCPU30は、プログラム書込時に、プログラム出力端子28Cを介して電気機器1のCPU22と通信する。
The
以上の構成を有するプログラム書込システム100についてその動作を説明する。プログラム書込時には、書込治具3はプログラム送信装置2に接続された状態である。そのため、作業者は、待機状態にある電気機器1を書込治具3に接続したあと、プログラム送信装置2の操作部32を操作することによって、電気機器1のEEPROM23にプログラムを書き込むことができる。
The operation of the
電気機器1を書込治具3に接続する前は、リレースイッチ24Aがオフ状態であり、主電源回路12はオフ状態である。ここで、第1の電圧供給端子16Aを第2の電圧供給端子26Aに接続し、第1の切換制御端子16Bを第2の切換制御端子26Bに接続する(プログラム入力端子16Cをプログラム出力端子26Cに接続し、接地端子16Dを接地端子26Dに接続する)。第2の電圧供給端子26Aと第2の切換制御端子26Bとは書込治具3内で接続されているので、第1の電圧供給端子16Aと第1の切換制御端子16Bとが短絡される。そのため、待機電源回路11の出力は、ダイオードD4、安定化回路21、第1の電圧供給端子16A、第2の電圧供給端子26A、第2の切換制御端子26B、第1の切換制御端子16Bおよび抵抗R2を介してトランジスタ25のベースに接続される。従って、待機電源回路11からの電圧がトランジスタ25のべースに供給される。トランジスタ25は、ベースに待機電源回路11からの電圧が供給されると、ベース−エミッタ間電圧がトランジスタ25の導通開始電圧以上になり、オン状態になる。トランジスタ25がオン状態になると、待機電源回路11からリレー回路24の巻き線24Bおよびトランジスタ25を介して接地電位GNDに電流が流れ、リレースイッチ24Aがオン状態になる。それにより、主電源回路12はオン状態になり、安定化回路21を介してマイコン14に電圧を供給するようになる。従って、待機状態である電気機器1が書込治具3に接続されることにより、自動的に主電源回路12をオン状態にし、マイコン14はプログラム書込を実行するために必要な電圧を得ることができる。
Before the
主電源回路12および待機電源回路11からの電圧は、さらに、第1の電圧供給端子16A、第2の電圧供給端子26A、第3の電圧供給端子27Aおよび第4の電圧供給端子28Aを介して、プログラム送信装置2に供給される。プログラム送信装置2は、当該電圧によって動作され、プログラム出力端子28Cからプログラムのデータを出力する。このプログラムデータは、プログラム入力端子27C,プログラム出力端子26Cおよびプログラム入力端子16Cを介して、マイコン14のプログラム書込端子cに供給され、EEPROM23内に書き込まれる。
The voltages from the main
なお、電気機器1が書込治具3に接続されている間、トランジスタ25のベースには切換制御端子16Bを介して電圧が与えられるので、主電源回路12はオン状態を維持する。一方、電気機器1を書込治具3から取り外すと、トランジスタ25のベースに電圧が供給されなくなるので、リレー回路24の巻き線24Bに流れる電流が遮断される。その結果、リレースイッチ24はオフ状態になり、主電源回路12はオフ状態になる。以上のように、作業者は単に電気機器1を書込治具3に接続するだけで、他の作業を要することなく、主電源回路12をオン状態にし、主電源回路12からの電圧を使ってマイコン14へのプログラム書込を実行することができる。さらに、電気機器1を書込治具3から取り外すと主電源回路12がオフ状態になるので、ショートピンを使用する場合のように電気機器1内に主電源回路1をオン状態にするための器具が取り除かれずに誤って放置されるという問題を解決できる。
Since the voltage is applied to the base of the
次に、待機電源回路11からの電圧がプログラム書込時に必要な電圧以上であり、待機電源回路11からの電圧のみでマイコン14へのプログラム書込が可能である場合について図2を用いて説明する。つまり、主電源回路12をオフ状態のままで、EEPROM23にプログラムを書き込む場合を説明する。なお、図2の通り、電気機器1の回路構成自体は図1と同様であり(但し、待機電源回路11がプログラム書込時に必要な電圧をマイコンに供給できる)、異なるのは、書込治具3を使用せずに、電気機器1をプログラム送信装置2に直接接続することである。つまり、第1の接続手段16を第4の接続手段28に接続する。具体的には、第1の電圧供給端子16Aは第4の電圧供給端子28Aに接続され、プログラム入力端子16Cはプログラム出力端子28Cに接続され、接地端子16Dは接地端子28Dに接続される。一方、第1の切換制御端子16Bは、いずれの端子にも接続されず、開放されている。従って、第1の電圧供給端子16Aと第1の切換制御端子16Bとは短絡されない。そのため、トランジスタ25のべースには待機電源回路11から電圧が供給されず、トランジスタ25はオン状態にならない。従って、主電源回路11はオン状態にならず、待機電源回路11からの電圧のみがマイコン14およびプログラム送信装置2に供給される。
Next, the case where the voltage from standby
以上のように、待機電源回路11からの電圧のみでマイコン14へのプログラム書込が可能である場合には、書込治具3を使用しないことにより、待機電源回路11からの電圧のみでプログラム書込を実行する。従って、無駄な電力消費を低減することができる。
As described above, when the program can be written into the
また、プログラム送信装置2に接続された書込治具3に、図3の従来の構成の電気機器301を接続して、プログラム書込を実行することも可能である。さらに、書込治具3をプログラム送信装置2から取り外して、プログラム送信装置2に直接、図3に示す従来の電気機器301を接続してプログラム書込を実行することもできる。これらの互換性が可能なのは、書込治具3が第3の接続手段27を有し、プログラム送信装置2が第4の接続手段28を有しているからである。
It is also possible to execute program writing by connecting the
以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態には限定されない。例えば、書込治具3はプログラム送信装置2と一体であってもよい(すなわち、第3の接続手段と、第4の接続手段とを有さなくてもよい)。
As mentioned above, although preferable embodiment of this invention was described, this invention is not limited to these embodiment. For example, the writing
本発明は、マイコンのEEPROMにプログラムを外部から書き込む様々な電気機器(例えば、TV、DVDプレーヤ、アンプ機器等のオーディオビジュアル機器等)に好適に採用され得る。 The present invention can be suitably employed in various electric devices (for example, audio-visual devices such as TVs, DVD players, and amplifier devices) that write programs to the EEPROM of a microcomputer from the outside.
1 電気機器
2 プログラム送信装置
3 書込治具
11 待機電源回路
12 主電源回路
14 制御手段
15 切換手段
16 第1の接続手段
26 第2の接続手段
DESCRIPTION OF
Claims (2)
前記電気機器が、プログラムを書き換え可能なメモリを含む制御手段と、
入力電圧が与えられ前記制御手段に電圧を供給する主電源回路と、
入力電圧が与えられ前記制御手段に電圧を供給する待機電源回路と、
スイッチと、前記スイッチをオンオフ制御するトランジスタとを含み、前記スイッチをオフ状態にすることにより前記主電源回路をオフ状態にし、前記スイッチをオン状態にすることにより前記主電源回路をオン状態にする切換手段と、
第1の電圧供給端子と第1の切換制御端子とプログラム入力端子とを含み、前記書込治具と接続される第1の接続手段とを有し、
前記書込治具が、第2の電圧供給端子と、前記第2の電圧供給端子に接続された第2の切換制御端子と、プログラム出力端子とを含み、前記第1の接続手段と接続される第2の接続手段を有し、
前記第1の接続手段と前記第2の接続手段とが接続された際に、前記第1の電圧供給端子と前記第2の電圧供給端子とが接続され、かつ、前記第1の切換制御端子と前記第2の切換制御端子とが接続されることにより、前記待機電源回路からの電圧が、前記第1の電圧供給端子、前記第2の電圧供給端子、前記第2の切換制御端子及び前記第1の切換制御端子をこの順に介して前記トランジスタの制御電極に供給され、前記スイッチがオン制御されると共に、前記プログラム入力端子と前記プログラム出力端子とが接続されることにより、前記プログラム送信装置からのプログラムが、前記プログラム出力端子及び前記プログラム入力端子をこの順に介して前記メモリに書き込まれる、プログラム書込システム。 An electrical device, a program transmission device that transmits a program to the electrical device, and a writing jig connected between the electrical device and the program transmission device,
Control means including a memory in which the electrical device can rewrite a program;
A main power supply circuit which is supplied with an input voltage and supplies a voltage to the control means;
A standby power supply circuit which is supplied with an input voltage and supplies a voltage to the control means;
A switch and a transistor for controlling on / off of the switch; turning off the switch turns off the main power supply circuit; turning on the switch turns on the main power supply circuit Switching means;
A first connecting means including a first voltage supply terminal, a first switching control terminal, and a program input terminal, and connected to the writing jig;
The writing jig includes a second voltage supply terminal, a second switching control terminal connected to the second voltage supply terminal, and a program output terminal, and is connected to the first connection means. Second connection means
When the first connection means and the second connection means are connected, the first voltage supply terminal and the second voltage supply terminal are connected, and the first switching control terminal Is connected to the second switching control terminal, so that the voltage from the standby power supply circuit is changed to the first voltage supply terminal, the second voltage supply terminal, the second switching control terminal, and the second switching control terminal. The first switching control terminal is supplied in this order to the control electrode of the transistor, the switch is turned on, and the program input terminal and the program output terminal are connected, whereby the program transmission device Is written into the memory via the program output terminal and the program input terminal in this order.
前記プログラム送信装置が、前記第3の接続手段に接続される第4の接続手段を有する、請求項1に記載のプログラム書込システム。 The writing jig further includes third connecting means connected to the program transmitting device,
2. The program writing system according to claim 1, wherein the program transmission device includes fourth connection means connected to the third connection means. 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005059157A JP4288424B2 (en) | 2005-03-03 | 2005-03-03 | Program writing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005059157A JP4288424B2 (en) | 2005-03-03 | 2005-03-03 | Program writing system |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006244157A JP2006244157A (en) | 2006-09-14 |
JP4288424B2 true JP4288424B2 (en) | 2009-07-01 |
Family
ID=37050507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005059157A Active JP4288424B2 (en) | 2005-03-03 | 2005-03-03 | Program writing system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4288424B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4686498B2 (en) * | 2007-05-09 | 2011-05-25 | 三菱電機株式会社 | Electronic control unit |
JP5749211B2 (en) * | 2012-04-17 | 2015-07-15 | コーセル株式会社 | Switching power supply device and switching power supply program writing system |
-
2005
- 2005-03-03 JP JP2005059157A patent/JP4288424B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2006244157A (en) | 2006-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100653065B1 (en) | Electronic equipment system and control method thereof | |
JP2005212097A (en) | Communication system and method for implementing communication through electric supply terminal in direct current power tool | |
JP2018069882A (en) | Vehicle load control device, method of rewriting control program for the same, and control program rewriting system | |
CN107005142A (en) | Multifunction terminal | |
JP4288424B2 (en) | Program writing system | |
JP2006262610A (en) | Power supply circuit | |
JP6216437B1 (en) | Driving current adjusting device for light-emitting diode lamp | |
JP5204432B2 (en) | Electrical equipment, service method of electrical equipment | |
WO2012120994A1 (en) | Control device | |
JP2012155444A (en) | Electronic equipment | |
US10606781B2 (en) | Data transmission system, projector, and data transmission method including first apparatus with first communication part and second apparatus with second communication part | |
CN113924755B (en) | Signal processing device | |
JP2007037304A (en) | Robot control device | |
US8604759B2 (en) | Power regulation circuit and electronic device with the same | |
EP2911268A1 (en) | Charger holder | |
KR20060110682A (en) | The device and method for controlling power of external devices of display appratus | |
JP4765519B2 (en) | Sensor device and controller for sensor device | |
JP2008051490A (en) | Air conditioner | |
JP2007043254A (en) | Remote controller and control method of remote controller | |
CN112332468B (en) | Projection system and wireless charging method thereof | |
JP4179370B2 (en) | Electronic equipment | |
KR100995013B1 (en) | Lower consumption standby power circuit apparatus for electric apparatus and method for controlling the same | |
JP2009110034A (en) | Electric equipment | |
JP6140745B2 (en) | Data acquisition system, electronic device, and data acquisition terminal | |
JPH11215692A (en) | Portable electronic apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081118 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081127 |
|
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: 20090303 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090316 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120410 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150410 Year of fee payment: 6 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150410 Year of fee payment: 6 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |