Detection circuit and detection device

The detection circuit addresses the challenge of accurately detecting moving objects by using a simplified configuration with a clock signal-based system, ensuring precise movement and direction detection even at high speeds without requiring high-performance control devices.

JP7534263B2Active Publication Date: 2024-08-14TDK CORP
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2021091362
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-08-14
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

Conventional detection devices using Hall elements face challenges in accurately detecting the movement and direction of moving objects at high speeds due to signal frequency increases, leading to potential errors and the need for complex configurations and higher-cost control devices.

Method used

A detection circuit that includes an input section, holding section, generation section, and output section, utilizing a clock signal generated from Hall element outputs to determine movement and direction, with features like delay circuits to widen pulse widths and smoothing units to reduce noise, allowing accurate detection without requiring high-performance control devices.

Benefits of technology

The detection circuit effectively detects movement and direction of moving objects with high accuracy using a simple configuration, avoiding signal acquisition issues at high speeds and reducing the need for costly, complex control devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007534263000008
    Figure 0007534263000008
  • Figure 0007534263000003
    Figure 0007534263000003
  • Figure 0007534263000002
    Figure 0007534263000002
Patent Text Reader

Abstract

To provide a detection circuit and a detection device capable of accurately detecting the movement of a moving object with a simple configuration.SOLUTION: A detection circuit 1 includes an input section 3, a holding section 5 for holding the signal input by the input section 3, a generation section 7 for generating the clock signal CLK based on first and second signals, and an output section 9 for outputting the movement signal MOVout relating to a movement of the slide section 118 and the direction signal DIRout relating to the direction of a movement of the slide section 118. The holding section 5 acquires and holds second and third signals based on the clock signal CLK generated in the generation section 7. The output section 9 includes a determination section 90 for determining the direction of the slide section 118 based on the second and third signals, and a detection section 92 for detecting the movement of the slide section 118 based on the clock signal CLK generated by the generation section 7.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a detection circuit and a detection device. [Background technology]

