DE19725728A1 - Method and device for measuring a distance between a first and a second event - Google Patents

Method and device for measuring a distance between a first and a second event

Info

Publication number
DE19725728A1
DE19725728A1 DE1997125728 DE19725728A DE19725728A1 DE 19725728 A1 DE19725728 A1 DE 19725728A1 DE 1997125728 DE1997125728 DE 1997125728 DE 19725728 A DE19725728 A DE 19725728A DE 19725728 A1 DE19725728 A1 DE 19725728A1
Authority
DE
Germany
Prior art keywords
content
counting means
digits
counter
pulses
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
Application number
DE1997125728
Other languages
German (de)
Inventor
Thomas Rueping
Michael Koehler
Thomas Baehren
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.)
Robert Bosch GmbH
Original Assignee
Robert Bosch 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 Robert Bosch GmbH filed Critical Robert Bosch GmbH
Priority to DE1997125728 priority Critical patent/DE19725728A1/en
Priority to PCT/DE1998/000743 priority patent/WO1998058300A1/en
Publication of DE19725728A1 publication Critical patent/DE19725728A1/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G04HOROLOGY
    • G04FTIME-INTERVAL MEASURING
    • G04F10/00Apparatus for measuring unknown time intervals by electric means
    • G04F10/04Apparatus for measuring unknown time intervals by electric means by counting pulses or half-cycles of an ac

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of Unknown Time Intervals (AREA)

Abstract

Process and device for measuring the time elapsed between two events. The result can be represented as a number (360) with multiple digits. A first counting means (300) counts first pulses. A second counting means (310) counts second pulses. The second pulses are more spaced apart than the first pulses. The first half of the digits (OB) of the number (360) with multiple digits is determined from at least the content of the second counting means (310) and the second half of the digits (UB) of the number (360) with multiple digits is determined from the content of the first counting means (300).

Description

Stand der TechnikState of the art

Die Erfindung betrifft ein Verfahren und eine Vorrichtung zur Messung eines Abstandes zwischen einem ersten und einem zweiten Ereignis.The invention relates to a method and a device for measuring a distance between a first and a second event.

Bei der Steuerung von Brennkraftmaschinen, insbesondere von Dieselbrennkraftmaschinen erfolgt häufig eine Zeitmessung zwischen zwei Ereignissen. So ist beispielsweise zur Drehzahlerfassung die Zeitdauer zwischen zwei Signalimpulsen eines Sensors zu bestimmen. Dabei werden in der Regel 16-Bit-Register verwendet. Um eine möglichst gute Auflösung, d. h. eine genaue Zeiterfassung gewährleisten zu können, wird ein Zeitraster von 1 µs/Bit gewählt. Dies führt dazu, daß mit einem 16-Bit-Register nur Periodendauern bis maximal 216-1 µs-1 = 65,535 ms meßbar sind. Sollen längere Periodendauern erfaßt werden, so muß die Auflösung reduziert werden. Dies ist aber mit einer ungenauen Zeitmessung verbunden.When controlling internal combustion engines, in particular diesel internal combustion engines, time is often measured between two events. For example, the time between two signal pulses from a sensor must be determined for speed detection. 16-bit registers are usually used. In order to ensure the best possible resolution, ie accurate time recording, a time grid of 1 µs / bit is selected. This means that a period of up to 2 16 -1 µs -1 = 65.535 ms can only be measured with a 16-bit register. If longer periods are to be recorded, the resolution must be reduced. However, this is associated with inaccurate timing.

Aufgabe der ErfindungObject of the invention

Der Erfindung liegt die Aufgabe zugrunde, bei einem Verfahren und einer Vorrichtung zur Messung des Abstandes, zwischen einem ersten und einem zweiten Ereignis eine hohe Meßgenauigkeit zu erzielen, wobei gleichzeitig lange Periodendauern erfaßt werden können.The invention is based, with one Method and device for measuring the distance, high between a first and a second event Achieve measurement accuracy, while long Periods can be recorded.

Vorteile der ErfindungAdvantages of the invention

Mit der erfindungsgemäßen Vorgehensweise können lange Periodendauern zwischen zwei Ereignissen mit hoher Genauigkeit bestimmt werden. Vorteilhafte und zweckmäßige Ausgestaltungen und Weiterbildungen der Erfindung sind in den Unteransprüchen gekennzeichnet.Using the procedure according to the invention can take a long time Periods between two events with high Accuracy can be determined. Advantageous and functional Refinements and developments of the invention are in marked the subclaims.

Zeichnungdrawing

