(19)
(11)EP 2 912 773 B1

(12)EUROPEAN PATENT SPECIFICATION

(45)Mention of the grant of the patent:
04.12.2019 Bulletin 2019/49

(21)Application number: 12887133.2

(22)Date of filing:  24.10.2012
(51)International Patent Classification (IPC): 
H03K 21/38(2006.01)
G01R 23/10(2006.01)
(86)International application number:
PCT/CN2012/083428
(87)International publication number:
WO 2014/063316 (01.05.2014 Gazette  2014/18)

(54)

PULSE FREQUENCY MEASUREMENT DEVICE AND METHOD AND CONTROL SYSTEM

PULSFREQUENZMESSVORRICHTUNG UND -VERFAHREN SOWIE STEUERSYSTEM DAFÜR

PROCÉDÉ ET DISPOSITIF DE MESURE DE FRÉQUENCE D'IMPULSIONS, ET SYSTÈME DE COMMANDE


(84)Designated Contracting States:
AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR

(43)Date of publication of application:
02.09.2015 Bulletin 2015/36

(73)Proprietor: ABB Schweiz AG
5400 Baden (CH)

(72)Inventors:
  • ZHAI, Lilei
    Zhejiang 310011 (CN)
  • LIU, Wei
    Zhejiang 310015 (CN)
  • LOHBECK, Axel
    Zhejiang 311215 (CN)

(74)Representative: Zimmermann & Partner Patentanwälte mbB 
Postfach 330 920
80069 München
80069 München (DE)


(56)References cited: : 
EP-A1- 2 172 785
US-A- 4 603 292
US-A1- 2003 117 181
CN-A- 101 221 200
US-A- 5 198 750
  
  • KAZIMIERZ (KAI) SIWIAK: "HIGH ACCURACY FAST FREQUENCY COUNTER", IP.COM JOURNAL, IP.COM INC., WEST HENRIETTA, NY, US, 16 January 2002 (2002-01-16), XP013001673, ISSN: 1533-0001
  
Note: Within nine months from the publication of the mention of the grant of the European patent, any person may give notice to the European Patent Office of opposition to the European patent granted. Notice of opposition shall be filed in a written reasoned statement. It shall not be deemed to have been filed until the opposition fee has been paid. (Art. 99(1) European Patent Convention).


Description

Field of the Invention



[0001] The present invention relates to the field of pulse frequency measurement, and more particularly, to a pulse frequency measurement device and method which are capable of implementing measurement for high frequency pulse sequence using a cheap hardware counter and a low speed processing unit, as well as a control system including the pulse frequency measurement device and a control system configured to perform the pulse frequency measurement method.

Background of the Invention



[0002] Nowadays, pulse frequency measurement is widely used in process automation industry and has to deal with pulse sequences with a wide variety of frequencies. The existing implementations usually use FPGAs (Field Programmable Gate Array) to implement a frequency measurement logical function, which increases the cost of implementation. Further, current algorithms for frequency measurement, such as an "f' method which counts the number of pulses in a certain time period and a "t" method which measures a pulse width, require high speed MCUs for high frequency pulses, which also increases the cost.

[0003] US 2003/117181 A1 describes a method and system for determining the frequency of a pulse input signal. A pulse count and a timer count can be captured at a start and end of a predetermined measurement interval to thereby obtain a start pulse count and an end pulse count and a start pulse time and an end pulse time thereof. A pulse frequency can then be determined. A pulse counter ("Pulse Count") may be second integrated circuit counter which can be implemented as an eight bit pulse counter a 16 bit high order pulse counter utilizing a processor data register. A second integrated circuit counter can provide a first output signal along a line to read line of a micro controller.

Summary of the Invention



[0004] The brief summary of the invention will be given below to provide basic understanding of some aspects of the invention. However, it shall be appreciated that this summary is neither exhaustively descriptive of the invention nor intended to define essential or important components or the scope of the invention but is merely for the purpose of presenting some concepts of the invention in a simplified form and hereby acts as a preamble of more detailed descriptions which will be presented later.

[0005] In view of the above circumstances, an object of the invention is to propose a new frequency measurement solution which uses a low speed MCU together with an external hardware counter to measure the frequency of an input pulse sequence, thereby significantly decreasing the cost while ensuring the same measurement effect as that provided by the FPGA solutions.

[0006] According to an aspect of the invention, there is provided a pulse frequency measurement device including: a hardware counter configured to perform a counting operation on an input pulse sequence to output a counting result; and a processing unit configured to obtain number of pulses from the counting result and measure a first time period during which the obtained number of pulses occupy, in which the processing unit includes a frequency calculation module configured to calculate a frequency of the input pulse sequence based on the obtained number of pulses and the first time period.

[0007] The frequency calculation module is further configured to calculate the frequency of the input pulse sequence based on the obtained number of pulses and the first time period from the processing unit if the processing unit determines that number of times that the hardware counter reaches its full-scale counting number obtained from the counting result within a predetermined sampling time period is not smaller than a first predetermined threshold or determines that the number of pulses obtained from the counting result within the predetermined sampling time period is not smaller than a second predetermined threshold.

[0008] The frequency calculation module is further configured to calculate the frequency of the input pulse sequence based on a time period of a single pulse measured by the processing unit if the processing unit determines that number of times that the hardware counter reaches its full-scale counting number obtained from the counting result within the predetermined sampling time period is smaller than the first predetermined threshold or determines that the number of pulses obtained from the counting result within the predetermined sampling time period is smaller than the second predetermined threshold.

[0009] According to another embodiment of the invention, the processing unit further includes a software counter configured to count the number of pulses in the input pulse sequence and measure a second time period during which the counted number of pulses occupy if the processing unit determines that the frequency calculated based on the time period of the single pulse is larger than a predetermined frequency threshold, and the frequency calculation module is further configured to calculate the frequency of the input pulse sequence based on the number of pulses counted by the software counter and the second time period.

[0010] According to another embodiment of the invention, the processing unit is further configured to obtain number of pulses that the hardware counter reaches its full-scale counting number from the counting result and obtain the number of pulses based on the number of times and the full-scale counting number, and the first time period is determined based on a point of time at which the hardware counter reaches the full-scale counting number.

[0011] According to another embodiment of the invention, a time division strategy is used to measure frequencies of a plurality of input pulse sequences, and the processing unit is further configured to obtain number of pulses of a first input pulse sequence within a first predetermined measuring time period, while to obtain number of pulses of a second input pulse sequence within a second predetermined measuring time period.

[0012] According to another embodiment of the invention, if the processing unit determines that less than predetermined number of pulses of the first input pulse sequence are obtained within the first predetermined measuring time period, the first input pulse sequence is measured in background without being limited to the first predetermined measuring time period.

[0013] According to another embodiment of the invention, the first and second predetermined measuring time periods are with same length and do not overlap.

[0014] According to another embodiment of the invention, the first predetermined threshold is 1, and the second predetermined threshold is the full-scale counting number of the hardware counter.

