Circuit Configuration And Method For Distributing Pulses Within A Time Interval

Information

  • Patent Application
  • 20130077733
  • Publication Number
    20130077733
  • Date Filed
    March 16, 2011
    13 years ago
  • Date Published
    March 28, 2013
    11 years ago
Abstract
A circuit configuration for generating pulses within a time interval on the basis of an input signal includes a counting unit, a comparator unit and a first adder circuit; the time interval being predicted on the basis of at least two defined changes in input signals; the circuit configuration being configured for triggering at the beginning of the time interval by the first adder circuit on the basis of clock pulses, for generating and outputting pulses; for counting a number of generated and output pulses using the counting unit;
Description
BACKGROUND OF THE INVENTION

1. Field Of The Invention


The present invention relates to a circuit configuration, as well as to a corresponding method for distributing pulses within a time interval on the basis of an input signal.


2. Description Of The Related Art


Generally, a position of motors is monitored by sensors which output a signal in response to a specific position being reached. This could be a crankshaft pulse-generator wheel of a combustion engine which, upon reaching a specific rotary angle, outputs a signal for identifying a specific position. This type of signal output can also be implemented by sensors that indicate a change in a magnetization when working with electromotors having permanent magnets. However, a pulse-generator wheel can also be used for these motors, as in the case of combustion engines. A control unit is able to compute a rotational speed from a time interval between two such events if the corresponding differential angle is known. The output sensor signals also indicate the momentary position of the motor in question.


To be able to more precisely assign, respectively determine a position of a motor, a duration to be expected until the next event is predicted, and a predetermined number of pulses, that is output, is distributed over this time interval in accordance with the duration that is to be expected. A position counter, respectively what is generally referred to as an angular clock, sums these output pulses within the time interval by incrementation, thereby allowing for enhanced positional information.


In the case of a motor acceleration, it may, however, occur that a next event, which induces a sensor to output a signal, occurs already before all pulses of the most recent time interval have been output.


As explained above, the time interval is specified, respectively predefined by the time interval between two successive events. However, once the time intervals have been predicted with knowledge of a history of successive events, and a number of pulses is derived therefrom that is to be distributed over the predicted time interval, it can happen that the predicted time interval does not coincide with the actually occurring time interval, because two successive events follow each other at a shorter time interval, due, for example, to the motor acceleration just mentioned. It is conceivable in this case that the number of pulses that had been predefined on the basis of the predicted time interval and distributed accordingly, was not able to be completely output within the actual time interval. It is sometimes customary in such a case to output pulses, which have not yet been output, at a maximum possible frequency before the actual pulses, which are to be output for the now subsequent time interval, are generated. This means that all of the pulses, which were not able to be output during the preceding time interval, are output at a highest possible frequency at the beginning of a time interval. However, this may result in a corresponding position counter having to change the value thereof very quickly, and modules, which analyze this position counter value, not being able to react in the desired manner.


Accordingly, it appears to be useful to add the pulses, not output in a preceding time interval, to a number of pulses to be output in the current time interval and to uniformly distribute this total pulse number over the current time interval. Under known methods heretofore, such conditions had only been realized as software.


Against this background of the high load of the CPU that is available to the entire system, it would be desirable to provide a method for distributing a total pulse number over a current time interval using hardware without the support of the CPU that is available to the system.


BRIEF SUMMARY OF THE INVENTION

The circuit configuration provided in accordance with the present invention may be implemented, for example, in a system architecture mentioned at the outset and reduce the load on a CPU that is available to the system.


A circuit configuration for generating pulses within a time interval in response to an input signal encompasses a counting unit, a comparator unit and a first adder circuit. The time interval, respectively a duration of the time interval is predicted on the basis of two defined changes in input signals. The circuit configuration provided is configured for triggering at the beginning of the time interval by the first adder circuit on the basis of clock pulses, for generating and outputting pulses; for counting a number of generated and output pulses using the counting unit; for comparing the counted number of pulses to a setpoint value using the comparator unit; and for ending the generation and outputting of the pulses in response to the reaching of the setpoint value or the ending of the time interval; as a first input quantity, a sum output by the first adder circuit in a previous clock pulse, and second input quantity, at least one calculated data value being transmitted to the first adder circuit; and, upon calculation of the data value, a deviation in the number of the pulses output in a preceding time interval from the setpoint value and/or systematic deviations in the time interval being considered.


