DE3732184C1 - Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system - Google Patents

Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system

Info

Publication number
DE3732184C1
DE3732184C1 DE19873732184 DE3732184A DE3732184C1 DE 3732184 C1 DE3732184 C1 DE 3732184C1 DE 19873732184 DE19873732184 DE 19873732184 DE 3732184 A DE3732184 A DE 3732184A DE 3732184 C1 DE3732184 C1 DE 3732184C1
Authority
DE
Germany
Prior art keywords
capacitor
voltage
switch
supply voltage
duration
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
Application number
DE19873732184
Other languages
German (de)
Inventor
Wolfgang Dipl-Ing Jantzen
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.)
ABB Patent GmbH
Original Assignee
Schoppe and Faeser GmbH
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 Schoppe and Faeser GmbH filed Critical Schoppe and Faeser GmbH
Priority to DE19873732184 priority Critical patent/DE3732184C1/en
Application granted granted Critical
Publication of DE3732184C1 publication Critical patent/DE3732184C1/en
Expired 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The duration of the power supply failure in a microprocessor system is to be determined, so that after the power supply has returned, it is possible to decide whether the system must be restarted or it is possible to continue working with the stored values. The method of determining the duration of a power supply failure should give exact results, but cost as little as possible. During the power supply failure, a capacitor, which is charged to an initial voltage and has a first, large time constant, is discharged. After the power supply has returned, the capacitor is discharged with a second, much smaller time constant, until a preset voltage is reached. The time required for the residual discharge is used as the first auxiliary quantity. The capacitor is recharged to the initial voltage, and then discharged again with the second time constant, until the preset voltage is reached. The time required for this is used as the second auxiliary quantity. The duration of the power supply failure is given by the difference between the second auxiliary quantity and the first auxiliary quantity, multiplied by the ratio of the first and second time constants. Determining the duration of the power supply failure in a microprocessor system.

Description

Die Erfindung bezieht sich auf ein Verfahren zur Ermittlung der Dauer des Ausfalls der Versorgungsspannung in einem Microprozessorsystem und auf eine Schaltungsanordnung zur Durchführung dieses Verfahrens.The invention relates to a method for determining the Duration of the supply voltage failure in a microprocessor system and on a circuit arrangement for implementation this procedure.

Da in Microprozessorsystemen immer häufiger nichtflüchtige Datenspeicher verwendet werden, deren Inhalt bei einem Spannungsausfall nicht verlorengeht, ist es erforderlich, nach einem Ausfall der Versorgungsspannung festzustellen, wie lange der Spannungausfall gedauert hat. In Abhängigkeit von der Dauer des Ausfalls der Versorgungsspannung kann entschieden werden, ob nach der Wiederkehr der Versorgungsspannung mit den gespeicherten Werten weitergearbeitet werden kann oder ob das System neu gestartet werden muß, weil die Versorgungsspannung zu lange ausgefallen war.Non-volatile data storage is becoming increasingly common in microprocessor systems be used, the content of which in the event of a power failure not lost, it is necessary after a failure the supply voltage to determine how long the power failure Has lasted. Depending on the duration of the failure the supply voltage can be decided whether after the Return of the supply voltage with the saved values can continue to work or whether the system is restarted must be because the supply voltage has failed for too long was.

Eine Möglichkeit, die Dauer des Ausfalls der Versorgungsspannung zu ermitteln, besteht darin, die Höhe der Spannung eines Kondensators, der im Normalbetrieb auf eine vorgegebene Spannung aufgeladen wird und der sich während des Spannungsausfalles über einen Widerstand entlädt, nach der Wiederkehr der Versorgungsspannung mit einer Referenzspannung zu vergleichen. Dieses Verfahren gibt lediglich eine Aussage, ob die als Schwelle dienende Referenzspannung bereits unterschritten ist. Die Höhe der Schwelle wird durch Dimensionierung von Bauteilen festgelegt. Diese Lösung hat den Nachteil, daß dieses Verfahren nur angibt, ob eine einzige vorgegebene Zeit bereits überschritten ist oder ob dies noch nicht der Fall ist.One way of determining the duration of the supply voltage failure is to determine the voltage level of a capacitor, that in normal operation to a given voltage is charged and that during the power failure discharged through a resistor after the supply voltage returns to compare with a reference voltage. This The procedure only gives a statement as to whether the one serving as the threshold Reference voltage is already undershot. The high of  Threshold is determined by dimensioning components. This solution has the disadvantage that this method only indicates whether a single predetermined time has already been exceeded or whether this is not yet the case.

Für die verschiedenen Aufgaben, die Microprozessorsysteme erfüllen sollen, ergeben sich jedoch auch verschiedene Zeiten für das Verhalten der Schaltung nach der Wiederkehr der Versorgungsspannung. Dazu kommt, daß schnelle Microprozessoren in vielen Fällen mehrere Aufgaben praktisch gleichzeitig erledigen. Die hierbei eingesetzte Schaltungsanordnung zur Ermittlung der Dauer des Ausfalls der Versorgungsspannung muß in der Lage sein, unterschiedlich lange Ausfallzeiten zu ermitteln. Aus diesen Gründen scheidet eine Schaltungsanordnung, die nur eine Angabe macht, ob eine fest eingestellte Zeit überschritten ist, für moderne Microprozessorsysteme praktisch aus. Benötigt wird eine Schaltungsanordnung, die die Dauer des Ausfalls der Versorgungsspannung direkt ermittelt.For the various tasks that microprocessor systems perform but there are also different times for the behavior of the circuit after the return of the supply voltage. Add to that fast microprocessors in many Do multiple tasks practically at the same time. The circuit arrangement used here for determining the Duration of the supply voltage failure must be able be able to determine downtimes of different lengths. Out For these reasons, a circuit arrangement that only has one Specifies whether a set time has been exceeded practical for modern microprocessor systems. Is needed a circuit arrangement that the duration of the failure of the supply voltage determined directly.