[0002] 2. Description of the Related Art Conventionally, there has been known a detection device that detects the movement of a moving object by a Hall element and detects the movement (amount of movement) and the direction of movement of the moving object based on an output signal of the Hall element (see, for example, Patent Document 1). [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2008-76591 A Summary of the Invention [Problem to be solved by the invention]

[0004] In the detection device, the two-phase output signal (pulse signal) of the Hall element is input to a control device (computer, etc.), and the control device detects the movement of the moving object, etc. Here, when the movement of the moving object becomes faster, the frequency of the output signal becomes higher (the period becomes shorter), and the pulse width of the output signal becomes smaller. In this case, for example, if an interrupt process or the like occurs in the control device, there is a risk that the output signal cannot be accurately acquired. In this case, the direction of the moving object cannot be detected. When the direction of the moving object cannot be detected, the section of movement is ignored (excluded), and an error may occur in the amount of movement of the moving object. In order to avoid the occurrence of such a problem, it is possible to improve the processing capacity of the control device. However, this configuration makes the configuration complicated and increases costs.

[0005] An object of one aspect of the present invention is to provide a detection circuit and a detection device that can detect the movement of a moving object with high accuracy using a simple configuration. [Means for solving the problem]

[0006] A detection circuit according to one aspect of the present invention is a detection circuit that detects the movement of a moving body and the direction of the movement of the moving body, and includes an input unit that inputs a signal related to the movement of the moving body, a holding unit that holds, among the signals input by the input unit, a second signal that is input at a second time one time before the first time and a third signal that is input at a third time one time before the second time, where a signal input to the input unit at a first time is defined as a first signal, a generation unit that generates a clock signal based on the first signal and the second signal, and an output unit that outputs a movement signal related to the movement of the moving body and a direction signal related to the direction of movement of the moving body, wherein the holding unit acquires and holds the second signal and the third signal based on the clock signal generated in the generation unit, and the output unit has a determination unit that determines the orientation of the moving body based on the second signal and the third signal, and a detection unit that detects the movement of the moving body based on the clock signal generated in the generation unit.

[0007] In a detection circuit according to one aspect of the present invention, the above circuit configuration outputs a movement signal related to the movement of the moving object and a direction signal related to the direction of the movement of the moving object. Therefore, even if the moving object moves quickly, the detection circuit can avoid a situation where the signal cannot be acquired due to interrupt processing or the like. In addition, a high-performance control device is not required. Therefore, the detection circuit can accurately detect the movement of the moving object with a simple configuration.

[0008] In one embodiment, the determination unit may have a smoothing unit that receives the direction signal, smooths the direction signal, and outputs the smoothed direction signal. In this configuration, when the direction signal contains glitch noise, the glitch noise can be reduced.

[0009] In one embodiment, the generating unit may have a delay unit that delays the clock signal. If the pulse width of the clock signal is narrow, there is a risk of malfunction occurring in the holding unit and the detecting unit that operate based on the clock signal. In this configuration, the pulse width of the clock signal can be widened by the delay unit. Therefore, it is possible to avoid the above-mentioned malfunction.

[0010] In one embodiment, the output unit may include a conversion unit that converts the movement signal and the direction signal into a predetermined signal. In this configuration, the signal can be made suitable for processing by a control device that processes using the movement signal and the direction signal.

[0011] In one embodiment, the detection unit may have a counter unit that receives a clock signal and outputs two counter signals in response to the clock signal, and a logical product circuit that receives the two counter signals output from the counter unit, calculates a logical product of the two counter signals, and outputs the calculation result as a movement signal. With this configuration, the movement of the moving object can be appropriately detected.

[0012] In one embodiment, the detection unit may have a counter unit that receives a clock signal and outputs two counter signals in response to the clock signal, a logical negation circuit that receives one of the two counter signals and outputs an inversion signal obtained by inverting the value of the one counter signal, and a logical product circuit that receives the other of the two counter signals and the inversion signal, calculates a logical product between the other counter signal and the inversion signal, and outputs the calculation result as a movement signal. With this configuration, the movement of the moving object can be appropriately detected.

[0013] In one embodiment, the input unit may input a signal related to the movement of a moving body driven by the piezoelectric element. In this configuration, the detection circuit can output a movement signal related to the movement of the moving body driven by the piezoelectric element and a direction signal related to the direction of movement of the moving body.

[0014] A detection device according to one aspect of the present invention includes the above detection circuit, and a control device that processes a movement signal and a direction signal output from the detection circuit.

[0015] A detection device according to one aspect of the present invention includes the above detection circuit, and thus the detection device can accurately detect the movement of a moving object with a simple configuration. Effect of the Invention

[0016] According to one aspect of the present invention, it is possible to accurately detect the movement of a moving object with a simple configuration. [Brief description of the drawings]

[0017] [Figure 1] FIG. 1 is a diagram showing a detection system including a detection circuit according to one embodiment. [Diagram 2] FIG. 2(a) is a front view of the moving device, and FIG. 2(b) is a side view of the moving device. [Diagram 3] FIG. 3 is a diagram showing a configuration of the detection circuit. [Figure 4] 4(a) and 4(b) are diagrams showing signals input to the input unit. [Diagram 5] FIG. 5 is a diagram showing data held in the holding section when the sliding section is moving in the first direction. [Figure 6] FIG. 6 is a diagram showing data held in the holding section when the sliding section is moving in the second direction. [Figure 7] FIG. 7 is a diagram showing the regularity of signals when the sliding portion is moving in the first direction. [Figure 8] FIG. 8 is a diagram showing the regularity of signals when the sliding portion is moving in the second direction. [Figure 9] FIG. 9 is a table for explaining the operation of the detection unit. [Figure 10] FIG. 10 is a diagram showing the configuration of a detection unit according to another embodiment. [Figure 11] FIG. 11 is a diagram illustrating a configuration of the conversion unit. [Figure 12] 12(a) and 12(b) are diagrams showing signals converted by the conversion unit. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0018] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the description of the drawings, the same or corresponding elements are designated by the same reference numerals, and duplicated explanations will be omitted.

[0019] Fig. 1 is a diagram showing a detection system including a detection device according to an embodiment. As shown in Fig. 1, the detection system 100 includes a moving device 110, a detection circuit 1, and a computer (control device) 200. The detection circuit 1 and the computer 200 constitute the detection device.

[0020] Fig. 2(a) is a front view of the moving device, and Fig. 2(b) is a side view of the moving device. As shown in Fig. 2, the moving device 110 includes a piezoelectric element 112, a sliding body 114, and an encoder 116. In the following description, for convenience of explanation, the "X", "Y", and "Z" directions shown in Fig. 2(a) and Fig. 2(b) may be used.

[0021] The slide body 114 has a slide portion (moving body) 118 and a rail portion 120. The slide portion 118 is provided so as to be movable (slidable) relative to the rail portion 120. The slide portion 118 moves along the extension direction (Y direction) of the rail portion 120. The slide portion 118 moves in a first direction (for example, a direction toward the right in FIG. 2(a)) and a second direction opposite to the first direction (for example, a direction toward the left in FIG. 2(b)). The rail portion 120 is fixed. As shown in FIG. 2(b), a ball 119 is provided between the slide portion 118 and the rail portion 120. The balls 119 are provided at positions sandwiching the rail portion 120 in the Z direction.