[0015] According to another embodiment of the invention, the time period of the single pulse and the second time period are measured by capturing rising edges of the input pulse sequence.

[0016] According to another embodiment of the invention, the processing unit is a micro control unit.

[0017] According to another aspect of the invention, there is provided a pulse frequency measurement method including: performing a counting operation on an input pulse sequence to output a counting result by a hardware counter; obtaining number of pulses from the counting result and measuring a first time period during which the obtained number of pulses occupy by a processing unit; and calculating a frequency of the input pulse sequence based on the obtained number of pulses and the first time period by a frequency calculation module in the processing unit if number of times that the hardware counter reaches its full-scale counting number obtained from the counting result within a predetermined sampling time period is not smaller than a first predetermined threshold or the number of pulses obtained from the counting result within the predetermined sampling time period is not smaller than a second predetermined threshold.

[0018] According to yet another aspect of the invention, there is provided a control system including the pulse frequency measurement device described above.

[0019] According to still another aspect of the invention, there is provided a control system configured to perform the pulse frequency measurement method described above.

[0020] According to embodiments of the invention, it is also possible to realize adaptive pulse frequency measurement by automatically recognizing a frequency range of the input pulse sequence without additional user configuration, thereby automatically choosing an optimal frequency measurement manner for different input pulse sequences, and meanwhile to realize a multi-channel sampling for multiple input pulse sequences by adopting a time division strategy.

Brief Description of the Drawings



[0021] The invention can be better understood with reference to the detailed description given below in conjunction with the accompanying drawings, throughout which identical or like reference signs denote identical or like components and together with which the following detailed description is incorporated into and forms a part of the specification and serves to further illustrate the preferred embodiments of the invention and to explain the principle and advantages of the invention. In the drawings:

Fig.1 illustrates a block diagram of an example configuration of a pulse frequency measurement device according to an embodiment of the invention;

Fig.2 illustrates an example timing diagram for measurement of a high frequency pulse sequence;

Fig.3 illustrates an example timing diagram for measurement of a low frequency pulse sequence;

Fig.4 illustrates an example timing diagram for measurement of a medium frequency pulse sequence; and

Fig.5 illustrates an example flow chart of a pulse frequency measurement method according to an embodiment of the invention.


Detailed Description of the Invention



[0022] Exemplary embodiments of the present invention will be described below in conjunction with the accompanying drawings. For the sake of clarity and conciseness, not all the features of practical implementations are described in the specification. However, it is to be appreciated that numerous implementation-specific decisions shall be made during developing any of such practical implementations so as to achieve the developer's specific goals, for example, to comply with system- and business-related constraining conditions which will vary from one implementation to another. Moreover, it shall also be appreciated that such a development effort might be very complex and time-consuming but may simply be a routine task for those skilled in the art benefiting from this disclosure.

[0023] It shall further be noted that only those device structures and method steps closely relevant to the solutions of the invention are illustrated in the drawings while other details less relevant to the invention are omitted so as not to obscure the invention due to those unnecessary details.

[0024] Hereinafter, preferred embodiments of the invention will be described with reference to Figs. 1 to 5.

[0025] First, an example structure of the pulse frequency measurement device will be described with reference to Fig.1 below.

[0026] As shown in Fig.1, the pulse frequency measurement device may include a hardware counter 110 and a processing unit 120. It is to be noted that the MCU is used as an example of the processing unit 120 below, but those skilled in the art may use any processing unit having a corresponding function but with a low cost. The processing unit 120 may include a frequency calculation module 122.

[0027] The hardware counter 110 may be configured to perform a counting operation on an input pulse sequence to output a counting result. The hardware counter 110 is an electronic device well known to those skilled in the art, and the structure and operating principle thereof will not be described in detail herein. Preferably, noises of the input pulse sequence may have been filtered out before being input into the hardware counter 110. As is known to those skilled in the art, the counting result outputted by the hardware counter 110 may be a carry output signal indicating that the hardware counter 110 has reached its full-scale counting number, or the actual number of pulses counted by the hardware counter 110.

[0028] The processing unit 120 may be configured to obtain number of pulses from the counting result outputted by the hardware counter 110 and measure a first time period during which the obtained number of pulses occupy.

[0029] The frequency calculation module 122 may be configured to calculate a frequency of the input pulse sequence based on the obtained number of pulses and the first time period.

[0030] According to the embodiment of this invention, a processing unit, such as a MCU, with low processing speed is used in order to save cost, but such processing unit may not be able to handle the high frequency pulse sequence. As is known to those skilled in the art, however, the hardware counter may be specially responsible for counting operation and may achieve high performance and high counting accuracy even for a high frequency pulse sequence, which may greatly decrease the MCU's work load, and thus it is possible to measure high frequency pulse sequence using a low speed MCU and with fewer MCU's resources.

[0031] Detailed process of the measurement for high frequency pulse sequence using the hardware counter 110 and the processing unit 120 will be described in detail with reference to Fig.2 below.

[0032] Preferably, the processing unit 120 may be further configured to obtain number of times that the hardware counter 110 reaches its full-scale counting number from the counting result and obtain the number of pulses based on the number of times and the full-scale counting number, and the first time period may be determined based on a point of time at which the hardware counter 110 reaches the full-scale counting number.

[0033] Specifically, in the embodiment of this invention, in order to simplify the operation and control, it is preferable that the frequency calculation for high frequency pulse sequence is based on the full-scale counting number of the hardware counter 110. By way of example, a preferable interaction process between the hardware counter 110 and the processing unit 120 will be explained briefly first.

[0034] When the hardware counter 110 reaches its full-scale counting number, it will output a signal, such as the carry output signal described above, to notify the processing unit 120, which typically will trigger an interrupt event of the processing unit 120 and the processing unit 120 will record the number of times that this signal is received and a corresponding point of time. In this way, there is no need for the processing unit 120 to perform additional operation to retrieve the counted number of pulses, thereby simplifying the operation and further reducing the work load of the processing unit 120. Such notification mechanism is also known as an interrupt mechanism.

[0035] In a case that the counting result represents the carry output signal, each time the processing unit 120 receives this signal, it will increase the number of times that the hardware counter 110 reaches the full-scale counting number (simply referred to as number of times hereinafter) by one. On the other hand, if the counting result represents the actual number of pulses, taking a 3-bit counter as an example, the processing unit 120 will increase the number of times by one each time the counting result is 8, while maintaining the current number of times and disregarding the remaining pulses if the counting result is smaller than 8.

[0036] As an example, if a point of time at which the hardware counter 110 first reaches its full-scale counting number, that is, a point of time at which the number of times is 1, is recorded as a start time, and a point of time at which the final number of times (referred to as N) is obtained is recorded as an end time, then the total number of pulses is determined by multiplying the number of times N minus 1 with the full-scale counting number which is already known in advance, and the first time period equals to the end time minus the start time.