Für eine direkte Ermittlung der Dauer des Ausfalls der Versorgungsspannung kann eine batteriegepufferte Uhr oder ein batteriegepufferter Zähler verwendet werden. Für viele Anwendungsfälle ist diese Lösung jedoch zu aufwendig.For a direct determination of the duration of the supply voltage failure can be a battery backed up watch or a battery-backed counter can be used. For many applications however, this solution is too complex.

Der Erfindung liegt daher die Aufgabe zugrunde, ein Verfahren der eingangs genannten Art und eine Schaltungsanordnung zur Durchführung des Verfahrens anzugeben, das bzw. die bei möglichst geringem Aufwand eine Messung der Dauer des Ausfalls der Versorgungsspannung in einem Microprozessorsystem erlaubt.The invention is therefore based on the object of a method of the type mentioned and a circuit arrangement for Execution of the procedure to indicate, if possible low effort a measurement of the duration of the failure of the Supply voltage allowed in a microprocessor system.

Diese Aufgabe wird hinsichtlich des Verfahrens durch die kennzeichnenden Merkmale des Anspruchs 1 und hinsichtlich der Schaltungsanordnung durch die kennzeichnenden Merkmale des Anspruchs 2 gelöst. Im Anspruch 3 ist eine vorteilhafte Weiterbildung der Schaltungsanordnung nach Anspruch 2 angegeben.With regard to the method, this task is characterized by the Features of claim 1 and in terms of Circuit arrangement by the characteristic features of the  Claim 2 solved. In claim 3 is an advantageous development specified the circuit arrangement according to claim 2.

Das erfindungsgemäße Verfahren hat den Vorteil, daß sich die Abläufe für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung und die Zeitmessungen durch den vorhandenen Microprozessor in der Einschaltroutine erledigen lassen. Während des normalen Programmablaufes braucht die Schaltungsanordnung zur Ermittlung der Dauer des Ausfalls der Versorungsspannung von dem Microprozessor nicht bedient zu werden.The inventive method has the advantage that the Processes for determining the duration of the supply voltage failure and the time measurements by the existing microprocessor have it done in the switch-on routine. During the The circuit arrangement for normal program execution Determination of the duration of the failure of the supply voltage from not to be operated by the microprocessor.

Die Erfindung wird im folgenden anhand von in den Zeichnungen dargestellten Ausführungsbeispielen näher erläutert. Es zeigtThe invention is as follows based on the embodiments shown in the drawings explained in more detail. It shows

Fig. 1 ein Prinzipschaltbild einer ersten Schaltungsanordnung zur Durchführung des erfindungsgemäßen Verfahrens, Fig. 1 is a schematic diagram of a first circuit arrangement for carrying out the method according to the invention,

Fig. 2 ein Diagramm zur Darstellung der zeitlichen Abläufe der Verfahrensschritte in der Schaltungsanordnung nach der Fig. 1 und Fig. 2 is a diagram showing the timing of the process steps in the circuit arrangement according to FIGS. 1 and

Fig. 3 das Schaltbild einer weiteren Schaltungsanordnung zur Durchführung des erfindungsgemäßen Verfahrens. Fig. 3 shows the circuit diagram of a further circuit arrangement for performing the method according to the invention.

Gleiche Bauteile sind in den Figuren mit den gleichen Bezugszeichen versehen.The same components are in the figures with the same reference numerals Mistake.

Die Fig. 1 zeigt das Prinzipschaltbild einer ersten Schaltungsanordnung zur Durchführung des erfindungsgemäßen Verfahrens zur Ermittlung der Dauer des Ausfalls der Versorgungsspannung in einem Microprozessorsystem. Über eine Klemme 1 ist der Schaltungsanordnung eine positive Versorgungsspannung U v zugeführt, die auf das Potential einer Leitung 2 bezogen ist. Die Leitung 2 bildet das Bezugspotential für alle im Zusammenhang mit der Fig. 1 genannten Spannungen. Ein Spannungsregler 3 leitet aus der Versorgungsspannung U v eine geregelte Spannung U R für die Versorgung elektronischer Bausteine, wie z. B. einen Microprozessor 4, ab. Von dem Microprozessor 4 sind nur die Spannungsanschlüsse 4 a und 4 b, zwei Eingänge 4 c und 4 d sowie zwei Ausgänge 4 e und 4 f dargestellt, die für die Erläuterung der Erfindung erforderlich sind. Eine Schaltungsanordnung 5, die die für die Durchführung des erfindungsgemäßen Verfahrens zusätzlich erforderlichen Bauteile enthält, ist mit einer gestrichelten Linie umgeben. Diese Schaltungsanordnung weist zwei Spannungsanschlüsse 5 a und 5 b, zwei Steuereingänge 5 c und 5 d sowie einen Ausgang 5 e auf. Wie unten noch im einzelnen erläutert wird, kann die Schaltungsanordnung 5 durch die in der Fig. 3 dargestellte Schaltungsanordnung 5′ ersetzt werden. Fig. 1 shows the principle circuit diagram of a first circuit arrangement for carrying out the method according to the invention for determining the duration of the failure of the supply voltage in a microprocessor system. A positive supply voltage U v , which is related to the potential of a line 2 , is supplied to the circuit arrangement via a terminal 1 . The line 2 forms the reference potential for all voltages mentioned in connection with FIG. 1. A voltage regulator 3 leads from the supply voltage U v to a regulated voltage U R for the supply of electronic components, such as. B. a microprocessor 4, from. Of the microprocessor 4 , only the voltage connections 4 a and 4 b, two inputs 4 c and 4 d and two outputs 4 e and 4 f are shown, which are necessary for the explanation of the invention. A circuit arrangement 5, which contains the additional components required for carrying out the method according to the invention, is surrounded by a dashed line. This circuit arrangement has two voltage connections 5 a and 5 b, two control inputs 5 c and 5 d and an output 5 e . As will be explained in detail below, the circuit arrangement 5 can be replaced by the circuit arrangement 5 ' shown in FIG. 3 ' .

