WO2019102785A1 - デジタルノイズフィルタ - Google Patents

デジタルノイズフィルタ Download PDF

Info

Publication number
WO2019102785A1
WO2019102785A1 PCT/JP2018/039751 JP2018039751W WO2019102785A1 WO 2019102785 A1 WO2019102785 A1 WO 2019102785A1 JP 2018039751 W JP2018039751 W JP 2018039751W WO 2019102785 A1 WO2019102785 A1 WO 2019102785A1
Authority
WO
WIPO (PCT)
Prior art keywords
signal
noise filter
time
digital noise
output
Prior art date
Application number
PCT/JP2018/039751
Other languages
English (en)
French (fr)
Inventor
恵 浅野
公一 久保
Original Assignee
オムロン株式会社
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 オムロン株式会社 filed Critical オムロン株式会社
Priority to EP18881618.5A priority Critical patent/EP3716482A4/en
Priority to US16/644,523 priority patent/US20200295741A1/en
Priority to CN201880056341.7A priority patent/CN111066247A/zh
Publication of WO2019102785A1 publication Critical patent/WO2019102785A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/125Discriminating pulses
    • H03K5/1252Suppression or limitation of noise or interference
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks

Definitions

  • the present invention relates to a digital noise filter for removing noise contained in a signal.
  • a digital noise filter that uses the sensor signal as an input signal, samples the input signal, and uses the signal as an output signal when the same signal is input a predetermined number of times consecutively It was used together. In other words, the digital noise filter ignores the signal as noise if the number of times the same signal continues is less than the predetermined number.
  • Patent Document 1 discloses a digital noise filter including a coefficient unit as counting means for receiving a digital signal and counting up or down.
  • the counting unit counts up when the input signal is a high signal and down counts when the input signal is a low signal.
  • the output signal becomes a high signal. According to such a digital noise filter, it is possible to reduce jitter compared to the above-mentioned prior art in an environment where the input signal is affected by noise.
  • Japanese Patent Publication Japanese Patent Application Laid-Open No. 10-70444 (released on March 10, 1998)"
  • An aspect of the present invention aims to provide a digital noise filter capable of further reducing jitter in an environment where an input signal is affected by noise.
  • the present invention adopts the following configuration in order to solve the problems described above.
  • the input signal is an electrical signal corresponding to a digital signal having either the first signal value or the second signal value, and the noise is removed from the input signal
  • a digital noise filter that outputs a signal, wherein a sampling processing unit that samples the input signal at a predetermined cycle, and a ratio of the second signal value at a predetermined ratio or more in the continuous predetermined number of times of sampling
  • a noise processing unit that sets a signal to be output as the second signal value, and sets a signal to be output as the first signal value when the ratio of the second signal value is less than a predetermined ratio; .
  • the present embodiment an embodiment according to one aspect of the present invention (hereinafter, also referred to as “the present embodiment”) will be described based on the drawings.
  • the embodiment described below is merely an illustration of the present invention in all respects. It goes without saying that various improvements and modifications can be made without departing from the scope of the present invention. That is, in the implementation of the present invention, a specific configuration according to the embodiment may be appropriately adopted.
  • data appearing in the present embodiment is described in natural language, more specifically, it is specified by a pseudo language, a command, a parameter, a machine language or the like that can be recognized by a computer.
  • FIG. 1 is a view showing an example of an application scene of the digital noise filter 11 according to the present embodiment.
  • the digital noise filter 11 receives an electrical signal corresponding to a digital signal that takes either an Off signal (first signal value) or an On signal (second signal value) as an input signal, and outputs a signal obtained by removing noise from the input signal Output as a signal.
  • the digital noise filter 11 is applied to the electric device 10.
  • the electric device 10 includes a digital noise filter 11, an isolation circuit 12, a communication circuit 13, and a storage device 14.
  • a sensor 100 is connected to the digital noise filter 11 via an isolation circuit 12.
  • a personal computer 200 is connected to the digital noise filter 11 via the communication circuit 13.
  • the digital noise filter 11 removes noise from the input signal from the sensor 100 to the electrical device 10.
  • the digital noise filter 11 includes a sampling processing unit 11a, a noise processing unit 11b, and a parameter setting unit 11c.
  • the sampling processing unit 11 a samples the input signal from the sensor 100 at a predetermined cycle.
  • the predetermined cycle is, for example, 250 ⁇ s.
  • the noise processing unit 11 b sets a signal to be output as an On signal when the ratio of the On signal is equal to or more than a predetermined ratio in the sampling of a predetermined number of consecutive times by the sampling processing unit 11 a. Further, when the ratio of the On signal is less than a predetermined ratio in the above-described sampling, the noise processing unit 11 b sets the signal to be output as the Off signal. In other words, the noise processing unit 11 b sets the output signal to the on signal or the off signal based on whether or not the moving average of the input signal is equal to or greater than a predetermined ratio in the sampling of the predetermined number of consecutive times.
  • the parameter setting unit 11c is (i) a predetermined cycle in which the sampling processing unit 11a performs sampling based on an instruction input from the outside, (ii) a predetermined number of samplings for the noise processing unit 11b to determine an output, And (iii) at least one of the predetermined proportions of the On signal for the noise processing unit 11 b to determine the output.
  • the parameters set by the parameter setting unit 11 c are stored in the storage device 14 and are referred to by the sampling processing unit 11 a and the noise processing unit 11 b. When one or more of the above parameters are fixed values that can not be set by the user, the values are stored in the storage device 14 and are referred to by the sampling processing unit 11 a and the noise processing unit 11 b.
  • the noise processing unit 11 b increases the predetermined number of samplings to determine the output, there is an advantage that the possibility of outputting an incorrect output signal due to noise is reduced.
  • the number of On signals required until the On signal is output increases, the average time until the On signal is output becomes longer.
  • the noise processing unit 11b increases the predetermined ratio of the On signal to determine the output, the possibility that the On signal is erroneously output when the On signal due to noise is input is reduced. There is. On the other hand, there is a disadvantage that the On signal may not be output when the long Off signal is input due to noise.
  • the isolation circuit 12 is a circuit for isolating between the digital noise filter 11 and the sensor 100, and for inputting an output signal of the sensor 100 to the digital noise filter 11.
  • the sensor 100 outputs an Off signal in a state in which a predetermined event is not detected, and outputs an On signal in a state in which a predetermined event is detected.
  • the communication circuit 13 is a circuit for communicably connecting the digital noise filter 11 and the personal computer 200.
  • the communication circuit 13 connects the digital noise filter 11 and the personal computer 200 by wire, but may connect them wirelessly.
  • the personal computer 200 is used by the user to externally input an instruction for the parameter to the parameter setting unit 11 c.
  • the storage device 14 is a storage medium that stores information necessary for the operation of the digital noise filter 11.
  • the storage device 14 stores the setting value set by the parameter setting unit 11 c.
  • the electric device 10 is, for example, an inverter, a servo, or a programmable logic controller (PLC) input unit.
  • an example of the sensor 100 is a photoelectric sensor. That is, the sensor 100 includes a light source and a photodiode, outputs an Off signal in the state where the incident light from the light source is not detected by the photodiode, and outputs an On signal in the state where the light is detected.
  • the digital noise filter 11 may be realized by, for example, an MPU (Micro Processing Unit). That is, the digital noise filter 11 may be configured as a microcomputer.
  • the insulating circuit 12 may be, for example, one in which a photocoupler is incorporated.
  • the communication circuit 13 may connect the digital noise filter 11 and the personal computer 200 via, for example, a communication network.
  • the storage device 14 may be, for example, an EEPROM (Electrically Erasable Programmable Read Only Memory) (registered trademark).
  • the personal computer 200 may be a general-purpose personal computer in which a program as a tool for changing the setting values described above is incorporated, for example.
  • the digital noise filter 11 sets the number of samplings used for noise removal to six times for the input signal from the sensor 100, and outputs an On signal if the ratio of the On signal is 80% or more. That is, the digital noise filter 11 outputs an On signal if the number of times of the On signal is five or more among six consecutive samplings of the input signal.
  • FIG. 2 is a graph of the digital noise filter 11.
  • a of FIG. 2 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B) of FIG. 2 is a graph showing an output signal of the digital noise filter 11 having the signal shown in (a) as an input signal.
  • C) of FIG. 2 is a graph which shows the example of the output signal of the sensor 100 in, when there exists an influence of noise.
  • D of FIG. 2 is a graph which shows the output signal of the digital noise filter 11 which uses the signal shown to (c) as an input signal.
  • the horizontal axis is time. Each tn (n is an integer) indicates a time when sampling is performed. As described above, since the sampling period is 250 ⁇ s, the intervals between the times tn are each 250 ⁇ s.
  • the vertical axis is a signal, which is Off or On. More specifically, the vertical axis in FIGS. 2A and 2C is the output signal of the sensor 100, ie, the input signal to the digital noise filter 11, and in FIGS. 2B and 2D. Is an output signal of the digital noise filter 11.
  • the number of times of the On signal in six samplings to the said time including the said time in each time is described on the graph with a number.
  • the output signal of the sensor 100 is an Off signal in the time t0. Further, although not shown, it is assumed that the output signal of the sensor 100 is an Off signal also in sampling before time t0. The output signal of the sensor 100 changes to an On signal between time t0 and time t1, and thereafter continues to be an On signal until time t6.
  • the number of On signals is four or less in six samplings up to the time including the time. That is, the proportion of the On signal in the input signal is less than 80%. Therefore, as shown in FIG. 2B, the output signal of the digital noise filter 11 is an Off signal until time t4.
  • the number of On signals is five in six samplings up to and including the time. That is, the ratio occupied by the On signal in the six samplings is 80% or more. Therefore, as shown in FIG. 2B, the output signal of the digital noise filter 11 becomes an On signal at time t5. Furthermore, after time t6, the state in which the ratio occupied by the On signal is 80% or more continues in six samplings including the time. Therefore, the state of the On signal also continues for the output signal of the digital noise filter 11.
  • the output signal of the sensor 100 is an Off signal at sampling at time t0 and before, and changes to an On signal between time t0 and time t1.
  • the output signal of the sensor 100 changes due to the influence of noise between time t4 and time t5, and becomes an Off signal at sampling at time t5.
  • the output signal of the sensor 100 returns to the On signal between time t5 and time t6. Therefore, at sampling after time t6, the output signal of the sensor 100 is continuously the On signal.
  • the ratio of the On signal is smaller than 80% in six samplings up to that time including the time. Therefore, as shown in (d) of FIG. 2, the output signal of the digital noise filter 11 is an Off signal until time t4.
  • the output signal of the sensor 100 temporarily becomes the Off signal. Therefore, also at time t5, the ratio of the On signal is smaller than 80% in the six samplings up to and including the time. Therefore, as shown in (d) of FIG. 2, the output signal of the digital noise filter 11 is also an Off signal at time t5.
  • the output signal of the digital noise filter 11 becomes an On signal at time t6. Even after time t7, the state in which the ratio occupied by the On signal is 80% or more continues in six samplings including the time. Therefore, the On signal continues for the output signal of the digital noise filter 11 as well.
  • the output signal of the digital noise filter 11 becomes an On signal at time t5 when it is not affected by noise.
  • the output signal of the digital noise filter 11 becomes an On signal at time t6. Therefore, in the digital noise filter 11, the jitter in the case of being affected by noise at time t5 is, as can be seen by comparing (b) and (d) in FIG. Become.
  • the digital noise filter of the first comparative example is the conventional digital noise filter described in the background art section. Specifically, the digital noise filter of the first comparative example outputs an On signal when the input signal turns to the On signal five times in a row.
  • FIG. 3 is a graph of the conventional digital noise filter described in the Background section.
  • A of FIG. 3 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B of FIG. 3 is a graph showing an output signal of the digital noise filter of the first comparative example in which the signal shown in (a) is an input signal.
  • C of FIG. 3 is a graph which shows the example of the output signal of the sensor 100 in, when there exists an influence of noise.
  • D) of FIG. 3 is a graph showing an output signal of the digital noise filter of the first comparative example in which the signal shown in (c) is an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 3 are the same as the horizontal and vertical axes in (a) to (d) of FIG. Further, in (a) and (c) of FIG. 3, the number of times the On signal continues until the time at each time is indicated by a number on the graph.
  • the output signal of the sensor 100 is the same as the example shown in (c) of FIG. 2. That is, the output signal of the sensor 100 is an off signal at time t0 and before, changes to an on signal between time t0 and time t1, becomes an off signal at time t5 due to the influence of noise, and time t6. Becomes an On signal again.
  • the output of the digital noise filter of the first comparative example is also an Off signal until time t5, similarly to the digital noise filter 11.
  • the output of the digital noise filter of the first comparative example is turned off until time t9 even if the output of the sensor 100 returns to the On signal at time t6. It is a signal.
  • the five sampling values from time t6 to time t10 become the On signal consecutively five times, so the output of the digital noise filter of the first comparative example becomes the On signal. Therefore, in the digital noise filter of the first comparative example, the jitter when affected by noise at time t5 can be determined by sampling five times, as can be seen by comparing (b) and (d) in FIG. The time is 1250 ⁇ s.
  • the digital noise filter of the second comparative example is the digital noise filter disclosed in Patent Document 1.
  • the digital noise filter of the second comparative example increases the value of the counter whose initial value is 0 by 1 when the input signal is an On signal and decreases by 1 when the input signal is an Off signal. When the value of becomes 5 the On signal is output. However, when the value of the counter is 0 and the input signal is an Off signal, the value of the counter does not change.
  • FIG. 4 is a graph of the digital noise filter disclosed in Patent Document 1.
  • A of FIG. 4 is a graph which shows the example of the output signal of the sensor 100 in, when noise does not exist.
  • (B) of FIG. 4 is a graph showing an output signal of the digital noise filter of the second comparative example in which the signal shown in (a) is an input signal.
  • (C) of FIG. 4 is a graph which shows the example of the output signal of the sensor 100 in, when there exists an influence of noise.
  • (D) of FIG. 4 is a graph which shows the output signal of the digital noise filter of the 2nd comparative example which uses the signal shown to (c) as an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 4 are the same as the horizontal and vertical axes in (a) to (d) of FIG.
  • the value of the counter at each time is indicated by a number on the graph.
  • the output signal of the sensor 100 is the same as the example shown in (c) of FIG. 2. That is, the output signal of the sensor 100 is an off signal at time t0 and before, changes to an on signal between time t0 and time t1, becomes an off signal at time t5 due to the influence of noise, and time t6. Becomes an On signal again.
  • the value of the counter is 4 at time t4, and decreases to 3 at time t5. Thereafter, the value of the counter becomes 4 again at time t6 and becomes 5 at time t7. Therefore, as shown in (d) of FIG. 4, the output signal of the digital noise filter of the second comparative example is an Off signal from time t0 to t6, and becomes an On signal after time t7. Therefore, in the digital noise filter of the second comparative example, the jitter when affected by noise at time t5 is equivalent to that for two samplings as can be seen by comparing (b) and (d) in FIG. It becomes time, that is, 500 ⁇ s.
  • FIG. 6 is a graph of the digital noise filter 11 as a third comparative example.
  • A of FIG. 6 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B of FIG. 6 is a graph showing an output signal of the digital noise filter of the third comparative example in which the signal shown in (a) is an input signal.
  • C of FIG. 6 is a graph showing an example of an output signal of the sensor 100 when there is an influence of noise.
  • D of FIG. 6 is a graph showing an output signal of the digital noise filter of the third comparative example in which the signal shown in (c) is an input signal.
  • the output signal of the sensor 100 is the Off signal at time t0 and before that, and becomes the On signal between time t0 and time t1.
  • the output signal of the sensor 100 changes due to the influence of noise between time t4 and time t5, and the sampling value at time t5 and t6 becomes the Off signal.
  • the output signal of the sensor 100 returns to the on signal, and the on signal continues from time t7.
  • the number of On signals is less than five in six samplings including the time. Furthermore, at the times t5 and t6 at which the output signal of the sensor 100 becomes the Off signal, and at the times t7 to t10 after the output signal of the sensor 100 returns to the On signal, the On signal in six samplings including that time The number of times is four. Therefore, in the digital noise filter of Comparative Example 3, all the outputs at times t0 to t10 are the Off signal.
  • the number of On signals in the six samplings including the time is five, and the output of the digital noise filter of the third comparative example is the On signal. Therefore, in the digital noise filter of the third comparative example, the jitter when affected by noise at times t5 and t6 can be sampled 6 as can be seen by comparing (b) and (d) in FIG.
  • the batch time ie, 1500 ⁇ s.
  • the digital noise filter 11 of this operation example can remove noise of 750 ⁇ s wide at maximum.
  • the digital noise filter 11 sets the number of samplings used for noise removal to six times for the input signal from the sensor 100, and outputs an On signal if the ratio of the On signal is 60% or more. That is, the digital noise filter 11 of this operation example outputs an On signal if four or more of six consecutive samplings of the input signal from the sensor 100 are an On signal.
  • FIG. 5 is a graph of the digital noise filter 11 of this operation example.
  • A) of FIG. 5 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B) of FIG. 5 is a graph showing an output signal of the digital noise filter 11 having the signal shown in (a) as an input signal.
  • C) of FIG. 5 is a graph showing an example of an output signal of the sensor 100 when there is an influence of noise.
  • (D) of FIG. 5 is a graph which shows the output signal of the digital noise filter 11 which uses the signal shown to (c) as an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 5 are the same as the horizontal and vertical axes in (a) to (d) of FIG.
  • the number of times of the On signal in six samplings to the said time including the said time in each time is described on the graph with a number.
  • the output signal of the sensor 100 shown to (a) of FIG. 5 is the same as that of the example shown to (a) of FIG. 2, description is abbreviate
  • the output signal of the digital noise filter 11 becomes an On signal at time t4.
  • the state in which the proportion of the On signal in the input signal is 60% or more continues in the six samplings including the time, so the On signal also continues for the output signal of the digital noise filter 11.
  • the output signal of the sensor 100 is an Off signal at time t0 and before that, and becomes an On signal between time t0 and time t1. Further, in the example shown in FIG. 5C, the output signal of the sensor 100 changes due to the influence of noise between time t3 and time t4, and becomes an Off signal at time t4. Furthermore, in the example shown in (c) of FIG. 5, the output signal of the sensor 100 is the Off signal continuously at time t5, and returns to the On signal at time t6.
  • the ratio of the On signal to the input signal is smaller than 60% in six samplings including the time. Therefore, as shown in (d) of FIG. 5, the output signal of the digital noise filter 11 is an Off signal until time t3.
  • the output signal of the sensor 100 temporarily becomes the off signal, and continues to be the off signal at time t5. Therefore, also at times t4 and t5, the ratio of the On signal to the input signal is smaller than 60% in six samplings including the time. Therefore, as shown in (d) of FIG. 5, the output signal of the digital noise filter 11 is an Off signal at times t4 and t5.
  • the output signal of the digital noise filter 11 becomes an On signal at time t4 if it is not affected by noise, and is On at time t6 if it is affected by noise at times t4 and t5. It becomes a signal. Therefore, in the digital noise filter 11, the jitter when affected by the noise at the times t4 and t5 is, as can be seen by comparing (b) and (d) of FIG. It will be 500 ⁇ s.
  • the digital noise filter 11 (i) the number of times of sampling and (ii) the ratio of the number of times of the On signal to the number of times of sampling are appropriate according to the length of the influence of noise on the output signal of the sensor 100. By setting to, it is possible to minimize the jitter for any input signal.
  • the digital noise filter of the fourth comparative example is, similarly to the digital noise filter of the first comparative example, the conventional digital noise filter described in the background art section. Specifically, the digital noise filter of the fourth comparative example outputs an On signal when the input signal is an On signal five times in a row.
  • FIG. 7 is a graph of the conventional digital noise filter described in the Background section.
  • A of FIG. 7 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B of FIG. 7 is a graph showing an output signal of the digital noise filter of the fourth comparative example in which the signal shown in (a) is an input signal.
  • C of FIG. 7 is a graph showing an example of an output signal of the sensor 100 when there is an influence of noise.
  • (D) of FIG. 7 is a graph showing an output signal of the digital noise filter of the fourth comparative example in which the signal shown in (c) is an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 7 are the same as the horizontal and vertical axes in (a) to (d) of FIG. Further, in (a) and (c) of FIG. 7, the number of times the On signal is continuous until the time at each time is indicated by a number on the graph.
  • the output signal of the sensor 100 is the same as the example shown in (c) of FIG. 6. That is, the output signal of the sensor 100 is an off signal at time t0 and before, becomes an on signal between time t0 and time t1, and becomes an off signal at time t5 due to the influence of noise. Furthermore, the output signal of the sensor 100 is an Off signal continuously at time t6, and becomes an On signal again at time t7.
  • the output of the digital noise filter of the fourth comparative example is also an Off signal until time t4, as with the digital noise filter 11.
  • the output of the digital noise filter of the fourth comparative example is time t10 even if the output of the sensor 100 returns to the On signal at time t7. It remains as the Off signal.
  • the five sampling values from time t7 to t11 become the On signal consecutively five times, so the output of the digital noise filter of the fourth comparative example becomes the On signal.
  • the jitter when affected by noise at times t5 and t6 can be sampled 6 as can be seen by comparing (b) and (d) in FIG.
  • the digital noise filter of the fifth comparative example is the same as the digital noise filter of the fourth comparative example, but is the conventional digital noise filter described in the background art section. However, the digital noise filter of the fifth comparative example outputs an On signal when the input signal is an On signal four consecutive times.
  • FIG. 8 is a graph of the conventional digital noise filter described in the Background section.
  • A of FIG. 8 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B of FIG. 8 is a graph showing an output signal of the digital noise filter of the fifth comparative example which uses the signal shown in (a) as an input signal.
  • C of FIG. 8 is a graph showing an example of an output signal of the sensor 100 when there is an influence of noise.
  • (D) of FIG. 8 is a graph showing an output signal of the digital noise filter of the fifth comparative example which uses the signal shown in (c) as an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 8 are the same as the horizontal and vertical axes in (a) to (d) of FIG. Further, in (a) and (c) of FIG. 8, the number of times the On signal continues until the time at each time is indicated by a number on the graph.
  • the output signal of the sensor 100 is the same as the example shown in (c) of FIG. 5. That is, the output signal of the sensor 100 is an off signal at time t0 and before, becomes an on signal between time t0 and time t1, and becomes an off signal at time t4 due to the influence of noise. Furthermore, the output signal of the sensor 100 continues to be an Off signal at time t5, and becomes an On signal again at time t6.
  • the output of the digital noise filter of the fifth comparative example is also an Off signal until time t3, as in the digital noise filter 11.
  • the output of the digital noise filter of the fifth comparative example is time t8 even if the output of the sensor 100 returns to the On signal at time t6. It remains as the Off signal.
  • the four sampling values from time t6 to t9 become the On signal four times consecutively, so the output of the digital noise filter of the fifth comparative example becomes the On signal. Therefore, in the digital noise filter of the fifth comparative example, the jitter when affected by noise at times t4 and t5 can be sampled 5 as can be seen by comparing (b) and (d) in FIG.
  • the batch time is 1250 ⁇ s.
  • the digital noise filter of the sixth comparative example is the digital noise filter disclosed in Patent Document 1 as in the second comparative example.
  • the digital noise filter of the sixth comparative example increases the value of the counter whose initial value is 0 by 1 when the input signal is the On signal and decreases by 1 when the input signal is the Off signal. When the value of becomes 5 the On signal is output. However, when the value of the counter is 0 and the input signal is an Off signal, the value of the counter does not change.
  • FIG. 9 is a graph of the digital noise filter disclosed in Patent Document 1.
  • A of FIG. 9 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B of FIG. 9 is a graph showing an output signal of the digital noise filter of the sixth comparative example which uses the signal shown in (a) as an input signal.
  • C of FIG. 9 is a graph showing an example of an output signal of the sensor 100 when there is an influence of noise.
  • (D) of FIG. 9 is a graph showing an output signal of the digital noise filter of the sixth comparative example which uses the signal shown in (c) as an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 9 are the same as the horizontal and vertical axes in (a) to (d) of FIG. Further, in (a) and (c) of FIG. 9, the value of the counter at each time is indicated by a number on the graph.
  • the output signal of the sensor 100 is the same as the example shown in (c) of FIG. That is, the output signal of the sensor 100 is an off signal at time t0 and before, becomes an on signal between time t0 and time t1, and becomes an off signal at time t5 due to the influence of noise. Furthermore, the output signal of the sensor 100 is an Off signal continuously at time t6, and becomes an On signal again at time t7.
  • the output of the digital noise filter of the sixth comparative example is also an Off signal until time t4, as in the digital noise filter 11.
  • the value of the counter increases to four.
  • the value of the counter decreases to 3 at time t5 and decreases to 2 at time t6.
  • the value of the counter starts to increase again.
  • the value of the counter is 5 at time t9, the output of the digital noise filter of the sixth comparative example is the On signal. Therefore, in the digital noise filter of the fourth comparative example, the jitter when affected by noise at times t5 and t6 can be sampled as shown by comparison of (b) and (d) in FIG.
  • the batch time ie, 1000 ⁇ s.
  • the digital noise filter of the seventh comparative example is the digital noise filter disclosed in Patent Document 1 as in the case of Comparative Example 2.
  • the digital noise filter of the seventh comparative example outputs an On signal when the value of the counter reaches four.
  • FIG. 10 is a graph of the digital noise filter disclosed in Patent Document 1.
  • A) of FIG. 10 is a graph which shows the example of the output signal of the sensor 100 in, when there is no influence of noise.
  • B) of FIG. 10 is a graph showing an output signal of the digital noise filter of the seventh comparative example in which the signal shown in (a) is an input signal.
  • C) of FIG. 10 is a graph showing an example of an output signal of the sensor 100 when there is an influence of noise.
  • (D) of FIG. 10 is a graph showing an output signal of the digital noise filter of the seventh comparative example in which the signal shown in (c) is an input signal.
  • the horizontal and vertical axes in (a) to (d) of FIG. 10 are the same as the horizontal and vertical axes in (a) to (d) of FIG.
  • the value of the counter at each time is indicated by a number on the graph.
  • the output signal of the sensor 100 is the same as the example shown in (c) of FIG. That is, the output signal of the sensor 100 is an off signal at time t0 and before, becomes an on signal between time t0 and time t1, and becomes an off signal at time t4 due to the influence of noise. Furthermore, the output signal of the sensor 100 continues to be an Off signal at time t5, and becomes an On signal again at time t6.
  • the output of the digital noise filter of the seventh comparative example is also an Off signal until time t3, as in the digital noise filter 11.
  • the value of the counter increases to three.
  • the value of the counter decreases to 2 at time t4 and decreases to 1 at time t5.
  • the value of the counter starts to increase again. Since the value of the counter is 4 at time t8, the output of the digital noise filter of the seventh comparative example is the On signal.
  • the jitter when affected by noise at times t4 and t5 can be determined by sampling 4 as can be seen by comparing (b) and (d) in FIG.
  • the batch time ie, 1000 ⁇ s.
  • the digital noise filters of Comparative Examples 4 to 7 are the digital noise filters of the prior art or Patent Document 1.
  • the digital noise filter 11 of the present embodiment can reduce the magnitude of jitter by appropriately setting the parameters, as compared with the digital noise filters of Comparative Examples 4 to 7 as shown in FIG. .
  • the maximum value of the jitter can be turned off due to noise It is equal to the period when it became a signal.
  • the maximum value of the jitter is (i) a period during which the sampling value becomes an Off signal due to noise, and (ii) an On signal set in the digital noise filter. It is equal to the sum of the number of consecutive On signals to the input signal before outputting.
  • the maximum value of the jitter is equal to twice the period in which the sampling value becomes the Off signal due to noise.
  • jitter can be reduced as compared with the digital noise filters of Comparative Examples 1 and 2.
  • the set value described above may be adjusted by the user as appropriate so that the noise of the signal actually output is minimized.
  • the set value described above may be set to an appropriate initial value to perform a test operation, and the set value may be appropriately adjusted based on the error and the jitter in the test operation.
  • the first signal value is output to the digital noise filter 11 in a state in which a predetermined event is not detected, and the second signal value is output in a state in which a predetermined event is detected.
  • An output signal from the sensor 100 is input. Therefore, the digital noise filter 11 can reduce the influence of noise on the second signal value output when the sensor 100 detects a predetermined event.
  • the digital noise filter 11 of the electric device 10 may be realized by an MPU, that is, software as described above, or may be realized by hardware.
  • the communication circuit 13 may connect the digital noise filter 11 and the personal computer 200 by, for example, a USB (Universal Serial Bas).
  • the storage device 14 may be, for example, a solid state drive (SSD) or a flash memory.
  • the digital noise filter 11 may be connected to an external storage device without the storage device 14 inside.
  • the number of samplings used by the noise processing unit 11b to determine the output signal, and the ratio of the On signal to the input signal to turn the output signal to the On signal are, as described above, based on the input by the user. It can be changed. Therefore, the number of times of sampling may be set to a number other than six times, and the ratio of the On signal may be set to a ratio different from either 80% or 60%. Also, the sampling period may be set to a length other than 250 ⁇ s.
  • the input signal is an electrical signal corresponding to a digital signal having either the first signal value or the second signal value, and the noise is removed from the input signal
  • a digital noise filter that outputs a signal, wherein a sampling processing unit that samples the input signal at a predetermined cycle, and a ratio of the second signal value at a predetermined ratio or more in the continuous predetermined number of times of sampling
  • a noise processing unit that sets a signal to be output as the second signal value, and sets a signal to be output as the first signal value when the ratio of the second signal value is less than a predetermined ratio; .
  • the digital noise filter includes a sampling processing unit and a noise processing unit.
  • the sampling processing unit performs sampling at a predetermined cycle on an input signal that is an electrical signal corresponding to a digital signal that takes either the first signal value or the second signal value.
  • the noise processing unit sets a signal to be output as the second signal value when the ratio of the second signal value is equal to or more than the predetermined ratio in the sampling of the predetermined number of consecutive times by the sampling processing unit. When the ratio is less than a predetermined ratio, the signal to be output is taken as a first signal value.
  • the digital noise filter outputs a signal output from the noise processing unit, thereby outputting a signal obtained by removing noise from the input signal.
  • the output is determined based on the proportion of the second signal value in the predetermined number of consecutive samplings. Therefore, even if the continuation of the second signal value is interrupted due to noise in the predetermined number of consecutive samplings, the output is determined based on the predetermined number of samplings including the second signal value before the interruption, The time until the output reaches the second signal value is reduced.
  • the digital noise filter sets at least one of the predetermined cycle, the predetermined number of times, and the predetermined ratio, based on an external instruction input.
  • the apparatus further comprises a parameter setting unit.
  • the user inputs an instruction to the parameter setting unit from the outside, thereby the sampling cycle by the sampling processing unit, the number of times of sampling for the noise processing unit to determine the output, and the output. At least one of the proportions of the second signal value to be determined can be set. Therefore, appropriate parameters can be set according to, for example, noise assumed for the input to the digital noise filter.
  • the input signal outputs the first signal value in a state in which a predetermined event is not detected, and outputs the second signal value in a state in which a predetermined event is detected. It is an output signal from a sensor.
  • noise caused by the disturbance may cause a signal reverse to the actual detection state to be input only for a short time for a predetermined event.
  • the digital noise filter reduces the influence of noise even when a signal reverse to the actual detection state is inputted only for a short time due to the influence of noise in sampling of a predetermined number of consecutive times can do.