Die Erfindung wird nachstehend anhand einer Zeichnung dargestellten Ausführungsformen erläutert. Es zeigen Fig. 1 ein System zur Steuerung einer Brennkraftmaschine, Fig. 2 über der Zeit aufgetragene Zählerstände, Fig. 3 ein Blockdiagramm der erfindungsgemäßen Vorrichtung und Fig. 4 ein Flußdiagramm der erfindungsgemäßen Vorgehensweise.The invention is explained below with reference to a drawing shown embodiments. In the drawings Fig. 1 shows a system for controlling an internal combustion engine, Fig. 2 plotted over time counter readings, Fig. 3 is a block diagram of the apparatus and FIG. 4 is a flowchart of the procedure of the invention.

Beschreibung der AusführungsbeispieleDescription of the embodiments

In Fig. 1 ist ein Steuergerät 100 zur Steuerung einer Brennkraftmaschine insbesondere einer selbstzündenden Brennkraftmaschine dargestellt. Mit 100 ist das Steuergerät bezeichnet. Dieses umfaßt die eigentliche Steuerung 110, die mit dem Ausgangssignal einer Zeitdauerberechnung 120 und mit weiteren Größen 115 beaufschlagt wird. Die Zeitdauerberechnung 120 wird vom Ausgangssignal eines Taktgebers 125 beaufschlagt. In Fig. 1, a control device 100 is shown, in particular a compression-ignition internal combustion engine for controlling an internal combustion engine. With 100 the control device is designated. This includes the actual control 110 , which is supplied with the output signal of a time duration calculation 120 and with further variables 115 . The time duration calculation 120 is acted upon by the output signal of a clock generator 125 .

Die Steuerung 100 beaufschlagt ein Stellelement 130 mit dem Ausgangssignal der Steuerung 110. Der Steuerung wird das Ausgangssignal eines Sensors 140, der die Zähne eines Geberrades 145 abtastet, zugeführt. Diese Auswertung erfolgt durch die Zeitdauerberechnung 120.The controller 100 applies a control element 130 with the output signal of the controller 110 . The output signal of a sensor 140 , which scans the teeth of a sensor wheel 145 , is fed to the control. This evaluation is carried out by the duration calculation 120 .

Zur Steuerung einer Brennkraftmaschine müssen verschiedene Stellelemente 130 abhängig von verschiedenen Signalen angesteuert werden. So wird beispielsweise ein Stellglied zur Steuerung der eingespritzten Kraftstoffmenge, abhängig von der Drehzahl angesteuert.In order to control an internal combustion engine, various actuating elements 130 have to be activated depending on different signals. For example, an actuator for controlling the amount of fuel injected is controlled depending on the speed.

Hierzu tastet der Sensor 140 Markierungen, die auf einem Geberrad 145 angeordnet sind, ab. Bei jedem Vorbeilauf einer Markierung des Geberrades gibt der Sensor 140 einen Impuls ab. Dieser Impuls löst in der Steuerung einen sogenannten Interrupt aus. Der Abstand zwischen zwei Signalimpulsen des Sensors ist ein Maß für die Drehzahl der Brennkraftmaschine. Das Geberrad ist vorzugsweise auf der Kurbelwelle und/oder auf der Nockenwelle angeordnet.For this purpose, the sensor scans 140 markings which are arranged on a sensor wheel 145 . Each time a marking of the sensor wheel passes, the sensor 140 emits a pulse. This pulse triggers a so-called interrupt in the control. The distance between two signal pulses from the sensor is a measure of the speed of the internal combustion engine. The encoder wheel is preferably arranged on the crankshaft and / or on the camshaft.

Die Zeitdauerberechnung 120 bestimmt den Abstand zweier Ereignisse, in dem es die Anzahl der Impulse des Taktgebers 125 zählt. In dem dargestellten Ausführungsbeispiel ist es der Abstand zweier Signalimpulse des Sensors 140. Die Impulse des Taktgebers 125 werden auch als Feinimpulse bezeichnet. Ausgehend von dieser Zeitdauer ergibt sich die Drehzahl. Die Steuerung 110 bestimmt ausgehend von der Drehzahl und unter der Verwendung der weiteren Größen 115 das Ansteuersignal zur Beaufschlagung des Stellers 130.The time duration calculation 120 determines the interval between two events by counting the number of pulses of the clock generator 125 . In the exemplary embodiment shown, it is the distance between two signal pulses from sensor 140 . The pulses from the clock generator 125 are also referred to as fine pulses. The speed results from this period. The controller 110 determines the control signal to act upon the actuator 130 based on the speed and using the other variables 115 .

Die Erfindung ist nicht auf dieses Ausführungsbeispiel beschränkt. Sie kann bei allen Zeitmessungen eingesetzt werden, bei denen der Abstand zwischen zwei Zeitpunkten erfaßt wird.The invention is not based on this embodiment limited. It can be used for all time measurements  be where the distance between two times is detected.

