WO2009153262A1 - Control system - Google Patents

Control system Download PDF

Info

Publication number
WO2009153262A1
WO2009153262A1 PCT/EP2009/057475 EP2009057475W WO2009153262A1 WO 2009153262 A1 WO2009153262 A1 WO 2009153262A1 EP 2009057475 W EP2009057475 W EP 2009057475W WO 2009153262 A1 WO2009153262 A1 WO 2009153262A1
Authority
WO
WIPO (PCT)
Prior art keywords
eeprom
microcontroller
data
control system
system reset
Prior art date
Application number
PCT/EP2009/057475
Other languages
German (de)
French (fr)
Inventor
Horst Flock
Original Assignee
Afl Stribel Production 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 Afl Stribel Production Gmbh filed Critical Afl Stribel Production Gmbh
Publication of WO2009153262A1 publication Critical patent/WO2009153262A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C16/00Erasable programmable read-only memories
    • G11C16/02Erasable programmable read-only memories electrically programmable
    • G11C16/06Auxiliary circuits, e.g. for writing into memory
    • G11C16/30Power supply circuits

Definitions

  • the invention relates to a control system comprising a microcontroller and an EEPROM for storing data for the microcontroller.
  • the invention is therefore an object of the invention to improve a control system of the type mentioned in such a way that the access of the microcontroller to the EEPROM can be done trouble-free.
  • a switch is provided, which is controllable by a control terminal of the microcontroller, and that in the microcontroller, a system reset routine is provided which at a Pass on the control terminal outputs an interrupt signal which opens the switch for an interruption period and resets the EEPROM.
  • the advantage of the solution according to the invention is to be seen in the fact that thus can be ensured by the system reset routine in the microcontroller, which is automatically started after a malfunction of the microcontroller in this, that also a reset of the EEPROM takes place, so that in particular at its inputs fitting information or control commands are deleted and do not falsify the data to be transmitted in a later access of the microcontroller to the EEPROM.
  • the system reset routine outputs the interrupt signal without taking into account the state of the microcontroller and the EEPROM in which the malfunction occurred, it is preferably provided that the system reset routine output the interrupt signal after a defined waiting time from the start of the system reset routine.
  • This solution has the advantage that it creates the possibility of operating the EEPROM after the start of the system reset routine of the microcontroller for so long that it can complete processes that have already begun.
  • a particularly expedient solution provides that the defined waiting time corresponds at least to the writing time duration of the EEPROM. This can be ensured that in the event that, then, when occurring the malfunction has already started the EEPROM to write the transmitted data into its memory, the EEPROM has the ability to terminate this writing without being reset by the interrupt signal, so that the already completely transmitted data can be reliably stored in the EEPROM ,
  • the defined waiting time is at least 10 ms even better 20 ms.
  • the microcontroller exchanges data with the EEPROM via an interface.
  • Such an interface is, for example, a common interface used for EEPROMs.
  • the interface is an SPI interface.
  • the system reset routine effects a reset of the interface before the interruption signal is triggered. This deletes existing data and commands in the interface that were not executed due to the function control of the microcontroller.
  • the interrupt signal is terminated before an initialization of the interface by the system reset routine.
  • Fig. 1 is a schematic representation of an inventive
  • Control system with a microcontroller and an EEPROM.
  • FIG. 1 An embodiment of a control system according to the invention, shown in FIG. 1, comprises a microcontroller designated as a whole by 10, which is connected to a supply voltage on the one hand to a supply voltage UV and on the other hand to ground for operation.
  • the microcontroller 10 includes a plurality of terminals 12, which may be either outputs for control signals or inputs for signals.
  • the microcontroller 10 comprises connections 14 of an SPI interface unit 16, via which data is communicated with an SPI interface unit 18 of an EEPROM designated as a whole by 20, for example an EEPROM of the type 25AA256 or 25LC256 with SPI interface from Microchip Technology Inc. , which in turn has the terminals 14 of the microcontroller 10 corresponding terminals 22 which are interconnected by a wiring harness 23.
  • a supply terminal 24 thereof is connected to the supply voltage UV and a ground terminal 26 thereof with the mass M.
  • the EEPROM still has a hold connection 28, which could be controlled separately, but in the described embodiment is not separately driven and is therefore connected via a tap 32 to the supply terminal 24.
  • a capacitor 34 which serves to filter the taps 32 occurring interference by the EEPROM.
  • the capacitance of the capacitor 34 is for example in the range of 10 nF to 100 nF.
  • a switch 40 which is designed as a transistor, wherein a base 42 of this transistor 40 is connected via a voltage divider 44 to the ground M and a center tap 46 of the voltage divider 44 to a control terminal 48 of the microcontroller 10th is connected so that via the control terminal 48 of the microcontroller 10, the switch 40 is controllable.
  • a data transfer via the terminals SI and SO of the EEPROM 20 while a write command via the terminal CS of the EEPROM 20 takes place, the write command via the terminal CS by the microcontroller 10 is only given if already data on the port SI the EEPROM 20 are transmitted.
  • the command for writing the data into the EEPROM 20 then takes place via the connection CS.
  • the function of the microcontroller 10 malfunctions, for example due to a voltage fluctuation or the like, during the transfer of data from the microcontroller 10 to the EEPROM 20, the data transfer is not completed or the signal to Writing the data in the EEPROM 20 is not given, so there is a system failure, since there is an undefined state at the terminals 22 of the EEPROM 20.
  • a system reset routine 50 is usually started therein, which, however, likewise is not able to recognize the state in which the access to the EEPROM 20 has stopped.
  • a reset step 52 is provided in the system reset routine 50 of the microcontroller 10, which results in an interrupt signal US being output at the control connection 48, for example by the signal "High", which in the range of, for example, 50 ms to 200 ms, the base 42 of the transistor 40 is controlled so that the switch 40 breaks the connection between the tap 32 and the power UV and thereby turns off the EEPROM 20 and turns on again after the interruption period, all undefined states are deleted at the terminals 22.
  • the system reset routine 50 preferably executes the reset step 52 only after a defined waiting time from the start 54 of the system reset routine 50 in order, if appropriate, to give the EEPROM 20 the possibility of a to complete already started writing process, so that the waiting time at least equal to the write time of the EEPROM 20.
  • a reset step 56 for the SPI interface 16 follows and the initialization of the SPI interface 16 follows in an initialization step 58 following the reset step 52 so that at times of the initialization step For the SPI interface, the EEPROM 20 is fully functional again.
  • the interruption signal US has an interruption time duration which reliably leads to a reset of the EEPROM 20, in particular a time duration which is greater than the time constant of the capacitor 34 and parasitic capacitances, so that the voltage at the supply terminal 24 and the hold signal Terminal 28 drops to a level which results in erasing the data at all terminals 22 of EEPROM 20.
  • the EEPROM 20 would still wait for the completion of the data transfer and at the port CS for the signal for writing the data.
  • the reset routine 52 is provided in the system reset routine 50 which, after a wait time after the start 54 of the system reset routine 50 at the output 48 outputs the interrupt signal US, which causes the switch 40, the center tap 32 and thus also the Ver supply terminal 24 and the hold terminal 28 from the supply voltage UV for the interruption period separates, so that a complete reset of the EEPROM 20 takes place while deleting the signals applied to the terminals 22.
  • the system reset routine 50 which has already triggered a reset of the SPI interface 16, 18 and thus deleted in the SPI interface 16, 18 incompletely transmitted information after the reset 54 in the reset step 56 after the reset step 52, the initialization step 58 for the SPI -Interface and transmit after completion of the system reset routine 50 in a known manner via the SPI interface data. If, for example, in a second case, a fault of the microcontroller 10 occurs at a time when data has already been transmitted to the EEPROM 20 via the SPI interface 16, 18 and the write command has also been given via the connection CS of the EEPROM 20, then takes EEPROM 20 does not perceive any change in the signals at terminals 22 during the amount of time it takes to write the data in the memory of EEPROM 20.
  • a malfunction of the function of the microcontroller 10 during the time required for writing is thus irrelevant to the function and the writing process of the EEPROM 20.
  • the waiting time between the start 54 and the execution of the reset step 52 is at least as long as the time duration of the EEPROM 20 for writing, for example, greater than 20 ms, more preferably greater than 50 ms, so that after outputting the Write command on the part of the microcontroller 10, the EEPROM 20 in any case has the ability to write the received data into its memory before interrupting the connection between the supply voltage UV and the tap 32 and thus the supply terminal 24 and the hold terminal 28 of the EEPROM 20 ,
  • the EEPROM 20 has the ability, unmolested by the failure of the microcontroller 10 and the start of the system reset routine 50 in the microcontroller 10 to end the writing process for the data and only then, triggered by the reset step 52, the output of the interrupt signal 48, although is not necessarily required in this case, but due to the reset step 52 provided in the system reset routine 50, always takes place at the expiration of the system reset routine 50, at a time when the writing operation for the data in the EEPROM 20
  • the SPI interface can also be fully initialized again by the subsequent initialization step 58 and the communication between the microcontroller 10 and the EEPROM 20 can be recorded.