Through the use of hardware and without the support of a CPU, the circuit configuration presented in accordance with the present invention makes it possible to allow for deviations in a number of pulses to be output from a setpoint value and/or for systematic deviations in the time interval, without the risk of modules, which analyze the outputting of pulses and thus a position associated therewith, not being able to handle a succession of pulses.


One possible specific embodiment of the circuit configuration according to the present invention provides that the calculated data value correspond to a ratio between the number of pulses to be output within the time interval and the predicted duration of the time interval. This means that the calculated data value may correspond to a quotient, for example, whose numerator is given by the number of pulses to be output within the time interval, and whose denominator is given by the time interval. It is thereby also accomplished that the pulses to be output within a time interval are uniformly distributed over the time interval, even when the number of these output pulses is elevated in comparison to a given setpoint value due to deviations in a preceding time interval or systematic deviations in the time interval, and are not transmitted at an increased frequency during the first clock pulse, i.e., at the beginning of a time interval, as in related art methods.


For instance, at a predefined number of pulses n to be transmitted, it is conceivable for a further number m of pulses to be added, which, in a preceding time interval, had no longer been transmitted, and, in some instances, for pulses a to also be added thereto, which are to be additionally transmitted due to a systematic deviation. The number of pulses to be output within a current time interval is thereby derived as the sum of setpoint value n, deviation m in the number of pulses output in a preceding time interval from the setpoint value, and of a number of pulses reflective of the systematic deviations in the time interval. Applying the previously mentioned variables, this would signify that new number n_new of the pulses to be output is expressed as:






n new=n+m+a


The data value which, at this point, is to be provided as a second input quantity to the adder circuit, could be derived in this context as a quotient, whose numerator is given by the new number of pulses n_new to be transmitted, and whose denominator is derived from the time interval.


It is also possible that potentially occurring rounding errors are taken into consideration when calculating the data value, in that the number of pulses to be output within the time interval is added to a correction value, such as 0.5, for example, before being set in proportion to the time interval.


In another specific embodiment of the circuit configuration provided in accordance with the present invention, it is conceivable that, upstream of the first adder circuit, the circuit configuration encompass a second adder circuit having signed values that provides the first adder circuit with the second input quantity. In this context, it may be a question of a pulse generator, for example, as described in the European Examined Patent Application EP 1 101 162 B1. A pulse generator of this kind employs an adder circuit having signed values.


The present invention also relates to a method for generating pulses within a time interval on the basis of an input signal, the duration of the time interval being predicted on the basis of at least two defined changes in input signals, and an above described circuit configuration being provided in accordance with the present invention.


Further advantages and embodiments of the present invention will become readily apparent from the description and the appended drawings.


It is understood that the aforementioned features and those which are still to be explained in the following may be used not only in the particular stated combination, but also in other combinations or alone, without departing from the scope of the present invention.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows a schematic representation of a specific embodiment of the circuit configuration presented in accordance with the present invention.



FIG. 2 shows a schematic representation of another specific embodiment of a circuit configuration presented in accordance with the present invention.





DETAILED DESCRIPTION OF THE INVENTION

The present invention is schematically illustrated in the drawings on the basis of specific embodiments and is described in detail in the following with reference to the drawings. A detailed description of design and function is provided.



FIG. 1 shows a schematic representation of a detail of a specific embodiment of the circuit configuration provided in accordance with the present invention. Illustrated is an adder circuit 10 having a first adder input 11 and a second adder input 12. Also shown are memory elements 13. Memory elements 13 include an input 14 and an output 15. Output 15 of memory elements 13 is linked to first input 11 of adder circuit 10. In addition, output 16 of adder circuit 10 is linked to input 14 of the memory elements.