In Fig. 2 ist der Zählerstand des Zählers, der den Abstand zählt, über der Zeit t aufgetragen. Dabei wird ein Zähler mit 16-Bit verwendet. Der Taktgeber gibt einen Impuls pro µs aus. Dies bedeutet, der Zähler durchläuft die Zählerstände von 0-65535. Dies entspricht einem Zeitraum von 65,535 ms. Nach 65536 µs erreicht der Zähler erneut den Wert 0.In FIG. 2, the count of the counter which counts the distance, plotted over time t. A 16-bit counter is used. The clock generator outputs one pulse per µs. This means that the meter runs through the meter readings from 0-65535. This corresponds to a period of 65.535 ms. After 65536 µs, the counter again reaches the value 0.

Ferner sind verschiedene Ereignisse mit den Zeitpunkten T1, T2, T3 und T5 bezeichnet. Die Messung der Zeitabstände erfolgt beim Stand der Technik wie folgt. Der Zähler läuft von 0 bis 65535 durch und startet dann erneut bei 0. Desweiteren ist vorgesehen, daß bei jedem Rücksetzen des Zählers auf Null ein Interrupt ausgelöst wird. Von der Zähleinrichtung wird mittels des Interrupts festgestellt, wie oft der Zähler zurückgesetzt wird.Furthermore, various events with the times T1, Designated T2, T3 and T5. The measurement of the time intervals in the prior art is as follows. The counter is running from 0 to 65535 and then starts again at 0. Furthermore, it is provided that each time the Counter to zero an interrupt is triggered. Of the Counting device is determined by means of the interrupt, how often the counter is reset.

Bei dieser Vorgehensweise können in bestimmten Betriebszuständen Probleme auftreten. So kann es z. B. aufgrund der Prioritätsvergabe der Interrupts und Asynchronitäten der Ereignisse, insbesondere wenn mehrere Ereignisse mittels eines Zählers erfaßt werden sollen, zu Problemen führen. Auch Verzögerungen im Prozessor führen zu Fehlern. Dies ist beispielsweise dann der Fall, wenn der Überlauf des Zählers und der entsprechende Interrupt nicht gleichzeitig erfolgen. Erfolgt zwischen dem Überlauf des Zählers und dem Interrupt ein Ereignis so führt dies zu einem fehlerhaften Zählergebnis.This can be done in certain ways Operating problems occur. So it can e.g. B. due to the priority assignment of the interrupts and Asynchrony of events, especially if several Events to be recorded using a counter, too Cause problems. Delays in the processor also result Mistakes. This is the case, for example, if the The counter does not overflow and the corresponding interrupt does not done simultaneously. Takes place between the overflow of the Event and the interrupt, this leads to an incorrect counting result.

Bei jedem Ereignis werden die Zählerstände in ein Register eingelesen. Wegen der begrenzten Bitzahl des Zählers ist der Wert des Registers zum Zeitpunkt T3 gleich dem Wert zum Zeitpunkt T5. Die Zeitpunkte T3 und T5 können nur anhand der gezählten Timerüberläufe unterschieden werden. Bei der Messung der Abstände zwischen den Ereignissen T1 und dem Ereignis T2 ist lediglich eine einfache Differenzbildung nötig.With each event, the counter readings are kept in a register read. Because of the counter's limited number of bits, the The value of the register at time T3 is equal to the value at  Time T5. The times T3 and T5 can only be based on the counted timer overflows. In the Measuring the distances between events T1 and Event T2 is just a simple difference necessary.

Erfindungsgemäß ist nun vorgesehen, daß zwei Zähler verwendet werden, wobei der erste Zähler eine Feinmessung und der zweite Zähler eine Grobmessung durchführt. Durch Vergleich der beiden Messungen wird auf die Anzahl der Timer-Überläufe geschlossen.According to the invention it is now provided that two counters are used, the first counter being a fine measurement and the second counter performs a rough measurement. By Comparison of the two measurements is based on the number of Timer overflows closed.

In dem dargestellten Ausführungsbeispiel erfolgt die Grobzählung in einem Zeitraster von 10 ms. Diese sind in Fig. 2 mit senkrechten Strichen markiert. Die Feinzählung erfolgt in einem Zeitraster von 1 µs. Diese Werte der beiden Zeitraster sind nur beispielhaft gewählt es können auch andere Zeitraster verwendet werden.In the exemplary embodiment shown, the rough counting takes place in a time grid of 10 ms. These are marked with vertical lines in FIG. 2. The fine counting takes place in a time grid of 1 µs. These values of the two time slots are only selected as examples; other time slots can also be used.