Abstract

In order to improve upon a control system comprising a microcontroller and an EEPROM for storing data for the microcontroller in such a way that access by the microcontroller to the EEPROM can proceed without interference, it is proposed that a switch be provided between a power supply and a supply connection of the EEPROM, said switch able to be controlled by way of a control connection of the microcontroller, and that a system reset routine be provided in the microcontroller for issuing an interruption signal when a flow occurs at the control connection, wherein the switch opens for an interruption time duration and resets the EEPROM.

Description

STEUERSYSTEM CONTROL SYSTEM
Die Erfindung betrifft ein Steuersystem umfassend einen Microcontroller und ein EEPROM zur Speicherung von Daten für den Microcontroller.The invention relates to a control system comprising a microcontroller and an EEPROM for storing data for the microcontroller.
Derartige Steuersysteme, bei welchen ein Microcontroller mit einem EEPROM zusammenwirkt, um Daten des Microcontrollers zu speichern und für den Microcontroller zur Verfügung zu stellen, sind aus dem Stand der Technik bekannt. Bei diesen besteht das Problem, dass bei einer Funktionsstörung des Microcontrollers in der Datenkommunikation zwischen dem Microcontroller und dem EEPROM Undefinierte Zustände auftreten können und auch Undefinierte Datensätze anliegen können, so dass das EEPROM in diesem Fall entweder falsche Daten abspeichert oder falsche Daten dem Microcontroller zur Verfügung stellt.Such control systems, in which a microcontroller cooperates with an EEPROM to store data of the microcontroller and make it available for the microcontroller, are known from the prior art. In these, there is the problem that in case of malfunction of the microcontroller in the data communication between the microcontroller and the EEPROM undefined states may occur and undefined data sets may be present, so that the EEPROM in this case either stores incorrect data or incorrect data to the microcontroller represents.
Der Erfindung liegt daher die Aufgabe zugrunde, ein Steuersystem der eingangs genannten Art derart zu verbessern, dass der Zugriff des Microcontrollers auf das EEPROM störungssicher erfolgen kann.The invention is therefore an object of the invention to improve a control system of the type mentioned in such a way that the access of the microcontroller to the EEPROM can be done trouble-free.
Diese Aufgabe wird bei einem Steuersystem der eingangs genannten Art erfindungsgemäß dadurch gelöst, dass zwischen einer Spannungsversorgung und einem Versorgungsanschluss des EEPROM ein Schalter vorgesehen ist, welcher durch einen Steueranschluss des Microcontrollers steuerbar ist, und dass in dem Microcontroller eine Systemresetroutine vorgesehen ist, welche bei einem Durchlauf an dem Steueranschluss ein Unterbrechungssignal ausgibt, welches für eine Unterbrechungszeitdauer den Schalter öffnet und das EEPROM zurücksetzt. Der Vorteil der erfindungsgemäßen Lösung ist darin zu sehen, dass somit durch die Systemresetroutine im Microcontroller, die nach einer Funktionsstörung des Microcontrollers automatisch in diesem gestartet wird, sichergestellt werden kann, dass auch ein Zurücksetzen des EEPROM erfolgt, also dass insbesondere an dessen Eingängen anliegende Informationen oder Steuerbefehle gelöscht werden und bei einem späteren Zugriff des Microcontrollers auf das EEPROM die zu übertragenden Daten nicht verfälschen.This object is achieved in a control system of the type mentioned in the present invention that between a power supply and a supply terminal of the EEPROM, a switch is provided, which is controllable by a control terminal of the microcontroller, and that in the microcontroller, a system reset routine is provided which at a Pass on the control terminal outputs an interrupt signal which opens the switch for an interruption period and resets the EEPROM. The advantage of the solution according to the invention is to be seen in the fact that thus can be ensured by the system reset routine in the microcontroller, which is automatically started after a malfunction of the microcontroller in this, that also a reset of the EEPROM takes place, so that in particular at its inputs fitting information or control commands are deleted and do not falsify the data to be transmitted in a later access of the microcontroller to the EEPROM.
Damit kann sichergestellt werden, dass nach jeder Funktionsstörung des Microcontrollers wieder eine zuverlässige Übertragung von Daten zwischen Microcontroller und EEPROM möglich ist, ohne dass durch die Funktionsstörung nicht gelöschte Signale oder Daten vorhanden sind.This can ensure that after each malfunction of the microcontroller again a reliable transmission of data between the microcontroller and EEPROM is possible without the malfunctioning signals or data are not deleted.
Da bei der erfindungsgemäßen Lösung die Systemresetroutine ohne Berücksichtigung des Zustandes des Microcontrollers und des EEPROM, in welchem die Funktionsstörung erfolgte, das Unterbrechungssignal ausgibt, ist vorzugsweise vorgesehen, dass die Systemresetroutine das Unterbrechungssignal nach einer definierten Wartezeit ab dem Start der Systemresetroutine ausgibt.Since, in the solution according to the invention, the system reset routine outputs the interrupt signal without taking into account the state of the microcontroller and the EEPROM in which the malfunction occurred, it is preferably provided that the system reset routine output the interrupt signal after a defined waiting time from the start of the system reset routine.
Diese Lösung hat den Vorteil, dass damit die Möglichkeit geschaffen wird, das EEPROM nach Start der Systemresetroutine des Microcontrollers noch so lange zu betreiben, dass dieses bereits begonnene Vorgänge abschließen kann.This solution has the advantage that it creates the possibility of operating the EEPROM after the start of the system reset routine of the microcontroller for so long that it can complete processes that have already begun.
Eine besonders zweckmäßige Lösung sieht dabei vor, dass die definierte Wartezeit mindestens der Schreibzeitdauer des EEPROM entspricht. Damit kann sichergestellt werden, dass für den Fall, dass dann, wenn beim Auftreten der Funktionsstörung das EEPROM bereits begonnen hat, die übertragenen Daten in seinen Speicher zu schreiben, das EEPROM die Möglichkeit hat, diesen Schreibvorgang zu beenden, ohne dass dieses durch das Unterbrechungssignal zurückgesetzt wird, so dass die bereits vollständig übertragenen Daten zuverlässig im EEPROM abgelegt werden können.A particularly expedient solution provides that the defined waiting time corresponds at least to the writing time duration of the EEPROM. This can be ensured that in the event that, then, when occurring the malfunction has already started the EEPROM to write the transmitted data into its memory, the EEPROM has the ability to terminate this writing without being reset by the interrupt signal, so that the already completely transmitted data can be reliably stored in the EEPROM ,
Vorzugsweise ist dabei vorgesehen, dass die definierte Wartezeit mindestens 10 ms noch besser 20 ms beträgt.Preferably, it is provided that the defined waiting time is at least 10 ms even better 20 ms.
Hinsichtlich der Kommunikation zwischen dem Microcontroller und dem EEPROM wurden bislang keine näheren Angaben gemacht.With regard to the communication between the microcontroller and the EEPROM so far no further details have been made.
So ist vorzugsweise vorgesehen, dass der Microcontroller mit dem EEPROM Daten über ein Interface austauscht.Thus, it is preferably provided that the microcontroller exchanges data with the EEPROM via an interface.
Ein derartiges Interface ist beispielsweise ein übliches für EEPROM's eingesetztes Interface.Such an interface is, for example, a common interface used for EEPROMs.
Beispielsweise ist das Interface ein SPI-Interface.For example, the interface is an SPI interface.
Um zu verhindern, dass auch durch das Interface noch Signale oder Daten vorhanden sind, die nach Auftreten der Funktionsstörung des Microcontrollers nicht gelöscht wurden, ist vorzugsweise vorgesehen, dass die System- resetroutine vor dem Auslösen des Unterbrechungssignals einen Reset des Interface bewirkt. Damit werden in dem Interface noch vorhandene Daten und Befehle, die aufgrund der Funktionssteuerung des Microcontrollers nicht zur Ausführung kamen, gelöscht.In order to prevent signals or data still being present through the interface which have not been deleted after the malfunction of the microcontroller has occurred, it is preferably provided that the system reset routine effects a reset of the interface before the interruption signal is triggered. This deletes existing data and commands in the interface that were not executed due to the function control of the microcontroller.
Ferner ist vorzugsweise vorgesehen, dass das Unterbrechungssignal beendet ist, bevor eine Initialisierung des Interface durch die Systemresetroutine erfolgt.Furthermore, it is preferably provided that the interrupt signal is terminated before an initialization of the interface by the system reset routine.
Das heißt, dass auch durch das Unterbrechungssignal das EEPROM vollständig zurückgesetzt wird und alle gegebenenfalls noch durch die Funktionsstörung nicht gespeicherten Daten oder nicht ausgeführten Befehle beim EEPROM gelöscht sind, bevor wiederum durch den Microcontroller eine Initialisierung des Interface erfolgt.This means that the EEPROM is also completely reset by the interruption signal and any data that has not yet been saved by the malfunction or that has not been executed is deleted from the EEPROM before the interface is again initialized by the microcontroller.
Weitere Merkmale und Vorteile der Erfindung sind Gegenstand der nachfolgenden Beschreibung sowie der zeichnerischen Darstellung eines Ausführungsbeispiels.Further features and advantages of the invention are the subject of the following description and the drawings of an embodiment.
In der Zeichnung zeigt:In the drawing shows:
Fig. 1 eine schematische Darstellung eines erfindungsgemäßenFig. 1 is a schematic representation of an inventive
Steuersystems mit einem Microcontroller und einem EEPROM.Control system with a microcontroller and an EEPROM.
Ein Ausführungsbeispiel eines erfindungsgemäßen Steuersystems, dargestellt in Fig. 1, umfasst einen als Ganzes mit 10 bezeichneten Microcontroller, welcher zum Betrieb an einer Versorgungsspannung einerseits an eine Versorgungsspannung UV und andererseits an Masse angeschlossen ist. Der Microcontroller 10 umfasst eine Vielzahl von Anschlüssen 12, die entweder Ausgänge für Steuersignale oder Eingänge für Signale sein können.An embodiment of a control system according to the invention, shown in FIG. 1, comprises a microcontroller designated as a whole by 10, which is connected to a supply voltage on the one hand to a supply voltage UV and on the other hand to ground for operation. The microcontroller 10 includes a plurality of terminals 12, which may be either outputs for control signals or inputs for signals.
Ferner umfasst der Microcontroller 10 Anschlüsse 14 einer SPI-Interfaceeinheit 16, über welche eine Datenkommunikation mit einer SPI-Interfaceeinheit 18 eines als Ganzes mit 20 bezeichneten EEPROM, beispielsweise einen EEPROM des Typs 25AA256 oder 25LC256 mit SPI Interface der Firma Microchip Technology Inc., erfolgt, die ihrerseits den Anschlüssen 14 des Microcontrollers 10 entsprechende Anschlüsse 22 aufweist, die durch einen Leitungsstrang 23 miteinander verbunden sind.Furthermore, the microcontroller 10 comprises connections 14 of an SPI interface unit 16, via which data is communicated with an SPI interface unit 18 of an EEPROM designated as a whole by 20, for example an EEPROM of the type 25AA256 or 25LC256 with SPI interface from Microchip Technology Inc. , which in turn has the terminals 14 of the microcontroller 10 corresponding terminals 22 which are interconnected by a wiring harness 23.
Zum Betrieb des EEPROM 20 ist ein Versorgungsanschluss 24 desselben mit der Versorgungsspannung UV verbunden und ein Masseanschluss 26 desselben mit der Masse M.To operate the EEPROM 20, a supply terminal 24 thereof is connected to the supply voltage UV and a ground terminal 26 thereof with the mass M.
Ferner hat das EEPROM noch einen Hold-Anschluss 28, welcher separat angesteuert werden könnte, jedoch bei dem beschriebenen Ausführungsbeispiel nicht separat angesteuert ist und daher über einen Abgriff 32 mit dem Versorgungsanschluss 24 verbunden ist.Furthermore, the EEPROM still has a hold connection 28, which could be controlled separately, but in the described embodiment is not separately driven and is therefore connected via a tap 32 to the supply terminal 24.
Ferner liegt zwischen dem Abgriff 32 und der Masse M noch ein Kondensator 34, welcher dazu dient, am Abgriff 32 auftretende Störungen durch das EEPROM zu filtern. Die Kapazität des Kondensators 34 liegt dabei beispielsweise im Bereich von 10 nF bis 100 nF. Zwischen dem Abgriff 32 und der Versorgungsspannung UV liegt ein Schalter 40, welcher als Transistor ausgebildet ist, wobei eine Basis 42 dieses Transistors 40 über einen Spannungsteiler 44 mit der Masse M verbunden ist und ein Mittelabgriff 46 des Spannungsteilers 44 mit einem Steueranschluss 48 des Microcontrollers 10 verbunden ist, so dass über den Steueranschluss 48 des Microcontrollers 10 der Schalter 40 steuerbar ist.Further, between the tap 32 and the mass M is still a capacitor 34, which serves to filter the taps 32 occurring interference by the EEPROM. The capacitance of the capacitor 34 is for example in the range of 10 nF to 100 nF. Between the tap 32 and the supply voltage UV is a switch 40, which is designed as a transistor, wherein a base 42 of this transistor 40 is connected via a voltage divider 44 to the ground M and a center tap 46 of the voltage divider 44 to a control terminal 48 of the microcontroller 10th is connected so that via the control terminal 48 of the microcontroller 10, the switch 40 is controllable.
An dem Steueranschluss 48 liegt im Normalbetrieb kein Signal an, so dass der Schalter 40 geschlossen, das heißt der Transistor durchgesteuert, ist und folglich das EEPROM 20 mit seinem Versorgungsanschluss 24 und dem HoId- Anschluss 28 direkt mit der Versorgungsspannung UV verbunden ist.In normal operation, no signal is present at the control connection 48, so that the switch 40 is closed, that is to say the transistor is turned on, and consequently the EEPROM 20 with its supply connection 24 and the home connection 28 is connected directly to the supply voltage UV.
Zum Schreiben oder Lesen von Daten werden über die Anschlüsse 14 des Microcontrollers und die Anschlüsse 22 die bei dem SPI-Interface 16, 18 üblichen Befehle ausgetauscht.For writing or reading data, the commands which are usual in the SPI interface 16, 18 are exchanged via the connections 14 of the microcontroller and the connections 22.
Beispielsweise erfolgt eine Datenübertragung über die Anschlüsse SI und SO des EEPROM 20, während ein Schreibbefehl über den Anschluss CS des EEPROM 20 erfolgt, wobei der Schreibbefehl über den Anschluss CS seitens des Microcontrollers 10 nur dann gegeben wird, wenn bereits Daten über den Anschluss SI auf das EEPROM 20 übertragen werden. Zum Abschluss der Übertragung der Daten erfolgt dann über den Anschluss CS das der Befehl zum Schreiben der Daten in das EEPROM 20.For example, a data transfer via the terminals SI and SO of the EEPROM 20, while a write command via the terminal CS of the EEPROM 20 takes place, the write command via the terminal CS by the microcontroller 10 is only given if already data on the port SI the EEPROM 20 are transmitted. At the conclusion of the transmission of the data, the command for writing the data into the EEPROM 20 then takes place via the connection CS.
Erfolgt jedoch eine Störung der Funktion des Microcontrollers 10, beispielsweise durch eine Spannungsschwankung oder ähnliches, während der Übertragung von Daten von dem Microcontroller 10 auf den EEPROM 20 und wird die Datenübertragung nicht vollständig durchgeführt oder das Signal zum Schreiben der Daten in dem EEPROM 20 nicht gegeben, so tritt eine Systemstörung auf, da an den Anschlüssen 22 des EEPROM 20 ein Undefinierter Zustand vorliegt.However, if the function of the microcontroller 10 malfunctions, for example due to a voltage fluctuation or the like, during the transfer of data from the microcontroller 10 to the EEPROM 20, the data transfer is not completed or the signal to Writing the data in the EEPROM 20 is not given, so there is a system failure, since there is an undefined state at the terminals 22 of the EEPROM 20.
Nach einer derartigen Störung des Microcontrollers 10 wird in diesem üblicherweise eine Systemresetroutine 50 gestartet, die ihrerseits jedoch ebenfalls nicht in der Lage ist, zu erkennen, in welchem Zustand der Zugriff auf das EEPROM 20 stehen geblieben ist.After such a malfunction of the microcontroller 10, a system reset routine 50 is usually started therein, which, however, likewise is not able to recognize the state in which the access to the EEPROM 20 has stopped.
Aus diesem Grund ist in der Systemresetroutine 50 des Microcontrollers 10 ein Rücksetzschritt 52 vorgesehen, welcher dazu führt, dass am Steueranschluss 48, beispielsweise durch das Signal "High", ein Unterbrechungssignal US ausgegeben wird, welches während einer Unterbrechungszeitdauer im Bereich von beispielsweise 50 ms bis 200 ms die Basis 42 des Transistors 40 so ansteuert, dass der Schalter 40 die Verbindung zwischen dem Abgriff 32 und der Spannungsversorgung UV unterbricht und dadurch das EEPROM 20 ausschaltet und nach der Unterbrechungszeitdauer wieder einschaltet, wobei alle Undefinierten Zustände an den Anschlüssen 22 gelöscht werden.For this reason, a reset step 52 is provided in the system reset routine 50 of the microcontroller 10, which results in an interrupt signal US being output at the control connection 48, for example by the signal "High", which in the range of, for example, 50 ms to 200 ms, the base 42 of the transistor 40 is controlled so that the switch 40 breaks the connection between the tap 32 and the power UV and thereby turns off the EEPROM 20 and turns on again after the interruption period, all undefined states are deleted at the terminals 22.
Damit besteht die Möglichkeit, alle Undefinierten Zustände an den Anschlüssen 22 des EEPROM zu löschen und somit wiederum die Kommunikation zwischen dem Microcontroller 10 und dem EEPROM 20 mit einem eindeutig definierten Zustand neu zu starten.This makes it possible to delete all undefined states at the terminals 22 of the EEPROM and thus again to restart the communication between the microcontroller 10 and the EEPROM 20 with a clearly defined state.
Vorzugsweise führt die Systemresetroutine 50 den Rücksetzschritt 52 erst nach einer definierten Wartezeit ab dem Start 54 der Systemresetroutine 50 aus, um dem EEPROM 20 gegebenenfalls noch die Möglichkeit zu geben, einen bereits begonnenen Schreibvorgang abzuschließen, so dass die Wartezeit mindestens der Schreibzeitdauer des EEPROM 20 entspricht.The system reset routine 50 preferably executes the reset step 52 only after a defined waiting time from the start 54 of the system reset routine 50 in order, if appropriate, to give the EEPROM 20 the possibility of a to complete already started writing process, so that the waiting time at least equal to the write time of the EEPROM 20.
Ferner folgt in der Systemresetroutine 50 nach dem Start 54 und vor dem Rücksetzschritt 52 ein Resetschritt 56 für das SPI-Interface 16 und die Initialisierung des SPI-Interface 16 folgt in einem Initialisierungsschritt 58 der auf den Rücksetzschritt 52 folgt, so dass zu Zeiten des Initialisierungsschritts 58 für das SPI-Interface bereits das EEPROM 20 wieder voll funktionsfähig ist.Further, in the system reset routine 50, after the start 54 and before the reset step 52, a reset step 56 for the SPI interface 16 follows and the initialization of the SPI interface 16 follows in an initialization step 58 following the reset step 52 so that at times of the initialization step For the SPI interface, the EEPROM 20 is fully functional again.
Erfindungsgemäß hat das Unterbrechungssignal US dabei eine Unterbrechungszeitdauer, die mit Sicherheit zu einem Rücksetzen des EEPROM 20 führt, insbesondere eine Zeitdauer, die größer ist als die Zeitkonstante des Kondensators 34 und parasitärer Kapazitäten, so dass mit Sicherheit die Spannung am Versorgungsanschluss 24 und dem Hold-Anschluss 28 auf ein Maß abfällt, welches zu einem Löschen der Daten an sämtlichen Anschlüssen 22 des EEPROM 20 führt.According to the invention, the interruption signal US has an interruption time duration which reliably leads to a reset of the EEPROM 20, in particular a time duration which is greater than the time constant of the capacitor 34 and parasitic capacitances, so that the voltage at the supply terminal 24 and the hold signal Terminal 28 drops to a level which results in erasing the data at all terminals 22 of EEPROM 20.
Damit lassen sich bei einer Funktionsstörung des Microcontrollers 10 zum Beispiel folgende Zustände beherrschen.This can be in a malfunction of the microcontroller 10, for example, the following conditions dominate.
Erfolgt beispielsweise in einem ersten Fall die Störung der Funktion des Microcontrollers 10 in einem Zustand, in welchem noch Daten über das SPI-Interface 16, 18 von den Anschlüssen 14 des Microcontrollers 10 zu den Anschlüssen 22 des EEPROM 20 übertragen werden, so gibt der Microcontroller 10 beispielsweise an dem Anschluss CS nicht den Befehl zum Schreiben der Daten in das EEPROM 20, da die Funktion des Microcontrollers 10 gestört ist. Würde nun die Systemresetroutine 50 gestartet werden, und einen System- reset des Microcontrollers 10 bewirken, so würden an den Anschlüssen 22 des EEPROM 20 nicht mehr definierte Zustände und Signale vorliegen.If, for example, in a first case, the malfunction of the function of the microcontroller 10 in a state in which data is still transmitted via the SPI interface 16, 18 of the terminals 14 of the microcontroller 10 to the terminals 22 of the EEPROM 20, so gives the microcontroller 10, for example, at the port CS not the command to write the data in the EEPROM 20, since the function of the microcontroller 10 is disturbed. If the system reset routine 50 were to be started, and cause a system reset of the microcontroller 10, there would be no longer defined states and signals at the terminals 22 of the EEPROM 20.
Im Übrigen würde das EEPROM 20 immer noch auf den Abschluss der Datenübertragung und am Anschluss CS auf das Signal zum Schreiben der Daten warten.Incidentally, the EEPROM 20 would still wait for the completion of the data transfer and at the port CS for the signal for writing the data.
Aus diesem Grund ist in der Systemresetroutine 50 der Rücksetzschritt 52 vorgesehen, welcher nach einer Wartezeit nach dem Start 54 der Systemresetroutine 50 an dem Ausgang 48 das Unterbrechungssignal US ausgibt, das dazu führt, dass der Schalter 40 den Mittelabgriff 32 und somit auch den Ver- sorgungsanschluss 24 und den Hold-Anschluss 28 von der Versorgungsspannung UV für die Unterbrechungszeitdauer trennt, so dass ein vollständiges Zurücksetzen des EEPROM 20 unter Löschen der an den Anschlüssen 22 anliegenden Signale erfolgt.For this reason, the reset routine 52 is provided in the system reset routine 50 which, after a wait time after the start 54 of the system reset routine 50 at the output 48 outputs the interrupt signal US, which causes the switch 40, the center tap 32 and thus also the Ver supply terminal 24 and the hold terminal 28 from the supply voltage UV for the interruption period separates, so that a complete reset of the EEPROM 20 takes place while deleting the signals applied to the terminals 22.
Damit sind alle Undefinierten Zustände an den Anschlüssen 22 des EEPROM 20 gelöscht.Thus, all undefined states at the terminals 22 of the EEPROM 20 are deleted.
Somit kann die Systemresetroutine 50, die nach dem Start 54 bereits im Resetschritt 56 einen Reset des SPI-Interface 16, 18 ausgelöst und damit im SPI-Interface 16, 18 unvollständig übertragene Informationen gelöscht hat, nach dem Rücksetzschritt 52 den Initialisierungsschritt 58 für das SPI-Interface durchführen und nach Abschluss der Systemresetroutine 50 in bereits bekannter Weise über das SPI-Interface Daten übertragen. Erfolgt nun beispielsweise in einem zweiten Fall eine Störung des Microcontrollers 10 zu einem Zeitpunkt, zu dem über das SPI-Interface 16, 18 bereits Daten zu dem EEPROM 20 übertragen wurden und auch der Schreibbefehl über den Anschluss CS des EEPROM 20 gegeben wurde, so nimmt das EEPROM 20 während der Zeitdauer, welche benötigt wird, um die Daten in dem Speicher des EEPROM 20 zu schreiben, keine Veränderung der Signale an den Anschlüssen 22 wahr.Thus, the system reset routine 50, which has already triggered a reset of the SPI interface 16, 18 and thus deleted in the SPI interface 16, 18 incompletely transmitted information after the reset 54 in the reset step 56 after the reset step 52, the initialization step 58 for the SPI -Interface and transmit after completion of the system reset routine 50 in a known manner via the SPI interface data. If, for example, in a second case, a fault of the microcontroller 10 occurs at a time when data has already been transmitted to the EEPROM 20 via the SPI interface 16, 18 and the write command has also been given via the connection CS of the EEPROM 20, then takes EEPROM 20 does not perceive any change in the signals at terminals 22 during the amount of time it takes to write the data in the memory of EEPROM 20.
Eine Störung der Funktion des Microcontrollers 10 während der zum Schreiben benötigten Zeitdauer ist somit für die Funktion und den Schreibvorgang des EEPROM 20 irrelevant.A malfunction of the function of the microcontroller 10 during the time required for writing is thus irrelevant to the function and the writing process of the EEPROM 20.
Allerdings ist sicherzustellen, dass selbst bei einer Störung der Funktion des Microcontrollers 10 und somit dem Start der Systemresetroutine 50 während der Zeitdauer zum Schreiben keine Unterbrechung der Spannungsversorgung des EEPROM 20 erfolgt.However, it must be ensured that, even if the function of the microcontroller 10 is interrupted and thus the system reset routine 50 is started, no interruption of the power supply of the EEPROM 20 takes place during the time period for writing.
Aus diesem Grund ist in der Systemresetroutine 50 die Wartezeit zwischen dem Start 54 und dem Durchführen des Rücksetzschritts 52 mindestens so groß wie die Zeitdauer des EEPROM 20 zum Schreiben, beispielsweise größer als 20 ms, noch besser größer als 50ms, so dass nach einem Ausgeben des Schreibbefehls seitens des Microcontrollers 10 das EEPROM 20 auf jeden Fall die Möglichkeit hat, die empfangenen Daten in seinen Speicher einzuschreiben bevor ein Unterbrechen der Verbindung zwischen der Versorgungsspannung UV und dem Abgriff 32 und somit dem Versorgungsanschluss 24 und dem Hold-Anschluss 28 des EEPROM 20 erfolgt. Damit hat das EEPROM 20 die Möglichkeit, unbehelligt von der Störung des Microcontrollers 10 und dem Anlaufen der Systemresetroutine 50 im Microcontroller 10 den Schreibvorgang für die Daten zu beenden und erst dann erfolgt, ausgelöst durch den Rücksetzschritt 52, die Ausgabe des Unterbrechungssignals 48, das zwar in diesem Fall nicht zwingend erforderlich ist, jedoch aufgrund des in der Systemresetroutine 50 vorgesehenen Rücksetzschritts 52 stets beim Ablauf der Systemresetroutine 50 erfolgt, zu einem Zeitpunkt, zu dem der Schreibvorgang für die Daten in dem EEPROM 20 abgeschlossen ist, und somit zu einem Zeitpunkt, zu dem ein Rücksetzen desselben durch Unterbrechen der Verbindung zwischen der Spannungsversorgung UV und dem Abgriff 32 durch den Schalter 40 ohne Funktionsbeeinträchtigung des EEPROM 20 erfolgen kann.For this reason, in the system reset routine 50, the waiting time between the start 54 and the execution of the reset step 52 is at least as long as the time duration of the EEPROM 20 for writing, for example, greater than 20 ms, more preferably greater than 50 ms, so that after outputting the Write command on the part of the microcontroller 10, the EEPROM 20 in any case has the ability to write the received data into its memory before interrupting the connection between the supply voltage UV and the tap 32 and thus the supply terminal 24 and the hold terminal 28 of the EEPROM 20 , Thus, the EEPROM 20 has the ability, unmolested by the failure of the microcontroller 10 and the start of the system reset routine 50 in the microcontroller 10 to end the writing process for the data and only then, triggered by the reset step 52, the output of the interrupt signal 48, although is not necessarily required in this case, but due to the reset step 52 provided in the system reset routine 50, always takes place at the expiration of the system reset routine 50, at a time when the writing operation for the data in the EEPROM 20 is completed, and thus at a time, to which it can be reset by interrupting the connection between the power supply UV and the tap 32 by the switch 40 without impairing the function of the EEPROM 20.
Somit kann auch durch den nachfolgenden Initialisierungsschritt 58 das SPI- Interface wieder in vollem Umfang initialisiert und die Kommunikation zwischen dem Microcontroller 10 und dem EEPROM 20 aufgenommen werden. Thus, the SPI interface can also be fully initialized again by the subsequent initialization step 58 and the communication between the microcontroller 10 and the EEPROM 20 can be recorded.

