JPS59133619A - Data protecting device - Google Patents

Data protecting device

Info

Publication number
JPS59133619A
JPS59133619A JP58008468A JP846883A JPS59133619A JP S59133619 A JPS59133619 A JP S59133619A JP 58008468 A JP58008468 A JP 58008468A JP 846883 A JP846883 A JP 846883A JP S59133619 A JPS59133619 A JP S59133619A
Authority
JP
Japan
Prior art keywords
comparator
power
data
microcomputer
output
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.)
Granted
Application number
JP58008468A
Other languages
Japanese (ja)
Other versions
JPH0315766B2 (en
Inventor
Riyuuichi Kusaba
草場 龍壱
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP58008468A priority Critical patent/JPS59133619A/en
Publication of JPS59133619A publication Critical patent/JPS59133619A/en
Publication of JPH0315766B2 publication Critical patent/JPH0315766B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations

Abstract

PURPOSE:To eliminate completely the occurrence of errors in data transmission at the power-on/off time, by using two kinds of DC power sources whose rise and fall are different from each other and controlling data on a data transmission line by the output of a comparator which detects the potential differential difference between DC power sources. CONSTITUTION:The output of a comparator 319 and output terminals of a microcomputer 320 are connected by diodes 313-316; and when the output of the comparator 319 is in the low level, the output of the computer 320 is fixed to the low level also. Consequently, even if abnormal data is generated from the computer 320 at the power-on time, miss data is not transmitted. The computer 320 is set to the low level by the comparator 319 until the comparator 319 becomes the low level after power failure. Therefore, data is not transmitted. Consequently, the transmission miss of the computer 320 at the power-on time or due to a momentary power failure or the like is eliminated completely.

Description

【発明の詳細な説明】 産業上の利用分野 本発明はマイクロコンピュータ等を利用したデータ伝送
装置におけるデータ保護装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a data protection device in a data transmission device using a microcomputer or the like.

従来例の構成とその問題点 近年、機器の高性能化にともないそれらを制御する方法
として、マイクロコンピュータ等のディジタル制御によ
る手法が多く採用されるようになってきた。特にディジ
タル伝送回路においては伝送されるデータが瞬時停電等
によって誤まったデータとなって伝送されることが問題
となる。この問題に対処すべ〈従来から多くの方法が取
られておシ、その一つについて説明する。第1図は従来
のデータ伝送回路のデータ保護装置の構成図を示すもの
であシ、第1図中、13はマイクロコンピュータ18の
リセット端子、12はマイクロコンピュータ18の電源
端子、17はマイクロコンピュータ18の接地端子、1
8はマイクロコンピュータを示す。また、11は逆流防
止用のダイオード、16は停電保護用コンデンサ、14
.15はマイクロコンピュータ18のリセット時間決定
用マイクロコンピュータ18のデータ制御出力端子であ
る。以上のように構成された従来のデータ伝送回路のデ
ータ保護装置についてその動作を説明する−0まず、第
1図の回路において、入力端1 a。
Conventional configurations and their problems In recent years, as devices have become more sophisticated, methods using digital control using microcomputers and the like have come to be increasingly used to control them. Particularly in digital transmission circuits, there is a problem in that data to be transmitted becomes erroneous data due to instantaneous power outage or the like. There have been many methods to deal with this problem, one of which will be explained below. FIG. 1 shows a configuration diagram of a conventional data protection device for a data transmission circuit. In FIG. 1, 13 is a reset terminal of a microcomputer 18, 12 is a power supply terminal of the microcomputer 18, and 17 is a microcomputer 18 ground terminals, 1
8 indicates a microcomputer. In addition, 11 is a diode for backflow prevention, 16 is a capacitor for power failure protection, and 14
.. 15 is a data control output terminal of the microcomputer 18 for determining the reset time of the microcomputer 18. The operation of the conventional data protection device for the data transmission circuit configured as described above will be explained.-0 First, in the circuit shown in FIG. 1, the input terminal 1a.

1bへ電源が供給された瞬間を考えてみる。電流はダイ
オード11を通してマイクロコンピュータ18の電源端
子12へ加わり、かつ抵抗14、コンデンサ16による
時定数回路を通してマイクロコンピュータ1日のリセッ
ト端子13に加わる。
Let us consider the moment when power is supplied to 1b. The current is applied to the power supply terminal 12 of the microcomputer 18 through the diode 11, and is applied to the microcomputer 1-day reset terminal 13 through the time constant circuit including the resistor 14 and capacitor 16.

また、停電保護用コンデンサ16へも充電される。In addition, the power failure protection capacitor 16 is also charged.

これらの動作をタイミング図で示すと第2図のようにな
る。第2図で、21はマイクロコンピュータ18の電源
端子12の電圧波形、22はマイクロコンピュータ18
のリセット端子13の電圧波形である。マイクロコンピ
ュータ18は電源が供給された時点から動作電圧v1に
達するまでの期間(第2図での23〜24までの間で1
)だけ命令を実行しないようにしている。次に瞬時停電
等によってマイクロコンピュータ18への供給電源が停
止した場合を考えてみる。この場合、停電保護用コンデ
ンサ16に電荷が蓄えられているため、コンデンサ16
からマイクロコンピュータ18の電源端子12へ電流が
流入しコンデンサ16の電荷がマイクロコンピュータ1
8を動作させるに可能な最低電圧になるまで命令を保持
する。ダイオード11はこの電流が供給電源側1aへ流
れないようにするために入れられた逆流防止用ダイオー
ドである。
A timing diagram of these operations is shown in FIG. 2. In FIG. 2, 21 is the voltage waveform of the power supply terminal 12 of the microcomputer 18, and 22 is the voltage waveform of the microcomputer 18.
This is the voltage waveform of the reset terminal 13 of . The microcomputer 18 operates during the period from when power is supplied until it reaches the operating voltage v1 (1 between 23 and 24 in FIG. 2).
) only so that the command is not executed. Next, consider a case where the power supply to the microcomputer 18 is stopped due to a momentary power outage or the like. In this case, since electric charge is stored in the power failure protection capacitor 16, the capacitor 16
A current flows into the power supply terminal 12 of the microcomputer 18 and the charge in the capacitor 16 is transferred to the microcomputer 1.
The command is held until the lowest possible voltage is reached to operate the 8. The diode 11 is a backflow prevention diode inserted to prevent this current from flowing to the power supply side 1a.