Erfindungsgemäß wird das Ergebnis der Messung des Abstandes zwischen den zwei Ereignissen als mehrstellige Zahl dargestellt. Dabei bestimmen der Inhalt des groben Zählers die erste Hälfte der Stellen und der Feinzähler die zweite Hälfte der Stellen. Beim dargestellten Ausführungsbeispiel ist das Ergebnis als 32-Bit-Wert dargestellt.According to the invention, the result of the measurement of the distance between the two events as a multi-digit number shown. Determine the content of the rough counter the first half of the digits and the fine counter the second Half of the positions. In the illustrated embodiment the result is shown as a 32-bit value.

Ein Blockdiagramm der erfindungsgemäßen Zeitdauerberechnung 120 ist in Fig. 3 dargestellt. Bereits in Fig. 1 beschriebene Elemente sind mit entsprechenden Bezugszeichen bezeichnet.A block diagram of the duration calculation 120 according to the invention is shown in FIG. 3. Elements already described in FIG. 1 are designated with corresponding reference symbols.

Ein Feinzähler 300 wird von dem Taktgeber 125 mit Zeitsignalen beaufschlagt. Entsprechend wird ein Grobzähler 310 ebenfalls von dem Taktgeber 125 mit Zeitsignalen beaufschlagt. Einer Steuerung 320 werden die Ausgangssignale des Sensors 140 zugeleitet. Der Sensor 140 wird im Folgenden auch als Interruptgeber 140 bezeichnet. Die Steuerung 320 beaufschlagt den Feinzähler 300 und den Grobzähler 310 mit Signalen.A fine counter 300 is supplied with time signals by the clock generator 125 . Correspondingly, a coarse counter 310 is also supplied with time signals by the clock generator 125 . The output signals of the sensor 140 are fed to a controller 320 . Sensor 140 is also referred to below as interrupt generator 140 . The controller 320 applies signals to the fine counter 300 and the coarse counter 310 .

Der Feinzähler 300 steht mit einem ersten Speichermittel 330 und einem zweiten Speichermittel 335 in Verbindung. Der Inhalt FT1 des ersten Speichermittels 330 und der Inhalt FT2 des zweiten Speichermittels 335 werden von einer ersten Berechnung 340 verarbeitet. Diese erste Berechnung 340 beaufschlagt die zweite Hälfte der Stellen OB eines Registers 360, in daß das Ergebnis eingeschrieben wird. Die zweite Hälfte der Stellen OB entsprechen den Speicherzellen 365-368. In der Figur sind nur 8 Speicherzellen des 16 Bit Registers dargestellt.The fine counter 300 is connected to a first storage means 330 and a second storage means 335 . The content FT1 of the first storage means 330 and the content FT2 of the second storage means 335 are processed by a first calculation 340 . This first calculation 340 acts on the second half of the positions OB of a register 360 in which the result is written. The second half of the positions OB correspond to the memory cells 365 - 368 . In the figure only 8 memory cells of the 16 bit register are shown.

Der Grobzähler 310 beaufschlagt eine zweite Berechnung 350 mit dem Wert GT. Ausgehend von diesem Wert und dem Inhalt der Speicherzellen 365-368 bestimmt die Berechnung 350 den Wert der ersten Hälfte OB der Speicherzellen 361-364. Die Inhalte des Registers 360 werden von der Steuerung 110 weiter verarbeitet.The coarse counter 310 applies a value GT to a second calculation 350 . Based on this value and the contents of the memory cells 365 to 368,350 determined to calculate the value of the first half OB of the memory cells 361-364. The contents of the register 360 are processed further by the controller 110 .

In Fig. 4 wird die Funktionsweise dieser Einrichtung anhand eines Flußdiagrammes beschrieben. In einem ersten Schritt 400 wird ein Merker IR1 mit Null gesetzt. Im anschließenden Schritt 410 wird der Inhalt FT des Feinzählers 300 um 1 erhöht. Die Abfrage 420 überprüft anschließend, ob ein Interrupt IR aufgetreten ist. Ein solcher Interrupt wird durch ein Signal des Interruptgebers 140 ausgelöst. Ist dies nicht der Fall, so erfolgt erneut Schritt 410 in dem der Feinzähler 300 erneut um 1 erhöht wird.In Fig. 4, the operation of this device is described using a flow chart. In a first step 400 , a flag IR1 is set to zero. In the subsequent step 410 , the content FT of the fine counter 300 is increased by 1. The query 420 then checks whether an interrupt IR has occurred. Such an interrupt is triggered by a signal from the interrupt generator 140 . If this is not the case, step 410 takes place again in which the fine counter 300 is increased again by 1.