Claims

PATENTANSPRÜCHE
1. Steuersystem umfassend einen Microcontroller (10) und ein EEPROM (20) zur Speicherung von Daten für den Microcontroller (10), d a d u rc h g e ke n n z e i c h n e t, dass zwischen einer Spannungsversorgung (Uv) und einem Versorgungsanschluss (24) des EEPROM (20) ein Schalter (40) vorgesehen ist, welcher durch einen Steueranschluss (48) des Microcontrollers (10) steuerbar ist und das in dem Microcontroller (10) eine Systemresetroutine (50) vorgesehen ist, welche bei einem Durchlauf an dem Steueranschluss (48) ein Unterbrechungssignal (US) ausgibt, welches für eine Unterbrechungszeitdauer den Schalter (40) öffnet und das EEPROM (20) zurücksetzt.A control system comprising a microcontroller (10) and an EEPROM (20) for storing data for the microcontroller (10), characterized in that between a voltage supply (U v ) and a supply connection (24) of the EEPROM (20 ) a switch (40) is provided, which is controllable by a control connection (48) of the microcontroller (10) and in the microcontroller (10) a system reset routine (50) is provided, which in one pass at the control terminal (48) Interrupt signal (US) which opens the switch (40) for an interruption period and resets the EEPROM (20).
2. Steuersystem nach Anspruch 1, dadurch gekennzeichnet, dass die Systemresetroutine (50) das Unterbrechungssignal (US) nach einer definierten Wartezeit ab dem Start (54) der Systemresetroutine (50) auslöst.2. Control system according to claim 1, characterized in that the system reset routine (50) triggers the interrupt signal (US) after a defined waiting time from the start (54) of the system reset routine (50).
3. Steuersystem nach Anspruch 2, dadurch gekennzeichnet, dass die definierte Wartezeit mindestens der Schreibzeitdauer des EEPROM (20) entspricht.3. Control system according to claim 2, characterized in that the defined waiting time corresponds to at least the writing period of the EEPROM (20).
4. Steuersystem nach Anspruch 2 oder 3, dadurch gekennzeichnet, dass die definierte Wartezeit mindestens 10 ms beträgt. 4. Control system according to claim 2 or 3, characterized in that the defined waiting time is at least 10 ms.
5. Steuersystem nach einem der voranstehenden Ansprüche, dadurch gekennzeichnet, dass der Microcontroller (10) mit dem EEPROM (20) Daten über ein Interface (16, 18) austauscht.5. Control system according to one of the preceding claims, characterized in that the microcontroller (10) with the EEPROM (20) exchanges data via an interface (16, 18).
6. Steuersystem nach Anspruch 5, dadurch gekennzeichnet, dass die Systemresetroutine (50) vor dem Auslösen des Unterbrechungssignals (US) einen Reset des Interface (16, 18) bewirkt.6. A control system according to claim 5, characterized in that the system reset routine (50) before triggering the interrupt signal (US) causes a reset of the interface (16, 18).
7. Steuersystem nach Anspruch 5 oder 6, dadurch gekennzeichnet, dass das Unterbrechungssignal (US) beendet ist, bevor eine Initialisierung des Interface (16, 18) durch die Systemresetroutine (50) erfolgt. 7. Control system according to claim 5 or 6, characterized in that the interrupt signal (US) is terminated before an initialization of the interface (16, 18) by the system reset routine (50).
PCT/EP2009/057475 2008-06-20 2009-06-16 Control system WO2009153262A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
DE102008030628A DE102008030628B4 (en) 2008-06-20 2008-06-20 control system
DE102008030628.2 2008-06-20