[0037] It shall be appreciated that although the above measurement schemes are implemented preferably based on whether the hardware counter 110 has reached its full-scale counting number so as to further simplify the measurement process, those skilled in the art may readily conceive of configuring the processing unit 120 to initiatively retrieve the counting number from the hardware counter 110 at any appropriate time and record corresponding start time and end time. Then the frequency of the input pulse sequence may be calculated based on the number of pulses measured from the start time to the end time and the time period equaling to the end time minus the start time, and the number of pulses may be obtained partly based on the number of times that the hardware counter reaches its full-scale counting number. However, since the retrieve operation also consumes some time and additional hardware may be needed to support relevant additional operations such as storage and the like, this mechanism may result in error and increase the cost and complexity of circuit design. Thus, the interrupt mechanism based on the carry output of the hardware counter 110 may be more preferable due to high accuracy and low complexity.

[0038] Then the frequency calculation module 122 may calculate the frequency of the input pulse sequence based on the number of pulses and the first time period obtained by the processing unit 120. Preferably, in the above first measurement scheme, the frequency calculation manner for high frequency pulse sequence can be expressed in the following equation:

in which the HardwareCounterValue equals to a value obtained by multiplying the number of times N minus 1 with the full-scale counting number, and the TimePriod1 is measured by the processing unit 120 and equals to the end time minus the start time.

[0039] With reference to Fig.2, assume that the hardware counter 110 is a 3-bit counter which is very cheap, and the full-scale counting number thereof is 8. As shown in Fig.2, the point of time when the counting number first reaches 8 is recorded as the start time, while the point of time when the counting number reaches 8 for the third time is recorded as the end time, then the HardwareCounterValue equals to (3-1)8=16.

[0040] In preferable, the start time may be the point of time at which the hardware counter 110 first reaches its full-scale counting number, and the end time may be the point of time at which the hardware counter 110 reaches its full-scale counting number for the second time, and thus different requirements for frequency measurement can be satisfied by simply choosing number of bits of the hardware counter 110.

[0041] As can be seen from above, since the processing unit 120 only needs to perform relevant operations when the hardware counter 110 outputs the carry output signal, its processing capability is sufficient for handling such frequency of operation. In other words, such processing is equivalent to frequency reduction operation, enabling to realize measurement for high frequency pulse sequence even utilizing the processing unit with low processing speed.

[0042] For the high frequency pulse sequence, the frequency measurement described above is based on the carry output of the hardware counter 110. However, if the frequency of the input pulse sequence is not high enough, in other words, if the hardware counter 110 can not obtain enough pulses for the subsequent pulse frequency measurement within a predetermined sampling time period, it means that the input pulse sequence may be of a relatively low frequency, and may be not well suitable for being measured with the above measurement scheme, since the processing unit 120 has to wait for a long time to get enough calculation resources so that a real-time user interaction can not be ensured.

[0043] The frequency calculation module 122 may be further configured to calculate the frequency of the input pulse sequence based on a time period of a single pulse measured by the processing unit 120 if the processing unit 120 determines that number of times that the hardware counter 110 reaches its full-scale counting number obtained from the counting result within a predetermined sampling time period is smaller than a first predetermined threshold or determines that the number of pulses obtained from the counting result within the predetermined sampling time period is smaller than a second predetermined threshold.

[0044] Specifically, if the counting result represents the carry output signal, the processing unit 120 may obtain the number of times in an increment of 1 each time the carry output signal is received and obtain the number of pulses based on the number of times and the full-scale counting number of the hardware counter 110. Then, the processing unit 120 may determine whether the number of times obtained within the predetermined sampling time period is smaller than the first predetermined threshold or whether the number of pulses obtained within the predetermined sampling time period is smaller than the second predetermined threshold. Preferably, the first predetermined threshold may be 1, and the second predetermined threshold may be the full-scale counting number of the hardware counter 110. That is to say, if the processing unit 120 receives no carry output signal within the predetermined sampling time period, the input pulse sequence will be regarded as of low frequency.

[0045] It shall be appreciated that the first and second predetermined thresholds can of course be set as any appropriate values by those skilled in the art depending on actual requirements.

[0046] On the other hand, if the counting result represents the actual number of pulses, the processing unit 120 may obtain the number of pulses by accumulating the counting result and determine whether the number of pulses within the predetermined sampling time period is smaller than the second predetermined time period. If so, then the input pulse sequence will be regarded as of low frequency.

[0047] In such case, the frequency calculation module 122 may calculate the frequency of the input pulse sequence based on the time period of the single pulse measured by the processing unit 120.

[0048] The detailed measurement process for the low frequency pulse sequence is shown in Fig.3. As can be seen from Fig.3, the time period of the single pulse is determined by capturing two successive rising edges of the pulse sequence. It is to be noted that this is only an example, and the time period of the single pulse can of course be captured at two successive decreasing edges of the pulse sequence. Preferably, the frequency calculation manner for the low frequency pulse sequence can be expressed in the following equation:

in which the EndTime indicates a point of time at which a second rising edge of the input pulse sequence is captured, and the StartTime indicates a point of time at which a first rising edge of the input pulse sequence is captured.

[0049] The above measurement manner is particularly suitable for measuring low frequency pulse sequence, since the frequency of the pulse sequence is relatively low so that sampling for the two successive rising edges may be accurate.

[0050] However, if the frequency of the pulse sequence is not low enough, then the sampling for only one cycle of the pulse sequence, that is, the time period of the single pulse, may be not accurate, and thus it is required to sample more than one cycle of the pulse sequence and perform an averaging operation so as to eliminate error and improve the accuracy of the measurement.

[0051] Preferably, the processing unit 120 may further include a software counter 121. The software counter 121 may be configured to count the number of pulses in the input pulse sequence and measure a second time period during which the counted number of pulses occupy if the processing unit 120 determines that the frequency calculated based on the time period of the single pulse is larger than a predetermined frequency threshold, for example, above 1 kHz. The predetermined frequency threshold may be an empirical value depending on practical use.

[0052] In this case, the input pulse sequence is regarded as a medium frequency pulse sequence. Hereinafter, the detailed measuring process for the medium frequency pulse sequence will be described with reference to Fig.4.

[0053] As can be seen from Fig.4, when having detected for example the rising edge of the input pulse sequence for the first time, the software counter 121 will record this point of time as a start time. Then, as required, when having detected for example the n-th (where n is an integer larger than 1) rising edge of the input pulse sequence, the software counter 121 will record this point of time as an end time and output the total number of pulses counted thus far, and the second time period equals to the end time minus the start time.

[0054] Then the frequency calculation module 122 may be further configured to calculate the frequency of the input pulse sequence based on the number of pulses counted by the software counter 121 and the second time period. Preferably, the frequency calculation manner for medium frequency pulse sequence can be expressed in the following equation:

in which the SoftwareCounterValue indicates the number of pulses counted by the software counter 121, and the TimePriod2 equals to the end time minus the start time.