Erkennt die Abfrage 420, daß ein Interrupt IR aufgetreten ist, so überprüft die Abfrage 430, ob der Merker IR1 mit Null gesetzt ist. Ist dies der Fall, so bedeutet dies, daß dies der erste Interrupt ist. In diesem Fall wird in Schritt 440 der Merker IR1 mit 1 gesetzt. Dies zeigt an, daß ein erster Interrupt aufgetreten ist. Anschließend wird in Schritt 445 der aktuelle Wert des Grobzählers 310 als erster Inhalt GT1 des Grobzählers abgespeichert.If query 420 recognizes that an interrupt IR has occurred, query 430 checks whether flag IR1 is set to zero. If this is the case, it means that this is the first interrupt. In this case, flag IR1 is set to 1 in step 440 . This indicates that a first interrupt has occurred. The current value of the coarse counter 310 is then stored in step 445 as the first content GT1 of the coarse counter.

Anschließend wird in Schritt 455 der aktuelle Wert des Feinzählers 300 als erster Inhalt FT1 des ersten Speichers 330 abgespeichert. Anschließend erfolgt erneut Schritt 410.The current value of the fine counter 300 is then stored in step 455 as the first content FT1 of the first memory 330 . Then step 410 takes place again.

Erkennt die Abfrage 430, daß der Merker IR1 ungleich Null ist, d. h. daß der in Schritt 420 erkannte Interrupt der zweite Interrupt ist, so folgt Schritt 460.If query 430 recognizes that flag IR1 is not equal to zero, ie that the interrupt recognized in step 420 is the second interrupt, step 460 follows.

In Schritt 460 wird der zweite Inhalt GT2 mit dem aktuellen Wert GT des Grobzählers gesetzt. Entsprechend wird in Schritt 462 der zweite Inhalt FT2 des zweiten Speichers 335 mit dem aktuellen Wert FT des Feinzählers 300 gesetzt.In step 460 , the second content GT2 is set with the current value GT of the coarse counter. Correspondingly, in step 462 the second content FT2 of the second memory 335 is set with the current value FT of the fine counter 300 .

Bei einer Ausgestaltung, die in Fig. 2 dargestellt ist, kann vorgesehen sein, daß der Grobzähler beim Auftreten des ersten Ereignissen startet. In diesem Fall entspricht der erreichte Zählerstand GT2 der Anzahl GTA der Grobimpulse.In one embodiment, which is shown in FIG. 2, it can be provided that the coarse counter starts when the first event occurs. In this case, the count GT2 reached corresponds to the number GTA of coarse pulses.

Im Schritt 463 erfolgt die Berechnung der zweiten Hälfte der Stellen UB des Ergebnisses gemäß der folgenden Formel:
In step 463 , the calculation of the second half of the digits UB of the result takes place according to the following formula:

UB = FT2 - FT1.UB = FT2 - FT1.

Anschließend wird in Schritt 464 die Anzahl GTA der Grobimpulse durch Differenzbildung des Zählerstandes des Grobzählers bei Auftreten des ersten und des zweiten Interrupts bestimmt. The number GTA of the coarse pulses is then determined in step 464 by forming the difference in the count of the coarse counter when the first and the second interrupt occur.

Anschließend wird in Schritt 466 der Inhalt ersten Hälfte der Stellen OB des Ergebnisse gemäß der folgenden Formel bestimmt:
The content of the first half of the digits OB of the result is then determined in step 466 using the following formula:

OB = (GTA.T1 - UB + K)/216 OB = (GTA.T1 - UB + K) / 2 16

Das ganzzahlige Ergebnis dieser Division mit 216 liefert die oberen 16-Bit des 32-Bit-Ergebnisses des Ausdrucks OB* = GTA.T1 - UB + K. Der Wert T1 entspricht der Anzahl der Impulse des Taktgebers, die zwischen der Erhöhung des Grobzählers um den Wert 1 liegen. Die Konstante K nimmt bei dem dargestellten Ausführungsbeispiel den Wert 32 767 an. Anschließend endet das Programm in Schritt 470.The integer result of this division with 2 16 supplies the upper 16 bits of the 32-bit result of the expression OB * = GTA.T1 - UB + K. The value T1 corresponds to the number of pulses of the clock generator that occur between the incrementation of the coarse counter around the value 1. In the exemplary embodiment shown, the constant K assumes the value 32 767. The program then ends in step 470 .