Der Ausgang eines Vergleichers 6 ist über eine Leitung 7 mit dem Eingang 4 c des Microprozessors 4 verbunden. Über die Leitung 7 ist dem Microprozessor ein Signal E 1 zugeführt, das den Wert "1" aufweist, wenn die Versorgungsspannung U v größer als die Referenzspannung U ref ist, und das den Wert "0" aufweist, wenn die Versorgungsspannung U v kleiner als die Referenzspannung U ref ist. Die Referenzspannung U ref ist mindestens um die an dem Spannungsregler 3 abfallende Längsspannung größer als die geregelte Spannung U R . Die Referenzspannung U ref ist jedoch kleiner gewählt als der kleinste im Normalbetrieb zulässige Wert der Versorgungsspannung U v . Als Signal E 1 kann auch das negierte "Systemrest"-Signal des Microprozessorsystems verwendet werden. In diesem Fall entfällt der Vergleicher 6. The output of a comparator 6 is connected via a line 7 to the input 4 c of the microprocessor 4 . A signal E 1 is supplied via line 7 to the microprocessor, which has the value "1" if the supply voltage U v is greater than the reference voltage U ref and which has the value "0" if the supply voltage U v is less than is the reference voltage U ref . The reference voltage U ref is at least larger than the regulated voltage U R by the longitudinal voltage dropping at the voltage regulator 3 . The reference voltage U ref is however chosen to be smaller than the smallest allowable value during normal operation of the supply voltage U v. The negated "system remainder" signal of the microprocessor system can also be used as signal E 1 . In this case, the comparator 6 is omitted .

Die Schaltungsanordnung 5 enthält einen Kondensator 8, dessen einer Anschluß mit dem Bezugspotential verbunden ist und dessen anderer Anschluß über einen ersten Widerstand 9 und einen ersten elektronischen Schalter 10 mit der geregelten Spannung U R verbunden ist. Parallel zu dem Kondensator 8 ist ein zweiter Widerstand 11 geschaltet. Weiterhin ist parallel zu dem Kondensator 8 die Reihenschaltung eines dritten Widerstandes 12 und eines zweiten elektronischen Schalters 13 angeordnet. Der elektronische Schalter 10 wird von einem Ausgangssignal S 1 des Microprozessors 4 gesteuert, das dem elektronischen Schalter 10 über eine Leitung 14, die den Ausgang 4 e des Microprozessors 4 mit dem Eingang 5 c der Schaltungsanordnung 5 verbindet, zugeführt ist. Der elektronische Schalter 13 wird von einem weiteren Ausgangssignal S 2 des Microprozessors 4 gesteuert, das dem elektronischen Schalter 13 über eine Leitung 15, die den Ausgang 4 f des Microprozessors 4 mit dem Eingang 5 d der Schaltungsanordnung 5 verbindet, zugeführt ist. Die auf das Bezugspotential bezogene Spannung U C des Kondensators 8 ist dem Eingang eines weiteren Vergleichers 16 zugeführt, der als Schwellenwertschalter dient und dessen Ausgang mit dem zweiten in der Fig. 1 dargestellten Eingang 4 d des Microprozessors 4 verbunden ist. Dem Eingang 4 d des Microprozessors 4 ist ein Signal E 2 zugeführt, das den Wert "0" aufweist, wenn die Spannung U C des Kondensators 8 größer als eine zweite Referenzspannung U CS ist, und das den Wert "1" aufweist, wenn die Spannung U C des Kondensators 8 kleiner als die zweite Referenzspannung U CS ist. Die zweite Referenzspannung U CS ist so gewählt, daß sie kleiner als die geregelte Spannung U R , jedoch größer als das Bezugspotential ist. Die Widerstände 9, 11 und 12 sind so dimensioniert, daß der Widerstand 9 vernachlässigbar klein gegebenüber dem Widerstand 12 und der Widerstand 12 vernachlässigbar klein gegenüber dem Widerstand 11 ist.The circuit arrangement 5 contains a capacitor 8, one connection of which is connected to the reference potential and the other connection of which is connected to the regulated voltage U R via a first resistor 9 and a first electronic switch 10 . A second resistor 11 is connected in parallel with the capacitor 8 . Furthermore, the series connection of a third resistor 12 and a second electronic switch 13 is arranged in parallel with the capacitor 8 . The electronic switch 10 is controlled by an output signal S 1 of the microprocessor 4 , which is supplied to the electronic switch 10 via a line 14 which connects the output 4 e of the microprocessor 4 to the input 5 c of the circuit arrangement 5 . The electronic switch 13 is controlled by a further output signal S 2 of the microprocessor 4 , which is supplied to the electronic switch 13 via a line 15 which connects the output 4 f of the microprocessor 4 to the input 5 d of the circuit arrangement 5 . The voltage U C of the capacitor 8 , which is based on the reference potential, is fed to the input of a further comparator 16 , which serves as a threshold switch and whose output is connected to the second input 4 d of the microprocessor 4 shown in FIG. 1. The input 4 d of the microprocessor 4 is supplied with a signal E 2 which has the value "0" if the voltage U C of the capacitor 8 is greater than a second reference voltage U CS and which has the value "1" if the voltage U c of the capacitor 8 is provided as the second reference voltage U CS smaller. The second reference voltage U CS is selected so that it is smaller than the regulated voltage U R , but larger than the reference potential. The resistors 9, 11 and 12 are dimensioned such that the resistor 9 is negligibly small compared to the resistor 12 and the resistor 12 is negligibly small compared to the resistor 11 .