A circuit configuration provided in accordance with the present invention first predicts a current time interval Δt(0). Such a prediction may, for example, be based on the assumption that current time interval Δt(0) is exactly as long as preceding time interval Δt(−1). However, a plurality of past time intervals may also be retrieved to permit a more precise calculation. The predictive value generally relates to a differential value of a corresponding time base that is formed as a numerator and increments a specific clock pulse. This specific clock pulse is referred to as time stamp clock (TS_CLK) in the following. If, at this point, the number of pulses to be transmitted is set in proportion to predicted time interval Δt(0), then a value ADD_IN is derived, which may be applied to adder circuit 10 via input 12, as is indicated by arrow 12_1. The value at adder output 16 is stored at clock pulse TS_CLK 18 in memory elements 13. The memory elements may be flipflop circuits, for example. Output 15 of these memory elements 13 is linked to input 11 of adder circuit 10. A reset signal 17 sets memory elements 13 to 0 at the beginning of the time interval. A circuit configuration of this kind is used to add the ADD_IN value at each clock pulse TS_CLK 18 to form a cumulative value. As soon as this value exceeds a range of numbers limited to a specific bit width, an overflow is generated, and the overflow bit positions are lost. This overflow is a pulse 19 that the circuit configuration is supposed to generate and that is supposed to be counted in a corresponding position counter (not shown here) associated with the circuit configuration.


If it turned out that a motor acceleration took place in a preceding time interval, for example, and, for that reason, not all pulses could be output that were to be output in accordance with the setpoint value, then at this point, in subsequent, i.e., current time interval Δt(0), number m of the pulses missing in the most recent time interval are now added to a number of pulses n to be output in the current interval (in accordance with the setpoint value). In addition, pulses a, which are to be additionally transmitted due to a systematic deviation of the current time interval, may also be added. It is to be noted that number a may be negative, as well as positive, depending on the systematic deviation in the corresponding time interval. Thus, a new number of pulses to be transmitted is derived for current time interval Δt(0). As mentioned above, this new number of pulses to be transmitted is expressed by the following equation:






n new=n+m+a


Thus, the resulting ADD_IN value is derived from the following equation:





ADD_IN=n_new/Δt(0)


In addition, it is possible to compensate for rounding errors in the calculation by adding the value 0.5 to new number n_new of pulses to be transmitted, before new number n_new is set in proportion to the time interval. Since, in addition, the reciprocal value of time interval Δt(0) may, in some instances, also be required for other calculating operations, it may be useful for this reciprocal value rt to be calculated once and stored accordingly. In this context, the storing may be carried out as a binary value having 24 bits and correspond to the 224 value of the corresponding result. If the value of n_new is limited to 20 bits, thus, value n_new 0.5 is obtained by shifting n_new by one bit position to the left and replacing what is generally referred to as LSB (least significant position) by a 1, which may be expressed by equation:





ADD_IN=(n_new+(0.5))*rt by rt=1/Δt(0)


As a result, corresponding adder circuit 10 should make at least 24÷20+1=45 bits available as a result value. In this context, however, the least significant position LSB is to be discarded, since value n_new was shifted by 1 bit. A 1 can never occur in the uppermost 20 bits when the number of pulses to be transmitted is smaller than the number of clock pulses TS_CLK in predicted time interval Δt(0). Therefore, only the lower 24 bits are used as ADD_IN value via the LSB.



FIG. 2 shows another specific embodiment of the circuit configuration provided in accordance with the present invention. In this context, a pulse generator is used, as is described in the European Examined Patent application EP 11 011 62 B1. This pulse generator employs a second adder circuit 20 having signed values. At this point, the predictive value of interval Δt(0) 21 is first fed in accordance with the present invention via a multiplexer to second input 12 of first adder circuit 10. Meanwhile, other input 11 is connected to memory elements 13, which are initially 0. Following a first summing operation, negative value 22 of the calculated pulse duration of the pulses is applied. This value is continually subtracted from the first value until a negative value is obtained in memory elements 13. In this case, a pulse 19 is output, and value Δt(0) is again fed via the multiplexer to first adder circuit 10. In this specific embodiment, as well, the setpoint value of pulses n to be output may be replaced with a modified new value n_new, as is described in the context of FIG. 1. Pulses to be made up for are thereby considered as well in the specific embodiment shown here of the pulse generator. The task of the pulses ends when the setpoint value for the current time interval is reached. To this end, as described above, a counting unit is used which counts the output pulses and, upon reaching the setpoint value, halts a further pulse generation for the current time interval.