[0022] As shown in FIG. 2(b), the sliding portion 118 has a substantially U-shape when viewed from the longitudinal direction. As shown in FIG. 2(a) and FIG. 2(b), a friction member 122 is disposed on an upper surface 118A of the sliding portion 118. The friction member 122 is, for example, an alumina plate. The friction member 122 extends along the longitudinal direction of the sliding portion 118. The piezoelectric element 112 is provided so as to be able to come into contact with the friction member 122, and moves the sliding portion 118. That is, the sliding portion 118 moves when driven by the piezoelectric element 112.

[0023] A magnetic ribbon 124 is disposed on the lower surface 118B of the sliding portion 118. The magnetic ribbon 124 extends along the longitudinal direction of the sliding portion 118. In the magnetic ribbon 124, N poles and S poles are alternately disposed in the longitudinal direction of the magnetic ribbon 124 (the longitudinal direction of the sliding portion 118).

[0024] The encoder 116 detects the position of the magnetic ribbon 124. The encoder 116 is disposed at a position facing the magnetic ribbon 124. The encoder 116 includes a first hall element 116A and a second hall element 116B. The first hall element 116A and the second hall element 116B each output a signal indicating a detection result. The encoder 116 outputs a two-phase output. The first hall element 116A and the second hall element 116B each output "1" when they detect (respond to) the N pole of the magnetic ribbon 124, and output "0" when they detect (respond to) the S pole of the magnetic ribbon 124. In the following description, the signal output by the first hall element 116A is referred to as "signal A", and the signal output by the second hall element 116B is referred to as "signal B". Note that the signals output by the first hall element 116A and the second hall element 116B may be "H" instead of "1" and "L" instead of "0".

[0025] As shown in FIG. 3, the detection circuit 1 includes an input unit 3, a holding unit 5, a generating unit 7, and an output unit 9.

[0026] The input unit 3 inputs a signal related to the movement of the slide portion 118 which moves as a result of being driven by the piezoelectric element 112. The input unit 3 inputs the signal A and the signal B output from the encoder 116. The input unit 3 has a first input terminal 30 which inputs the signal A, and a second input terminal 32 which inputs the signal B. The signal A input to the first input terminal 30 and the signal B input to the second input terminal 32 are each output to the holding unit 5 and the generating unit 7.

[0027] Figures 4(a) and 4(b) are diagrams showing signals input to the input section. Figure 4(a) shows signals A and B input to the input section 3 when the sliding section 118 of the sliding body 114 moves in a first direction. Figure 4(b) shows signals A and B input to the input section 3 when the sliding section 118 of the sliding body 114 moves in a second direction. Signals A and B are pulse signals.

[0028] 3, the holding unit 5 holds the signal A and the signal B output from the input unit 3. In the signals A and B input by the input unit 3, when the signals input to the input unit 3 at a first time are signal (first signal) A and signal (first signal) B, the holding unit 5 holds the signal (second signal) A input at a second time one time before the first time. 0 and Signal (Second Signal) B 0 and a signal (third signal) A input at a third time, which is one time before the second time. 1 and Signal (Third Signal) B 1 and holds.

[0029] The holding unit 5 is a shift register. In this embodiment, the holding unit 5 is a D flip-flop. The holding unit 5 includes a first holding unit 50, a second holding unit 52, a third holding unit 54, and a fourth holding unit 56. Each of the first holding unit 50, the second holding unit 52, the third holding unit 54, and the fourth holding unit 56 has an input D for inputting a signal, an input CK for inputting a clock signal, and an output Q for outputting a signal.

[0030] An input D of the first holding unit 50 is connected to the first input terminal 30 of the input unit 3. A signal A output from the first input terminal 30 is input to the input D of the first holding unit 50. An input CK of the first holding unit 50 is connected to the generation unit 7. A clock signal output from the generation unit 7 is input to the input CK of the first holding unit 50. An output Q of the first holding unit 50 is connected to the input D of the second holding unit 52 and the generation unit 7. An output Q of the first holding unit 50 is connected to the input D of the second holding unit 52 and the generation unit 7. 0 Output.