しかしながら、上記のような構成では、マイクロコンピ
ュータ18にN−MOS等の消費電流の大きな素子を用
いた場合、停電保護用コンデンサ16[容量の大きな物
が必要となシ、また、第2図でのv1付近でマイクロコ
ンピュータ18の出力端子10〜1fにデータ以外のパ
ルスが出力されることがちシ、誤まったデータを伝送し
てしまうという問題を有していた。
However, in the above configuration, if an element with a large current consumption such as an N-MOS is used in the microcomputer 18, the power failure protection capacitor 16 [with a large capacity] is not required. There is a problem in that pulses other than data are often outputted to the output terminals 10 to 1f of the microcomputer 18 near v1 of the microcomputer 18, resulting in erroneous data being transmitted.

発明の目的 本発明は上記従来の問題を解消するもので、データ伝送
回路の電源オン時および瞬時停電等でデータ伝送のエラ
ーが起こらないようにすることができるデータ保護装置
を提供することを目的とするものである。     − 発明の構成 本発明は電圧の異なる第1および第2の直流電源と、こ
の両軍源のオン、オフ時の立上が9または立下がシによ
って生じる電位差を検出する比較器とを備えたデータ伝
送回路のデータ保護装置であシ、前記比較器の出力をデ
ータ伝送回路の出力端子に接続することによシデータ伝
送回路のデータを制御するように構成したものである。
OBJECTS OF THE INVENTION The present invention solves the above-mentioned conventional problems, and an object thereof is to provide a data protection device that can prevent errors in data transmission from occurring when the data transmission circuit is powered on or during instantaneous power outages. That is. - Structure of the Invention The present invention includes first and second DC power supplies with different voltages, and a comparator that detects the potential difference caused by the rise or fall of both power sources when they are turned on or off. The data protection device for the data transmission circuit is configured to control the data in the data transmission circuit by connecting the output of the comparator to the output terminal of the data transmission circuit.

実施例の説明 第3図は本発明の=実施例におけるマイクロコ飄 ンビュータのデータ保護装置を示すものである。Description of examples Figure 3 shows a microcontroller in an embodiment of the present invention. This shows the computer's data protection device.

第3図において、301.302.307は微分回路を
構成する抵抗およびコンデンサであシ、抵抗30.7と
コンデンサ302の接続点は比較器319の反転入力端
子309に接続されている。
In FIG. 3, 301, 302, and 307 are resistors and capacitors forming a differential circuit, and the connection point between the resistor 30.7 and the capacitor 302 is connected to the inverting input terminal 309 of the comparator 319.

抵抗305とコンデンサ306は放電時定数を決定し、
ダイオード304によってコンデンサ306に充電され
る。放電電流はダイオ一ド303を介して前記比較器3
19の反転入力端子309に現われる0前記比較器31
9の正転入力端子308はマイクロコンピユー・夕32
0の制御端子317へ接続されている。310は比較器
319の電源端子、311は比較器319の接地端子、
312は比較器319の出力端子で、マイクロコンピュ
ータ320の出力端子30〜3fにダイオード313〜
316を介して接続されている。3aは比較器319へ
の電源供給端子、3bはマイクロコンピュータ320へ
の電源供給端子である。
Resistor 305 and capacitor 306 determine the discharge time constant;
A capacitor 306 is charged by a diode 304 . The discharge current flows through the diode 303 to the comparator 3.
19 appearing at the inverting input terminal 309 of the comparator 31
The normal rotation input terminal 308 of 9 is the microcomputer 32
0 control terminal 317. 310 is a power supply terminal of the comparator 319, 311 is a ground terminal of the comparator 319,
312 is the output terminal of the comparator 319, and diodes 313 to 3f are connected to the output terminals 30 to 3f of the microcomputer 320.
316. 3a is a power supply terminal for the comparator 319, and 3b is a power supply terminal for the microcomputer 320.

以」:のように構成された本実施例のデータ保護装置に
ついて以下その動作を説明する。まず、比較器319お
よびマイクロコンピュータ320への電源供給は投入時
には第4図のような時定数をもつで供給される。第4図
にて401は比較器319への供給電源波形、402は
マイクロコンピュータ320への供給電源波形である。
The operation of the data protection device of this embodiment configured as follows will be described below. First, power is supplied to the comparator 319 and the microcomputer 320 with a time constant as shown in FIG. 4 when turned on. In FIG. 4, 401 is a waveform of power supplied to the comparator 319, and 402 is a waveform of power supplied to the microcomputer 320.

比較器319の供給電源は抵抗301.307およびコ
ンデンサ3o2で構成される微分回路を通過して第4図
め403のような電圧波形となって比較器319の反転
入力端子309′\現われる。第4図の402と403
の電位差Vはダイオード303と364の順方向電圧に
よる差である0比較器31′9は第4図の402と40
3の電圧波形がそれぞれ正転、反転入力端子308.3
09へ加えられる。電源投入時から比較器319の入力
電位差がゼロになるまでの期間T2は比較器319の反
転入力の方が電位が高いため比較器319の出力はロウ
レベルを保持し、その後は出力が反転してハイレベルを
保持する。第4図の404は前記比較器319の出力の
波形を示している0前記比較器319の出力とマイクロ
コンピュータ320の出力端子はダイオード313〜3
16で接続されておシ、比較器319の出力がロウレベ
ルのとキハマイクロコンピュータ320の出力も同様に
ロウレベルに固定される。したがって電源投入時にマイ
クロコンピュータ320から異常なデータが発生しても
、比較器319によってマイクロコンピュータ320の
出力端子がロウレベルに保持されるため、ミスデータを
伝送することはない。
The power supplied to the comparator 319 passes through a differentiating circuit composed of resistors 301, 307 and a capacitor 3o2, and appears at the inverting input terminal 309'\ of the comparator 319 as a voltage waveform as shown at 403 in FIG. 402 and 403 in Figure 4
The potential difference V is the difference due to the forward voltage of the diodes 303 and 364. The comparator 31'9 is the difference between 402 and 40 in FIG.
3 voltage waveforms are respectively normal rotation and inversion input terminal 308.3
Added to 09. During the period T2 from when the power is turned on until the input potential difference of the comparator 319 becomes zero, the inverting input of the comparator 319 has a higher potential, so the output of the comparator 319 maintains a low level, and after that, the output is inverted. maintain a high level. 404 in FIG. 4 indicates the waveform of the output of the comparator 319. The output of the comparator 319 and the output terminal of the microcomputer 320 are connected to diodes 313 to 3.
When the output of the comparator 319 is at a low level, the output of the microcomputer 320 is similarly fixed at a low level. Therefore, even if abnormal data is generated from the microcomputer 320 when the power is turned on, the output terminal of the microcomputer 320 is held at a low level by the comparator 319, so that erroneous data will not be transmitted.

次に供給電源が停電等によって降下した場合を考えてみ
る。第6図はその状態における各端子の電圧波形である
。第6図中、501は比較器319への供給電圧波形、
また602はマイクロコンピュータ320への供給電源
波形である。503は比較器319の反転入力端子30
9への電圧波形で、これはコンデンサ306に充電され
た電荷が抵抗306にて放電する時定数でもってダイオ
ード303を介して供給される。第6図において、停電
した瞬間人から比較器319の正2反転入力端子308
,309の電位が交わるA1での時間T5は比較器31
9の正転入力端子308の電圧(第6図での602の波
形)の方が反転入力端子309の電位(第5図での50
3の波形)よシ高いため、比較器319はハイレベルを
保持し、A点からT5を経過した時間以降はロウレベル
に転じる。その比較器319の出力状態を示したのが第
5図の504の波形である。比較器319がロウレベル
のときは前述したようにマイクロコンピュータ320の
出力もロウレベルに引き込まれるためデータが伝送され
ることはない。
Next, let's consider a case where the power supply drops due to a power outage or the like. FIG. 6 shows the voltage waveforms at each terminal in that state. In FIG. 6, 501 is the supply voltage waveform to the comparator 319;
Further, 602 is a power supply waveform to the microcomputer 320. 503 is the inverting input terminal 30 of the comparator 319
9, which is supplied via the diode 303 with a time constant for the charge stored in the capacitor 306 to discharge at the resistor 306. In FIG. 6, at the moment of power failure, the input terminal 308 of the comparator 319
, 309 intersect at A1, the comparator 31
The voltage at the normal input terminal 308 (waveform 602 in FIG. 6) is higher than the voltage at the inverting input terminal 309 (waveform 50 in FIG. 5).
3), the comparator 319 maintains the high level, and changes to the low level after the time T5 has elapsed from point A. A waveform 504 in FIG. 5 shows the output state of the comparator 319. When the comparator 319 is at a low level, the output of the microcomputer 320 is also pulled to a low level as described above, so no data is transmitted.