[0055] Preferably, both the software counter 121 and the frequency calculation module 122 may be implemented as firmware in the processing unit 120. Moreover, the predetermined sampling time period may be set by the processing unit 120 in advance depending on the performance of the processing unit 120 as well as the actual requirements. Preferably, the predetermined sampling time period as well as various timing functions described above can be implemented by an internal timer of the processing unit 120, thereby ensuring accuracy of measurement result. As an example, the timer may be in an order of microseconds.

[0056] As can be seen from above, an adaptive pulse frequency measurement is achieved according to the embodiment of the invention. Specifically, the external input pulse sequence will be first input into the hardware counter 110, then the processing unit 120 will do a fast trial sampling to estimate a rough frequency range of the pulse sequence and then chooses an optimal measurement scheme for pulse sequences with different frequencies based on the estimated frequency range. Therefore, there is no need for the user to estimate and specify an input pulse frequency range as a configuration item, thereby achieving intelligence and automation for frequency measurement in the process automation industry. Meanwhile, different optimal frequency measurement strategies are used for different pulse sequences so that high measurement accuracy is ensured.

[0057] Furthermore, to support multi-channel sampling for a plurality of input pulse sequences, a time division strategy may be adopted, that is to say, frequency measurement for each input pulse sequence will occupy a time slice.

[0058] Specifically, the processing unit 120 may be further configured to obtain number of pulses of a first input pulse sequence within a first predetermined measuring time period, while to obtain number of pulses of a second input pulse sequence within a second predetermined measuring time period. Thus, the first and second predetermined measuring time periods may be so-called time slices assigned to each of the plurality of input pulse sequences. Preferably, the first and second predetermined measuring time periods are with same length and do not overlap.

[0059] It shall be appreciated that the time slice is a time mechanism for controlling switching among frequency measurements for the plurality of input pulse sequences, and may be set according to actual requirements, such as a data updating frequency required for an end user, and so on. In preferable, the time slice can also be implemented by the internal timer in the processing unit 120.

[0060] Preferably, if the processing unit 120 determines that less than predetermined number of pulses of the first input pulse sequence are obtained within the first predetermined measuring time period, the first input pulse sequences will be measured in background without being limited to the first predetermined measuring time period.

[0061] As an example, if even one pulse of an input pulse sequence can not be obtained within the whole time slice assigned to the pulse sequence, that is, the frequency of the pulse sequence can not be measured within the time slice, it means that this pulse sequence has a very low frequency and it is safe to put frequency measurement thereof at background in parallel with other pulse sequence measurement time slices, so that the measurement process for very low frequency pulse sequence will not block others.

[0062] Although specific implementations of the pulse frequency measurement device according to the preferred embodiments of the invention have been described above with reference to Figs. 1-4, it is to be understood that the structure as shown in Fig. 1 and electronic components used therein are only exemplary without limitation, and those skilled in the art may make various variations and alternations to the above structure according to the principles taught by the invention as required.

[0063] Next, an example flow of a pulse frequency measurement method according to an embodiment of the invention will be described with reference to Fig.5.

[0064] It is to be noted that the flow as shown in Fig.5 is only a specific exemplary implementation of the pulse frequency measurement method according to the embodiment of the invention, which facilitates understanding on the invention as a whole, but the implementations will not be limited to this.

[0065] As shown in Fig.5, first, in step S510, a pulse sequence is input into the hardware counter 110 and a counting operation is performed on the input pulse sequence to output a counting result by the hardware counter 110.

[0066] Next, in step S512, number of pulses is obtained from the counting result and a first time period during which the obtained number of pulses occupy is measured by the processing unit 120.

[0067] Preferably, the number of pulses may be obtained by the processing unit 120 based on number of times that the hardware counter 110 reaches its full-scale counting number and the full-scale counting number, the number of times being obtained by the processing unit 120 from the counting result. Further, the first time period may be determined based on a point of time at which the hardware counter 110 reaches the full-scale counting number. The detailed description about implementation of process in step 512 can be referred to the above corresponding description with respect to the pulse frequency measurement device, and no repeated description will be made herein.

[0068] Then in step S514, it is determined whether the number of times that the hardware counter 110 reaches its full-scale counting number obtained from the counting result within a predetermined sampling time period is smaller than a first predetermined threshold or determines that the number of pulses obtained from the counting result within the predetermined sampling time period is smaller than a second predetermined threshold. Preferably, the first predetermined threshold may be 1, and the second predetermined threshold may be a full-scale counting number of the hardware counter 110.

[0069] If not, then it means that the input pulse sequence is a high frequency pulse sequence, and in step S516, a frequency of the input pulse sequence is calculated by the frequency calculation module 122 based on the number of pulses and the first time period obtained by the processing unit 120 in step S512. The detailed description about frequency measurement for high frequency pulse sequence can be referred to the above corresponding description with respect to the pulse frequency measurement device.

[0070] On the other hand, if the determination result in step S514 is YES, then it means that this pulse sequence may not be well suitable for being measured using the hardware counter 110, and in step S518, the frequency of the input pulse sequence is calculated by the frequency calculation module 122 based on a time period of a single pulse measured by the processing unit 120.

[0071] Next, in step S520, it is determined whether the frequency calculated based on the time period of the single pulse in step 518 is larger than a predetermined frequency threshold.

[0072] If not, it means that the frequency of the input pulse sequence is relatively low, for example, below 1kHz, and only one cycle sampling is sufficient for calculating the frequency of the pulse sequence, then the calculation result in step S518 is output.

[0073] On the other hand, if it is determined in step S520 that the frequency calculated in step 518 is larger than the predetermined frequency threshold, it means that the input pulse sequence may be of medium frequency, and only one cycle sampling can not ensure the measurement accuracy, and then in step S522, the number of pulses in the input pulse sequence is counted and a second time period during which the counted number of pulses occupy is measured by the software counter 121.

[0074] Next, in step S524, the frequency of the input pulse sequence is calculated by the frequency calculation module 122 based on the number of pulses and the second time period obtained by the software counter 121 in step S522.

[0075] According to the above description of the example flow of the pulse frequency measurement method, an adaptive pulse frequency measurement can be implemented. Specifically, different optimal measurement schemes for input pulse sequences with different frequencies may be chosen automatically by the processing unit 120 without user's configuration, thereby realizing automation and intelligence in frequency measurement.

[0076] In addition, in order to achieve multi-channel sampling for multiple input pulse sequences, a time division strategy may be used in the above pulse frequency measurement method. More specifically, a time slice can be assigned to each channel/each few channels, only one channel or few channels are measured at a point of time, and another channel or another few channels are measured at another point of time. To further lower the calculation capacity of the processing unit, the time slice for each channel/each few channels does not overlap so that only one/few channels are measured at one time. Preferably, the time slice for each channel/few channels is at same length.