[0031] The input D of the second holding unit 52 is connected to the output Q of the first holding unit 50. The input D of the second holding unit 52 receives the signal A output from the first holding unit 50. 0 The input CK of the second holding unit 52 is connected to the generating unit 7. The clock signal output from the generating unit 7 is input to the input CK of the second holding unit 52. The output Q of the second holding unit 52 is connected to a determining unit 90 (described later) of the output unit 9. The output Q of the second holding unit 52 is connected to a determining unit 90 (described later) of the output unit 9. 1 Output.

[0032] The input D of the third holding unit 54 is connected to the second input terminal 32 of the input unit 3. The signal B output from the second input terminal 32 is input to the input D of the third holding unit 54. The input CK of the third holding unit 54 is connected to the generation unit 7. The clock signal output from the generation unit 7 is input to the input CK of the third holding unit 54. The output Q of the third holding unit 54 is connected to the input D of the fourth holding unit 56, the generation unit 7, and the determination unit 90 of the output unit 9 ... 0 Output.

[0033] The input D of the fourth holding unit 56 is connected to the output Q of the third holding unit 54. The input D of the fourth holding unit 56 receives the signal B output from the third holding unit 54. 0 The input CK of the second holding unit 52 is connected to the generating unit 7. The clock signal output from the generating unit 7 is input to the input CK of the second holding unit 52. The output Q of the second holding unit 52 is connected to the determining unit 90 of the output unit 9. The output Q of the fourth holding unit 56 is connected to the determining unit 90 of the output unit 9. 1 Output.

[0034] 5 and 6 are diagrams showing data stored in the storage unit. FIG. 5 shows data when the sliding portion 118 moves in a first direction. FIG. 6 shows data when the sliding portion 118 moves in a second direction. In this embodiment, the storage unit 5 has a periodicity that completes one cycle every four counts. As shown in FIG. 5, in the storage unit 5, the signal shifts in the order of Initial→State1→State2→State3→State4→State1→State2→... In FIG. 5, the detection start time t is t 0 , t 1 , t 2 , t 3 (See FIG. 4(a) and FIG. 4(b)). The time t is t 4 , t 5 , t 6 may be also possible.

[0035] As shown in FIG. 5, for example, the detection start time t=t 0 In the case of Initial, when signal A is "1" and signal B is "0", signal A is "0" in State1. 0 "1" on signal B 0 Then, in State1, when signal A is input as "1" and signal B is input as "1", signal A in State1 is held as "0". 0 "1" and signal B 0 "0" is the signal A of State2 1 and signal B 1 In State2, signal A 0 "1" on signal B 0 Then, in State2, when signal A is input as "0" and signal B is input as "1", signal A in State2 is held as "1". 0 "1" and signal B 0 "1" is the signal A of State3 1 and signal B 1 In State 3, signal A 0 "0" to signal B 0Then, in State3, when signal A is input as "0" and signal B is input as "0", signal A in State3 is held as "1". 0 "0" and signal B 0 "1" is the signal A of State4 1 and signal B 1 In State 4, signal A 0 "0" to signal B 0 Then, in State4, when signal A is input as "1" and signal B is input as "0", signal A in State4 is held as "0". 0 "0" and signal B 0 "0" is signal A of State1 1 and signal B 1 In State1, signal A 0 "1" on signal B 0 "0" is held at detection start time t=t 1 , t=t 2 and t=t 3 In this case, the signal is maintained in the same manner as above.

[0036] As shown in FIG. 6, for example, the detection start time t=t 0 In the case of Initial, when signal A is "0" and signal B is "1", signal A is "1" in State1. 0 "0" to signal B 0 Then, in State1, when signal A ("1") and signal B ("1") are input, signal A in State1 is held at "1". 0 "0" and signal B 0 "1" is the signal A of State2 1 and signal B 1 In State2, signal A 0 "1" on signal B 0 Then, in State2, when signal A is input as "1" and signal B is input as "0", signal A in State2 is held as "1". 0 "1" and signal B 0 "1" is the signal A of State3 1 and signal B 1In State 3, signal A 0 "1" on signal B 0 Then, in State3, when signal A ("0") and signal B ("0") are input, signal A in State3 is held at "0". 0 "1" and signal B 0 "0" is the signal A of State4 1 and signal B 1 In State 4, signal A 0 "0" to signal B 0 Then, in State4, when signal A is input as "1" and signal B is input as "0", signal A in State4 is held as "0". 0 "0" and signal B 0 "0" is signal A of State1 1 and signal B 1 In State1, signal A 0 "1" on signal B 0 "0" is held at detection start time t=t 1 , t=t 2 and t=t 3 In this case, the signal is maintained in the same manner as above.