Claims
  • 1-10. (canceled)
  • 11. A circuit configuration for generating pulses within a time interval on the basis of input signals, comprising: a counting unit;a comparator unit; anda first adder circuit;wherein: a duration of the time interval is predicted on the basis of at least two defined changes in the input signals;the circuit configuration is configured for triggering at the beginning of the time interval by the first adder circuit on the basis of clock pulses, for generating and outputting output pulses;as a first input signal quantity, a sum output by the first adder circuit associated with a previous clock pulse is transmitted to the first adder circuit, and, as a second input signal quantity, at least one calculated data value is transmitted to the first adder circuit; andupon calculation of the data value, at least one of (i) a deviation in the number of pulses output in a preceding time interval from a setpoint value, and (ii) a systematic deviation in the time interval is considered.
  • 12. The circuit configuration as recited in claim 11, wherein: the counting unit is configured to count the number of generated output pulses;the comparator unit is configured to compare the number of generated output pulses to a setpoint value and end the generation of the output pulses when one of (i) the number of generated output pulses reaches the setpoint value or (ii) the time interval ends.
  • 13. The circuit configuration as recited in claim 12, wherein the calculated data value corresponds to a ratio between the number of pulses to be output within the time interval and the predicted duration of the time interval.
  • 14. The circuit configuration as recited in claim 13, wherein the number of pulses to be output corresponds to a sum of (i) the setpoint value, (ii) the deviation in the number of pulses output in the preceding time interval from the setpoint value, and (iii) a number of pulses representing the systematic deviation in the time interval.
  • 15. The circuit configuration as recited in claim 13, wherein: in the calculation of the data value, potential rounding errors are considered by adding the number of pulses to be output within the time interval to a correction value to generate a corrected number of pulses to be output, and the calculated data corresponds to a ratio between the corrected number of pulses to be output and the time interval.
  • 16. The circuit configuration as recited in claim 12, further comprising: a second adder circuit upstream of the first adder circuit, wherein the second adder circuit has signed values which are provided to the first adder circuit as the second input quantity.
  • 17. The circuit configuration as recited in claim 12, wherein the generating and outputting of the output pulses are triggered by an overflow of the adder circuit.
  • 18. A method for generating pulses within a time interval on the basis of input signals, comprising: providing a circuit configuration having at least a counting unit, a comparator unit and a first adder circuit, wherein the first adder circuit triggers at the beginning of the time interval on the basis of clock pulses, for generating and outputting output pulses;predicting the duration of the time interval on the basis of at least two defined changes in input signals, wherein as a first input signal quantity, a sum output by the first adder circuit associated with a previous clock pulse is transmitted to the first adder circuit, and, as a second input signal quantity, at least one calculated data value is transmitted to the first adder circuit; andconsidering, upon calculation of the data value, at least one of (i) a deviation in the number of pulses output in a preceding time interval from a setpoint value, and (ii) a systematic deviation in the time interval.
  • 19. The method as recited in claim 18, wherein: the counting unit counts the number of generated output pulses; andthe comparator unit compares the number of generated output pulses to a setpoint value and ends the generation of the output pulses when one of (i) the number of generated output pulses reaches the setpoint value or (ii) the time interval ends.
  • 20. The method as recited in claim 19, wherein the calculated data value corresponds to a ratio between the number of pulses to be output within the time interval and the predicted duration of the time interval.
  • 21. The method as recited in claim 20, wherein the number of pulses to be output corresponds to a sum of (i) the setpoint value, (ii) the deviation in the number of pulses output in the preceding time interval from the setpoint value, and (iii) a number of pulses representing the systematic deviation in the time interval.
  • 22. The method as recited in claim 20, wherein: in the calculation of the data value, potential rounding errors are considered by adding the number of pulses to be output within the time interval to a correction value to generate a corrected number of pulses to be output, and the calculated data corresponds to a ratio between the corrected number of pulses to be output and the time interval.
  • 23. The method as recited in claim 19, wherein the circuit configuration further includes a second adder circuit upstream of the first adder circuit, and wherein the second adder circuit has signed values which are provided to the first adder circuit as the second input quantity.
  • 24. The method as recited in claim 19, wherein the generating and outputting of the output pulses are triggered by an overflow of the adder circuit.
Priority Claims (1)
Number Date Country Kind
10 2010 003 542.4 Mar 2010 DE national
PCT Information
Filing Document Filing Date Country Kind 371c Date
PCT/EP2011/053979 3/16/2011 WO 00 12/5/2012