Publications (1)

Publication Number Publication Date
WO2009153262A1 true WO2009153262A1 (en) 2009-12-23

Family

ID=40943739

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/EP2009/057475 WO2009153262A1 (en) 2008-06-20 2009-06-16 Control system

Country Status (2)

Country Link
DE (1) DE102008030628B4 (en)
WO (1) WO2009153262A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5566323A (en) * 1988-12-20 1996-10-15 Bull Cp8 Data processing system including programming voltage inhibitor for an electrically erasable reprogrammable nonvolatile memory
US20030169624A1 (en) * 2002-03-07 2003-09-11 Shuzo Fujioka Microcomputer with nonvolatile memory protected against false erasing or writing
US20060069831A1 (en) * 2004-09-29 2006-03-30 Mitsubishi Denki Kabushi Kaisha I2C bus controlling method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5566323A (en) * 1988-12-20 1996-10-15 Bull Cp8 Data processing system including programming voltage inhibitor for an electrically erasable reprogrammable nonvolatile memory
US20030169624A1 (en) * 2002-03-07 2003-09-11 Shuzo Fujioka Microcomputer with nonvolatile memory protected against false erasing or writing
US20060069831A1 (en) * 2004-09-29 2006-03-30 Mitsubishi Denki Kabushi Kaisha I2C bus controlling method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DAVID CHEN: "AN453: Using the 87C751 microcontroller to gangprogram PCF8582/PCF8581 EEPROMs", December 1994 (1994-12-01), XP002542603, Retrieved from the Internet <URL:http://www.nxp.com/acrobat_download/applicationnotes/AN453.pdf> [retrieved on 20090824] *