[0037] As shown in FIG. 3, the generation unit 7 generates signals A and B, and 1 and signal B 1 The generating unit 7 detects the rising and falling edges of the signal A and the signal B, and generates the clock signal CLK. The generating unit 7 has a first XOR circuit 70, a second XOR circuit 72, an OR circuit 74, and a delay circuit (delay unit) 76.

[0038] The first XOR circuit 70 is an XOR gate element. The first XOR circuit 70 outputs a signal A and a signal A 0 The first XOR circuit 70 receives the signal A and the signal A 0 If the values ​​of signal A and signal B are different, output "1" and 0 If the values ​​are the same, output "0".

[0039] The second XOR circuit 72 is an XOR gate element. The second XOR circuit 72 outputs a signal B and a signal B 0 The second XOR circuit 72 receives the signal B and the signal B 0 If the values ​​of signal B and signal B are different, a signal indicating "1" is output. 0 If the values ​​are the same, a signal indicating "0" is output.

[0040] The OR circuit 74 is an OR gate element. The OR circuit 74 inputs the signal output from the first XOR circuit 70 and the signal output from the second XOR circuit 72. The OR circuit 74 outputs "0" when the values ​​of the signals output from the first XOR circuit 70 and the second XOR circuit 72 are both "0". That is, the OR circuit 74 does not output a clock signal when the operation result is "0". The OR circuit 74 outputs "1" when at least one of the values ​​of the signals output from the first XOR circuit 70 and the second XOR circuit 72 is "1". That is, the OR circuit 74 outputs a clock signal when the operation result is "1". The OR circuit 74 is connected to the delay circuit 76. The OR circuit 74 outputs a clock signal to the delay circuit 76.

[0041] The delay circuit 76 delays the clock signal. The delay circuit 76 is configured by connecting N NOT gate elements (inverters) 76A in series, where N is an even number. The delay circuit 76 widens the pulse width of the clock signal CLK. In other words, the delay circuit 76 lengthens the clock period of the clock signal CLK. The pulse width (the width from the rising edge to the falling edge of the pulse signal) of the clock signal CLK generated by the generation unit 7 is increased by a time t w has the following relationship: t w =t sh +t xor +t or +N t inv t sh is the delay time due to the shift operation of the holding unit 5. xor is the delay time caused by the first XOR circuit 70 and the second XOR circuit 72. oris the delay time caused by the OR circuit 74. N·t inv is the delay time caused by the delay circuit 76. Time t w The time t w is set, for example, to be less than half the pulse width of signals A and B.

[0042] The delay circuit 76 is connected to the inputs CK of the first holding unit 50, the second holding unit 52, the third holding unit 54, and the fourth holding unit 56, and to a detection unit 92 (described later) of the output unit 9. The delay circuit 76 outputs a clock signal CLK to the first holding unit 50, the second holding unit 52, the third holding unit 54, the fourth holding unit 56, and the detection unit 92.

[0043] The output unit 9 outputs a movement signal MOV relating to the movement of the slide unit 118. out , and a direction signal DIR relating to the direction of movement of the slide portion 118. out The output unit 9 includes a determination unit 90 and a detection unit 92.

[0044] The determination unit 90 determines the direction (first direction, second direction) of movement of the sliding portion 118. The determination unit 90 determines the direction (first direction, second direction) of movement of the sliding portion 118. 1 and the signal B output from the third holding unit 54 0 Based on this, it determines the direction of movement of the sliding portion 118. The determination portion 90 has an XOR circuit 90A, a low-pass filter (smoothing portion) 90B, and a NOT circuit 90C.

[0045] The XOR circuit 90A is an XOR gate element. In this embodiment, the XOR circuit 90A receives the signal A 1 and the signal B output from the third holding unit 54 0 The XOR circuit 90A receives the signal A output from the second holding unit 52. 1 and the signal B output from the third holding unit 54 0 If the values ​​of the signals A and B are different, the XOR circuit 90A outputs "1". 1 and the signal B output from the third holding unit 54 0If the values ​​are the same, the XOR circuit 90A outputs “0.” The XOR circuit 90A outputs the calculation result to the low-pass filter 90B.

[0046] FIG. 7 shows a signal A when the sliding portion 118 is moving in a first direction. 1 and signal B 0 As shown in FIG. 7, when the sliding portion 118 is moving in the first direction, the signal A 1 and signal B 0 The XOR circuit 90A has a rule that the signal A is (1,1) or (0,0). 1 and signal B 0 When (1,1) or (0,0) is input as the input, the XOR circuit 90A outputs “0.” That is, the XOR circuit 90A outputs “0” when the sliding portion 118 is moving in the first direction.

