DE3417825A1 - Circuit arrangement for monitoring a program sequence in a microprocessor - Google Patents
Circuit arrangement for monitoring a program sequence in a microprocessorInfo
- Publication number
- DE3417825A1 DE3417825A1 DE19843417825 DE3417825A DE3417825A1 DE 3417825 A1 DE3417825 A1 DE 3417825A1 DE 19843417825 DE19843417825 DE 19843417825 DE 3417825 A DE3417825 A DE 3417825A DE 3417825 A1 DE3417825 A1 DE 3417825A1
- Authority
- DE
- Germany
- Prior art keywords
- microprocessor
- output
- reset
- supply voltage
- counter
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
Schaltungsanordnung zur Überwachung einesCircuit arrangement for monitoring a
Programmablaufs in einem Mikroprozessor Die Erfindung betrifft eine Schaltungsanordnung zur Überwachung eines Programmablaufs in einem Mikroprozessor.Program flow in a microprocessor The invention relates to a Circuit arrangement for monitoring a program sequence in a microprocessor.
Bei Geräten mit Mikroprozessoren kann es vorkommen, daß beispielsweise durch einen Störimpuis ein Programm unterbrochen, d. h. nicht ordnungsgemäß abgearbeitet wird. Unter Umständen blockiert sich dann der Mikroprozessor selbst, d. h. er erledigt überhaupt keine weiteren Aufgaben mehr. Um dies zu verhindern, ist eine Programmüberwachung notwendig, die den Mikroprozessor, insbesondere dessen Programm-Counter, auf eine definierte Anfangsadresse zurücksetzt. Bei bekannten Überwachungs verfahren erfolgt dies mit im Programm eingebauten Software-Routinen. Dabei sind jedoch Störungen möglich, die auch diese Überwachungsroutinen wirkungslos werden lassen.In devices with microprocessors it can happen that, for example a program is interrupted by a glitch, d. H. not processed properly will. The microprocessor may then block itself, i. H. he is taking care of no more tasks at all. To prevent this, there is a program monitoring necessary that the microprocessor, especially its program counter, to a resets the defined start address. In known monitoring procedures takes place this with the software routines built into the program. However, there are disturbances possible, which also make these monitoring routines ineffective.
Aufgabe der Erfindung ist es daher, eine Schaltungsanordnung zur Überwachung des Programmablaufs so aus zufuhren, daß sie weitgehend unabhängig vom Mikroprozessor selbst arbeitet.The object of the invention is therefore to provide a circuit arrangement for monitoring of the program sequence in such a way that it is largely independent of the microprocessor himself works.
Diese Aufgabe wird erfindungsgemäß dadurch gelost, daß ein Rücksetzeingang des Mikroprozessors mit einem Ausgang eines ersten Zeitglieds und ein Rücksetzeingang des ersten Zeitglieds mit einem Ausgang des Mikroprozessors verbunden ist, daß die Laufzeit des ersten Zeitglieds länger ist als die ungestörte Programmlaufzeit, daß am Ausgang des Mikroprozessors bei jedem Programmdurchlauf ein Prüfsignal abgegeben wird, daß das erste Zeitglied jedesmal bei Auftreten eines Prüfsignals zurückgesetzt und neu gestartet wird und daß der Mikroprozessor in seinen Anfangszustand zurückgesetzt wird, wenn das erste Zeitglied abläuft. Als Fehlerkriterium wird dabei ausgewertet, daß der Mikroprozessor innerhalb einer vorgegebenen Zeit einen bestimmten Programmschritt, in dem das Prüfsignal abgegeben wird, nicht erreicht. Durch die kombinierte Lösung von Hardware und Software wird erreicht, daß insbesondere Fehler, die beispielsweise zum vollständigen Blockieren eines Programmablaufs führen, mit Sicherheit erkannt werden.This object is achieved according to the invention in that a reset input of the microprocessor with an output of a first timer and a reset input of the first timer is connected to an output of the microprocessor that the The runtime of the first timer is longer than the undisturbed program runtime that at the output of the microprocessor with each program run a test signal is output that the first timer each time a test signal occurs reset and restart and that the microprocessor is in its initial state is reset when the first timer expires. The error criterion is evaluated that the microprocessor within a predetermined time a certain Program step in which the test signal is output not reached. Through the combined solution of hardware and software is achieved that in particular errors, which, for example, lead to a complete blocking of a program sequence Security can be recognized.
Das erste Zeitglied kann auf einfache Weise mit einem astabilen Multivibrator realisiert sein, der beim Einschalten der Versorgungsspannung zurückgesetzt wird.The first timing element can be easily operated with an astable multivibrator be implemented, which is reset when the supply voltage is switched on.
Bei einer Schaltungsanordnung, bei der der Mikroprozessor bei Anstieg seiner Versorgungsspannung durch einen die Versorgungsspannung mit einem Grenzwert vergleichenden Komparator und ein nachgeschaltetes zweites Zeitglied verzögert freigegeben und bei Abfall seiner Versorgungsspannung unter einen Grenzwert zurückgesetzt wird, können vorteilhafterweise der Komparator und das erste Zeitglied ausgangsseitig über eine konjunktive Verknüpfung und über das zweite Zeitglied mit dem Rücksetzeingang des Mikroprozessors verbunden sein. Damit können die Programmüberwachung und die Versorgungsspannungsüberwachung für den Mikroprozessor mit geringem Aufwand kombiniert werden.In a circuit arrangement in which the microprocessor increases when its supply voltage by a supply voltage with a limit value comparative comparator and a downstream second timer released with a delay and is reset when its supply voltage drops below a limit value, can advantageously the comparator and the first timing element on the output side via a conjunctive link and via the second timing element with the reset input of the microprocessor. This allows the program monitoring and the Supply voltage monitoring for the microprocessor combined with little effort will.
Das zweite Zeitglied kann besonders einfach als RC-Glied realisiert sein, dessen Widerstand mit einer Diode so überbrückt ist, daß der Mikroprozessor unverzögert zurückgesetzt wird, sobald die Versorgungsspannung unter ihren Grenzwert fällt oder das erste Zeitglied abläuft.The second timing element can be implemented particularly simply as an RC element its resistance is bridged with a diode so that the microprocessor is reset immediately as soon as the supply voltage falls below its limit value falls or the first timer expires.
In einer vorteilhaften Ausführungsform kann das erste Zeitglied ein von einem Taktgeber angesteuerter Zähler sein, der beim Einschalten der Versorgungsspannung oder durch das Prüfsignal auf einen ersten Zählerstand gesetzt wird und der bei Erreichen eines zweiten Zählerstandes den Mikroprozessor in seinen Anfangszustand zurücksetzt. Die Verwendung eines Zählers als Zeitglied ist insbesondere dann vorteilhaft, wenn in der Schaltung ohnehin bereits ein Taktgeber vorhanden ist.In an advantageous embodiment, the first timing element can be be controlled by a clock counter that when the supply voltage is switched on or is set to a first count by the test signal and the at Reaching a second count the microprocessor in its initial state resets. The use of a counter as a timing element is particularly advantageous when if a clock is already present in the circuit.
Bei einer Schaltungsanordnung, bei der der Mikroprozessor bei Anstieg seiner Versorgungsspannung durch einen die Versorgungsspannung mit einem Grenzwert vergleichenden Komparator und ein diesem nachgeschaltetes Zeitglied verzögert freigegeben wird, können zwei Zähler hintereinander geschaltet sein, wobei der Takteingang des ersten Zählers mit einem Taktgeber, der Rücksetzeingang des ersten Zählers mit dem Ausgang des Mikroprozessors, der Sperreingang des ersten Zählers mit dem Komparator, der Rücksetzeingang des zweiten Zählers ebenfalls mit dem Komparator und der Ausgang des zweiten Zählers mit dem Rücksetzeingang des Mikroprozessors verbunden sind. Damit werden die Funktionen der Versorgungsspannungsüberwachung und der Programmüberwachung unter Verwendung von Zählern miteinander kombiniert.In a circuit arrangement in which the microprocessor increases when its supply voltage by a supply voltage with a limit value comparing comparator and a delayed timer downstream of this released , two counters can be connected in series, whereby the clock input of the first counter with a clock, the reset input of the first counter with the Output of the microprocessor, the blocking input of the first counter with the comparator, the reset input of the second counter also with the comparator and the output of the second counter are connected to the reset input of the microprocessor. This enables the functions of supply voltage monitoring and program monitoring combined using counters.
Vorteilhafterweise ist zwischen dem Ausgang des Mikroprozessors und dem ersten Zeitglied ein Differenzierglied eingefügt. Da die Programmüberwachung somit nur noch auf Signalwechsel anspricht, wird verhindert, daß ein an diesem Ausgang des Mikroprozessors anstehendes Fehlsignal die Funktion der Schaltung blockiert.Advantageously, between the output of the microprocessor and a differentiator inserted into the first timing element. Since the program monitoring thus only responds to a signal change, this prevents a signal at this output The pending fault signal of the microprocessor blocks the function of the circuit.
Die Erfindung wird nachfolgend anhand zweier, in den Fig. 1 und 3 dargestellte Ausführungsbeispiele sowie eines in Fig. 2 dargestellten Diagramms näher erläutert.The invention is explained below with reference to two, in FIGS. 1 and 3 Exemplary embodiments shown and a diagram shown in FIG. 2 explained in more detail.
Fig. 1 zeigt in Form eines vereinfachten Schaltbildes ein erstes Ausführungsbeispiel, bei dem Programmüberwachung und Versorgungsspannungsüberwachung miteinander kombiniert sind.Fig. 1 shows a first embodiment in the form of a simplified circuit diagram, in which program monitoring and supply voltage monitoring are combined are.
Die für den Mikroprozessor 1 und die weiteren Bausteine erforderliche Spannungsversorgung ist in Fig. 1 nur schematisch dargestellt. Aus einer Spannungsquelle U wird über einen Ladewiderstand 10 ein Ladekondensator 11 aufgeladen. Am Ladekondensator 11 steht damit die geglättete, aber ungeregelte Versorgungsspannung Uv an. Mit einem Festspannungsregler 12 wird daraus eine geregelte Versorgungsspannung Uv' für den Mikroprozessor 1 und die übrigen Bausteine gebildet. Die geglättete Versorgungsspannung Uv wird mit einem Komparator 4 mit einem Spannungssollwert U5 verglichen. Der Ausgang des Komparators 4 ist mit einem Eingang eines UND-Gatters 5 verbunden. Der Ausgang des UND-Gatters 5 ist über ein RC-Glied 3 mit der Reihenschaltung eines Widerstands 3a und eines Kondensators 3b mit dem Bezugspotential verbunden. Der Widerstand 3a ist mit einer Diode 3c überbruckt, wobei die Kathode der Diode 3c dem UND-Gatter 5 zugewandt ist. Der Verbindungspunkt von Widerstand 3a und Kondensator 3b ist mit einem Rücksetzeingang R des Mikroprozessors 1 verbunden.The one required for the microprocessor 1 and the other modules The power supply is only shown schematically in FIG. 1. From a voltage source U, a charging capacitor 11 is charged via a charging resistor 10. On the charging capacitor 11 is the smoothed but unregulated supply voltage Uv. With a Fixed voltage regulator 12 becomes a regulated supply voltage Uv 'for the Microprocessor 1 and the other components are formed. The smoothed supply voltage Uv is compared with a comparator 4 with a voltage setpoint U5. The exit of the comparator 4 is connected to an input of an AND gate 5. The exit the AND gate 5 is via an RC element 3 with the series connection of a resistor 3a and a capacitor 3b connected to the reference potential. The resistor 3a is bridged with a diode 3c, the cathode of the diode 3c being the AND gate 5 faces. The connection point of resistor 3a and capacitor 3b is with a reset input R of the microprocessor 1 connected.
Einem Ausgang Pl des Mikroprozessors 1 ist ein Differenzierglied 6 nachgeschaltet, das aus einem Kondensator 6a und einem Widerstand 6b besteht. Der Verbindungspunkt von Kondensator 6a und Widerstand 6b ist mit einem Rücksetzeingang eines astabilen Multivibra- tors 2 verbunden, dessen Rücksetzausgang mit einem zweiten Eingang des UND-Gatters 5 verbunden ist. Der astabile Multivibrator ist so ausgeführt, daß er beim Einschalten in der Rücksetzlage ist.A differentiating element 6 is an output P1 of the microprocessor 1 downstream, which consists of a capacitor 6a and a resistor 6b. Of the The connection point of capacitor 6a and resistor 6b is with a reset input of an astable multivibra- tor 2 connected, its reset output is connected to a second input of the AND gate 5. The astable multivibrator is designed so that it is in the reset position when it is switched on.
Das Programm des Mikroprozessors 1 ist so ausgeführt, daß im Rahmen des normalen Arbeitsablaufs oder als gesonderter Prüfschritt am Ausgang Pl in regelmäßigen Abständen ein Prüfsignal abgegeben wird, sofern das Programm normal abläuft. Die Kippzeit des Multivibrators 2 in den Setzzustand ist größer als die Zeitspanne zwischen zwei Prüfsignalen am Ausgang Pl.The program of the microprocessor 1 is designed so that in the frame of the normal workflow or as a separate test step at output Pl in regular A test signal is issued at intervals, provided the program is running normally. the Tilting time of the multivibrator 2 in the set state is greater than the time between two test signals at output Pl.
Die Funktion der Schaltung nach Fig. 1 wird im folgenden anhand des Diagramms nach Fig. 2 erläutert. Fig.2 zeigt den zeitlichen Verlauf der geglätteten Versorgungsspannung Uv und der geregelten Versorgungsspannung U beim Ein- und Ausschalten der Spannungsquelle U. Beim Einschalten wird der Ladekondensator 11 aufgeladen. Um Fehler zu vermeiden darf der Programmablauf des Mikroprozessors 1 erst freigegeben werden, wenn der Mikroprozessor ausreichende Zeit an Spannung liegt. Vor der Freigabe muß nämlich der interne Oszillator anschwingen, die internen Versorgungsspannungen müssen aufgebaut und verschiedene Speicher gesetzt werden. Bei der Schaltung nach Fig. 1 wird daher die geglättete Versorgungsspannung Uv mit einer Sollspannung U5 verglichen, die über der am Regler 12 eingestellten festen Spannung Uv' liegt.The function of the circuit according to FIG. 1 is described below with reference to the Diagram of Fig. 2 explained. Fig.2 shows the time course of the smoothed Supply voltage Uv and the regulated supply voltage U when switching on and off the voltage source U. When switching on, the charging capacitor 11 is charged. In order to avoid errors, the program sequence of the microprocessor 1 must first be released when the microprocessor has been powered up for sufficient time. Before the release the internal oscillator must start to oscillate, the internal supply voltages must be set up and various memories set. When switching to Fig. 1 is therefore the smoothed supply voltage Uv with a target voltage U5 compared, which is above the fixed voltage Uv 'set on the controller 12.
Solange der Komparator 4 nicht angesprochen hat, d.h.As long as the comparator 4 has not responded, i.e.
sein Ausgang Null-Signal führt, steht auch am Ausgang des UND-Gatters 5 und damit am Rücksetzeingang R des Mikroprozessors 1 Null-Signal an. Der Mikroprozessor 1 wird jedoch erst mit einem ~Eins"-Signal an seinem Rücksetzeingang R freigegeben.its output carries a zero signal, is also available at the output of the AND gate 5 and thus at the reset input R of the microprocessor 1 zero signal. The microprocessor However, 1 is only enabled with a "one" signal at its reset input R.
Zu dem in Fig. 2 mit t2 bezeichneten Zeitpunkt überschreitet die Versorgungsspannung Uv den Schwellwert Us. Damit geht der Ausgang des UND-Gatters 5 auf Eins, da auch der Ausgang des astabilen Multivibrators 2 und damit der zweite Eingang des UND-Gatters 5 auf Eins liegt. Sobald die mit dem RC-Glied 3 vorgegebene Verzögerungszeit t2 abgelaufen ist, nämlich zu dem in Fig. 2 mit t3 bezeichneten Zeitpunkt erscheint am Rücksetzeingang R des Mikroprozessors 1 ein "Eins"-Signal und der Mikroprozessor 1 wird somit freigegeben.At the point in time designated by t2 in FIG. 2, the supply voltage exceeds Uv the threshold value Us. So that the output of the AND gate 5 goes to one, there too the output of the astable multivibrator 2 and thus the second input of the AND gate 5 is on one. As soon as the delay time t2 has expired, namely appears at the point in time denoted by t3 in FIG. 2 at the reset input R of the microprocessor 1 a "one" signal and the microprocessor 1 is thus released.
Beim Ausschalten des Geräts oder bei einer Spannungsunterbrechung muß der Mikroprozessor in den Resetzustand übergehen, bevor seine Versorgungsspannung zusammenbricht. Dadurch ist es möglich, den letzten Befehl noch richtig auszuführen. Dies ist zwingend notwendig bei Geräten mit Datenrettung durch ein externes RAM mit Batteriepufferung oder bei Geräten mit "Stand by-Betrieb". Das Zurücksetzen bei Zusammenbrechen der Versorgungsspannung wird erreicht, indem das Ausgangssignal des Komparators 4 auf Null geht, sobald die Versorgungsspannung UV unter ihren Schwellwert U5 sinkt. Damit ist die UND-Bedingung am UND-Gatter 5 nicht mehr erfüllt und das Ausgangssignal des UND-Gatters 5 geht ebenfalls auf Null. Dadurch wird der Kondensator 3b über die Diode 3c praktisch unverzögert entladen und der Mikroprozessor 1 zurückgesetzt.When the device is switched off or in the event of a power failure the microprocessor must go into the reset state before its supply voltage collapses. This makes it possible to execute the last command correctly. This is absolutely necessary for devices with data recovery through an external RAM with battery backup or for devices with "stand-by mode". The reset when the supply voltage collapses is achieved by the output signal of the comparator 4 goes to zero as soon as the supply voltage UV falls below its threshold value U5 sinks. This means that the AND condition at AND gate 5 is no longer met and that The output signal of the AND gate 5 also goes to zero. This becomes the capacitor 3b discharged practically instantaneously via the diode 3c and the microprocessor 1 is reset.
Der Mikroprozessor 1 erhält jedoch bis zum Zeitpunkt t5, an dem die Versorgungsspannung Uv unter den Sollwert für die geregelte Spannung Uv' sinkt, noch eine ausreichende Spannung, um seinen Befehl richtig abzuarbeiten. Die zwischen den Zeitpunkten t4 und t5 liegende Zeitspanne ist durch die Entladung des Ladekondensators 11 bestimmt.However, the microprocessor 1 receives until the time t5, at which the Supply voltage Uv drops below the setpoint for the regulated voltage Uv ', still sufficient tension to properly execute his command. The between The time span lying in time t4 and t5 is due to the discharge of the charging capacitor 11 determined.
Solange der Mikroprozessor 1 sein eingegebenes Programm richtig abarbeitet, wird durch einen entsprechenden Programmschritt in festen Zeitintervallen an seinem Ausgang P1 ein Prüfsignal abgegeben. Dieses wird mit dem Differenzierglied 6 differenziert und setzt den astabilen Multivibrator 2 zurück. Da die Zeit zwischen zwei Prüfsignalen kürzer ist als die Kippzeit des astabilen Multivibrators 2, kann dieser an seinem mit dem UND-Gatter 5 verbundenen Ausgang nicht auf "Null" kippen, so daß der Ausgang des UND-Gatters 5 auf Eins bleibt.As long as the microprocessor 1 is processing its entered program correctly, is at its Output P1 issued a test signal. This is differentiated with the differentiator 6 and resets the astable multivibrator 2. Because the time between two test signals is shorter than the tilting time of the astable multivibrator 2, this can be on his with the AND gate 5 connected output not toggle to "zero", so that the output of AND gate 5 remains at one.
Wenn jedoch der Mikroprozessor beispielsweise durch einen Störimpuls blockiert wird, so tritt innerhalb der vorgegebenen Zeit kein Prüfsignal mehr auf und der astabile Multivibrator 2 kippt an seinem Ausgang auf Null. Damit geht auch das Ausgangssignal des UND-Gatters 5 auf Null, so daß der Kondensator 3b über die Diode 3c wie beim Zusammenbruch der Versorgungsspannung schnell entladen wird und der Mikroprozessor zurückgesetzt wird. Sobald das monostabile Kippglied 2 wieder auf das Ausgangssignal Eins umschaltet, wird der Mikroprozessor 1 wieder freigegeben und kann mit der Programmabarbeitung von vorn beginnen.However, if the microprocessor, for example, by a glitch is blocked, no more test signal occurs within the specified time and the astable multivibrator 2 tilts to zero at its output. This also works the output of the AND gate 5 to zero, so that the capacitor 3b via the Diode 3c is discharged quickly as if the supply voltage collapses and the microprocessor is reset. As soon as the monostable flip-flop 2 again switches to the output signal one, the microprocessor 1 is enabled again and can start the program from the beginning.
Mit der Schaltung nach Fig. 1 wird also sowohl die Versorgungsspannung als auch der Programmablauf des Mikroprozessors 1 überwacht.With the circuit according to FIG. 1, both the supply voltage and the program sequence of the microprocessor 1 is monitored.
Ein zweites Ausführungsbeispiel, bei dem beide Zeitglieder mit Zählern realisiert sind, ist in Fig. 3 dargestellt. Dabei sind zwei Zähler 7 und 8 hintereinandergeschaltet, d. h. der Takteingang des zweiten Zählers 8 mit einem Ausgang des ersten Zählers 7 verbunden. Der Takteingang des ersten Zählers 7 ist mit einem Taktgeber 9 verbunden. Diese Schaltung enthält ebenfalls einen Komparator 4, der wie bei der Schaltung nach der Fig. 1 die Versorgungsspannung Uv mit einem Schwellwert U5 vergleicht. Der Ausgang des Komparators 4 ist mit einem Sperreingang des ersten Zählers 7 und mit einem Rücksetzeingang des zweiten Zählers 8 verbunden. Ferner ist wie in Fig. 1 dem Ausgang Pl des Mikroprozessors 1 ein Differenzierglied, bestehend aus dem Kondensator 6a und dem Widerstand 6b nachgeschaltet.A second embodiment in which both timing elements with counters are realized is shown in FIG. 3. Two counters 7 and 8 are connected in series, d. H. the clock input of the second counter 8 with an output of the first counter 7 connected. The clock input of the first counter 7 is connected to a clock generator 9. This circuit also contains a comparator 4, which is the same as in the circuit according to FIG. 1, the supply voltage Uv with a threshold U5 compares. The output of the comparator 4 is connected to a blocking input of the first Counter 7 and connected to a reset input of the second counter 8. Further is as in Fig. 1, the output Pl of the microprocessor 1, a differentiator, consisting downstream from the capacitor 6a and the resistor 6b.
Parallel zum Widerstand 6b ist eine Diode 6c vorgesehen, die so geschaltet ist, daß am Ausgang des Differenzierglieds 6 nur positive Impulse anstehen. Das Differenzierglied 6 ist ausgangsseitig mit dem Rücksetzeingang des ersten Zählers 7 verbunden. Ferner ist ein Ausgang des zweiten Zählers 8 mit dem Rücksetzeingang R des Mikroprozessors 1 verbunden.A diode 6c, which is switched in this way, is provided in parallel with the resistor 6b is that at the output of the differentiator 6 there are only positive pulses. That Differentiator 6 is on the output side with the reset input of the first counter 7 connected. Furthermore, an output of the second counter 8 is connected to the reset input R of the microprocessor 1 connected.
Beim Einschalten der Anordnung stehen zunächst beide Zähler auf Null. Solange die Versorgungsspannung Uv kleiner als der Schwellwert U5 ist, steht am Ausgang des Komparators 4 ein Eins-Signal an, das beide Zähler sperrt. Erst wenn die Versorgungsspannung Uv den Schwellwert U5 überschreitet, werden beide Zähler freigegeben und die Impulse des Taktgebers 9 gezählt.When the arrangement is switched on, both counters are initially at zero. As long as the supply voltage Uv is less than the threshold value U5, is on The output of the comparator 4 has a one signal which blocks both counters. Only when the supply voltage Uv exceeds the threshold value U5, both counters released and the pulses of the clock 9 counted.
Sobald der Ausgang des Zählers 8 ein Eins-Signal erreicht, wird der Mikroprozessor 1 freigegeben. Die Verzögerungszeit beim Einschalten hängt also in diesem Fall von der Taktfrequenz des Taktgebers 9 und dem Produkt der Untersetzungsverhältnisse der beiden Zähler 7 und 8 ab.As soon as the output of the counter 8 reaches a one signal, the Microprocessor 1 enabled. The delay time when switching on is therefore dependent on in this case on the clock frequency of the clock generator 9 and the product of the reduction ratios of the two counters 7 and 8.
Bei dieser Schaltung wird der Zähler 7 zyklisch über ein Prüfsignal am Ausgang Pl des Mikroprozessors 1 zurückgesetzt. Ansonsten würde der Zähler 7 die Impulse des Taktgenerators 9 stets weiterzählen und - in der Frequenz entsprechend untersetzt - an den Zähler 8 weitergeben. Nach einer Anzahl von Impulsen, die von der Wertigkeit des gewählten Ausgangs des Zählers 8 abhängt, würde dann der Mikroprozessor 1 zurückgesetzt werden. Der Zeitabstand zwischen zwei Prüfsignalen ist jedoch so gewählt, daß der Zähler 7 immer zurückgesetzt wird, bevor an seinem Ausgang wieder ein Signalwechsel stattfindet.In this circuit, the counter 7 is cyclically via a test signal reset at output P1 of microprocessor 1. Otherwise the counter would be 7 the pulses of the clock generator 9 always continue to count and - accordingly in frequency scaled down - pass on to the counter 8. After a number of pulses from the value of the selected output of the counter 8 depends, the microprocessor would then 1 reset will. The time interval between two test signals however, is chosen so that the counter 7 is always reset before his Output a signal change takes place again.
Bei Zusammenbruch der Versorgungsspannung Uv wird der Zähler 8 unverzögert zurückgesetzt, sobald die Versorgungsspannung Uv den Schwellwert US unterschreitet.When the supply voltage Uv breaks down, the counter 8 is instantaneous reset as soon as the supply voltage Uv falls below the threshold value US.
Damit erfolgt dann auch die gewünschte unverzögerte Rücksetzung des Mikroprozessors 1 bei Spannungsausfall.This then also results in the desired instantaneous resetting of the Microprocessor 1 in the event of a power failure.
Mit der Schaltung nach Fig. 3 wird also ebenfalls sowohl die Versorgungsspannung als auch der Programmablauf des Mikroprozessors überwacht. Diese digitalisierte Schaltungsversion ist insbesondere dann geeignet, wenn ohnehin ein Taktimpuls vorhanden ist.With the circuit according to FIG. 3, both the supply voltage and the program sequence of the microprocessor is monitored. This digitized The circuit version is particularly suitable when a clock pulse is already present is.
- Leerseite -- blank page -
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE19843417825 DE3417825A1 (en) | 1984-05-14 | 1984-05-14 | Circuit arrangement for monitoring a program sequence in a microprocessor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
DE19843417825 DE3417825A1 (en) | 1984-05-14 | 1984-05-14 | Circuit arrangement for monitoring a program sequence in a microprocessor |
Publications (1)
Publication Number | Publication Date |
---|---|
DE3417825A1 true DE3417825A1 (en) | 1985-11-14 |
Family
ID=6235782
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
DE19843417825 Withdrawn DE3417825A1 (en) | 1984-05-14 | 1984-05-14 | Circuit arrangement for monitoring a program sequence in a microprocessor |
Country Status (1)
Country | Link |
---|---|
DE (1) | DE3417825A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19534525A1 (en) * | 1994-09-10 | 1996-03-14 | Holtek Microelectronics Inc | Reset signal generator |
-
1984
- 1984-05-14 DE DE19843417825 patent/DE3417825A1/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE19534525A1 (en) * | 1994-09-10 | 1996-03-14 | Holtek Microelectronics Inc | Reset signal generator |
DE19534525C2 (en) * | 1994-09-10 | 1998-07-02 | Holtek Microelectronics Inc | Reset signal generator |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE3315049C2 (en) | Monitoring circuit for a control system with microcomputer | |
EP0402508B1 (en) | Process and means for detecting a series of abnormal events in an electrical signal, especially the depolarisation signal of a heart | |
DE69114732T2 (en) | Device for monitoring the operation of a microprocessor system or the like. | |
WO1998043164A1 (en) | Watchdog circuit | |
EP0163670A1 (en) | Apparatus for monitoring electronic computing elements, particularly microprocessors. | |
DE3636852A1 (en) | MICROCOMPUTER RESET CIRCUIT | |
DE69522871T2 (en) | Improved timer for data processors | |
DE3417825A1 (en) | Circuit arrangement for monitoring a program sequence in a microprocessor | |
DE4023700C2 (en) | Circuit arrangement for monitoring the frequency of a signal sequence of an electronic device, in particular a microcomputer | |
EP0195457B1 (en) | Apparatus for self-monitoring a circuit comprising a microprocessor | |
EP0796035B1 (en) | Digital hearing-aid with processor supervision | |
EP0023695B1 (en) | Surveillance circuitry for an input voltage | |
DE3106869A1 (en) | Circuit for cancelling the resetting of a microprocessor | |
DE4430177A1 (en) | Monitoring device for a processor | |
WO2007033945A1 (en) | Microcontroller and method for the operation thereof | |
DE2064350A1 (en) | Monitoring device for signal-controlled steering devices | |
DE3130307A1 (en) | Electrical monitoring device for an electronic control device | |
DE3300222A1 (en) | System and device for resetting a circuit containing a microprocessor | |
DE2737133C2 (en) | Circuit arrangement for preventing double errors in a data processing system | |
DE3313209C1 (en) | Ripple-control receiver | |
DE3207120A1 (en) | Monitoring circuit for a microcomputer | |
DE3410257C2 (en) | ||
WO2002099443A2 (en) | Device for measuring frequency | |
EP0989494B1 (en) | Dual channel safe operating counter | |
DE3314928A1 (en) | Electronic circuit for reactive power compensation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
8141 | Disposal/no request for examination |