以上のことから供給電源が投入されてから比較器319
がハイレベルに落ち付くまでの期間(第4図のT2 )
および停電してから比較器319がロウレベルになるま
での期間(第6図のA点からT3を経過した以降)は比
較器319によってマイクロコンピュータ320はロウ
レベルに引き込まれる。つまり、電源投入時および停電
時にはマイクロコンピュータ320よフミスデータを伝
送されることはない。瞬時停電は第4図と第6図との組
み合わせで同様に考えられる。第6図に瞬時停電時の各
電圧波形を示している。601は比較器319への供給
電源波形、602はマイクロコンピュータ320への供
給電源波形、603は比較器3190反転入力端子30
9の電圧波形、504は比較器319の出力波形を示し
ている。
From the above, after the power supply is turned on, the comparator 319
period until it settles down to a high level (T2 in Figure 4)
During the period from the power outage until the comparator 319 becomes low level (after T3 has passed from point A in FIG. 6), the microcomputer 320 is pulled to low level by the comparator 319. In other words, no fuss data is transmitted from the microcomputer 320 at power-on or power outage. Momentary power outages can be considered in the same way by combining Figures 4 and 6. FIG. 6 shows each voltage waveform during a momentary power outage. 601 is the power supply waveform to the comparator 319, 602 is the power supply waveform to the microcomputer 320, and 603 is the inverting input terminal 30 of the comparator 3190.
9 shows the voltage waveform, and 504 shows the output waveform of the comparator 319.