Zur Verdeutlichung der Funktion der Schaltungsanordnung nach der Fig. 1 ist in der Fig. 2 der zeitliche Verlauf der Signale E 1, E 2, S 1 und S 2 sowie der Spannung U C des Kondensators 8 bei einem Ausfall der Versorgungsspannung U v im Zeitpunkt t 0 dargestellt. Anhand der Fig. 1 und 2 ist das erfindungsgemäße Verfahren im folgenden beschrieben.To clarify the function of the circuit arrangement according to FIG. 1, the time course of the signals E 1 , E 2 , S 1 and S 2 and the voltage U C of the capacitor 8 in the event of a failure of the supply voltage U v is shown in FIG. 2 at the time t 0 is shown. The method according to the invention is described below with reference to FIGS. 1 and 2.

Im Normalbetrieb (bis zum Zeitpunkt t 0 in der Fig. 2) ist der elektronische Schalter 10 geschlossen, und der elektronische Schalter 13 ist geöffnet. Der Kondensator 8 lädt sich über den geschlossenen Schalter 10 und den Widerstand 9 auf eine Spannung auf, die aufgrund der oben angegebenen Dimensionierung der Widerstände 9, 11 und 12 praktisch gleich der geregelten Spannung U R ist. Sinkt die Versorgungsspannung U v bei einem Ausfall im Zeitpunkt t 0 unter die Referenzspannung U ref , so nimmt das Signal E 1, das im Normalbetrieb den Wert "1" aufgewiesen hat, den Wert "0" an. Der Microprozessor 4 öffnet jetzt über die Leitung 14 den elektronischen Schalter 10, der Schalter 13 bleibt geöffnet. Der Kondensator 8 entlädt sich mit einer ersten Zeitkonstante τ 1 = R 11 · C 8 nach einer e-Funktion. Dabei sind die die Zeitkonstante τ 1 = R 11 · C 8 bestimmenden Bauteile so dimensioniert, daß bei der längsten Dauer des Ausfalls der Versorgungsspannung U v , die noch gemessen werden können soll, der Kondensator 8 noch nicht so weit entladen ist, daß die Spannung U C die Referenzspannung U CS des Vergleichers 16 bereits unterschritten hat. Im Zeitpunkt t 1 möge der Ausfall der Versorgungsspannung U v beendet sein, d. h. die Versorgungsspannung U v ist wieder größer als die Referenzspannung U ref . Das von dem Vergleicher 6 abgegebene Signal E 1 nimmt wieder den Wert "1" an. Das Signal S 2 am Ausgang 4 f des Microprozessors 4 nimmt den Wert "1" an und schließt den elektronischen Schalter 13. Von dem Zeitpunkt t 0 bis zum Zeitpunkt t 1 hat sich der Kondensator 8 mit der Zeitkonstante τ 1 = R 11 · C 8 von der Spannung U CO = U R auf eine Spannung U C1 entladen. Mit dem Schließen des Schalters 13 im Zeitpunkt t 1 entlädt sich der Kondensator 8 weiter, und zwar mit einer durch die Parallelschaltung des Widerstandes 12 zu dem Widerstand 11 verringerten Zeitkonstante In normal operation (until time t 0 in FIG. 2), the electronic switch 10 is closed and the electronic switch 13 is open. The capacitor 8 charges via the closed switch 10 and the resistor 9 to a voltage which is practically equal to the regulated voltage U R due to the dimensioning of the resistors 9, 11 and 12 given above. If the supply voltage U v in case of failure at the time t 0 ref below the reference voltage U, so does the signal e 1, which it had in the normal operation, the value "1", the value "0". The microprocessor 4 now opens the electronic switch 10 via the line 14 , the switch 13 remains open. The capacitor 8 discharges with a first time constant τ 1 = R 11 · C 8 after an e-function. Here are the time constant τ 1 = R 11 · C dimensioned 8 defining components that at the longest duration of the failure of the supply voltage v U, which can be measured to, the capacitor 8 is not exhausted to the point that the voltage U C has already fallen below the reference voltage U CS of the comparator 16 . At time t 1, the failure of the supply voltage U v may have ended, ie the supply voltage U v is again greater than the reference voltage U ref . The signal E 1 output by the comparator 6 again assumes the value "1". The signal S 2 at the output 4 f of the microprocessor 4 assumes the value "1" and closes the electronic switch 13. From the time t 0 to the time t 1 , the capacitor 8 has the time constant τ 1 = R 11 · C 8 discharged from the voltage U CO = U R to a voltage U C 1 . When the switch 13 closes at the time t 1 , the capacitor 8 continues to discharge, specifically with a time constant reduced by the parallel connection of the resistor 12 to the resistor 11

Aufgrund der oben angegebenen Dimensionierung gilt τ 2 = R 12 · C 8, d. h. die Zeitkonstante t 2 ist wesentlich kleiner als die Zeitkonstante τ 1. Im Zeitpunkt t 2 ist der Kondensator 8 so weit entladen, daß die Spannung U C des Kondensators 8 die zweite Referenzspannung U CS unterschreitet. Das Signal E 2, das dem Eingang 4 d des Microprozessors 4 von dem Vergleicher 6 zugeführt wird, nimmt jetzt den Wert "1" an. Die Zeitdauer T Rest zwischen den Zeitpunkten t 1 und t 2 wird von dem internen Zähler des Microprozessors 4 erfaßt. Sie dient als erste Hilfsgröße für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung U v . Due to the dimensioning given above, τ 2 = R 12 · C 8 applies, ie the time constant t 2 is significantly smaller than the time constant τ 1 . At time t 2 , capacitor 8 is so far discharged that voltage U C of capacitor 8 falls below second reference voltage U CS . The signal E 2 , which is fed to the input 4 d of the microprocessor 4 by the comparator 6 , now assumes the value "1". The time period T rest between the times t 1 and t 2 is recorded by the internal counter of the microprocessor 4 . It serves as the first auxiliary variable for determining the duration of the failure of the supply voltage U v .