[0077] Preferably, if less than predetermined number of pulses of a certain pulse sequence are obtained by the processing unit 120 within a measurement time slice assigned to the pulse sequence, that is, the frequency measurement of the pulse sequence can not be realized or can not satisfy the measurement requirements with the time slice, then it is safe to put frequency measurement thereof at background in parallel with measurements of other pulse sequences, without being limited to the time slice assigned thereto. Less than predetermined number of pulses means that the pulse sequence is at a relatively low frequency and thus the calculation capacity requirement of the processing unit is relatively low. By putting its measurement at background, its frequency can be measured as required and no extra cost is incurred. The detailed description about the time division strategy can be referred to the corresponding description of the pulse frequency measurement device, and no repeated description will be made herein.

[0078] It shall be understood that the above flow is only an example implementation for the pulse frequency measurement, and some steps may be omitted or some additional steps may be added as required. For example, the steps relevant to the middle and low frequency pulses may be optional, which may achieve better measurement effect.

[0079] Further, it shall be appreciated that the pulse frequency measurement method corresponds to the forgoing pulse frequency measurement device, the details which are not described in the method can be found in the corresponding description with respect to the frequency measurement device and no repeated description will be made herein.

[0080] Further, any control system that utilizes the above-described pulse frequency measurement device or method will also fall within the protection scope of the invention.

[0081] It shall also be noted that obviously each component or each step may be decomposed and/or recombined in the device and method of the present invention. These decompositions and/or re-combinations shall be considered as equivalent schemes of the present invention. Also, the steps of performing the above series of processes may be naturally performed chronologically in an order of description but not necessarily. Some steps may be performed in parallel or independently from one another.

[0082] Although the invention and advantages thereof have been described in detail herein, it shall be understood that various changes, replacements and modifications may be made by one skilled in the art without departing from the invention defined by the appended claims. Furthermore, the terms "comprise", "include" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a process, method, article, or device that comprises a list of elements includes not only those elements but also other elements not explicitly listed or inherent to such process, method, article, or device. Unless further defined, a sentence "comprises a/an..." which defines an element does not preclude the existence of additional identical element(s) in the process, method, article, or device that comprises the element.


Claims

1. A pulse frequency measurement device comprising:

a hardware counter (110) configured to perform a counting operation on an input pulse sequence to output a counting result; and

a processing unit (120) configured to obtain number of pulses from the counting result and measure a first time period which the obtained number of pulses occupy,

wherein the processing unit (120) comprises a frequency calculation module (122) configured to calculate a frequency of the input pulse sequence based on the obtained number of pulses and the first time period,

wherein the frequency calculation module (122) is further configured to calculate the frequency of the input pulse sequence based on a time period of a single pulse measured by the processing unit (120) if the processing unit determines that number of times that the hardware counter (110) reaches its full-scale counting number obtained from the counting result within a predetermined sampling time period is smaller than a first predetermined threshold or determines that the number of pulses obtained from the counting result within the predetermined sampling time period is smaller than a second predetermined threshold.


 
2. The pulse frequency measurement device according to claim 1, wherein the processing unit (120) further comprises a software counter (121) configured to count the number of pulses in the input pulse sequence and measure a second time period which the counted number of pulses occupy if the processing unit (120) determines that the frequency calculated based on the time period of the single pulse is larger than a predetermined frequency threshold,
wherein the frequency calculation module (122) is further configured to calculate the frequency of the input pulse sequence based on the number of pulses counted by the software counter and the second time period,
wherein the time period of the single pulse and the second time period are preferably measured by capturing rising edges of the input pulse sequence, and
wherein the predetermined frequency threshold is preferably 1 kHz.
 
3. The pulse frequency measurement device according to any of claims 1 to 2, wherein the processing unit (120) is configured to obtain number of times that the hardware counter (110) reaches its full-scale counting number from the counting result and obtain the number of pulses based on the number of times and the full-scale counting number, and wherein the first time period is determined based on a point of time at which the hardware counter (110) reaches the full-scale counting number.
 
4. The pulse frequency measurement device according to any of claims 1 to 3, wherein a time division strategy is used to measure frequencies of a plurality of input pulse sequences, and the processing unit (120) is further configured to obtain number of pulses of a first input pulse sequence within a first predetermined measuring time period, while to obtain number of pulses of a second input pulse sequence within a second predetermined measuring time period, wherein preferably, if the processing unit determines that less than predetermined number of pulses of the first input pulse sequence are obtained within the first predetermined measuring time period, the first input pulse sequence is measured in background without being limited to the first predetermined measuring time period, wherein preferably the first and second predetermined measuring time periods are with same length and do not overlap.
 
5. The pulse frequency measurement device according to claim 1, wherein the first predetermined threshold is 1, and the second predetermined threshold is the full-scale counting number of the hardware counter (110).
 
6. The pulse frequency measurement device according to any of claims 1 to 5, wherein the processing unit (120) is a micro control unit.
 
7. A pulse frequency measurement method comprising:

performing a counting operation on an input pulse sequence to output a counting result by a hardware counter (110);

obtaining number of pulses from the counting result and measuring a first time period which the obtained number of pulses occupy by a processing unit (120);

calculating a frequency of the input pulse sequence based on the obtained number of pulses and the first time period by a frequency calculation module (122) in the processing unit if number of times that the hardware counter (110) reaches its full-scale counting number obtained from the counting result within a predetermined sampling time period is not smaller than a first predetermined threshold or the number of pulses obtained from the counting result within the predetermined sampling time period is not smaller than a second predetermined threshold; and

calculating the frequency of the input pulse sequence based on a time period of a single pulse measured by the processing unit (120) if the number of times that the hardware counter (110) reaches its full-scale counting number obtained from the counting result within the predetermined sampling time period is smaller than the first predetermined threshold or the number of pulses obtained from the counting result within the predetermined sampling time period is smaller than the second predetermined threshold.


 
8. The pulse frequency measurement method according to claim 7, wherein the first predetermined threshold is 1 and the second predetermined threshold is the full-scale counting number of the hardware counter (110).
 
9. The pulse frequency measurement method according to claim 7 or claim 8, further comprising:

counting the number of pulses in the input pulse sequence and measuring a second time period which the counted number of pulses occupy by a software counter (121) in the processing unit if the frequency calculated based on the time period of the single pulse is larger than a predetermined frequency threshold; and

calculating the frequency of the input pulse sequence based on the number of pulses counted by the software counter and the second time period by the frequency calculation module (122),

wherein the time period of the single pulse and the second time period are preferably measured by capturing rising edges of the input pulse sequence, and

wherein the predetermined frequency threshold is preferably 1 kHz.


 
10. The pulse frequency measurement method according to any of claims 7 to 9, wherein number of times that the hardware counter (110) reaches its full-scale counting number is obtained from the counting result and the number of pulses is obtained based on the number of times and the full-scale counting number by the processing unit (120), and wherein the first time period is determined based on a point of time at which the hardware counter (110) reaches the full-scale counting number.
 