第6図のBからCまでの期間が瞬時停電の時間となる。The period from B to C in FIG. 6 is the momentary power outage time.

発明の効果 以上詳述したように本発明によれば、立上がり。Effect of the invention As detailed above, according to the present invention, the rise.

立下がりの異なる2種の直流電源を用いて、その電位差
を検出する比較器を設けることによって、電源投入時お
よび瞬時停電等によるマイクロコンピュータのデータ伝
送ミスを皆無にすることができる優れたデータ伝送回路
のデータ保護装置を実現できる利点を有するものである
By using two types of DC power supplies with different falling edges and installing a comparator to detect the potential difference between them, we have achieved excellent data transmission that can completely eliminate microcomputer data transmission errors caused by power-on or instantaneous power outages. It has the advantage of realizing a circuit data protection device.

【図面の簡単な説明】[Brief explanation of drawings]

第1図゛は従来のデータ伝送のデータ保護装置の回路図
、第2図は同装置の要部の電圧波形図、第3図は本発明
の一実施例を示すデータ伝送のデータ保護装置の回路図
、第4図乃至第6図は同装置の要部の電圧波形である0 301.302.305・・・・・・抵抗、303゜3
04・・・・・・ダイオード、306.307・・・・
・・コンデンサ、319・・・・・・比較器、320・
・・・・・マイクロコンピュータ、313〜316・・
・・・・ダイオード。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 112図 第5図 第3図 第4図
Fig. 1 is a circuit diagram of a conventional data protection device for data transmission, Fig. 2 is a voltage waveform diagram of the main parts of the device, and Fig. 3 is a diagram of a data protection device for data transmission showing an embodiment of the present invention. The circuit diagram, Figures 4 to 6, shows the voltage waveforms of the main parts of the device.
04...Diode, 306.307...
... Capacitor, 319 ... Comparator, 320.
...Microcomputer, 313-316...
····diode. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure 112Figure 5Figure 3Figure 4