Im Zeitpunkt t 3 schließt der Microprozessor 4 den Schalter 10 und öffnet den Schalter 13. Der Kondensator 8 wird mit der Zeitkonstante τ 3 = R 9 · C 8 auf die geregelte Spannung U R aufgeladen. Aufgrund der oben angegebenen Dimensionierung der Widerstände R 9, R 11 und R 12 ist die Zeitkonstante τ 3 wesentlich kleiner als die Zeitkonstante τ 2. Bis zum Zeitpunkt t 4 möge die Aufladung des Kondensators 8 beendet sein.At time t 3 , the microprocessor 4 closes the switch 10 and opens the switch 13. The capacitor 8 is charged to the regulated voltage U R with the time constant τ 3 = R 9 · C 8 . Due to the dimensioning of the resistors R 9 , R 11 and R 12 given above, the time constant τ 3 is significantly smaller than the time constant τ 2 . The charging of the capacitor 8 may have ended by the time t 4 .

Im Zeitpunkt t 4 öffnet der Microprozessor 4 den Schalter 10 und schließt den Schalter 13. Der Kondensator 8 entlädt sich jetzt wieder mit der Zeitkonstante τ 2. Im Zeitpunkt t 5 hat die Spannung U C des Kondensators 8 die Spannung U C1 erreicht. Bis auf diesen Wert war die Spannung U C des Kondensators 8 abgesunken, als die Versorgungsspannung U v im Zeitpunkt t 1 wiederkehrte. Die Zeitdauer zwischen den Zeitpunkten t 4 und t 5 kann nicht direkt gemessen werden, sondern wird - wie weiter unten erläutert - errechnet. Im Zeitpunkt t 6 unterschreitet die Spannung U C des Kondensators 8 wieder die Referenzspannung U CS . Das Signal E 2, das dem Eingang 4 d des Microprozessors 4 von dem Vergleicher 16 zugeführt wird, nimmt wieder den Wert "1" an. Die Zeitdauer T Gesamt zwischen den Zeitpunkten t 4 und t 6 wird von dem internen Zähler des Microprozessors 4 erfaßt. Sie dient als zweite Hilfsgröße für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung U v. Im Zeitpunkt t₇ schließt der Mikcro­ prozessor 4 den Schalter 10 und öffnet den Schalter 13. Der Kondensator 8 wird wieder mit der Zeitkonstante τ₃ = R₃·C₈ auf die geregelte Spannung U R aufgeladen. Danach ist die Schal­ tungsanordnung wieder für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung U V einsatzbereit.At time t 4 opens the microprocessor 4 the switch 10 and closes the switch 13. The capacitor 8 discharges now again with the time constant τ. 2 At time t 5 , the voltage U C of the capacitor 8 has reached the voltage U C 1 . The voltage U C of the capacitor 8 had dropped to this value when the supply voltage U v returned at the time t 1 . The time period between the times t 4 and t 5 cannot be measured directly, but is - as explained further below - calculated. At time t 6 , the voltage U C of the capacitor 8 again falls below the reference voltage U CS . The signal E 2 , which is fed to the input 4 d of the microprocessor 4 by the comparator 16 , again assumes the value "1". The time period T total between the times t 4 and t 6 is recorded by the internal counter of the microprocessor 4 . It serves as a second auxiliary variable for determining the duration of the failure of the supply voltage U v . At time t ₇, the microprocessor 4 closes the switch 10 and opens the switch 13 . The capacitor 8 is charged again with the time constant τ ₃ = R ₃ · C ₈ to the regulated voltage U R. The circuit arrangement is then ready for use again for determining the duration of the failure of the supply voltage U V.

Für die Ermittlung der Dauer des Ausfalls der Versorgungs­ spannung U V , die im folgenden mit T aus bezeichnet ist, wird zuerst die Zeit T aus* = t₅-t₄ berechnet, die erforderlich ist, um den Kondensator 8 mit der Zeitkonstante τ₂ von der Spannung U CO = U R auf die Spannung U C1 zu entladen. Für T aus* giltTo determine the duration of the failure of the supply voltage U V , which is referred to below as T out , the time T out * = t ₅- t ₄ is first calculated, which is required to the capacitor 8 with the time constant τ ₂ discharge from the voltage U CO = U R to the voltage U C 1 . The following applies to T out *

T aus* = T Gesamt - (t₆ - t₅). T off * = T total - (t ₆ - t ₅).

Da t₆-t₅ gleich t₂-t₁ und damit gleich T Rest ist, giltSince t ₆- t ₅ is t ₂- t ₁ and thus T rest , the following applies

T aus* = T Gesamt - T Rest. T off * = T total - T rest .

Für das Verhältnis von T aus zu T aus* giltThe following applies to the ratio of T out to T out *

Damit ergibt sich die Dauer des Ausfalls der VersorgungsspannungThis results in the duration of the supply voltage failure

Die Zeitkonstanten τ₁ und τ₂ sind Konstanten, die durch die Dimensionie­ rung des Kondensators 8 und der Widerstände 9, 11 und 12 fest­ gelegt sind. Die Zeiten T Gesamt und T Rest werden nach der Wieder­ kehr der Versorgungsspannung U V in der Einschaltroutine des Microprozessors 4 von diesem berechnet. Auch die weiteren oben beschriebenen Rechenschritte zur Ermittlung der Dauer des Aus­ falls der Versorgungsspannung werden vorteilhafterweise von dem Microprozessor 4 in der Einschaltroutine berechnet.The time constants τ ₁ and τ ₂ are constants which are fixed by the dimensioning of the capacitor 8 and the resistors 9, 11 and 12 . The times T total and T rest are calculated after the supply voltage U V returns in the switch-on routine of the microprocessor 4 . The further computing steps described above for determining the duration of the failure of the supply voltage are advantageously calculated by the microprocessor 4 in the switch-on routine.