Eine Realisierung des Grobzählers ist in Fig. 4b dargestellt. Parallel zu diesem Ablauf wird in Schritt 482 bei jeden Impuls des Taktgebers 125 der Inhalt eines Zeitzählers t um 1 erhöht. Die sich anschließende Abfrage 484 überprüft, ob der Inhalt des Zählers t größer als der Wert T1 ist. Ist dies nicht der Fall so erfolgt erneut Schritt 482. Ist der Inhalt des Zählers t größer als T1, so wird der Inhalt GT des Grobzählers 310 um 1 erhöht. Anschließend erfolgt erneut Schritt 482. Es kann aber auch vorgesehen sein, daß der Grobzähler völlig unabhängig von dem Feinzähler arbeitet. Wesentlich ist, daß der Grobzähler in einem größeren Zeitraster als der Feinzähler zählt. Wobei dieses Zeitraster wesentlich kleiner ist als die Timerüberläufe des Feinzählers.An implementation of the coarse counter is shown in Fig. 4b. In parallel to this process, the content of a time counter t is increased by 1 for each pulse of the clock generator 125 in step 482 . The subsequent query 484 checks whether the content of the counter t is greater than the value T1. If this is not the case, step 482 takes place again. If the content of the counter t is greater than T1, the content GT of the coarse counter 310 is increased by 1. Step 482 then takes place again. However, it can also be provided that the coarse counter works completely independently of the fine counter. It is essential that the coarse counter counts in a larger time grid than the fine counter. This time grid is much smaller than the timer overflows of the fine counter.

Tritt ein Ereignis auf, d. h. tritt ein Impuls des Sensors auf, so wird ein Interrupt ausgelöst und der aktuelle Wert des Feinzählers als erster Wert FT1 abgespeichert. Tritt das zweite Ereignis auf, dessen Abstand zum ersten Ereignis gezählt werden soll, wird der Inhalt des Feinzählers als aktueller Wert FT2 abgespeichert. Entsprechend wird beim Grobzähler vorgegangen.If an event occurs, i.e. H. there is a pulse from the sensor on, an interrupt is triggered and the current value of the fine counter is saved as the first value FT1. Do that second event, its distance from the first event the content of the fine counter is to be counted as  current value FT2 saved. Accordingly, the Coarse counter proceeded.

Dann wird die Differenz zwischen dem ersten Wert FT1 und dem zweiten Wert FT2 des Feinzählers ermittelt. Besonders vorteilhaft ist es, wenn eine sogenannte unsigned-Arithmetik verwendet wird. Dadurch ergeben sich immer positive Werte. Wird das Ergebnis als 32-Bit-Wert dargestellt, so stellt dieses Ergebnis die unteren 16-Bit, d. h. die zweite Hälfte mehrstelligen Zahl dar.Then the difference between the first value FT1 and the second value FT2 of the fine counter determined. Especially It is advantageous if a so-called unsigned arithmetic is used. This always results in positive values. If the result is represented as a 32-bit value, it represents this result the lower 16 bits, i. H. the second half multi-digit number.

Die oberen 16-Bit, d. h. die erste Hälfte der mehrstelligen Zahl, ergeben sich ausgehend von den gezählten Grobimpulsen, die zwischen den beiden Ereignissen gezählt wurden, der Anzahl der Feinimpulse, die zwischen zwei Grobimpulsen liegen, der Differenz UB zwischen dem ersten Wert FT1 und dem zweiten Wert FT2 des Feinzählers und einer Konstanten K.The top 16 bits, i. H. the first half of the multi-digit Number, based on the rough pulses counted, that were counted between the two events, the Number of fine pulses between two coarse pulses lie, the difference UB between the first value FT1 and the second value FT2 of the fine counter and a constant K.

In den dargestellten Ausführungsformen laufen die Zähler ständig durch. Tritt ein Ereignis auf, so wird jeweils der Aktuelle Zählerstand des Grob- und des Feinzählers abgespeichert. Ausgehend von den abgespeicherten Werten wird dann der Abstand zwischen zwei Ereignissen bestimmt. Bei einer Ausgestaltung der Erfindung kann auch vorgesehen sein, daß ein oder beide Zähler beim ersten Ereignis starten und beim zweiten Ereignis stoppen. Ausgehend von den aktuellen Zählerständen wird dann der Abstand bestimmt.In the illustrated embodiments, the counters are running constantly through. If an event occurs, the Current counter reading of the coarse and fine counter saved. Based on the stored values then the distance between two events is determined. At An embodiment of the invention can also be provided that one or both counters start at the first event and stop at the second event. Starting from the current The distance is then determined from meter readings.

Die erste Ausführungsform besitzt den Vorteil, daß die Abstände zwischen mehreren Ereignissen mit zwei Zählern bestimmt werden können. Bei jedem Ereignis werden die beiden Zählerstände abgespeichert. Anschließend kann ausgehend von den abgespeicherten Zählerständen der Abstand zwischen beliebigen Ereignissen bestimmt werden.The first embodiment has the advantage that the Intervals between multiple events with two counters can be determined. At every event, the two Meter readings saved. You can then start from the stored counter readings the distance between any events can be determined.

Claims (8)