Landscapes

  • Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
  • Analogue/Digital Conversion (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)
  • Gyroscopes (AREA)
  • Manipulation Of Pulses (AREA)

Abstract

ジッタを低減することが可能なデジタルノイズフィルタを実現する。入力信号が、Off信号またはOn信号であり、入力信号からノイズを除去するデジタルノイズフィルタ(11)であって、入力信号について所定の周期でサンプリングを行うサンプリング処理部(11a)と、連続する所定の回数のサンプリングにおいて、On信号の割合に基づいて、出力する信号をOn信号またはOff信号とするノイズ処理部(11b)と、を備える。

Description

デジタルノイズフィルタ
 本発明は、信号に含まれるノイズを除去するためのデジタルノイズフィルタに関する。
 従来、所定の事象を検出しているか否かに応じてOn信号またはOff信号の2種類の信号を出力するセンサが存在する。当該センサにおいては、ノイズに起因して出力が変化する虞がある。当該出力の変化を低減するため、センサの信号を入力信号として、当該入力信号についてサンプリングを行い、所定の回数連続して同じ信号が入力された場合に当該信号を出力信号とするデジタルノイズフィルタが併せて用いられていた。換言すれば、当該デジタルノイズフィルタは、同じ信号が連続する回数が所定の回数未満であれば、当該信号をノイズとして無視する。
 しかしながら、上記のデジタルノイズフィルタでは、入力信号において同じ信号が所定の回数連続する前にノイズにより入力信号が変化した場合、同じ信号が再度所定の回数連続するまで出力信号が変化しない。このため、上記のデジタルノイズフィルタでは、入力信号がノイズの影響をうける環境下において、出力信号が変化するまでの時間のバラツキ、いわゆるジッタが大きくなる。
 特許文献1には、デジタル信号が入力され、アップ又はダウンカウンティングするためのカウンティング手段としての係数部を備えるデジタルノイズフィルタが開示されている。計数部は、入力信号がハイ信号である場合にアップカウンティングし、ロウ信号である場合にダウンカウンティングする。計数部による計数値が所定の値になると、出力信号がハイ信号になる。このようなデジタルノイズフィルタによれば、入力信号がノイズの影響をうける環境下において、上記の従来技術と比較してジッタを低減することができる。