11. The pulse frequency measurement method according to any of claims 7 to 10, wherein a time division strategy is used to measure frequencies of a plurality of input pulse sequences, and number of pulses of a first input pulse sequence is obtained by the processing unit (120) within a first predetermined measuring time period, while number of pulses of a second input pulse sequence is obtained by the processing unit within a second predetermined measuring time period wherein preferably, if less than predetermined number of pulses of the first input pulse sequence are obtained within the first predetermined measuring time period, the first input pulse sequence is measured in background without being limited to the first predetermined measuring time period.
 
12. The pulse frequency measurement method according to claim 11, wherein the first and second predetermined measuring time periods are with same length and do not overlap.
 
13. The pulse frequency measurement method according to any of claims 7 to 12, wherein the processing unit (120) is a micro control unit.
 
14. A control system configured to perform the pulse frequency measurement method according to any one of claims 7 to 13 and/or comprising the pulse frequency measurement device according to any one of claims 1-6.
 


Ansprüche

1. Impulsfrequenzmessvorrichtung, umfassend:

einen Hardware-Zähler (110), der zum Ausführen einer Zähloperation an einer Eingangsimpulssequenz, um ein Zählergebnis auszugeben, konfiguriert ist; und

eine Verarbeitungseinheit (120), die zum Erhalten einer Anzahl von Impulsen vom Zählergebnis und zum Messen eines ersten Zeitraums, den die erhaltene Anzahl von Impulsen beansprucht, konfiguriert ist,

wobei die Verarbeitungseinheit (120) ein Frequenzberechnungsmodul (122) umfasst, das konfiguriert ist, um eine Frequenz der Eingangsimpulssequenz basierend auf der erhaltenen Anzahl von Impulsen und des ersten Zeitraums zu berechnen,

wobei das Frequenzberechnungsmodul (122) ferner konfiguriert ist, um die Frequenz der Eingangsimpulssequenz basierend auf einem durch die Verarbeitungseinheit (120) gemessenen Zeitraum eines Einzelimpulses zu berechnen, wenn die Verarbeitungseinheit bestimmt, dass die Anzahl von Malen, an der der Hardware-Zähler (110) seine vom Zählergebnis erhaltene, vollständige Zählzahl innerhalb eines vorbestimmten Abtastzeitraums erreicht, geringer als ein erster vorbestimmter Schwellenwert ist, oder bestimmt, dass die Anzahl von Impulsen, die vom Zählergebnis innerhalb des vorbestimmten Abtastzeitraums erhalten wird, kleiner als ein zweiter vorbestimmter Schwellenwert ist.


 
2. Impulsfrequenzmessvorrichtung nach Anspruch 1, wobei die Verarbeitungseinheit (120) ferner einen Software-Zähler (121) umfasst, der konfiguriert ist, um die Anzahl von Impulsen in der Eingangsimpulssequenz zu zählen und einen zweiten Zeitraum zu messen, den die gezählte Anzahl von Impulsen beansprucht, wenn die Verarbeitungseinheit (120) bestimmt, dass die Frequenz, die basierend auf dem Zeitraum des Einzelimpulses berechnet wird, größer als ein vorbestimmter Frequenzschwellenwert ist,
wobei das Frequenzberechnungsmodul (122) ferner konfiguriert ist, um die Frequenz der Eingangsimpulssequenz basierend auf der Anzahl von Impulsen, die durch den Software-Zähler gezählt wird, und den zweiten Zeitraum zu berechnen,
wobei der Zeitraum des Einzelimpulses und der zweite Zeitraum vorzugsweise durch Erfassen von ansteigenden Flanken der Eingangsimpulssequenz gemessen werden, und
wobei der vorbestimmte Frequenzschwellenwert vorzugsweise 1 kHz ist.
 
3. Impulsfrequenzmessvorrichtung nach einem der Ansprüche 1 bis 2, wobei die Verarbeitungseinheit (120) konfiguriert ist, um eine Anzahl von Malen zu erhalten, an der der Hardware-Zähler (110) seine vollständige Zählzahl vom Zählergebnis erreicht, und die Anzahl von Impulsen basierend auf der Anzahl von Malen und der vollständigen Zählzahl zu erhalten, und wobei der erste Zeitraum basierend auf einem Zeitpunkt bestimmt wird, zu dem der Hardware-Zähler (110) die vollständige Zählzahl erreicht.
 
4. Impulsfrequenzmessvorrichtung nach einem der Ansprüche 1 bis 3, wobei eine Zeitaufteilungsstrategie zum Messen von Frequenzen einer Vielzahl von Eingangsimpulssequenzen verwendet wird, und die Verarbeitungseinheit (120) ferner konfiguriert ist, um eine Anzahl von Impulsen einer ersten Eingangsimpulssequenz innerhalb eines ersten vorbestimmten Messzeitraums zu erhalten, während eine Anzahl von Impulsen einer zweiten Eingangsimpulssequenz innerhalb eines zweiten vorbestimmten Messzeitraums erhalten wird, wobei, wenn die Verarbeitungseinheit bestimmt, dass eine kleinere als eine vorbestimmte Anzahl von Impulsen der ersten Eingangsimpulssequenz innerhalb des ersten vorbestimmten Messzeitraums erhalten wird, die erste Eingangsimpulssequenz vorzugsweise im Hintergrund ohne Einschränkung auf den ersten vorbestimmten Messzeitraum gemessen wird, wobei vorzugsweise der erste und der zweite vorbestimmte Messzeitraum gleich lang sind und sich nicht überschneiden.
 
5. Impulsfrequenzmessvorrichtung nach Anspruch 1, wobei der erste vorbestimmte Schwellenwert 1 ist und der zweite vorbestimmte Schwellenwert die vollständige Zählzahl des Hardware-Zählers (110) ist.
 
6. Impulsfrequenzmessvorrichtung nach einem der Ansprüche 1 bis 5, wobei die Verarbeitungseinheit (120) eine Mikrosteuereinheit ist.
 
7. Impulsfrequenzmessverfahren, umfassend:

Ausführen einer Zähloperation an einer Eingangsimpulssequenz, um ein Zählergebnis durch einen Hardware-Zähler (110) auszugeben;

Erhalten einer Anzahl von Impulsen vom Zählergebnis und Messen eines ersten Zeitraums, den die erhaltene Anzahl von Impulsen beansprucht, durch eine Verarbeitungseinheit (120);

Berechnen einer Frequenz der Eingangsimpulssequenz basierend auf der erhaltenen Anzahl von Impulsen und des ersten Zeitraums durch ein Frequenzberechnungsmodul (122) in der Verarbeitungseinheit, wenn eine Anzahl von Malen, an der der Hardware-Zähler (110) seine vom Zählergebnis erhaltene, vollständige Zählzahl innerhalb eines vorbestimmten Abtastzeitraums erreicht, nicht geringer als ein erster vorbestimmter Schwellenwert ist, oder die Anzahl von Impulsen, die vom Zählergebnis innerhalb des vorbestimmten Abtastzeitraums erhalten wird, nicht kleiner als ein zweiter vorbestimmter Schwellenwert ist; und