Die Fig. 3 zeigt eine Schaltungsanordnung 5′, die die Schal­ tungsanordnung 5 in der Fig. 1 ersetzt. Der elektronische Schalter 10′ ist durch einen pnp-Transistor 17 und einen Basis­ widerstand 18 realisiert. Der elektronische Schalter 13′ ist zwischen Bezugspotential (Anschluß 5 b′) und den Kondensator 8 geschaltet. Der elektronische Schalter 13′ ist durch einen npn-Transitor 19 mit einem Basiswiderstand 20 realisiert, denen eine Umkehrstufe aus einem weiteren pnp-Transistor 21 und einem Basiswiderstand 22 vorgeschaltet ist. Der Emitter des pnp-Transistors 21 der Umkehrstufe ist über einen Anschluß 23 mit der geregelten Spannung U R verbunden. Der Vergleichger 16 in der Fig. 1 ist durch einen Schmitt-Trigger 24 in CMOS- Technik realisiert. Dies ist möglich, da der absolute Wert der Schalterschwelle des Schmitt-Triggers - sofern er innerhalb der oben angegebenen Grenzen für die Referenzspannung U CS liegt - nicht in die Berechnung der Dauer des Ausfalls der Versorgungs­ spannung eingeht. Wichtig ist nur, daß die Schalterschwelle zeit­ konstant ist. Der Schalter 13′ ist nur während des Ausfalls der Versorgungsspannung U V geöffnet. Die restliche Zeit ist er geschlossen, um die Aufladung des Kondensators 8 zu ermög­ lichen und um die Spannung U C des Kondensators 8 auszuwerten. Die Widerstände 11 und 12 sind während der Aufladung des Konden­ sators 8 parallel geschaltet. Die Schaltungsanordnung 5′ hat gegenüber der Schaltungsanordnung 5 den Vorteil, daß beim Aus­ fall der Versorgungsspannung U V eine Entladung des Kondensators 8 über die interne Clampdiode im Eingang des in CMOS-Technik ausgeführten Schmitt-Triggers 24 und über die Basis-Kollektor- Diode des pnp-Transistors 17 verhindert wird. Fig. 3 shows a circuit arrangement 5 ' , the circuit arrangement 5 replaced in Fig. 1. The electronic switch 10 ' is realized by a pnp transistor 17 and a base resistor 18 . The electronic switch 13 ' is connected between the reference potential (terminal 5 b') and the capacitor 8 . The electronic switch 13 ' is realized by an npn transistor 19 with a base resistor 20 , which is connected upstream of a reverse stage from a further pnp transistor 21 and a base resistor 22 . The emitter of the pnp transistor 21 of the reversing stage is connected via a connection 23 to the regulated voltage U R. The comparator 16 in FIG. 1 is implemented by a Schmitt trigger 24 in CMOS technology. This is possible because the absolute value of the switch threshold of the Schmitt trigger - insofar as it lies within the above-mentioned limits for the reference voltage U CS - is not included in the calculation of the duration of the supply voltage failure. It is only important that the switch threshold is constant over time. The switch 13 ' is only open during the failure of the supply voltage U V. The rest of the time it is closed to enable the charging of the capacitor 8 and to evaluate the voltage U C of the capacitor 8 . The resistors 11 and 12 are connected in parallel during the charging of the capacitor 8 . The circuit arrangement 5 ' has the advantage over the circuit arrangement 5 that when the supply voltage U V falls off, the capacitor 8 is discharged via the internal clamp diode in the input of the Schmitt trigger 24 executed in CMOS technology and via the base-collector diode of PNP transistor 17 is prevented.

Mit der folgenden Dimensionierung des Kondensators 8 sowie der Widerstände 9, 11 und 12 läßt sich z. B. die Ausfallsdauer der Versorgungsspannung U V im Bereich 0 . . . 10 Sekunden sehr genau ermitteln:With the following dimensioning of the capacitor 8 and the resistors 9, 11 and 12 can, for. B. the downtime of the supply voltage U V in the range 0. . . Determine very precisely for 10 seconds:

C₈ = 22 µF
R₉ = 100 Ω
R₁₁ = 1 MΩ
R₁₂ = 5 kΩ.
C ₈ = 22 µF
R ₉ = 100 Ω
R ₁₁ = 1 MΩ
R ₁₂ = 5 kΩ.

Für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung U V sind damit nach der Wiederkehr der Versorgungsspannung U V nur ca. 200 Millisekunden erforderlich.So the supply voltage U V just 200 milliseconds are required for the return for the determination of the duration of the failure of the supply voltage U V.

Claims (3)