日本国公開特許公報「特開平10-70444号公報(1998年3月10日公開)」
 しかしながら、特許文献1に開示されているデジタルノイズフィルタによっても、ジッタを十分に低減することはできない。
 本発明の一態様は、入力信号がノイズの影響をうける環境下において、よりジッタを低減することが可能なデジタルノイズフィルタを実現することを目的とする。
 本発明は、上述した課題を解決するために、以下の構成を採用する。
 すなわち、本発明の一側面に係るデジタルノイズフィルタは、入力信号が、第1信号値または第2信号値のいずれかをとるデジタル信号に対応した電気信号であり、前記入力信号からノイズを除去した信号を出力するデジタルノイズフィルタであって、前記入力信号について所定の周期でサンプリングを行うサンプリング処理部と、連続する所定の回数の前記サンプリングにおいて、前記第2信号値の割合が所定の割合以上である場合に、出力する信号を前記第2信号値とし、前記第2信号値の割合が所定の割合未満である場合に、出力する信号を前記第1信号値とするノイズ処理部と、を備える。
 本発明の一側面によれば、入力信号がノイズの影響をうける環境下において、ジッタを低減することが可能なデジタルノイズフィルタを実現することができる。
本発明の実施形態に係るデジタルノイズフィルタの適用場面の一例を示す図である。 本発明の実施形態に係るデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とするデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とするデジタルノイズフィルタの出力信号を示すグラフである。 背景技術の欄で述べた従来のデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第1の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第1の比較例のデジタルノイズフィルタの出力信号を示すグラフである。 特許文献1に開示のデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第2の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第2の比較例のデジタルノイズフィルタの出力信号を示すグラフである。 本発明の実施形態に係るデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とするデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とするデジタルノイズフィルタの出力信号を示すグラフである。 本発明の実施形態に係るデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第3の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第3の比較例のデジタルノイズフィルタの出力信号を示すグラフである。 背景技術の欄で述べた従来のデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第4の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第4の比較例のデジタルノイズフィルタの出力信号を示すグラフである。 背景技術の欄で述べた従来のデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第5の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第5の比較例のデジタルノイズフィルタの出力信号を示すグラフである。 特許文献1に開示のデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第6の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第6の比較例のデジタルノイズフィルタの出力信号を示すグラフである。 特許文献1に開示のデジタルノイズフィルタについてのグラフであって、(a)は、ノイズの影響がない場合におけるセンサの出力信号の例を示すグラフであり、(b)は、(a)に示した信号を入力信号とする第7の比較例のデジタルノイズフィルタの出力信号を示すグラフであり、(c)は、ノイズの影響がある場合におけるセンサの出力信号の例を示すグラフであり、(d)は、(c)に示した信号を入力信号とする第7の比較例のデジタルノイズフィルタの出力信号を示すグラフである。
 以下、本発明の一側面に係る実施の形態(以下、「本実施形態」とも表記する)を、図面に基づいて説明する。ただし、以下で説明する本実施形態は、あらゆる点において本発明の例示に過ぎない。本発明の範囲を逸脱することなく種々の改良や変形を行うことができることは言うまでもない。つまり、本発明の実施にあたって、実施形態に応じた具体的構成が適宜採用されてもよい。なお、本実施形態において登場するデータを自然言語により説明しているが、より具体的には、コンピュータが認識可能な疑似言語、コマンド、パラメータ、マシン語等で指定される。
 §1 適用例
 まず、図1を用いて、本発明が適用される場面の一例について説明する。図1は、本実施形態に係るデジタルノイズフィルタ11の適用場面の一例を示す図である。デジタルノイズフィルタ11は、Off信号(第1信号値)またはOn信号(第2信号値)のいずれかをとるデジタル信号に対応した電気信号を入力信号とし、入力信号からノイズを除去した信号を出力信号として出力する。図1に示す例では、電気機器10にデジタルノイズフィルタ11が適用されている。図1に示すように、電気機器10は、デジタルノイズフィルタ11と、絶縁回路12と、通信回路13と、記憶装置14とを有する。デジタルノイズフィルタ11には、絶縁回路12を介してセンサ100が接続されている。また、デジタルノイズフィルタ11には、通信回路13を介してパソコン200が接続されている。
 デジタルノイズフィルタ11は、センサ100から電気機器10への入力信号からノイズを除去する。具体的には、デジタルノイズフィルタ11は、サンプリング処理部11aと、ノイズ処理部11bと、パラメータ設定部11cとを備える。
 サンプリング処理部11aは、センサ100からの入力信号について、所定の周期でサンプリングを行う。所定の周期は、例えば250μsである。ノイズ処理部11bは、サンプリング処理部11aによる、連続する所定の回数のサンプリングにおいて、On信号の割合が所定の割合以上である場合に、出力する信号をOn信号とする。また、ノイズ処理部11bは、上記サンプリングにおいて、On信号の割合が所定の割合未満である場合に、出力する信号をOff信号とする。換言すれば、ノイズ処理部11bは、連続する所定の回数のサンプリングにおける、入力信号の移動平均が一定の割合以上であるか否かに基づいて、出力信号をOn信号またはOff信号とする。
 パラメータ設定部11cは、外部からの指示入力に基づき、(i)サンプリング処理部11aがサンプリングを行う所定の周期、(ii)ノイズ処理部11bが出力を決定するための、サンプリングの所定の回数、および(iii)ノイズ処理部11bが出力を決定するための、On信号の所定の割合のうち、少なくともいずれか1つを設定する。パラメータ設定部11cにより設定されたパラメータは、記憶装置14に記憶され、サンプリング処理部11aおよびノイズ処理部11bにより参照される。また、上記パラメータのうち1つ以上について、ユーザが設定できない固定された値とする場合には、当該値が記憶装置14に記憶され、サンプリング処理部11aおよびノイズ処理部11bにより参照される。
 例えば、ノイズ処理部11bが出力を決定するための、サンプリングの所定の回数を増加させた場合、ノイズにより誤った出力信号を出力する虞が低減されるという長所がある。一方で、On信号が出力されるまでに必要なOn信号の回数が増加するため、On信号が出力されるまでの平均時間が長くなるという短所がある。サンプリングの回数を減少させた場合には、これらの長所および短所が逆になる。
 また、ノイズ処理部11bが出力を決定するための、On信号の所定の割合を大きくした場合、ノイズによるOn信号が入力された場合に、誤ってOn信号を出力する虞が低減されるという長所がある。一方で、ノイズにより幅の長いOff信号が入力された場合に、On信号が出力されない虞があるという短所がある。On信号の所定の割合を小さくした場合には、これらの長所および短所が逆になる。
 絶縁回路12は、デジタルノイズフィルタ11とセンサ100との間を絶縁し、かつセンサ100の出力信号をデジタルノイズフィルタ11へ入力するための回路である。センサ100は、所定の事象を検出していない状態においてOff信号を出力し、所定の事象を検出した状態においてOn信号を出力する。
 通信回路13は、デジタルノイズフィルタ11とパソコン200とを通信可能に接続するための回路である。図1に示す例では、通信回路13は、デジタルノイズフィルタ11とパソコン200とを有線により接続しているが、無線により接続してもよい。パソコン200は、パラメータ設定部11cに対してユーザがパラメータについて外部から指示入力を行うために用いられる。
 記憶装置14は、デジタルノイズフィルタ11の動作に必要な情報を記憶する記憶媒体である。例えば記憶装置14は、パラメータ設定部11cにより設定された上記の設定値を記憶する。
 §2 構成例
 次に、電気機器10のハードウェア構成の一例について説明する。
 電気機器10は、例えばインバータ、サーボ、またはPLC(Programmable Logic Controller)入力ユニットである。この場合、センサ100の例としては、光電センサが挙げられる。すなわち、センサ100は光源およびフォトダイオードを備え、光源からの光の入射をフォトダイオードが検出していない状態においてOff信号を出力し、検出している状態においてOn信号を出力する。
 デジタルノイズフィルタ11は、例えばMPU(Micro Processing Unit)により実現されてよい。すなわち、デジタルノイズフィルタ11は、マイクロコンピュータとして構成されてよい。また、絶縁回路12は、例えばフォトカプラが組み込まれたものであってよい。また、通信回路13は、例えば通信ネットワークを介してデジタルノイズフィルタ11とパソコン200とを接続するものであってよい。また、記憶装置14は、例えばEEPROM(Electrically Erasable Programmable Read Only Memory)(登録商標)であってよい。また、パソコン200は、例えば上述した設定値を変更するためのツールとしてのプログラムが組み込まれた、汎用のパソコンであってよい。
 §3 動作例1
 以下に、本実施形態のデジタルノイズフィルタ11、ならびに第1および第2の比較例のデジタルノイズフィルタの動作例を説明する。本動作例で説明するデジタルノイズフィルタは、いずれも最大で1ms幅のノイズを除去することが可能である。また、本動作例で説明するデジタルノイズフィルタのサンプリング周期はいずれも250μsである。
 (本実施形態)
 デジタルノイズフィルタ11の動作例について説明する。本動作例では、デジタルノイズフィルタ11は、センサ100からの入力信号について、ノイズ除去に用いるサンプリングの回数を6回とし、On信号の割合が80%以上であればOn信号を出力する。すなわち、デジタルノイズフィルタ11は、入力信号についての連続する6回のサンプリングのうち、On信号の回数が5回以上であればOn信号を出力する。
 図2は、デジタルノイズフィルタ11についてのグラフである。図2の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図2の(b)は、(a)に示した信号を入力信号とするデジタルノイズフィルタ11の出力信号を示すグラフである。図2の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図2の(d)は、(c)に示した信号を入力信号とするデジタルノイズフィルタ11の出力信号を示すグラフである。
 図2の(a)~(d)において、横軸は時間である。tn(nは整数)はいずれもサンプリングが行われる時刻を示す。上述したとおり、サンプリング周期は250μsであるため、時刻tn同士の間隔はそれぞれ250μsである。また、図2の(a)~(d)において、縦軸は信号であり、OffまたはOnである。より詳細には、縦軸は、図2の(a)および(c)においてはセンサ100の出力信号、すなわちデジタルノイズフィルタ11への入力信号であり、図2の(b)および(d)においてはデジタルノイズフィルタ11の出力信号である。また、図2の(a)および(c)においては、それぞれの時刻における、当該時刻を含む、当該時刻までの6回のサンプリングにおけるOn信号の回数をグラフ上に数字で表記している。
 まず、図2の(a)および(b)に示す例について説明する。図2の(a)に示す例では、センサ100の出力信号は、時刻t0においてはOff信号である。また、図示しないが、時刻t0以前のサンプリングにおいても、センサ100の出力信号はOff信号であるものとする。センサ100の出力信号は、時刻t0と時刻t1との間でOn信号に変化し、その後は時刻t6まで連続してOn信号である。
 この場合、時刻t0~t4においては、当該時刻を含む、当該時刻までの6回のサンプリングにおいて、On信号の回数は4回以下である。すなわち、入力信号においてOn信号が占める割合は80%よりも小さい。このため、図2の(b)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t4まではOff信号である。
 一方、時刻t5においては、当該時刻を含む、当該時刻までの6回のサンプリングにおいて、On信号の回数は5回となる。すなわち、6回のサンプリングにおいてOn信号が占める割合は80%以上になる。このため、図2の(b)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t5においてOn信号になる。さらに、時刻t6以降も、当該時刻を含む6回のサンプリングにおいて、On信号が占める割合が80%以上である状態が継続する。このため、デジタルノイズフィルタ11の出力信号についてもOn信号の状態が継続する。
 次に、図2の(c)および(d)に示す例について説明する。図2の(c)に示す例においても、センサ100の出力信号は、時刻t0およびそれ以前のサンプリングではOff信号であり、時刻t0と時刻t1との間でOn信号に変化する。しかしながら、図2の(c)に示す例において、センサ100の出力信号は、時刻t4と時刻t5との間でノイズの影響により変化し、時刻t5のサンプリングではOff信号になる。その後、時刻t5と時刻t6との間でセンサ100の出力信号はOn信号に戻る。このため、時刻t6以降のサンプリングでは、センサ100の出力信号は継続してOn信号である。
 この場合、図2の(b)に示した例と同様、時刻t0~t4においては、当該時刻を含む、当該時刻までの6回のサンプリングにおいて、On信号が占める割合は80%よりも小さい。このため、図2の(d)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t4まではOff信号である。
 さらに、時刻t5において、センサ100の出力信号が一時的にOff信号になる。このため、時刻t5においても、当該時刻を含む、当該時刻までの6回のサンプリングにおいて、On信号が占める割合は80%よりも小さい。したがって、図2の(d)に示すように、デジタルノイズフィルタ11の出力信号は時刻t5においてもOff信号である。
 時刻t6において、センサ100の出力信号が再度On信号になると、当該時刻を含む6回のサンプリングにおいて、On信号の回数は5回となり、On信号が占める割合は80%よりも大きくなる。このため、図2の(d)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t6においてOn信号になる。時刻t7以降も、当該時刻を含む6回のサンプリングにおいて、On信号が占める割合が80%以上である状態が継続する。このため、デジタルノイズフィルタ11の出力信号についてもOn信号が継続する。
 以上の説明のとおり、図2の(a)~(d)に示した例においては、デジタルノイズフィルタ11の出力信号は、ノイズの影響を受けない場合には時刻t5においてOn信号になる。一方、時刻t5においてノイズの影響を受けた場合には、デジタルノイズフィルタ11の出力信号は、時刻t6においてOn信号になる。したがって、デジタルノイズフィルタ11においては、時刻t5においてノイズの影響を受けた場合のジッタは、図2の(b)と(d)とを比較して分かる通り、サンプリング1回分の時間、すなわち250μsとなる。
 (比較例1)
 図3を参照して、第1の比較例のデジタルノイズフィルタの動作例について説明する。第1の比較例のデジタルノイズフィルタは、背景技術の欄で述べた従来のデジタルノイズフィルタである。具体的には、第1の比較例のデジタルノイズフィルタは、入力信号が5回連続でOn信号となった場合にOn信号を出力する。
 図3は、背景技術の欄で述べた従来のデジタルノイズフィルタについてのグラフである。図3の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図3の(b)は、(a)に示した信号を入力信号とする第1の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図3の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図3の(d)は、(c)に示した信号を入力信号とする第1の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図3の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図3の(a)および(c)においては、それぞれの時刻における、当該時刻までOn信号が連続している回数をグラフ上に数字で表記している。
 図3の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図2の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図3の(c)に示す例において、センサ100の出力信号は、図2の(c)に示す例と同様である。すなわち、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号に変化し、時刻t5においてノイズの影響によりOff信号になり、時刻t6において再度On信号になる。
 この場合、第1の比較例のデジタルノイズフィルタの出力も、デジタルノイズフィルタ11と同様、時刻t5まではOff信号である。しかし、時刻t5においてセンサ100の出力のOn信号の連続が途切れるため、時刻t6においてセンサ100の出力がOn信号に戻っても、第1の比較例のデジタルノイズフィルタの出力は、時刻t9までOff信号のままである。時刻t10において、時刻t6~t10までの5回のサンプリング値が連続して5回On信号となるため、第1の比較例のデジタルノイズフィルタの出力がOn信号となる。したがって、第1の比較例のデジタルノイズフィルタにおいては、時刻t5においてノイズの影響を受けた場合のジッタは、図3の(b)と(d)とを比較して分かる通り、サンプリング5回分の時間、すなわち1250μsとなる。
 (比較例2)
 図4を参照して、第2の比較例のデジタルノイズフィルタの動作例について説明する。第2の比較例のデジタルノイズフィルタは、特許文献1に開示のデジタルノイズフィルタである。具体的には、第2の比較例のデジタルノイズフィルタは、初期値が0であるカウンタの値を、入力信号がOn信号である場合に1増加、Off信号である場合に1減少させ、カウンタの値が5になった場合にOn信号を出力する。ただし、カウンタの値が0である場合において入力信号がOff信号である場合には、カウンタの値は変化しない。
 図4は、特許文献1に開示のデジタルノイズフィルタについてのグラフである。図4の(a)は、ノイズが存在しない場合におけるセンサ100の出力信号の例を示すグラフである。図4の(b)は、(a)に示した信号を入力信号とする第2の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図4の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図4の(d)は、(c)に示した信号を入力信号とする第2の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図4の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図4の(a)および(c)においては、それぞれの時刻におけるカウンタの値をグラフ上に数字で表記している。
 図4の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図2の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図4の(c)に示す例において、センサ100の出力信号は、図2の(c)に示す例と同様である。すなわち、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号に変化し、時刻t5においてノイズの影響でOff信号になり、時刻t6において再度On信号になる。
 この場合、カウンタの値は時刻t4においては4であり、時刻t5において3に減少する。その後、カウンタの値は、時刻t6において再度4になり、時刻t7において5になる。したがって、第2の比較例のデジタルノイズフィルタの出力信号は、図4の(d)に示すように、時刻t0~t6まではOff信号であり、時刻t7以降はOn信号になる。したがって、第2の比較例のデジタルノイズフィルタにおいては、時刻t5においてノイズの影響を受けた場合のジッタは、図4の(b)と(d)とを比較して分かる通り、サンプリング2回分の時間、すなわち500μsとなる。
 §4 動作例2
 以下に、本実施形態のデジタルノイズフィルタ11および比較例のデジタルノイズフィルタの、別の動作例を説明する。
 (比較例3)
 図6を参照して、先に第3の比較例のデジタルノイズフィルタの動作例について説明する。第3の比較例のデジタルノイズフィルタは、本実施形態のデジタルノイズフィルタ11と構成上は同一であり、入力信号が上述した動作例1とは異なる。
 図6は、第3の比較例としてのデジタルノイズフィルタ11についてのグラフである。図6の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図6の(b)は、(a)に示した信号を入力信号とする第3の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図6の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図6の(d)は、(c)に示した信号を入力信号とする第3の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図6の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図6の(a)および(c)においては、それぞれの時刻における、当該時刻を含む、当該時刻までの6回のサンプリングにおけるOn信号の回数をグラフ上に数字で表記している。
 図6の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図2の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図6の(c)に示す例においても、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号になる。しかしながら、図6の(c)に示す例では、センサ100の出力信号は、時刻t4と時刻t5との間でノイズの影響により変化し、時刻t5およびt6におけるサンプリング値がOff信号になる。その後、時刻t6と時刻t7との間でセンサ100の出力信号はOn信号に戻り、時刻t7以降はOn信号が継続する。
 この場合、時刻t0~t4においては、当該時刻を含む6回のサンプリングにおいて、On信号の回数は5回未満である。さらに、センサ100の出力信号がOff信号になる時刻t5およびt6、ならびにセンサ100の出力信号がOn信号に戻った後の時刻t7~t10においても、当該時刻を含む6回のサンプリングにおいて、On信号の回数は4回である。したがって、比較例3のデジタルノイズフィルタにおいては、時刻t0~t10における出力は全てOff信号である。
 時刻t11において、当該時刻を含む6回のサンプリングにおけるOn信号の回数が5回となり、第3の比較例のデジタルノイズフィルタの出力がOn信号となる。したがって、第3の比較例のデジタルノイズフィルタにおいては、時刻t5およびt6においてノイズの影響を受けた場合のジッタは、図6の(b)と(d)とを比較して分かる通り、サンプリング6回分の時間、すなわち1500μsとなる。
 (本実施形態)
 次に、デジタルノイズフィルタ11の別の動作例について説明する。本動作例のデジタルノイズフィルタ11は、最大で750μs幅のノイズを除去することが可能である。本動作例では、デジタルノイズフィルタ11は、センサ100からの入力信号について、ノイズ除去に用いるサンプリングの回数を6回とし、On信号の割合が60%以上であればOn信号を出力する。すなわち、本動作例のデジタルノイズフィルタ11は、センサ100からの入力信号についての、連続する6回のサンプリングのうち4回以上がOn信号であれば、On信号を出力する。
 図5は、本動作例のデジタルノイズフィルタ11についてのグラフである。図5の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図5の(b)は、(a)に示した信号を入力信号とするデジタルノイズフィルタ11の出力信号を示すグラフである。図5の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図5の(d)は、(c)に示した信号を入力信号とするデジタルノイズフィルタ11の出力信号を示すグラフである。図5の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図5の(a)および(c)においては、それぞれの時刻における、当該時刻を含む、当該時刻までの6回のサンプリングにおけるOn信号の回数をグラフ上に数字で表記している。
 図5の(a)に示す、センサ100の出力信号の例は、図2の(a)に示した例と同様であるため、説明を省略する。時刻t0~t3においては、当該時刻を含む6回のサンプリングにおいて、入力信号においてOn信号の回数は4回以下であり、On信号が占める割合は60%よりも小さい。このため、図5の(b)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t4まではOff信号である。
 一方、時刻t4において、当該時刻を含む6回のサンプリングにおいて、入力信号においてOn信号の回数は4回となり、On信号が占める割合は60%以上になる。このため、図5の(b)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t4においてOn信号になる。時刻t5以降も、当該時刻を含む6回のサンプリングにおいて、入力信号においてOn信号が占める割合が60%以上になる状態が継続するため、デジタルノイズフィルタ11の出力信号についてもOn信号が継続する。
 次に、図5の(c)および(d)に示す例について説明する。図5の(c)に示す例において、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号になる。また、図5の(c)に示す例では、センサ100の出力信号は、時刻t3と時刻t4との間でノイズの影響により変化し、時刻t4においてOff信号になる。さらに、図5の(c)に示す例では、センサ100の出力信号は、時刻t5においても継続してOff信号であり、時刻t6においてOn信号に戻る。
 この場合、図5の(b)に示した例と同様、時刻t0~t3においては、当該時刻を含む6回のサンプリングにおいて、入力信号においてOn信号が占める割合は60%よりも小さい。このため、図5の(d)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t3まではOff信号である。
 さらに、時刻t4において、センサ100の出力信号が一時的にOff信号になり、時刻t5においても引き続きOff信号である。このため、時刻t4およびt5においても、当該時刻を含む6回のサンプリングにおいて、入力信号においてOn信号が占める割合は60%よりも小さい。したがって、図5の(d)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t4およびt5においてもOff信号である。
 時刻t6において、センサ100の出力信号が再度On信号になると、当該時刻を含む6回のサンプリングにおいて、On信号の回数は4回となり、On信号が占める割合は60%よりも大きくなる。このため、図5の(d)に示すように、デジタルノイズフィルタ11の出力信号は、時刻t6においてOn信号になる。
 以上の例においては、デジタルノイズフィルタ11の出力信号は、ノイズの影響を受けない場合には時刻t4においてOn信号になり、時刻t4およびt5においてノイズの影響を受けた場合には時刻t6においてOn信号になる。したがって、デジタルノイズフィルタ11においては、時刻t4およびt5においてノイズの影響を受けた場合のジッタは、図5の(b)と(d)とを比較して分かる通り、サンプリング2回分の時間、すなわち500μsとなる。
 このように、デジタルノイズフィルタ11によれば、センサ100の出力信号に対するノイズの影響の長さに応じて、(i)サンプリング回数、および(ii)サンプリング回数に対するOn信号の回数の割合、を適切に設定することで、どのような入力信号に対しても、ジッタを極小化することができる。
 (比較例4)
 図7を参照して、第4の比較例のデジタルノイズフィルタの動作例について説明する。第4の比較例のデジタルノイズフィルタは、第1の比較例のデジタルノイズフィルタと同様、背景技術の欄で述べた従来のデジタルノイズフィルタである。具体的には、第4の比較例のデジタルノイズフィルタは、入力信号が5回連続でOn信号となった場合にOn信号を出力する。
 図7は、背景技術の欄で述べた従来のデジタルノイズフィルタについてのグラフである。図7の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図7の(b)は、(a)に示した信号を入力信号とする第4の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図7の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図7の(d)は、(c)に示した信号を入力信号とする第4の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図7の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図7の(a)および(c)においては、それぞれの時刻における、当該時刻までOn信号が連続している回数をグラフ上に数字で表記している。
 図7の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図2の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図7の(c)に示す例において、センサ100の出力信号は、図6の(c)に示す例と同様である。すなわち、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号になり、時刻t5においてノイズの影響によりOff信号になる。さらに、センサ100の出力信号は、時刻t6においても継続してOff信号であり、時刻t7において再度On信号になる。
 この場合、第4の比較例のデジタルノイズフィルタの出力も、デジタルノイズフィルタ11と同様、時刻t4まではOff信号である。しかし、時刻t5およびt6においてセンサ100の出力のOn信号の連続が途切れるため、時刻t7においてセンサ100の出力がOn信号に戻っても、第4の比較例のデジタルノイズフィルタの出力は、時刻t10までOff信号のままである。時刻t11において、時刻t7~t11までの5回のサンプリング値が連続して5回On信号となるため、第4の比較例のデジタルノイズフィルタの出力がOn信号となる。したがって、第4の比較例のデジタルノイズフィルタにおいては、時刻t5およびt6においてノイズの影響を受けた場合のジッタは、図7の(b)と(d)とを比較して分かる通り、サンプリング6回分の時間、すなわち1500μsとなる。
 (比較例5)
 図8を参照して、第5の比較例のデジタルノイズフィルタの動作例について説明する。第5の比較例のデジタルノイズフィルタは、第4の比較例のデジタルノイズフィルタと同様、背景技術の欄で述べた従来のデジタルノイズフィルタである。ただし、第5の比較例のデジタルノイズフィルタは、入力信号が4回連続でOn信号となった場合にOn信号を出力する。
 図8は、背景技術の欄で述べた従来のデジタルノイズフィルタについてのグラフである。図8の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図8の(b)は、(a)に示した信号を入力信号とする第5の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図8の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図8の(d)は、(c)に示した信号を入力信号とする第5の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図8の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図8の(a)および(c)においては、それぞれの時刻における、当該時刻までOn信号が連続している回数をグラフ上に数字で表記している。
 図8の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図5の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図8の(c)に示す例において、センサ100の出力信号は、図5の(c)に示す例と同様である。すなわち、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号になり、時刻t4においてノイズの影響によりOff信号になる。さらに、センサ100の出力信号は、時刻t5においても継続してOff信号であり、時刻t6において再度On信号になる。
 この場合、第5の比較例のデジタルノイズフィルタの出力も、デジタルノイズフィルタ11と同様、時刻t3まではOff信号である。しかし、時刻t4およびt5においてセンサ100の出力のOn信号の連続が途切れるため、時刻t6においてセンサ100の出力がOn信号に戻っても、第5の比較例のデジタルノイズフィルタの出力は、時刻t8までOff信号のままである。時刻t9において、時刻t6~t9までの4回のサンプリング値が連続して4回On信号となるため、第5の比較例のデジタルノイズフィルタの出力がOn信号となる。したがって、第5の比較例のデジタルノイズフィルタにおいては、時刻t4およびt5においてノイズの影響を受けた場合のジッタは、図8の(b)と(d)とを比較して分かる通り、サンプリング5回分の時間、すなわち1250μsとなる。
 (比較例6)
 図9を参照して、第6の比較例のデジタルノイズフィルタの動作例について説明する。第6の比較例のデジタルノイズフィルタは、比較例2と同様、特許文献1に開示のデジタルノイズフィルタである。具体的には、第6の比較例のデジタルノイズフィルタは、初期値が0であるカウンタの値を、入力信号がOn信号である場合に1増加、Off信号である場合に1減少させ、カウンタの値が5になった場合にOn信号を出力する。ただし、カウンタの値が0である場合において入力信号がOff信号である場合には、カウンタの値は変化しない。
 図9は、特許文献1に開示のデジタルノイズフィルタについてのグラフである。図9の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図9の(b)は、(a)に示した信号を入力信号とする第6の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図9の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図9の(d)は、(c)に示した信号を入力信号とする第6の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図9の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図9の(a)および(c)においては、それぞれの時刻におけるカウンタの値をグラフ上に数字で表記している。
 図9の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図2の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図9の(c)に示す例において、センサ100の出力信号は、図6の(c)に示す例と同様である。すなわち、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号になり、時刻t5においてノイズの影響によりOff信号になる。さらに、センサ100の出力信号は、時刻t6においても継続してOff信号であり、時刻t7において再度On信号になる。
 この場合、第6の比較例のデジタルノイズフィルタの出力も、デジタルノイズフィルタ11と同様、時刻t4までOff信号である。時刻t4においては、カウンタの値は4まで増加する。しかし、時刻t5およびt6においてセンサ100の出力がOff信号になるため、カウンタの値は時刻t5において3に減少し、時刻t6において2に減少する。その後、時刻t7においてセンサ100の出力がOn信号に戻ると、カウンタの値は再度増加し始める。時刻t9においてカウンタの値は5となるため、第6の比較例のデジタルノイズフィルタの出力がOn信号となる。したがって、第4の比較例のデジタルノイズフィルタにおいては、時刻t5およびt6においてノイズの影響を受けた場合のジッタは、図9の(b)と(d)とを比較して分かる通り、サンプリング4回分の時間、すなわち1000μsとなる。
 (比較例7)
 図10を参照して、第7の比較例のデジタルノイズフィルタの動作例について説明する。第7の比較例のデジタルノイズフィルタは、比較例2と同様、特許文献1に開示のデジタルノイズフィルタである。ただし、第7の比較例のデジタルノイズフィルタは、カウンタの値が4になった場合にOn信号を出力する。
 図10は、特許文献1に開示のデジタルノイズフィルタについてのグラフである。図10の(a)は、ノイズの影響がない場合におけるセンサ100の出力信号の例を示すグラフである。図10の(b)は、(a)に示した信号を入力信号とする第7の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図10の(c)は、ノイズの影響がある場合におけるセンサ100の出力信号の例を示すグラフである。図10の(d)は、(c)に示した信号を入力信号とする第7の比較例のデジタルノイズフィルタの出力信号を示すグラフである。図10の(a)~(d)における横軸および縦軸は、図2の(a)~(d)における横軸および縦軸と同様である。また、図10の(a)および(c)においては、それぞれの時刻におけるカウンタの値をグラフ上に数字で表記している。
 図10の(a)および(b)に示す、センサ100の出力信号にノイズが存在しない場合における例については、図5の(a)および(b)に示した例と同様であるため、ここでは説明を省略する。
 図10の(c)に示す例において、センサ100の出力信号は、図5の(c)に示す例と同様である。すなわち、センサ100の出力信号は、時刻t0およびそれ以前においてはOff信号であり、時刻t0と時刻t1との間でOn信号になり、時刻t4においてノイズの影響によりOff信号になる。さらに、センサ100の出力信号は、時刻t5においても継続してOff信号であり、時刻t6において再度On信号になる。
 この場合、第7の比較例のデジタルノイズフィルタの出力も、デジタルノイズフィルタ11と同様、時刻t3までOff信号である。時刻t3においては、カウンタの値は3まで増加する。しかし、時刻t4およびt5においてセンサ100の出力がOff信号になるため、カウンタの値は時刻t4において2に減少し、時刻t5において1に減少する。その後、時刻t6においてセンサ100の出力がOn信号に戻ると、カウンタの値は再度増加し始める。時刻t8においてカウンタの値は4となるため、第7の比較例のデジタルノイズフィルタの出力がOn信号となる。したがって、第7の比較例のデジタルノイズフィルタにおいては、時刻t4およびt5においてノイズの影響を受けた場合のジッタは、図10の(b)と(d)とを比較して分かる通り、サンプリング4回分の時間、すなわち1000μsとなる。
 比較例4~7のデジタルノイズフィルタは、従来技術、または特許文献1のデジタルノイズフィルタである。本実施形態のデジタルノイズフィルタ11は、適切にパラメータを設定することで、図5に示すように、比較例4~7のデジタルノイズフィルタと比較して、ジッタの大きさを低減することができる。
 (効果)
 以上の動作例のとおり、本実施形態のデジタルノイズフィルタ11においては、サンプリング回数およびOn信号の割合といった設定値を適切に設定すれば、ジッタの最大値は、入力信号のサンプリング値がノイズによってOff信号になった期間に等しい。これに対し、第1の比較例のデジタルノイズフィルタでは、ジッタの最大値は、(i)サンプリング値がノイズによってOff信号になった期間と、(ii)デジタルノイズフィルタに設定された、On信号を出力するまでに入力信号にOn信号の連続する回数と、の和に等しい。また、第2の比較例のデジタルノイズフィルタでは、ジッタの最大値は、サンプリング値がノイズによってOff信号になった期間の2倍に等しい。
 したがって、本実施形態のデジタルノイズフィルタ11によれば、比較例1および2のデジタルノイズフィルタと比較して、ジッタを低減することができる。
 なお、上述した設定値については、実際に出力される信号のノイズが最小化されるように、ユーザが適宜調整すればよい。具体的には、例えば上述した設定値を適当な初期値に設定して試運転を行い、当該試運転におけるエラーおよびジッタに基づいて、設定値を適宜調整すればよい。
 また、上述した実施形態では、デジタルノイズフィルタ11には、所定の事象を検出していない状態において前記第1信号値を出力し、所定の事象を検出した状態において前記第2信号値を出力するセンサ100からの出力信号が入力される。このため、デジタルノイズフィルタ11は、センサ100が所定の事象を検出した場合に出力する第2信号値に対するノイズの影響を低減することができる。
 なお、上述した動作例では、いずれも各動作例および比較例のデジタルノイズフィルタの出力がOff信号からOn信号へ切り替わる場合について説明した。本実施形態のデジタルノイズフィルタ11の出力がOn信号からOff信号へ切り替わる場合には、上述した動作例とは逆に、所定の回数のサンプリングにおいて、入力信号がOff信号である回数が所定の割合以上であった場合に出力が切り替わる。
 §5 変形例
 電気機器10のデジタルノイズフィルタ11は、上述したようにMPU、すなわちソフトウェアによって実現してもよいし、ハードウェアによって実現してもよい。
 また、通信回路13は、例えばUSB(Universal Serial Bas)によりデジタルノイズフィルタ11とパソコン200とを接続するものであってよい。また、記憶装置14は、例えばSSD(Solid State Drive)またはフラッシュメモリであってよい。また、デジタルノイズフィルタ11は、内部に記憶装置14を備えず、外部に設けられた記憶装置に接続されていてもよい。
 また、ノイズ処理部11bが出力信号を決定するために用いるサンプリングの回数、および、出力信号をOn信号にするための、入力信号におけるOn信号の割合は、上述したとおり、ユーザによる入力に基づいて変更可能である。したがって、上記サンプリングの回数は6回以外の回数に設定されてもよく、上記On信号の割合を80%および60%のいずれとも異なる割合に設定されてもよい。また、サンプリングの周期が250μs以外の長さに設定されてもよい。
 〔まとめ〕
 本発明は、上述した課題を解決するために、以下の構成を採用する。
 すなわち、本発明の一側面に係るデジタルノイズフィルタは、入力信号が、第1信号値または第2信号値のいずれかをとるデジタル信号に対応した電気信号であり、前記入力信号からノイズを除去した信号を出力するデジタルノイズフィルタであって、前記入力信号について所定の周期でサンプリングを行うサンプリング処理部と、連続する所定の回数の前記サンプリングにおいて、前記第2信号値の割合が所定の割合以上である場合に、出力する信号を前記第2信号値とし、前記第2信号値の割合が所定の割合未満である場合に、出力する信号を前記第1信号値とするノイズ処理部と、を備える。
 上記構成では、デジタルノイズフィルタは、サンプリング処理部と、ノイズ処理部と、を備える。サンプリング処理部は、第1信号値または第2信号値のいずれかをとるデジタル信号に対応した電気信号である入力信号について、所定の周期でサンプリングを行う。ノイズ処理部は、サンプリング処理部による、連続する所定の回数のサンプリングにおいて、第2信号値の割合が所定の割合以上である場合に、出力する信号を第2信号値とし、第2信号値の割合が所定の割合未満である場合に、出力する信号を第1信号値とする。デジタルノイズフィルタは、ノイズ処理部が出力した信号を出力することで、入力信号からノイズを除去した信号を出力する。
 したがって、デジタルノイズフィルタにおいては、連続する所定の回数のサンプリングにおける、第2信号値の割合に基づいて出力が決定される。このため、連続する所定の回数のサンプリングにおいて、ノイズの影響により第2信号値の連続が途切れた場合でも、途切れる前の第2信号値を含む所定の回数のサンプリングに基づいて出力が決定され、出力が第2信号値になるまでの時間が短縮される。
 上記一側面に係るデジタルノイズフィルタにおいて、当該デジタルノイズフィルタは、外部からの指示入力に基づき、前記所定の周期、前記所定の回数、および前記所定の割合のうち、少なくともいずれか1つを設定するパラメータ設定部をさらに備える。
 上記の構成によれば、ユーザは、外部からパラメータ設定部に対して指示入力を行うことで、サンプリング処理部によるサンプリングの周期、ノイズ処理部が出力を決定するためのサンプリングの回数、および出力を決定するための第2信号値の割合の、少なくともいずれか1つを設定することができる。よって、例えばデジタルノイズフィルタへの入力について想定されるノイズなどに応じて、適切なパラメータを設定することができる。
 上記一側面に係るデジタルノイズフィルタにおいて、前記入力信号は、所定の事象を検出していない状態において前記第1信号値を出力し、所定の事象を検出した状態において前記第2信号値を出力するセンサからの出力信号である。
 センサからの入力信号においては、外乱に起因するノイズにより、所定の事象について、実際の検出状態とは逆の信号が短時間のみ入力される虞がある。上記の構成によれば、デジタルノイズフィルタは、連続する所定の回数のサンプリングにおいて、ノイズの影響により実際の検出状態とは逆の信号が短時間のみ入力された場合でも、当該ノイズの影響を低減することができる。
 本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
 11 デジタルノイズフィルタ
 11a サンプリング処理部
 11b ノイズ処理部
 11c パラメータ設定部
 100 センサ