Berechnen der Frequenz der Eingangsimpulssequenz basierend auf einer durch die Verarbeitungseinheit (120) gemessenen Zeitraums eines Einzelimpulses, wenn die Anzahl von Malen, an der der Hardware-Zähler (110) seine vom Zählergebnis erhaltene, vollständige Zählzahl innerhalb des vorbestimmten Abtastzeitraums erreicht, geringer als der erste vorbestimmte Schwellenwert ist, oder die Anzahl von Impulsen, die vom Zählergebnis innerhalb der vorbestimmten Abtastzeitraums erhalten wird, kleiner als der zweite vorbestimmte Schwellenwert ist.


 
8. Impulsfrequenzmessverfahren nach Anspruch 7, wobei der erste vorbestimmte Schwellenwert 1 ist und der zweite vorbestimmte Schwellenwert die vollständige Zählzahl des Hardware-Zählers (110) ist.
 
9. Impulsfrequenzmessverfahren nach Anspruch 7 oder Anspruch 8, ferner umfassend:

Zählen der Anzahl von Impulsen in der Eingangsimpulssequenz und Messen eines zweiten Zeitraums, den die gezählte Anzahl von Impulsen beansprucht, durch einen Software-Zähler (121) in der Verarbeitungseinheit, wenn die Frequenz, die basierend auf dem Zeitraum des Einzelimpulses berechnet wird, größer als ein vorbestimmter Frequenzschwellenwert ist; und

Berechnen der Frequenz der Eingangsimpulssequenz basierend auf der Anzahl von Impulsen, die durch den Software-Zähler gezählt wird, und dem zweiten Zeitraum durch das Frequenzberechnungsmodul (122),

wobei der Zeitraum des Einzelimpulses und der zweite Zeitraum vorzugsweise durch Erfassen von ansteigenden Flanken der Eingangsimpulssequenz gemessen werden, und

wobei der vorbestimmte Frequenzschwellenwert vorzugsweise 1 kHz ist.


 
10. Impulsfrequenzmessverfahren nach einem der Ansprüche 7 bis 9, wobei eine Anzahl von Malen, an der der Hardware-Zähler (110) seine vollständige Zählzahl erreicht, vom Zählergebnis erhalten wird, und die Anzahl von Impulsen basierend auf der Anzahl von Malen und der vollständigen Zählzahl durch die Verarbeitungseinheit (120) erhalten wird, und wobei der erste Zeitraum basierend auf einem Zeitpunkt, zu dem der Hardware-Zähler (110) die vollständige Zählzahl erreicht, bestimmt wird.
 
11. Impulsfrequenzmessverfahren nach einem der Ansprüche 7 bis 10, wobei eine Zeitaufteilungsstrategie zum Messen von Frequenzen einer Vielzahl von Eingangsimpulssequenzen verwendet wird, und eine Anzahl von Impulsen einer ersten Eingangsimpulssequenz durch die Verarbeitungseinheit (120) innerhalb eine ersten vorbestimmten Messzeitraums erhalten wird, während eine Anzahl von Impulsen einer zweiten Eingangsimpulssequenz durch die Verarbeitungseinheit innerhalb eines zweiten vorbestimmten Messzeitraums erhalten wird, wobei vorzugsweise, wenn eine kleinere als die vorbestimmte Anzahl von Impulsen der ersten Eingangsimpulssequenz innerhalb des ersten vorbestimmten Messzeitraums erhalten wird, die erste Eingangsimpulssequenz im Hintergrund ohne Einschränkung auf den ersten vorbestimmten Messzeitraum gemessen wird.
 
12. Impulsfrequenzmessverfahren nach Anspruch 11, wobei der erste und der zweite vorbestimmte Messzeitraum die gleiche Länge aufweisen und sich nicht überlappen.
 
13. Impulsfrequenzmessverfahren nach einem der Ansprüche 7 bis 12, wobei die Verarbeitungseinheit (120) eine Mikrosteuereinheit ist.
 
14. Steuersystem, das zum Ausführen des Impulsfrequenzmessverfahrens nach einem der Ansprüche 7 bis 13 konfiguriert ist und/oder die Impulsfrequenzmessvorrichtung nach einem der Ansprüche 1-6 umfasst.
 


Revendications

1. Dispositif de mesure de fréquence d'impulsions comprenant :

un compteur matériel (110) configuré pour mettre en œuvre une opération de comptage sur une séquence d'impulsions d'entrée pour délivrer en sortie un résultat de comptage ; et

une unité de traitement (120) configurée pour obtenir un nombre d'impulsions à partir du résultat de comptage et mesurer une première période de temps que le nombre d'impulsions obtenu occupe,

dans lequel l'unité de traitement (120) comprend un module de calcul de fréquence (122) configuré pour calculer une fréquence de la séquence d'impulsions d'entrée sur la base du nombre d'impulsions obtenu et de la première période de temps,

dans lequel le module de calcul de fréquence (122) est en outre configuré pour calculer la fréquence de la séquence d'impulsions d'entrée sur la base d'une période de temps d'une impulsion unique mesurée par l'unité de traitement (120) si l'unité de traitement détermine qu'un nombre de fois que le compteur matériel (110) atteint son nombre de comptage à pleine échelle obtenu à partir du résultat de comptage au cours d'une période de temps d'échantillonnage prédéterminée est plus petit qu'un premier seuil prédéterminé ou détermine que le nombre d'impulsions obtenu à partir du résultat de comptage au cours de la période de temps d'échantillonnage prédéterminée est plus petit qu'un deuxième seuil prédéterminé.


 
2. Dispositif de mesure de fréquence d'impulsions selon la revendication 1, dans lequel l'unité de traitement (120) comprend en outre un compteur logiciel (121) configuré pour compter le nombre d'impulsions dans la séquence d'impulsions d'entrée et mesurer une deuxième période de temps que le nombre d'impulsions compté occupe si l'unité de traitement (120) détermine que la fréquence calculée sur la base de la période de temps de l'impulsion unique est plus grande qu'un seuil de fréquence prédéterminé,
dans lequel le module de calcul de fréquence (122) est en outre configuré pour calculer la fréquence de la séquence d'impulsions d'entrée sur la base du nombre d'impulsions compté par le compteur logiciel et de la deuxième période de temps,
dans lequel la période de temps de l'impulsion unique et la deuxième période de temps sont de préférence mesurées en capturant des bords montants de la séquence d'impulsions d'entrée, et
dans lequel le seuil de fréquence prédéterminé est de préférence 1 kHz.
 