1. Verfahren zur Messung des Abstandes zwischen einem ersten und einen zweiten Ereignis, wobei das Ergebnis als mehrstellige Zahl (360) mit wenigstens 4 Stellen darstellbar ist, daß ein erstes Zählmittel (300) erste Impulse zählt, daß ein zweites Zählmittel (310) zweite Impulse zählt, wobei die zweiten Impulse einen größeren Abstand aufweisen, als die ersten Impulse, daß ausgehend von wenigstens einem Inhalt des zweiten Zählmittels (310) die erste Hälfte der Stellen (OB) der mehrstelligen Zahl (360) und ausgehend von wenigstens einem Inhalt des ersten Zählmittels (300) die zweite Hälfte der Stellen (UB) der mehrstelligen Zahl (360) bestimmt werden.1. A method for measuring the distance between a first and a second event, wherein the result can be represented as a multi-digit number ( 360 ) with at least 4 digits, that a first counting means ( 300 ) counts first pulses, that a second counting means ( 310 ) counts second Pulse counts, the second pulses being at a greater distance than the first pulses, that starting from at least one content of the second counting means ( 310 ) the first half of the digits (OB) of the multi-digit number ( 360 ) and starting from at least one content of the first counting means ( 300 ) the second half of the digits (UB) of the multi-digit number ( 360 ) are determined. 2. Verfahren nach Anspruch 1, dadurch gekennzeichnet, daß die zweiten Impulse ausgehend von den ersten Impulsen vorgebbar sind.2. The method according to claim 1, characterized in that the second impulses starting from the first impulses can be specified. 3. Verfahren nach Anspruch 1 oder 2, dadurch gekennzeichnet, daß ausgehend von einem ersten Inhalt (FT1) des ersten Zählmittels (300), der beim Auftreten des ersten Ergebnisses vorliegt, und einem zweiten Inhalt (FT2) des ersten Zählmittels (300), der beim Auftreten des zweiten Ereignisses vorliegt, die zweite Hälfte der Stellen (UB) der mehrstelligen Zahl bestimmt wird. 3. The method according to claim 1 or 2, characterized in that starting from a first content (FT1) of the first counting means ( 300 ), which is present when the first result occurs, and a second content (FT2) of the first counting means ( 300 ), which occurs when the second event occurs, the second half of the digits (UB) of the multi-digit number is determined. 4. Verfahren nach Anspruch 3, dadurch gekennzeichnet, daß die zweite Hälfte der Stellen (UB) durch Subtraktion des zweiten Inhalts (FT2) des ersten Zählmittels und dem ersten Inhalt (FT1) des ersten Zählmittels bestimmt werden.4. The method according to claim 3, characterized in that the second half of the digits (UB) by subtracting the second content (FT2) of the first counting means and the first Contents (FT1) of the first counting means can be determined. 5. Verfahren nach einem der vorherigen Ansprüche, dadurch gekennzeichnet, daß ausgehend von dem Inhalt des zweiten Zählmittels (310), der beim Auftreten des ersten Ereignisses vorliegt und dem zweiten Inhalt des zweiten Zählmittels (310), der beim Auftreten des zweiten Ereignisses vorliegt, und weiteren Größen die erste Hälfte der Stellen (OB) der mehrstelligen Zahl (360) bestimmt werden.5. The method according to any one of the preceding claims, characterized in that starting from the content of the second counting means ( 310 ) that is present when the first event occurs and the second content of the second counting means ( 310 ) that is present when the second event occurs, and other sizes, the first half of the digits (OB) of the multi-digit number ( 360 ) are determined. 6. Verfahren nach einem der vorhergehenden Ansprüche, dadurch gekennzeichnet, daß als weitere Größen, die zweiten Stellen der mehrstelligen Zahl, der Abstand der zweiten Impulse und/oder eine Konstante eingehen.6. The method according to any one of the preceding claims, characterized in that as further sizes, the second Place the multi-digit number, the spacing of the second Receive impulses and / or a constant. 7. Verfahren nach Anspruch 5, dadurch gekennzeichnet, daß die erste Hälfte der Stellen (OB) gemäß der Formel OB = (GTA.T1 - UB + K)/216 bestimmt werden, wobei es sich bei den Größen T1 und K um Konstanten handelt und die Größe GTA der Differenz des Inhalts des zweiten Zählmittels, der beim Auftreten des ersten Ereignisses vorliegt, und dem Inhalt des zweiten Zählmittels, der beim Auftreten des zweiten Ereignisses vorliegt, entspricht.7. The method according to claim 5, characterized in that the first half of the digits (OB) are determined according to the formula OB = (GTA.T1 - UB + K) / 2 16 , with the variables T1 and K being constants and the size GTA corresponds to the difference between the content of the second counting means that is present when the first event occurs and the content of the second counting means that is present when the second event occurs. 8. Vorrichtung zur Messung des Abstandes zwischen einem ersten und einen zweiten Ereignis, wobei das Ergebnis als mehrstellige Zahl mit wenigstens 4 Stellen darstellbar ist, mit einem ersten Zählmittel, das erste Impulse zählt, mit einem zweiten Zählmittel, das zweite Impulse zählt, wobei die zweiten Impulse einen größeren Abstand aufweisen, als die ersten Impulse, daß Mittel vorgesehen sind, die ausgehend von wenigstens einem Inhalt des zweiten Zählmittels die erste Hälfte der Stellen der mehrstelligen Zahl und ausgehend von wenigstens einem Inhalt des ersten Zählmittels die zweite Hälfte der Stellen der mehrstelligen Zahl bestimmen.8. Device for measuring the distance between one first and a second event, the result being as multi-digit number can be represented with at least 4 digits, with a first counting device that counts the first impulses with a second counting means which counts second pulses, whereby the second pulses are at a greater distance than the first impulses that means are provided that starting from at least one content of the second  Count the first half of the digits of the multi-digit number Number and starting from at least one content of the first Count the second half of the digits of the multi-digit number Determine number.
DE1997125728 1997-06-18 1997-06-18 Method and device for measuring a distance between a first and a second event Withdrawn DE19725728A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
DE1997125728 DE19725728A1 (en) 1997-06-18 1997-06-18 Method and device for measuring a distance between a first and a second event
PCT/DE1998/000743 WO1998058300A1 (en) 1997-06-18 1998-03-13 Process and device for measuring the time elapsed between two events

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
DE1997125728 DE19725728A1 (en) 1997-06-18 1997-06-18 Method and device for measuring a distance between a first and a second event