Claims (3)

  1.  入力信号が、第1信号値または第2信号値のいずれかをとるデジタル信号であり、前記入力信号からノイズを除去した信号を出力するデジタルノイズフィルタであって、
     前記入力信号について所定の周期でサンプリングを行うサンプリング処理部と、
     連続する所定の回数の前記サンプリングにおいて、前記第2信号値の割合が所定の割合以上である場合に、出力する信号を前記第2信号値とし、前記第2信号値の割合が所定の割合未満である場合に、出力する信号を前記第1信号値とするノイズ処理部と、を備えることを特徴とするデジタルノイズフィルタ。
  2.  外部からの指示入力に基づき、前記所定の周期、前記所定の回数、および前記所定の割合のうち、少なくともいずれか1つを設定するパラメータ設定部をさらに備えることを特徴とする請求項1に記載のデジタルノイズフィルタ。
  3.  前記入力信号が、所定の事象を検出していない状態において前記第1信号値を出力し、所定の事象を検出した状態において前記第2信号値を出力するセンサからの出力信号であることを特徴とする請求項1または2に記載のデジタルノイズフィルタ。
PCT/JP2018/039751 2017-11-24 2018-10-25 デジタルノイズフィルタ WO2019102785A1 (ja)

Priority Applications (3)

Application Number Priority Date Filing Date Title
EP18881618.5A EP3716482A4 (en) 2017-11-24 2018-10-25 DIGITAL NOISE FILTER
US16/644,523 US20200295741A1 (en) 2017-11-24 2018-10-25 Digital noise filter
CN201880056341.7A CN111066247A (zh) 2017-11-24 2018-10-25 数字噪声滤波器

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017-226071 2017-11-24
JP2017226071A JP2019097075A (ja) 2017-11-24 2017-11-24 デジタルノイズフィルタ