[0047] FIG. 8 shows a signal A when the sliding portion 118 is moving in the second direction. 1 and signal B 0 As shown in FIG. 8, when the sliding portion 118 is moving in the second direction, the signal A 1 and signal B 0 The XOR circuit 90A has a rule that the signal A is (0,1) or (1,0). 1 and signal B 0 When (0,1) or (1,0) is input as the input, the XOR circuit 90A outputs “1.” That is, the XOR circuit 90A outputs “1” when the sliding portion 118 is moving in the second direction.

[0048] 3, the low-pass filter 90B smoothes the signal output from the XOR circuit 90A. The low-pass filter 90B smoothes the signal output from the XOR circuit 90A, thereby reducing glitch noise occurring in the signal.

[0049] The NOT circuit 90C is a NOT gate element. The NOT circuit 90C logically inverts the signal output from the low-pass filter 90B. If the signal output from the low-pass filter 90B is "1", the NOT circuit 90C outputs "0". If the signal output from the low-pass filter 90B is "0", the NOT circuit 90C outputs "1". The NOT circuit 90C outputs the result of the calculation as the direction signal DIR out In this embodiment, the NOT circuit 90C outputs "1" when the sliding portion 118 moves in the first direction, and outputs "0" when the sliding portion 118 moves in the second direction. The NOT circuit 90C also has a function of shaping the signal output from the low-pass filter 90B.

[0050] The detection unit 92 detects the movement of the slide portion 118 based on the clock signal CLK generated by the generation unit 7. The detection unit 92 has a counter unit 92A and an AND circuit (logical product circuit) 92B.

[0051] The counter unit 92A is a 2-bit counter. The counter unit 92A has an input C for inputting a clock signal and two outputs Q for outputting counter signals. 1 , Q 0 The counter unit 92A also has an input RST for inputting a reset signal for initializing the counter unit 92A. The input C of the counter unit 92A is connected to the generator 7. The clock signal CLK output from the generator 7 (delay circuit 76) is input to the input C of the counter unit 92A. The output Q of the counter unit 92A 1 and output Q 0 is connected to the AND circuit 92B.

[0052] The AND circuit 92B is an AND gate element. The AND circuit 92B receives the counter signal output from the counter unit 92A. The AND circuit 92B receives the output Q of the counter unit 92A. 1 and output Q 0The AND circuit 92B outputs "1" when the value of the counter signal output from each of the counter units 92A and Q 1 and output Q 0 If the values ​​of the counter signals output from the AND circuit 92B are different, the AND circuit 92B outputs "0". out The output is as follows:

[0053] The operation of the detection unit 92 will be described in detail. In this embodiment, the counter unit 92A is a counter that counts up to "3". When the clock signal CLK is input to the input C of the counter unit 92A, the counter transitions in the following order: Initial → State 1 → State 2 → State 3 → State 4 → State 1 → State 2 → .... State 1 corresponds to count 1, State 2 corresponds to count 2, State 3 corresponds to count 3, and State 4 corresponds to count 0. As shown in FIG. 9, in the detection unit 92, (Q1, Q2) = (1, 1), and when the decimal number is "3", the detection unit 92 becomes "1". In other cases, the detection unit 92 becomes "0". The movement signal MOV out is a pulse signal with one cycle from State 1 to State 4. out becomes a pulse signal that becomes “1” in State3.

[0054] The computer 200 detects the movement signal MOV output from the detection circuit 1. out and direction signal DIR out The computer 200 includes a central processing unit (CPU), a read only memory (ROM), a random access memory (RAM), and the like.

[0055] The computer 200 receives the movement signal MOV from the output 9 of the detection circuit 1. out The computer 200 can calculate the amount of movement of the slide portion 118 based on the movement signal MOV outBy measuring the clock of the movement signal MOV, the computer 200 can calculate the movement amount of the slide portion 118. out and direction signal DIR out Based on this, information regarding the movement of the sliding portion 118 can be obtained.

[0056] As described above, the detection circuit 1 according to this embodiment has the above circuit configuration, and outputs the movement signal MOV out , and a direction signal DIR relating to the direction of movement of the slide portion 118. out Therefore, in the detection circuit 1, even if the movement of the sliding portion 118 is fast, it is possible to avoid a situation where the signal cannot be acquired due to interrupt processing or the like. In addition, a high-performance control device is not required. Therefore, in the detection circuit 1, the movement of the sliding portion 118 can be detected with high accuracy with a simple configuration.