3. Dispositif de mesure de fréquence d'impulsions selon l'une quelconque des revendications 1 à 2, dans lequel l'unité de traitement (120) est configurée pour obtenir un nombre de fois que le compteur matériel (110) atteint son nombre de comptage à pleine échelle à partir du résultat de comptage et obtenir le nombre d'impulsions sur la base du nombre de fois et du nombre de comptage à pleine échelle, et dans lequel la première période de temps est déterminée sur la base d'un moment auquel le compteur matériel (110) atteint le nombre de comptage à pleine échelle.
 
4. Dispositif de mesure de fréquence d'impulsions selon l'une quelconque des revendications 1 à 3, dans lequel une stratégie de division temporelle est utilisée pour mesurer des fréquences d'une pluralité de séquences d'impulsions d'entrée, et l'unité de traitement (120) est en outre configurée pour obtenir un nombre d'impulsions d'une première séquence d'impulsions d'entrée au cours d'une première période de temps de mesure prédéterminée, et obtenir en même temps un nombre d'impulsions d'une deuxième séquence d'impulsions d'entrée au cours d'une deuxième période de temps de mesure prédéterminée, dans lequel de préférence, si l'unité de traitement détermine que moins d'un nombre prédéterminé d'impulsions de la première séquence d'impulsions d'entrée est obtenu au cours de la première période de temps de mesure prédéterminée, la première séquence d'impulsions d'entrée est mesurée en arrière-plan sans être limitée à la première période de temps de mesure prédéterminée, dans lequel de préférence les première et deuxième périodes de temps de mesure prédéterminées sont de même longueur et ne se chevauchent pas.
 
5. Dispositif de mesure de fréquence d'impulsions selon la revendication 1, dans lequel le premier seuil prédéterminé vaut 1, et le deuxième seuil prédéterminé est le nombre de comptage à pleine échelle du compteur matériel (110).
 
6. Dispositif de mesure de fréquence d'impulsions selon l'une quelconque des revendications 1 à 5, dans lequel l'unité de traitement (120) est une unité de micro-commande.
 
7. Procédé de mesure de fréquence d'impulsions comprenant :

la mise en œuvre d'une opération de comptage sur une séquence d'impulsions d'entrée pour délivrer en sortie un résultat de comptage par un compteur matériel (110) ;

l'obtention d'un nombre d'impulsions à partir du résultat de comptage et la mesure d'une première période de temps que le nombre d'impulsions obtenu occupe par une unité de traitement (120) ;

le calcul d'une fréquence de la séquence d'impulsions d'entrée sur la base du nombre d'impulsions obtenu et de la première période de temps par un module de calcul de fréquence (122) dans l'unité de traitement si un nombre de fois que le compteur matériel (110) atteint son nombre de comptage à pleine échelle obtenu à partir du résultat de comptage au cours d'une période de temps d'échantillonnage prédéterminée n'est pas plus petit qu'un premier seuil prédéterminé ou que le nombre d'impulsions obtenu à partir du résultat de comptage au cours de la période de temps d'échantillonnage prédéterminée n'est pas plus petit qu'un deuxième seuil prédéterminé ; et

le calcul de la fréquence de la séquence d'impulsions d'entrée sur la base d'une période de temps d'une impulsion unique mesurée par l'unité de traitement (120) si le nombre de fois que le compteur matériel (110) atteint son nombre de comptage à pleine échelle obtenu à partir du résultat de comptage au cours de la période de temps d'échantillonnage prédéterminée est plus petit que le premier seuil prédéterminé ou que le nombre d'impulsions obtenu à partir du résultat de comptage au cours de la période de temps d'échantillonnage prédéterminée est plus petit que le deuxième seuil prédéterminé.


 
8. Procédé de mesure de fréquence d'impulsions selon la revendication 7, dans lequel le premier seuil prédéterminé vaut 1, et le deuxième seuil prédéterminé est le nombre de comptage à pleine échelle du compteur matériel (110).
 
9. Procédé de mesure de fréquence d'impulsions selon la revendication 7 ou la revendication 8, comprenant en outre :

le comptage du nombre d'impulsions dans la séquence d'impulsions d'entrée et la mesure d'une deuxième période de temps que le nombre d'impulsions compté occupe par un compteur logiciel (121) dans l'unité de traitement si la fréquence calculée sur la base de la période de temps de l'impulsion unique est plus grande qu'un seuil de fréquence prédéterminé ; et

le calcul de la fréquence de la séquence d'impulsions d'entrée sur la base du nombre d'impulsions compté par le compteur logiciel et de la deuxième période de temps par le module de calcul de fréquence (122),

dans lequel la période de temps de l'impulsion unique et la deuxième période de temps sont de préférence mesurées en capturant des bords montants de la séquence d'impulsions d'entrée, et

dans lequel le seuil de fréquence prédéterminé est de préférence 1 kHz.


 
10. Procédé de mesure de fréquence d'impulsions selon l'une quelconque des revendications 7 à 9, dans lequel le nombre de fois que le compteur matériel (110) atteint son nombre de comptage à pleine échelle est obtenu à partir du résultat de comptage et le nombre d'impulsions est obtenu sur la base du nombre de fois et du nombre de comptage à pleine échelle par l'unité de traitement (120), et dans lequel la première période de temps est déterminée sur la base d'un moment auquel le compteur matériel (110) atteint le nombre de comptage à pleine échelle.
 
11. Procédé de mesure de fréquence d'impulsions selon l'une quelconque des revendications 7 à 10, dans lequel une stratégie de division temporelle est utilisée pour mesurer des fréquences d'une pluralité de séquences d'impulsions d'entrée, et un nombre d'impulsions d'une première séquence d'impulsions d'entrée est obtenu par l'unité de traitement (120) au cours d'une première période de temps de mesure prédéterminée, alors que le nombre d'impulsions d'une deuxième séquence d'impulsions d'entrée est obtenu par l'unité de traitement au cours d'une deuxième période de temps de mesure prédéterminée dans lequel de préférence, si moins du nombre prédéterminé d'impulsions de la première séquence d'impulsions d'entrée est obtenu au cours de la première période de temps de mesure prédéterminée, la première séquence d'impulsions d'entrée est mesurée en arrière-plan sans être limitée à la première période de temps de mesure prédéterminée.
 
12. Procédé de mesure de fréquence d'impulsions selon la revendication 11, dans lequel les première et deuxième périodes de temps de mesure prédéterminées sont de la même longueur et ne se chevauchent pas.
 
13. Procédé de mesure de fréquence d'impulsions selon l'une quelconque des revendications 7 à 12, dans lequel l'unité de traitement (120) est une unité de micro-commande.
 
14. Système de commande configuré pour mettre en œuvre le procédé de mesure de fréquence d'impulsions selon l'une quelconque des revendications 7 à 13 et/ou comprenant le dispositif de mesure de fréquence d'impulsions selon l'une quelconque des revendications 1 à 6.
 




Drawing

















Cited references

REFERENCES CITED IN THE DESCRIPTION



This list of references cited by the applicant is for the reader's convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard.

Patent documents cited in the description