Publications (1)

Publication Number Publication Date
DE19725728A1 true DE19725728A1 (en) 1998-12-24

Family

ID=7832825

Family Applications (1)

Application Number Title Priority Date Filing Date
DE1997125728 Withdrawn DE19725728A1 (en) 1997-06-18 1997-06-18 Method and device for measuring a distance between a first and a second event

Country Status (2)

Country Link
DE (1) DE19725728A1 (en)
WO (1) WO1998058300A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3264454A (en) * 1962-09-24 1966-08-02 Canoga Electronics Corp Digital device for measuring time intervals
US3304415A (en) * 1963-09-10 1967-02-14 Bunker Ramo Counter apparatus
FR2492563B1 (en) * 1980-10-20 1986-08-14 Dassault Electronique DEVICE FOR COUNTING HIGH FREQUENCY PULSES

Also Published As

Publication number Publication date
WO1998058300A1 (en) 1998-12-23

Similar Documents

Publication Publication Date Title
EP0188433B1 (en) Device for detecting the angular position of a rotary member
EP0120196B1 (en) Circuit arrangement for the optical display of variables
DE3220896A1 (en) SENSOR
EP0192052B1 (en) Method of analysing the operation of an internal-combustion engine, and device for carrying out this method
DE2450859A1 (en) DEVICE FOR AUTOMATIC READING AND EVALUATION OF RECORDED CURVES
DE3828735C2 (en)
DE3218777A1 (en) METHOD AND DEVICE FOR CONTROLLING INTERNAL COMBUSTION ENGINES
DE3743160C2 (en)
DE3932075C2 (en) Method for recognizing a reference cylinder in a multi-cylinder internal combustion engine and device for carrying out the method
EP0392182B1 (en) Method and circuit for monitoring a continuous flow of time markings
DE3544079A1 (en) CALCULATOR WITH INTERRUPT PROGRAM
DE4035520C2 (en) Method and arrangement for measuring the speed of a vehicle
DE19725728A1 (en) Method and device for measuring a distance between a first and a second event
EP0209656B1 (en) Method and device for evaluating a pulse train containing information in the frequency and the pulse width
EP1082816B1 (en) Method and system for operating a multi-stage counter in one counting direction
DE3019788C2 (en) Test method for determining air inclusions in a fuel supply device for an internal combustion engine with fuel injection
DE3336976C2 (en)
EP0728260A1 (en) Electronic metering circuit
DE3008876C2 (en) Method and circuit arrangement for determining the mechanical speed
EP0233474B1 (en) Device for determining the number of revolutions of a shaft
DE4009749C2 (en)
DE3206064A1 (en) "FUEL INJECTION CONTROL SYSTEM"
DE2824981C2 (en) Device for controlling operating parameter-dependent and repetitive processes for internal combustion engines
DE3917580C2 (en)
DE2164909C3 (en) Arrangement for measuring the ignition angle in internal combustion engines

Legal Events

Date Code Title Description
8110 Request for examination paragraph 44
8139 Disposal/non-payment of the annual fee