[0057] In the detection circuit 1 according to this embodiment, the determination unit 90 has a low-pass filter 90B that receives the direction signal, smoothes the direction signal, and outputs the smoothed direction signal. out When glitch noise is included in the signal, the glitch noise can be reduced.

[0058] In the detection circuit 1 according to this embodiment, the generation unit 7 has a delay circuit 76 that delays the clock signal CLK. If the pulse width of the clock signal CLK is narrow, there is a risk of malfunction occurring in the holding unit 5 and detection unit 92 that operate based on the clock signal CLK. In this configuration, the delay circuit 76 can widen the pulse width of the clock signal CLK. This makes it possible to prevent the above-mentioned malfunction from occurring.

[0059] In the detection circuit 1 according to this embodiment, the detection unit 92 includes a counter unit 92A which receives a clock signal CLK and outputs two counter signals in response to the clock signal CLK, and a counter unit 92B which receives the two counter signals output from the counter unit 92A, calculates the logical AND of the two counter signals, and outputs the calculation result as a movement signal MOV. outand an AND circuit 92B that outputs a signal as a signal indicating that the sliding portion 118 has been moved. With this configuration, the movement of the sliding portion 118 can be detected appropriately.

[0060] Although the embodiment of the present invention has been described above, the present invention is not necessarily limited to the above-described embodiment, and various modifications are possible without departing from the gist of the present invention.

[0061] In the above embodiment, an example has been described in which the encoder 116 includes the first Hall element 116A and the second Hall element 116B. However, the encoder is not limited to a magnetic type, and may be an optical type, a contact type, or the like.

[0062] In the above embodiment, the delay circuit 76 is configured by connecting N NOT gate elements (inverters) 76A in series. However, the delay circuit 76 may be a delay line element or the like.

[0063] In the above embodiment, an example has been described in which the holding portion 5 has the fourth holding portion 56. However, the holding portion 5 does not necessarily have to have the fourth holding portion 56.

[0064] In the above embodiment, an example has been described in which the determination unit 90 includes the low-pass filter 90B and the NOT circuit 90C. However, the determination unit 90 does not necessarily have to include the low-pass filter 90B and / or the NOT circuit 90C.

[0065] In the above embodiment, the XOR circuit 90A receives the signal A output from the second holding unit 52. 1 and the signal B output from the third holding unit 54 0 However, the XOR circuit 90A receives the signal A output from the first holding unit 50. 0 and the signal B output from the fourth holding unit 56 1 The XOR circuit 90A may receive the signal A output from the first holding unit 50. 0 and the signal B output from the fourth holding unit 56 1If the values ​​of the signals A and B are different, the XOR circuit 90A outputs "1". 0 and the signal B output from the fourth holding unit 56 1 If the values ​​are the same, output "0".

[0066] As shown in FIG. 7, when the slide portion 118 is moving in a first direction, a signal A 0 and signal B 1 The XOR circuit 90A has a rule that the signal A is (1,0) or (0,1). 0 and signal B 1 When (1,0) or (0,1) is input as the input, the XOR circuit 90A outputs “1.” That is, the XOR circuit 90A outputs “1” when the sliding portion 118 is moving in the first direction.

[0067] As shown in FIG. 8, when the sliding portion 118 is moving in the second direction, a signal A 0 and signal B 1 The XOR circuit 90A has a rule that the signal A is (1,1) or (0,0). 0 and signal B 1 When (1,1) or (0,0) is input as the input, the XOR circuit 90A outputs “0.” That is, the XOR circuit 90A outputs “0” when the sliding portion 118 is moving in the second direction.

[0068] In the above embodiment, the detection unit 92 has a counter unit 92A and an AND circuit 92B. However, the configuration of the detection unit is not limited to this. As shown in FIG. 10, the detection unit 92D may include a counter unit 92A, an AND circuit 92B, and a NOT circuit 92C. The NOT circuit 92C detects the output Q of the counter signal output from the counter unit 92A. 0 and outputs an inverted signal obtained by inverting the value of the counter signal to the AND circuit 92B.

[0069] The AND circuit 92B receives the output Q of the counter unit 92A. 1The counter signal output from the counter 91C and the inverted signal output from the NOT circuit 92C are input, and the logical product of the counter signal and the inverted signal is calculated. The result of the calculation is output as a movement signal MOV. out In the detection unit 92D, (Q1, Q2)=(1, 1), and when the decimal number is “2”, the result is “1”.

[0070] In addition to the above embodiment, as shown in Fig. 11, the output unit 9 may further include a conversion unit 94. The conversion unit 94 converts the movement signal MOV out and direction signal DIR out FOR A given signal out and signal REV out The conversion unit 94 has a first AND circuit 94A, a second AND circuit 94B, and a NOT circuit (logical negation circuit) 94C.