1. Verfahren zur Ermittlung der Dauer des Ausfalls der Versorgungsspannung in einem Microprozessorsystem, dadurch gekennzeichnet,
  • - daß ein Kondensator (8) im Normalbetrieb auf eine geregelte Spannung (U R ) aufgeladen ist,
  • - daß der Kondensator (8) bei Ausfall der Versorgungsspannung (U v ) nach einer e-Funktion mit einer ersten Zeitkonstante ( τ 1 ) entladen wird,
  • - daß die Entladung des Kondensators (8) bei der Wiederkehr der Versorgungsspannung (U v ) nach einer e-Funktion mit einer zweiten Zeitkonstante ( t 2 ), die wesentlich kleiner als die erste Zeitkonstante ( τ 1 ) ist, fortgesetzt wird, bis die an dem Kondensator (8) anstehende Spannung (U C ) einen Schwellenwert (U CS ) unterschreitet, wobei die hierfür benötigte Zeit eine erste Hilfsgröße für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung (U v ) ist,
  • - daß der Kondensator (8) nach dem Unterschreiten des Schwellenwertes (U CS ) erneut auf die geregelte Spannung (U R ) aufgeladen und daran anschließend nach einer e-Funktion mit der zweiten Zeitkonstante ( τ 2 ) entladen wird, bis die an dem Kondensator (8) anstehende Spannung (U C ) den Schwellenwert (U CS ) unterschritten hat, wobei die für die Entladung bis zu dem Schwellenwert (U CS ) benötigte Zeit eine zweite Hilfsgröße für die Ermittlung der Dauer des Ausfalls der Versorgungsspannung (U v ) ist,
  • - daß der Kondensator (8) wieder auf die geregelte Spannung (U R ) aufgeladen wird und
  • - daß sich die Dauer des Ausfalls der Versorgungsspannung (U v ) aus der Differenz zwischen der zweiten Hilfsgröße und der ersten Hilfsgröße, multipliziert mit dem Verhältnis aus der ersten Zeitkonstante (τ1 ) und der zweiten Zeitkonstante ( t 2 ), ergibt.
1. Method for determining the duration of the failure of the supply voltage in a microprocessor system, characterized in that
  • - That a capacitor ( 8 ) is charged to a regulated voltage (U R ) in normal operation,
  • - that the capacitor (8) upon failure of the supply voltage (U v) is discharged according to an exponential function with a first time constant 1),
  • - That the discharge of the capacitor ( 8 ) on the return of the supply voltage (U v ) after an e-function with a second time constant ( t 2 ), which is significantly smaller than the first time constant ( τ 1 ) , continues until the voltage (U C ) at the capacitor ( 8 ) falls below a threshold value (U CS ) , the time required for this being a first auxiliary variable for determining the duration of the failure of the supply voltage (U v ) ,
  • - That the capacitor ( 8 ) after falling below the threshold value (U CS ) recharged to the regulated voltage (U R ) and then discharged after an e-function with the second time constant ( τ 2 ) until the on the capacitor (8) voltage pending (U C) the threshold value (U CS) has fallen below, wherein the time up to the threshold value (U CS) required for the discharge is a second auxiliary value for determining the duration of the failure of the supply voltage (U v) ,
  • - That the capacitor ( 8 ) is recharged to the regulated voltage (U R ) and
  • - That the duration of the failure of the supply voltage (U v ) results from the difference between the second auxiliary variable and the first auxiliary variable, multiplied by the ratio of the first time constant ( τ 1 ) and the second time constant ( t 2 ) .
2. Schaltungsanordnung zur Durchführung des Verfahrens nach Anspruch 1, dadurch gekennzeichnet,
  • - daß ein Kondensator (8) über einen ersten Widerstand (9) und einen ersten Schalter (10; 10′) mit der geregelten Spannung (U R ) verbunden ist,
  • - daß der erste Schalter (10; 10′) bei Ausfall der Versorgungsspannung (U v ) geöffnet ist,
  • - daß parallel zu dem Kondensator (8) ein zweiter Widerstand (11) angeordnet ist,
  • - daß zur Verkleinerung der Zeitkonstante der Entladung des Kondensators (8) ein dritter Widerstand (12) über einen zweiten Schalter (13; 13′) zu dem Kondensator (8) parallelgeschaltet ist,
  • - daß der dritte Widerstand (12) wesentlich größer als der erste Widerstand (9) und der zweite Widerstand (11) wesentlich größer als der dritte Widerstand (12) gewählt ist und
  • - daß die an dem Kondensator (8) anstehende Spannung (U C ) einem Schwellenwertschalter (16; 24) mit hochohmigem Eingang zugeführt ist, der dem Microprozessor (4) ein Signal zuführt, wenn die an dem Kondensator (8) anstehende Spannung (U C ) den Schwellenwert (U CS ) unterschreitet.