Claims (1)

【特許請求の範囲】[Claims] 電圧の異なる第1および第2の直流電源と、これらの電
源のオン、オフ時の立上がシまたは立下がフの時定数の
差によって生じる前記第1.第2の電源の電位差を検出
しかつ両電源の電位差を比較する比較器を有し、この比
較器の出力によってデータ伝送回路が安定な動作領域に
達するまで前記伝送回路を制御するように構成してなる
データ保護装置。
The first and second DC power supplies have different voltages, and the first and second DC power supplies have different voltages, and the difference in the time constants of rising and falling times when these power supplies are turned on and off. It has a comparator that detects the potential difference between the second power supply and compares the potential difference between the two power supplies, and is configured to control the data transmission circuit until the data transmission circuit reaches a stable operating region based on the output of the comparator. data protection device.
JP58008468A 1983-01-20 1983-01-20 Data protecting device Granted JPS59133619A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58008468A JPS59133619A (en) 1983-01-20 1983-01-20 Data protecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58008468A JPS59133619A (en) 1983-01-20 1983-01-20 Data protecting device

Publications (2)

Publication Number Publication Date
JPS59133619A true JPS59133619A (en) 1984-08-01
JPH0315766B2 JPH0315766B2 (en) 1991-03-01

Family

ID=11693954

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58008468A Granted JPS59133619A (en) 1983-01-20 1983-01-20 Data protecting device

Country Status (1)

Country Link
JP (1) JPS59133619A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55129816A (en) * 1979-03-27 1980-10-08 Toshiba Corp Malfunction prevention circuit for controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS55129816A (en) * 1979-03-27 1980-10-08 Toshiba Corp Malfunction prevention circuit for controller

Also Published As

Publication number Publication date
JPH0315766B2 (en) 1991-03-01

Similar Documents

Publication Publication Date Title
JPH0416806B2 (en)
CN216052961U (en) Power-down time sequence control circuit
JPS59133619A (en) Data protecting device
JPH0519911A (en) Power supply circuit
JPH0720759Y2 (en) Power supply circuit with power failure compensation malfunction prevention function
JPH0143650Y2 (en)
JPS645261B2 (en)
JPH0581922B2 (en)
JPS595325A (en) Memory holding voltage detecting circuit
JPS61224019A (en) Resetting circuit of microprocessor
JPS6134634B2 (en)
JPH0253803B2 (en)
JPH02189613A (en) Microcomputer power on reset circuit
JPH01223360A (en) Voltage monitoring circuit
JPH086674A (en) Power source detecting circuit
JPH0726748Y2 (en) Reset circuit
JPH02246612A (en) Watchdog timer circuit
JPH0353582B2 (en)
JPH0389845A (en) Slow start circuit
JPS60176124A (en) Reset device of microcomputer
JPH073943B2 (en) Overcurrent protection circuit
JPS5938665A (en) Auto-reset circuit of electronic control apparatus
JPS631328A (en) Subsidiary electric source checking apparatus
JPS62290328A (en) Battery backup circuit for communication equipment
JPS6048522A (en) Resetting circuit with backup power source