[0071] The first AND circuit 94A is an AND gate element. out and the movement signal MOV output from the AND circuit 92B of the detection unit 92. out The first AND circuit 94A receives the signal FOR out Output.

[0072] The second AND circuit 94B is an AND gate element. The second AND circuit 94B receives the signal output from the NOT circuit 94C and the movement signal MOV output from the AND circuit 92B of the detection unit 92. out The second AND circuit 94B receives the signal REV out Output.

[0073] The NOT circuit 94C is a NOT gate element. out Input the direction signal DIR out is logically inverted and output to the second AND circuit 94B.

[0074] 12(a) and 12(b) are diagrams showing signals converted by the conversion unit. FIG. 12(a) shows a signal when the sliding portion 118 is moving in a first direction. FIG. 12(b) shows a signal when the sliding portion 118 is moving in a second direction. As shown in FIG. 12(a), when the sliding portion 118 is moving in the first direction, the conversion unit 94 converts the input movement signal MOV out and direction signal DIR out , FOR out is a pulse signal, signal REV out As shown in FIG. 12(b), when the sliding portion 118 is moving in the second direction, the conversion unit 94 converts the input movement signal MOV out and direction signal DIR out , FOR out is "0", signal REV out is converted into a pulse signal.

[0075] The conversion unit 94 converts the motion signal MOV out and direction signal DIR out FOR out and signal REV out For example, when an interrupt process is performed in the computer 200, the signal FOR out and signal REV out By using the signal FOR out and signal REV out are mutually exclusive, no conditional branch is included in the processing of the interrupt routine. This allows the computer 200 to perform operations at high speed and to increase the frequency of pulses to which it can respond. [Explanation of symbols]

[0076] 1...detection circuit, 3...input section, 5...holding section, 7...generation section, 9...output section, 76...delay circuit (delay section), 90...judgment section, 90B...low-pass filter (smoothing section), 92, 92D...detection section, 92A...counter section, 92B...AND circuit (logical product circuit), 94...conversion section, 112...piezoelectric element, 118...slide section (moving body), 200...computer (control device).

Claims

1. A detection circuit for detecting a movement of a moving object and a direction of the movement of the moving object, an input unit for inputting a signal related to the movement of the moving object; a holding unit that holds, in the signals input by the input unit, a signal input to the input unit at a first time as a first signal, a second signal input at a second time one time before the first time, and a third signal input at a third time one time before the second time; a generator that generates a clock signal based on the first signal and the second signal; an output unit that outputs a movement signal related to the movement of the moving body and a direction signal related to the direction of the movement of the moving body, the holding unit acquires and holds the second signal and the third signal based on the clock signal generated by the generation unit; The output unit is a determination unit that determines a direction of the moving object based on the second signal and the third signal; a detection unit that detects the movement of the moving object based on the clock signal generated by the generation unit.

2. 2. The detection circuit according to claim 1, wherein the determination section includes a smoothing section that receives the direction signal, smooths the direction signal, and outputs the smoothed direction signal.

3. The detection circuit according to claim 1 , wherein the generating section includes a delay section that delays the clock signal.

4. 4. The detection circuit according to claim 1, wherein the output section has a conversion section that converts the movement signal and the direction signal into a predetermined signal.

5. The detection unit is a counter unit which receives the clock signal and outputs two counter signals in response to the clock signal; and a logical AND circuit that receives the two counter signals output from the counter unit, calculates a logical AND of the two counter signals, and outputs a result of the calculation as the movement signal.

6. The detection unit is a counter unit which receives the clock signal and outputs two counter signals in response to the clock signal; a logical NOT circuit which receives one of the two counter signals and outputs an inverted signal obtained by inverting the value of the other counter signal; a logical AND circuit that receives the other of the two counter signals and the inverted signal, calculates a logical AND between the other of the two counter signals and the inverted signal, and outputs a result of the calculation as the movement signal.

7. 7. The detection circuit according to claim 1, wherein the input section inputs the signal related to the movement of the moving body which is moved by driving a piezoelectric element.

8. A detection circuit according to any one of claims 1 to 7; a control device that processes the movement signal and the direction signal output from the detection circuit.

Citation Information

Patent Citations

  • Increment type digital converter

    JP1983214811A

  • Rotational position detecting circuit

    JP1984175116U

  • Displacement direction detecting circuit

    JP1984204769A

  • counter

    JP1985033735A

  • Moving direction detector for information read point of information recording disk player

    JP1988304430A