2. Circuit arrangement for performing the method according to claim 1, characterized in
  • - That a capacitor ( 8 ) via a first resistor ( 9 ) and a first switch ( 10; 10 ' ) is connected to the regulated voltage (U R ) ,
  • - That the first switch ( 10; 10 ' ) is open when the supply voltage (U v ) fails,
  • - That a second resistor ( 11 ) is arranged in parallel with the capacitor ( 8 ),
  • - That to reduce the time constant of the discharge of the capacitor ( 8 ), a third resistor ( 12 ) is connected in parallel to the capacitor ( 8 ) via a second switch ( 13; 13 ' ),
  • - That the third resistor ( 12 ) is much larger than the first resistor ( 9 ) and the second resistor ( 11 ) is chosen much larger than the third resistor ( 12 ) and
  • - That the voltage (U C ) applied to the capacitor ( 8 ) is supplied to a threshold switch ( 16; 24 ) with a high-impedance input which supplies the microprocessor ( 4 ) with a signal when the voltage (U ) applied to the capacitor ( 8 ) C ) falls below the threshold (U CS ) .
3. Schaltungsanordnung nach Anspruch 2, dadurch gekennzeichnet,
  • - daß der zweite Schalter (13′), der Kondensator (8), der erste Widerstand (9) und der erste Schalter (10′) in Reihe geschaltet und derart mit der geregelten Spannung (U R ) verbunden sind, daß der das eine Ende der Reihenschaltung bildende Anschluß des zweiten Schalters (13′) mit dem Bezugspotential verbunden ist,
  • - daß der dritte Widerstand (12) parallel zu der Reihenschaltung des zweiten Schalters (13′) und des Kondensators (8) angeordnet ist,
  • - daß der zweite Schalter (13′) nur bei Ausfall der Versorgungsspannung (U v ) geöffnet ist und
  • - daß die an dem Kondensator (8) anstehende Spannung (U C ) dem Schwellenwertschalter (24) über den bei vorhandener Versorgungsspannung (U v ) geschlossenen zweiten Schalter (13′) zugeführt ist.
3. Circuit arrangement according to claim 2, characterized in that
  • - That the second switch ( 13 ' ), the capacitor ( 8 ), the first resistor ( 9 ) and the first switch ( 10' ) are connected in series and are connected to the regulated voltage (U R ) such that the one End of the series circuit connection of the second switch ( 13 ' ) is connected to the reference potential,
  • - That the third resistor ( 12 ) is arranged in parallel with the series circuit of the second switch ( 13 ' ) and the capacitor ( 8 ),
  • - That the second switch ( 13 ' ) is only open if the supply voltage (U v ) fails and
  • - That the voltage (U C ) applied to the capacitor ( 8 ) is supplied to the threshold switch ( 24 ) via the second switch ( 13 ' ) which is closed when the supply voltage (U v ) is present.
DE19873732184 1987-09-24 1987-09-24 Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system Expired DE3732184C1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
DE19873732184 DE3732184C1 (en) 1987-09-24 1987-09-24 Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE19873732184 DE3732184C1 (en) 1987-09-24 1987-09-24 Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system

Publications (1)

Publication Number Publication Date
DE3732184C1 true DE3732184C1 (en) 1989-02-16

Family

ID=6336778

Family Applications (1)

Application Number Title Priority Date Filing Date
DE19873732184 Expired DE3732184C1 (en) 1987-09-24 1987-09-24 Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system

Country Status (1)

Country Link
DE (1) DE3732184C1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0798624A2 (en) * 1996-03-29 1997-10-01 Siemens Aktiengesellschaft Process for operating a microcontroller at reduced operating voltage, device for implementing the process and use of the process and/or device
DE102016214139A1 (en) * 2016-08-01 2018-02-01 Continental Teves Ag & Co. Ohg Time monitoring device and vehicle-to-X communication module

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3112283A1 (en) * 1980-03-28 1982-04-01 Pitney Bowes, Inc., 06926 Stamford, Conn. POWER FAILURE STORAGE PROTECTION SYSTEM

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3112283A1 (en) * 1980-03-28 1982-04-01 Pitney Bowes, Inc., 06926 Stamford, Conn. POWER FAILURE STORAGE PROTECTION SYSTEM

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0798624A2 (en) * 1996-03-29 1997-10-01 Siemens Aktiengesellschaft Process for operating a microcontroller at reduced operating voltage, device for implementing the process and use of the process and/or device
EP0798624A3 (en) * 1996-03-29 2008-03-19 BSH Bosch und Siemens Hausgeräte GmbH Process for operating a microcontroller at reduced operating voltage, device for implementing the process and use of the process and/or device
DE102016214139A1 (en) * 2016-08-01 2018-02-01 Continental Teves Ag & Co. Ohg Time monitoring device and vehicle-to-X communication module
US10594726B2 (en) 2016-08-01 2020-03-17 Continental Teves Ag & Co. Ohg Device for monitoring the time and vehicle-to-X-communication module
DE102016214139B4 (en) 2016-08-01 2021-10-28 Continental Teves Ag & Co. Ohg Time monitoring device and vehicle-to-X communication module

Similar Documents

Publication Publication Date Title
EP0127139B1 (en) Supply-voltage monitoring circuit
DE3340008A1 (en) POWER SUPPLY CIRCUIT FOR A CONTROL UNIT
DE4440127A1 (en) Motor vehicle IC engine management control device
EP0301442A2 (en) Circuit for checking the leads to a switch or a sensor
DE3732184C1 (en) Method and circuit arrangement to determine the duration of a power supply failure in a microprocessor system
DE3214006A1 (en) DEVICE FOR RESETTING CALCULATIONS
WO1982000594A1 (en) Power supply circuit for electronic safety ski bindings
DE1277915B (en) Time-delayed electronic relay
DE2808085C2 (en) Circuit arrangement for monitoring the phase sequence in a three-phase network
DE3016108A1 (en) VOLTAGE MEASURING
DE3441461A1 (en) RESERVE POWER SUPPLY CIRCUIT FOR A CONTROL CIRCUIT
DE1953760C3 (en) Electronic program control arrangement
DE60037224T2 (en) Method for measuring an electrical voltage and arrangement for carrying out the method
DE3227264A1 (en) Arrangement for monitoring a plant actuated by pressure medium
DE2712813A1 (en) DIGITAL DEVICE FOR ADJUSTING THE VOLTAGE ON CAPACITORS (DIGITAL ADJUSTMENT OF RC GENERATORS)
DE3130307A1 (en) Electrical monitoring device for an electronic control device
DE2807814C2 (en) Voltage monitoring circuit
DE2262422A1 (en) CIRCUIT ARRANGEMENT FOR AUTOMATIC EXPOSURE TIME CONTROL FOR PHOTOGRAPHIC CAMERAS
DE2949941C2 (en)
DE2713164C2 (en) Method and device for preventing the processing of the malfunctions caused by insufficient supply voltage during the operating voltage failure in a battery-backed semiconductor memory
DE2743606C2 (en) Electronic volume presetter
DE3002646C2 (en) Circuit arrangement for supplying an electronic digital device implemented in CMOS technology
EP0300440A2 (en) Reset circuit for microprocessors and counters
DE3911188A1 (en) ARRANGEMENT FOR INITIALIZING A MICROPROCESSOR
DE1149926B (en) Binary counter for processing data

Legal Events

Date Code Title Description
8100 Publication of the examined application without publication of unexamined application
D1 Grant (no unexamined application published) patent law 81
8364 No opposition during term of opposition
8320 Willingness to grant licenses declared (paragraph 23)
8327 Change in the person/name/address of the patent owner

Owner name: ABB PATENT GMBH, 68526 LADENBURG, DE