Publications (1)

Publication Number Publication Date
WO2019102785A1 true WO2019102785A1 (ja) 2019-05-31

Family

ID=66631562

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/039751 WO2019102785A1 (ja) 2017-11-24 2018-10-25 デジタルノイズフィルタ

Country Status (5)

Country Link
US (1) US20200295741A1 (ja)
EP (1) EP3716482A4 (ja)
JP (1) JP2019097075A (ja)
CN (1) CN111066247A (ja)
WO (1) WO2019102785A1 (ja)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023102937A1 (zh) * 2021-12-10 2023-06-15 上海艾为电子技术股份有限公司 全极性霍尔传感器件及其控制方法、电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56138330A (en) * 1980-03-31 1981-10-28 Matsushita Electric Works Ltd Noise rejector for constant input judgement
JPS6236925A (ja) * 1985-03-29 1987-02-17 Stanley Electric Co Ltd デジタルデ−タのサンプリング方式
JPH03218114A (ja) * 1990-01-24 1991-09-25 Fuji Electric Co Ltd ノイズ除去回路
JPH1070444A (ja) 1996-04-09 1998-03-10 Samsung Electron Co Ltd デジタルノイズフィルター
JP2016063406A (ja) * 2014-09-18 2016-04-25 株式会社デンソーウェーブ デジタルフィルタ装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5853257A (ja) * 1981-09-26 1983-03-29 Toshiba Corp デイジタルデ−タ受信回路
JPS60137117A (ja) * 1983-11-30 1985-07-20 Nec Home Electronics Ltd デイジタルフイルタ回路
JPS6190514A (ja) * 1984-10-11 1986-05-08 Nippon Gakki Seizo Kk 楽音信号処理装置
JPH0611147B2 (ja) * 1986-10-24 1994-02-09 三洋電機株式会社 ノイズ除去回路
JP4362407B2 (ja) * 2004-04-06 2009-11-11 パナソニック株式会社 デジタルノイズフィルタ
JP2009217539A (ja) * 2008-03-11 2009-09-24 Koyo Electronics Ind Co Ltd 入力データフィルタ方法およびその方法の実施に用いる入力データフィルタ装置
KR20160012248A (ko) * 2014-06-02 2016-02-02 미쓰비시덴키 가부시키가이샤 노이즈 해석 장치, 전자 장치 및 노이즈원 특정 시스템

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56138330A (en) * 1980-03-31 1981-10-28 Matsushita Electric Works Ltd Noise rejector for constant input judgement
JPS6236925A (ja) * 1985-03-29 1987-02-17 Stanley Electric Co Ltd デジタルデ−タのサンプリング方式
JPH03218114A (ja) * 1990-01-24 1991-09-25 Fuji Electric Co Ltd ノイズ除去回路
JPH1070444A (ja) 1996-04-09 1998-03-10 Samsung Electron Co Ltd デジタルノイズフィルター
JP2016063406A (ja) * 2014-09-18 2016-04-25 株式会社デンソーウェーブ デジタルフィルタ装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3716482A4