Also Published As

Publication number Publication date
DE102008030628B4 (en) 2013-08-22
DE102008030628A1 (en) 2010-04-15

Similar Documents

Publication Publication Date Title
EP2287689B1 (en) Apparatus and method for addressing a slave unit
EP0953848B1 (en) Method for setting of parameters of an integrated circuit and corresponding circuit
EP2820215B1 (en) Motor vehicle door lock and method for electrically actuating a locking mechanism
EP0686275B1 (en) Control unit and device for programming it
DE102008030628B4 (en) control system
DE3903486A1 (en) METHOD AND CIRCUIT FOR SELECTING A REPLACEMENT COLUMN
WO2014161986A1 (en) Control and data transfer system for redundant process control and method for firmware updating
WO2017178211A1 (en) Method for operating a control device for a vehicle, control device, operating system, motor vehicle
WO2014016076A1 (en) Method for maintaining the functionality of a field device
EP2176938B1 (en) Electronic control unit for use in a vehicle
DE102009036770B4 (en) Device for driving an electromechanical actuator, method for driving such a device, electromechanical actuator and exhaust valve system for a motor vehicle
DE10153846A1 (en) Electronic module for segmenting communications structure based on CAN data bus e.g. for vehicle ignition/injection module, has microcontroller, and interrupter circuit for segmenting communications structure during initialization
DE10306102A1 (en) Microcontroller control unit with a flash memory, especially for use in a motor vehicle control bus, has a separate faster interface for upgrading software in the flash memory
WO1991000569A1 (en) Microprocessor with watchdog circuit
EP1512868B1 (en) Method and device for controlling an actuator for a starter
EP1089147B1 (en) Method and arrangement for initialising a number of identical control devices
DE102004023329B4 (en) Method for performing resets on two computers
WO2007147580A1 (en) Electronic appliance, particularly an ethernet switch, having means for reliable remote maintenance
DE10031467A1 (en) Circuit for controlling electrical switch element has one of two control units connected to both control inputs as emergency control unit, e.g. with buffered voltage supply
EP0424657B1 (en) Electronic apparatus with a plurality of microprocessor systems
DE19830472A1 (en) External component for a microprocessor system
WO2005119382A1 (en) Programmable controller for use in automation systems
DE10225567B4 (en) Communication method and system for this
DE19919473A1 (en) Remotely configurable processor assembly and method for configuring it
EP1302860A1 (en) Device for resetting circuits connected to a bus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09765842

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 09765842

Country of ref document: EP

Kind code of ref document: A1