Also Published As

Publication number Publication date
CN111066247A (zh) 2020-04-24
EP3716482A1 (en) 2020-09-30
JP2019097075A (ja) 2019-06-20
EP3716482A4 (en) 2021-08-18
US20200295741A1 (en) 2020-09-17

Similar Documents

Publication Publication Date Title
US8594214B2 (en) Input module of PLC
JP2007164765A (ja) Iicバス通信システム、スレーブ装置およびiicバス通信制御方法
JP2009525515A (ja) インタラプティブルクロックを用いたデータバスインタフェース
JP5460930B1 (ja) 回路異常検出装置
WO2019102785A1 (ja) デジタルノイズフィルタ
EP3187097A1 (en) Communication system
KR100194672B1 (ko) 디지탈 노이즈 필터
CN110798213A (zh) 异常检测方法、异常保护方法、数据检测器及dac系统
US20090254310A1 (en) System Performance Profiling Device
US20180287623A1 (en) Analog to digital converter
KR101409040B1 (ko) 피엘씨 시스템의 데이터 처리 장치 및 방법
CN107229543B (zh) 半导体装置
JP7368169B2 (ja) データ記憶回路及び電子機器
JP6182924B2 (ja) 同期シリアルインタフェース回路およびモーション制御機能モジュール
TWI761008B (zh) 可編程串列輸入輸出控制器、操作系統及方法
JP6344175B2 (ja) デジタルフィルタ装置
CN211826984U (zh) 数控系统的脉冲型信号丢失检测电路
CN115765743B (zh) 基于zynq的多通道adc同步采集的装置及方法
JP7283218B2 (ja) 信号計測ユニット
KR970002963B1 (ko) 디지탈신호 전송 시스템에서의 코드 검출회로
CN101340422A (zh) 信号编码器与信号译码器
KR100968225B1 (ko) 디 플립플롭을 이용한 카운터용 필터
KR20190127108A (ko) Plc의 입력 신호 필터링 장치
JP4193803B2 (ja) データ入力装置
JP2010271054A (ja) エンコーダ信号処理回路

Legal Events

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

Ref document number: 18881618

Country of ref document: EP

Kind code of ref document: A1

DPE1 Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101)
NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018881618

Country of ref document: EP

Effective date: 20200624