Light control circuit adapting to input signal frequency and operating method thereof
11333532 · 2022-05-17
Assignee
Inventors
Cpc classification
International classification
Abstract
There is provided a light control circuit including a light detector, a frequency detector, an error amplifier, an NMOS driver and a light source. The frequency detector identifies a signal frequency according to detected voltage signals outputted by the light detector and generates a control signal accordingly. The NMOS driver changes a drive current of the light source according to an output of the error amplifier. The error amplifier changes a bandwidth thereof according to the control signal from the frequency detector to regulate a response time of the drive current of the light source.
Claims
1. A light control circuit of an optical encoder system, the optical encoder system comprising an encoding medium and a light source, the light control circuit comprising: a controller, configured to receive a first detected signal, a second detected signal, a third detected signal and a fourth detected signal associated with the encoding medium, and comprising an error amplifier which is configured to control a drive current of the light source, wherein a phase of the second detected signal leads a phase of the fourth detected signal by 90 degrees; and a frequency detector, configured to receive the second detected signal and the fourth detected signal, and comprising: a low pass filter configured to filter the second detected signal and having a cutoff frequency; a first comparator configured to compare the filtered second detected signal and a first reference voltage to output a comparison signal; a second comparator configured to compare the fourth detected signal and a second reference voltage to output a clock signal; and a flip flop, a data input thereof being configured to receive the comparison signal, a clock input thereof being configured to receive the clock signal, and an output thereof being configured to generate an output signal which is configured to change a bandwidth of the error amplifier to regulate a response time of the drive current of the light source.
2. The light control circuit as claimed in claim 1, wherein the frequency detector further comprises an inverter coupled between the flip flop and the error amplifier.
3. The light control circuit as claimed in claim 1, wherein the error amplifier comprises a bias current configured to change the bandwidth thereof, when a signal frequency of the second detected signal is lower than the cutoff frequency, the output signal does not turn on the bias current, and when the signal frequency of the second detected signal is higher than the cutoff frequency, the output signal turns on the bias current.
4. The light control circuit as claimed in claim 3, further comprising another frequency detector configured to generate another output signal according to the second detected signal and the fourth detected signal, said another output signal being configured to change the bandwidth of the error amplifier to regulate the response time, wherein said another frequency detector comprises another low pass filter having another cutoff frequency that is different from the cutoff frequency of the low pass filter.
5. The light control circuit as claimed in claim 1, wherein the first reference voltage is arranged as a summation of an average of the second detected signal and a predetermined voltage, and the first reference voltage is smaller than a peak value of the second detected signal.
6. The light control circuit as claimed in claim 1, wherein the second reference voltage is a half of a voltage source voltage of the controller.
7. The light control circuit as claimed in claim 1, wherein the second detected signal is a sine voltage signal, and the fourth detected signal is a cosine voltage signal.
8. A light control circuit of an optical encoder system, the optical encoder system comprising an encoding medium and a light source, the light control circuit comprising: a controller, configured to receive a first detected signal, a second detected signal, a third detected signal and a fourth detected signal associated with the encoding medium, and comprising an error amplifier which is configured to control a drive current of the light source, wherein a phase of the second detected signal leads or lags a phase of the fourth detected signal by 90 degrees; and a frequency detector, configured to receive the second detected signal and the fourth detected signal, and comprising: a low pass filter configured to filter the second detected signal and having a cutoff frequency; a first comparator configured to compare the filtered second detected signal and a first reference voltage to output a comparison signal; a second comparator configured to compare the fourth detected signal and a second reference voltage to output a clock signal; a first flip flop, a data input thereof being configured to receive the comparison signal, a clock input thereof being configured to receive the clock signal, and an output thereof being configured to generate a first output signal, which is configured to change a bandwidth of the error amplifier to regulate a response time of the drive current of the light source, when the phase of the second detected signal leads the phase of the fourth detected signal; a first inverter configured to invert a phase of the clock signal; and a second flip flop, a data input thereof being configured to receive the comparison signal, a clock input thereof being configured to receive the phase-inverted clock signal, and an output thereof being configured to generate a second output signal, which is configured to change the bandwidth of the error amplifier to regulate the response time, when the phase of the second detected signal lags the phase of the fourth detected signal.
9. The light control circuit as claimed in claim 8, wherein the frequency detected further comprises: an OR gate configured to receive the first output signal and the second output signal; and a second inverter coupled between the OR gate and the error amplifier.
10. The light control circuit as claimed in claim 8, wherein the error amplifier comprises a bias current configured to change the bandwidth thereof, when a signal frequency of the second detected signal is lower than the cutoff frequency, the first output signal or the second output signal does not turn on the bias current, and when the signal frequency of the second detected signal is higher than the cutoff frequency, the first output signal or the second output signal turns on the bias current.
11. The light control circuit as claimed in claim 10, further comprising another frequency detector configured to generate another output signal according to the second detected signal and the fourth detected signal, said another output signal being configured to change the bandwidth of the error amplifier to regulate the response time, wherein said another frequency detector comprises another low pass filter having another cutoff frequency that is different from the cutoff frequency of the low pass filter of the low pass filter.
12. The light control circuit as claimed in claim 8, wherein the first reference voltage is arranged as a summation of an average of the second detected signal and a predetermined voltage, and the first reference voltage is smaller than a peak value of the second detected signal.
13. The light control circuit as claimed in claim 8, wherein the second reference voltage is a half of a voltage source voltage of the controller.
14. The light control circuit as claimed in claim 8, wherein the second detected signal is a sine voltage signal, and the fourth detected signal is a cosine voltage signal.
15. An operating method of a light control circuit of an optical encoder system, the optical encoder system comprising an encoding medium and a light source, and the light control circuit comprising an error amplifier, a low pass filter, a first comparator, a second comparator and a first flip flop, the operating method comprising: receiving, by the low pass filter, a detected signal associated with the encoding medium and outputting a filtered detected signal; comparing, by the first comparator, the filtered detected signal and a first reference voltage to output a comparison signal; receiving, by the second comparator, another detected signal associated with the encoding medium to be compared with a second reference voltage to output a clock signal, wherein a phase of the detected signal leads or lags a phase of said another detected signal by 90 degrees; and receiving, by the first flip flop, the comparison signal and the clock signal and generating a first output signal to change a bandwidth of the error amplifier to accordingly regulate a response time of a drive current of the light source when the phase of the detected signal leads the phase of said another detected signal.
16. The operating method as claimed in claim 15, wherein the light control circuit further comprises a first inverter and a second flip flop, and when the phase of the detected signal lags the phase of said another detected signal, the operating method further comprises: inverting a phase of the clock signal by the first inverter; and receiving, by the second flip flop, the comparison signal and the phase-inverted clock signal and generating a second output signal to change the bandwidth of the error amplifier to regulate the response time.
17. The operating method as claimed in claim 16, wherein the light control circuit further comprises an OR gate, and a second inverter coupled between the OR gate and the error amplifier, and the operating method further comprises: receiving the first output signal and the second output signal by the OR gate; and inverting an output signal of the OR gate by the second inverter.
18. The operating method as claimed in claim 15, wherein the light control circuit further comprises a second inverter coupled between the first flip flop and the error amplifier, and the operating method further comprises: inverting the first output signal by the second inverter.
19. The operating method as claimed in claim 15, wherein the low pass filter has a cutoff frequency and the error amplifier comprises a bias current for changing the bandwidth thereof, the operating method further comprises: not turning on the bias current by the first output signal when a signal frequency of the detected signal is lower than the cutoff frequency, and; turning on the bias current by the first output signal when the signal frequency of the detected signal is higher than the cutoff frequency.
20. The operating method as claimed in claim 19, wherein the signal frequency of the detected signal is determined by a rotation speed of the encoding medium.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) Other objects, advantages, and novel features of the present disclosure will become more apparent from the following detailed description when taken in conjunction with the accompanying drawings.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
DETAILED DESCRIPTION OF THE EMBODIMENT
(20) It should be noted that, wherever possible, the same reference numbers will be used throughout the drawings to refer to the same or like parts.
(21) Referring to
(22) In a non-limiting embodiment, the controller 10, the reference voltage generating circuit 20 and the TIA 60 form a light control circuit of the present disclosure. The light control circuit controls the light source 30 to emit stable light intensity according to the detection result of the light detector 50.
(23) The encoding medium 40 is, for example, a code disk on which different codes are formed to modulate incident light from the light source 30. The light source 30 is, for example, a light emitting diode or a laser diode, to generate emission light Le of a predetermined wavelength (e.g., red light or infrared light) to illuminate the encoding medium 40. The incident light is modulated by codes on the encoding medium 40 to generate modulated reflection light Lm.
(24) The light detector 50 is arranged at a proper location to receive the modulated reflection light Lm. The light detector 50 is, for example, a CCD image sensor, a CMOS image sensor or other sensors for detecting light energy to generate electrical signals. For example, the light detector 50 includes a first photodiode PD1, a second photodiode PD2, a third photodiode PD3 and a fourth photodiode PD4 configured to receive the modulated reflection light Lm and respectively generate a first current signal I_sin−, a second current signal I_sin+, a third current signal I_cos− and a fourth current signal I_cos+, wherein the first current signal I_sin− and the second current signal I_sin+(e.g., sign signals) are out of phase, the third current signal I_cos− and the fourth current signal I_cos+(e.g., cos signals) are out of phase, the first current signal I_sin− has a 90-degree phase shift (i.e. perpendicular) from the third current signal I_cos−, and the second current signal I_sin+ has a 90-degree phase shift (i.e. perpendicular) from the fourth current signal I_cos+.
(25) It should be mentioned that although
(26) The TIA 60 is a conventional single-stage or multi-stage trans-impedance amplifier without particular limitations as long as an input signal is amplified with a predetermined gain to a predetermined peak-to-peak value (e.g., 1 volt. peak-to-peak voltage, but not limited to). The TIA 60 is used to amplify and convert the first current signal I_sin−, the second current signal I_sin+, the third current signal I_cos− and the fourth current signal I_cos+ to respectively generate and output a first detected signal V_sin−, a second detected signal V_sin+, a third detected signal V_cos− and a fourth detected signal V_cos+, wherein the first detected signal V_sin− and the third detected signal V_cos− have a 90-degree phase shift, the third detected signal V_cos− and the second detected signal V_sin+ have a 90-degree phase shift, and the second detected signal V_sin+ and the fourth detected signal V_cos+ have a 90-degree phase shift.
(27) In one embodiment, the TIA 60 does not change phases of the first current signal I_sin−, the second current signal I_sin+, the third current signal I_cos− and the fourth current signal I_cos+ during current-voltage conversion such that the first detected signal V_sin−, the second detected signal V_sin+, the third detected signal V_cos− and the fourth detected signal V_cos+ respectively have an identical phase with the first current signal I_sin−, the second current signal I_sin+, the third current signal I_cos− and the fourth current signal I_cos+.
(28) In another embodiment, the TIA 60 changes a same phase of the first current signal I_sin−, the second current signal I_sin+, the third current signal I_cos− and the fourth current signal I_cos+ during current-voltage conversion such that the first detected signal V_sin−, the second detected signal V_sin+, the third detected signal V_cos− and the fourth detected signal V_cos+ respectively have a same phase offset from the first current signal I_sin−, the second current signal I_sin+, the third current signal I_cos− and the fourth current signal I_cos+. That is, the phase relationship between the first detected signal V_sin−, the second detected signal V_sin+, the third detected signal V_cos− and the fourth detected signal V_cos+ is substantially identical to that between the first current signal I_sin−, the second current signal I_sin+, the third current signal I_cos− and the fourth current signal I_cos+.
(29) Referring to
(30) The detected voltage generating circuit 101 of the controller 10 includes a common mode voltage circuit 110, a first squaring circuit 111, a second squaring circuit 113, and a square sum circuit and first converting circuit 115. The controller 10 further includes an error amplifier 13 and an NMOS driver 15.
(31) The common mode voltage circuit 110 includes an averaging resistor circuit for averaging the first detected signal V_sin−, the second detected signal V_sin+, the third detected signal V_cos− and the fourth detected signal V_cos+. For example referring to
(32) The first squaring circuit 111 is used to receive the first detected signal V_sin−, the second detected signal V_sin+ and the common mode voltage signal V.sub.CM, and output a first current squaring signal I_sin.sup.2. Referring to
(33) The first transistor group 1111 includes two transistors M1 and M2 having drains and sources coupled to each other as shown in
(34) The second transistor group 1113 includes two transistors M3 and M4 having drains and sources coupled to each other as shown in
(35) The first biasing circuit 1117 is connected between a voltage source Vs and the first transistor group 1111 as well as the second transistor group 1113 as shown in
(36) The first subtraction circuit 1115 is connected between ground voltage Vg and the first transistor group 1111 as well as the second transistor group 1113 as shown in
(37) According to the principle of transistors, a drain current Id3 of the transistor M3 is indicated by equation (1):
Id3=[Vs−(V.sub.G+Vamp1)−Vtp].sup.2×K/2=(Vr−Vamp1).sup.2×K/2 (1)
(38) wherein, Vr=Vs−V.sub.G−Vtp, V.sub.G is a gate voltage of the transistor M3, Vamp1 is an amplitude of V_sin−, K is a conductive parameter, and Vtp is a threshold voltage.
(39) Similarly, a drain current Id4 of the transistor M4 is indicated by equation (2):
Id4=(Vr−Vamp2).sup.2×K/2 (2)
(40) wherein Vamp2 is an amplitude of V_sin+.
(41) Similarly, a drain current Id1 of the transistor M1 and a drain current Id2 of the transistor M2 are indicated by equation (3):
Id1=Id2=K×Vr.sup.2 (3)
(42) Assuming Vamp1=Vamp2=Vamp, it is obtained that (Id3+Id4)−(Id1+Id2)=K×Vamp.sup.2=I_sin.sup.2, which is referred to a first current squaring signal herein.
(43) The first subtraction circuit 1115 includes a fifth transistor M5, a sixth transistor M6, a seventh transistor M7, an eighth transistor M8 and a ninth transistor M9.
(44) A gate of the fifth transistor M5 is coupled to a drain thereof, and the drain of the fifth transistor M5 is coupled to drains of the two transistors M1 and M2 of the first transistor group 1111 to receive the first current I1.
(45) A gate of the sixth transistor M6 is coupled to the gate of the fifth transistor M5, and a drain of the sixth transistor M6 is coupled to drains of the two transistors M3 and M4 of the second transistor group 1113 to receive the second current I2.
(46) A gate of the seventh transistor M7 is coupled to a drain thereof, the drain of the seventh transistor M7 is coupled to a source of the fifth transistor M5, and a source of the seventh transistor M7 is coupled to the ground voltage Vg.
(47) A gate of the eighth transistor M8 is coupled to the gate of the seventh transistor M7, a drain of the eighth transistor M8 is coupled to a source of the sixth transistor M6, and a source of the eighth transistor M8 is coupled to the ground voltage Vg.
(48) A gate of the ninth transistor M9 is coupled to a drain thereof, the drain of the ninth transistor M9 is coupled between the drain of the sixth transistor M6 and the second transistor group 1113, and a source of the ninth transistor M9 is coupled to the ground voltage Vg. The first current squaring signal I_sin.sup.2 flows through the ninth transistor M9.
(49) It should be mentioned that although
(50) The second squaring circuit 113 is used to receive the third detected signal V_cos−, the fourth detected signal V_cos+ and the common mode voltage signal V.sub.CM, and output a second current squaring signal I_cos.sup.2.
(51) Referring to
(52)
(53) The third transistor group includes two transistors M11 and M12 having drains and sources coupled to each other as shown in
(54) The fourth transistor group includes two transistors M13 and M14 having drains and sources coupled to each other as shown in
(55) The second biasing circuit is connected between a voltage source Vs and the third transistor group as well as the fourth transistor group as shown in
(56) The second subtraction circuit is connected between ground voltage Vg and the third transistor group as well as the fourth transistor group as shown in
(57) Referring to
(58) The square sum circuit 1151 includes a fifth transistor group including M9′ and M19′ and a square sum transistor M40, wherein
(59) A source of the square sum transistor M40 is coupled to the voltage source Vs. A gate of the square sum transistor M40 is coupled to a drain thereof. The drain of the square sum transistor M40 is coupled to the drains of the two transistors M9′ and M19′ of the fifth transistor group to generate the sum of current squaring Idetect=(I_sin.sup.2+I_cos.sup.2).
(60) Referring to
(61) A gate of the first converting transistor M40′ is coupled to a gate of the square sum transistor M40 to generate a mirror current Im of the sum of current squaring (I_sin.sup.2+I_cos.sup.2). When the mirror ratio is 1, the mirror current Im is substantially equal to the sum of current squaring Idetect=(I_sin.sup.2+I_cos.sup.2).
(62) When the mirror current Im of the sum of current squaring flows through the first converting resistor Rt1, a detected voltage signal Vdetect is generated. In this way, the detected voltage generating circuit 101 converts the voltage signals having different phases (e.g., as shown in
(63) The reference voltage generating circuit 20 is used to generate a reference voltage signal Vref to one input terminal of the error amplifier 13, e.g., a positive input as shown in
(64) In a non-limiting embodiment, the reference voltage generating circuit 20 includes a constant voltage source to output the reference voltage signal Vref.
(65) In a non-limiting embodiment, the reference voltage generating circuit 20 includes a reference voltage generator 210, a reference squaring circuit 211 and a second converting circuit 215 as shown in
(66) The reference voltage generator 210 is used to generate a desired first amplitude voltage V.sub.HIGH, a desired second amplitude voltage V.sub.LOW and a desired common mode voltage V.sub.CMP (all previously determined), wherein the desired common mode voltage V.sub.CMP is an average value of the desired first amplitude voltage V.sub.HIGH and the desired second amplitude voltage V.sub.LOW; the first amplitude voltage V.sub.HIGH is higher than the second amplitude voltage V.sub.LOW. In one non-limiting embodiment, the first amplitude voltage V.sub.HIGH and the second amplitude voltage V.sub.LOW are selected according to the product specification. The desired common mode voltage V.sub.CMP is a predetermined voltage for defining a value of the drive current of the light source 30. That is, when the detected voltage signal Vdetect is larger than the desired common mode voltage V.sub.CMP, the drive current of the light source 30 is reduced by the NMOS driver 15 to lower the emission intensity. On the contrary, when the detected voltage signal Vdetect is smaller than the desired common mode voltage V.sub.CMP, the drive current of the light source 30 is increased by the NMOS driver 15 to enhance the emission intensity to keep a substantially identical drive current.
(67) The reference squaring circuit 211 is used to receive the desired first amplitude voltage V.sub.HIGH, the desired second amplitude voltage V.sub.LOW and the desired common mode voltage V.sub.CMP, and output a reference current squaring signal Iref.sup.2. The second converting circuit 215 includes a second converting transistor M50′ and a second converting resistor Rt2 coupled together for converting the reference current squaring signal Iref.sup.2 to the reference voltage signal Vref. Functions of the second converting transistor M50′ and second converting resistor Rt2 are similar to those of the first converting transistor M40′ and first converting resistor Rt1.
(68) For example referring to
(69) The sixth transistor group includes two transistors M21 and M22 (shown as PMOS transistors herein) having drains and sources coupled to each other as shown in
(70) The seventh transistor group includes two transistors M23 and M24 (shown as PMOS transistors herein) having drains and sources coupled to each other as shown in
(71) The third biasing circuit is connected between a voltage source Vs and the sixth transistor group as well as the seventh transistor group. For example, the third biasing circuit includes two transistors M30 and M30′ (shown as PMOS transistors herein) having gates thereof coupled to each other. Sources of the two transistors M30 and M30′ of the third biasing circuit are coupled to the voltage source Vs. The gate of one of the two transistors (shown as M30 herein) of the third biasing circuit is coupled to a drain thereof. A drain of the other one of the two transistors (shown as M30′ herein) of the third biasing circuit is coupled to sources of the two transistors M21 and M22 of the sixth transistor group and sources of the two transistors M23 and M24 of the seventh transistor group.
(72) The third subtraction circuit is connected between ground voltage Vg and the sixth transistor group as well as the seventh transistor group. The third subtraction circuit is configured to perform a differential operation on the sixth current I6 and the seventh current I7 to generate the reference current squaring signal Iref.sup.2. For example, the third subtraction circuit includes a transistor M25, a transistor M26, a transistor M27, a transistor M28 and a transistor M29, wherein
(73) A gate of the transistor M25 is coupled to a drain thereof. The drain of the transistor M25 is coupled to drains of the two transistors M21 and M22 of the sixth transistor group to receive the sixth current I6.
(74) A gate of the transistor M26 is coupled to the gate of the transistor 25. A drain of the transistor M26 is coupled to drains of the two transistors M23 and M24 of the seventh transistor group to receive the seventh current I7.
(75) A gate of the transistor M27 is coupled to a drain thereof. The drain of the transistor M27 is coupled to a source of the transistor M25. A source of the transistor M27 is coupled to the ground voltage Vg.
(76) A gate of the transistor M28 is coupled to the gate of the transistor M27. A drain of the transistor M28 is coupled to a source of the transistor M26. A source of the transistor M28 is coupled to the ground voltage Vg.
(77) A gate of the transistor M29 is coupled to a drain thereof. The drain of the transistor M29 is coupled between the drain of the transistor M26 and the seventh transistor group. A source of the transistor M29 is coupled to the ground voltage Vg. The drain current of the transistor M29 is obtained by subtraction between the sixth current I6 and the seventh current I7 as the reference current squaring signal Iref.sup.2. The generating of Iref.sup.2 is similar to I_sin.sup.2 and can be referred to equations (1)-(3).
(78) The current mirror circuit is used to generate a first mirror current Im1 of the reference current squaring signal Iref.sup.2. When a mirror ratio is 1, the first mirror current Im1 is substantially identical to the reference current squaring signal Iref.sup.2. The current mirror circuit includes a transistor M29′ which is used to form a current mirror with the transistor M29, and further includes a transistor 50 for forming a current mirror with the second converting transistor M50′ in a second converting circuit 25.
(79) The second converting circuit 25 includes a second converting transistor M50′ and a second converting resistor Rt2 coupled to each other. A gate of the second converting transistor M50′ is coupled to a gate of the transistor M50 of the current mirror circuit to reflect the first mirror current Im1 to generate a second mirror current Im2 of the reference current squaring signal Iref.sup.2. Similarly, when a mirror ratio of the second current mirror M50 and M50′ is 1, the second mirror current Im2 is substantially identical to the reference current squaring signal Iref.sup.2. When the second mirror current Im2 of the reference current squaring signal Iref.sup.2 flows through the second converting resistor Rt2, a reference voltage signal Vref is generated.
(80) Other non-described component connections are shown in
(81) A first input terminal (shown as negative input herein) of the error amplifier 13 receives the detected voltage signal Vdetect, and a second input terminal (shown as positive input herein) of the error amplifier 13 receives the reference voltage signal Vref to perform the comparison therebetween. It should be mentioned that voltage signals received from the first input terminal and the second input terminal of the error amplifier 13 are exchangeable.
(82) The NMOS driver 15 is coupled to an output terminal of the error amplifier 13. The NMOS driver 15 is used to regulate a drain current Id thereof according to a comparison result of the error amplifier 13, wherein the drain current Id is used as a drive current of the light source 30.
(83) It should be mentioned that although in the above embodiment the mirror ratio of every current mirror is assumed to be 1, the present disclosure is not limited thereto. The mirror ratio of every current mirror may not be selected as 1 as long as the reference voltage signal Vref inputted into the error amplifier 13 is controlled at a desired value.
(84) It should be mentioned that although in the above embodiment the encoding medium 40 is described as a reflection type and performing a rotating operation, the present disclosure is not limited thereto. In other embodiments, the encoding medium 40 is a transmissive type (i.e., the light source and the light detector are arranged at different sides) and is transparent or semi-transparent to light from the light source 300. In other embodiments, the encoding medium 40 40 performs one-dimension, two-dimension or three-dimension linear movement.
(85) It should be mentioned that although in the above embodiment the light control circuit is described by applying to an optical encoder system 100, the present disclosure is not limited thereto. The light control circuit is adaptable to any application that requires controlling the emission intensity of a light source stably. In addition, the emission intensity of a light source is not limited to be controlled by controlling the drive current thereof, and it is also possible to control a drive voltage thereof depending on the light source being used. For example, a drive voltage is generated by directing the drain current of the NMOS driver to pass through a resistor.
(86) The present disclosure further provides optical encoder systems 100′ and 100′ that adjust a regulation response time of the drain current of the NMOS driver corresponding to a rotation speed (corresponding to a rotation speed of motor) of the encoding medium 40. The optical encoder systems 100′ and 100″ adopt a frequency detector 70 for detecting a signal frequency (determined by the rotation speed of the encoding medium 40) of detected signals associated with the encoding medium 40. The control signal I_ctrl outputted by the frequency detector 70 is used to turn on or turn off a bias current 131 in the error amplifier 13 for regulating a response time of the light source 30 driven by a drive current (i.e. the drain current).
(87) Referring to
(88) More specifically, when the encoding medium 40 is rotating at a higher speed, a regulation response time of the light source 30 is preferably set faster to increase a regulation speed; whereas, when the encoding medium 40 is rotating in a slower speed, the regulation response time of the light source 30 is preferably set slower to decrease the regulation speed.
(89) As shown in
(90) Please referring to
(91) Referring to
(92) Please referring to
(93) The low pass filter 71 has a cutoff frequency Fc (e.g., as a frequency threshold for identifying high/low of the signal frequency) and is used to filter the second detected signal V_sin+, which has a signal frequency Fin. As shown in
(94) The first comparator 72 compares the filtered second detected signal V_sin+_F and a first reference voltage CVref to output a comparison signal C_out. The first reference voltage CVref is arranged as, for example, a summation of an average (e.g., 2.5 volt) of the second detected signal V_sin+ and a predetermined voltage (e.g., 0.35 volt), e.g., CVref shown as 2.85 volt in
(95) As shown in
(96) The second comparator 73 compares the fourth detected signal V_cos+ and a second reference voltage Vs/2 to output a clock signal CLK, as shown in
(97) A data input D of the first flip flop 74 receives the comparison signal C_out, a clock input CLK_in of the first flip flop 74 receives the clock signal CLK, and an output Q of the first flip flop 74 generates a first output signal F1_out which is used to change a bandwidth of the error amplifier 13 to regulate a response time of the drive current of the light source 30. As shown in
(98) As mentioned above, when the frequency detector 70 does not include the second invertor 75, the frequency detector 70 outputs the high-level first output signal F1_out (as the control signal I_ctrl) to the error amplifier 13, and in this case the frequency detector 70 does not include the OR gate 78. When the frequency detector 70 includes the second inverter 75 coupled between the first flip flop 74 and the error amplifier 13, the frequency detector 70 outputs a low-level control signal I_ctrl (e.g., 0 volt, but not limited to) to the error amplifier 13, as shown in
(99) In this aspect, when a signal frequency Fin of the second detected signal V_sin+ is lower than the cutoff frequency Fc, the control signal I_ctrl does not turn on the bias current 131. In the present disclosure, turning on the bias current 131 means speeding up the response time of the error amplifier 13.
(100) Next, operation of the frequency detector 70 when a phase of the second detected signal V_sin+ leads a phase of the fourth detected signal V_cos+ as well as the input signal has a high frequency.
(101) As shown in
(102) The first comparator 72 compares the filtered second detected signal V_sin+_F and the first reference voltage CVref to output a comparison signal C_out.
(103) As shown in
(104) Similarly, the second comparator 73 compares the fourth detected signal V_cos+ and the second reference voltage Vs/2 to output a clock signal CLK, as shown in
(105) Similarly, a data input D of the first flip flop 74 receives the comparison signal C_out, a clock input CLK_in of the first flip flop 74 receives the clock signal CLK, and an output Q of the first flip flop 74 generates a first output signal F1_out. As shown in
(106) As mentioned above, when the frequency detector 70 does not include the second invertor 75, the frequency detector 70 outputs the low-level first output signal F1_out (as the control signal I_ctrl) to the error amplifier 13. When the frequency detector 70 includes the second inverter 75 coupled between the first flip flop 74 and the error amplifier 13, the frequency detector 70 outputs a high-level control signal I_ctrl (e.g., 1 volt, but not limited to) to the error amplifier 13, as shown in
(107) In this aspect, when a signal frequency Fin of the second detected signal V_sin+ is higher than the cutoff frequency Fc, the control signal I_ctrl turns on the bias current 131 to speed up the regulation response time of the error amplifier 13 corresponding to the faster-rotated encoding medium 40.
(108) In the above aspect, the encoding medium 40 is rotated toward only one direction (i.e. the direction causing V_sin+ leading V_cos+). When the encoding medium 40 is able to be rotated toward two opposite directions to cause the second detected signal V_sin+ to lead or lag the fourth detected signal V_cos+ by 90 degrees, the frequency detector 70 further includes a first inverter 76, a second flip flop 77 and an OR gate 78, as shown in
(109) When the encoding medium 40 is rotated in a direction that causes V_sin+ to lead V_cos+, the frequency detector 70 operates according to the descriptions of
(110) When the encoding medium 40 is rotated in a direction that causes V_sin+ to lag V_cos+, the first inverter 76 inverts a phase of the clock signal CLK to generate a phase-inverted clock signal CLK_B. A data input D of the second flip flop 77 receives the comparison signal C_out, a clock input CLK_in of the second flip flop 77 receives the phase-inverted clock signal CLK_B, and an output Q of the second flip flop 77 generates a second output signal F2_out which is used to change a bandwidth of the error amplifier 13 to regulate a response time of the drive current of the light source 30.
(111) Please referring to
(112) The low pass filter 71 has a cutoff frequency Fc and is used to filter the second detected signal V_sin+, which has a signal frequency Fin. As shown in
(113) The first comparator 72 compares the filtered second detected signal V_sin+_F and a first reference voltage CVref (also shown as 2.85 volt in
(114) As shown in
(115) Similarly, the second comparator 73 compares the fourth detected signal V_cos+ and a second reference voltage Vs/2 to output a clock signal CLK.
(116) A data input D of the second flip flop 77 receives the comparison signal C_out, a clock input CLK_in of the second flip flop 77 receives the phase-inverted clock signal CLK_B, and an output Q of the second flip flop 77 generates a second output signal F2_out which is used to change a bandwidth of the error amplifier 13 to regulate a response time of the drive current of the light source 30. As shown in
(117) In this case, the first flip flop 74 also operates but only outputs a low-level first output signal F1_out.
(118) The operation of the frequency detector 70 when a phase of the second detected signal V_sin+ lags a phase of the fourth detected signal V_cos+ as well as the input signal has a high frequency is understood after understanding
(119) In this aspect, the OR gate 78 receives the first output signal F1_out and the second output signal F2_out. When the frequency detector 70 does not include the second invertor 75, output of the OR gate 78 is used as the control signal I_ctrl to control the bias current 131 in the error amplifier 13. When the frequency detector 70 includes the second inverter 75 coupled between the OR gate 78 and the error amplifier 13, output of the second inverter 75 is used as the control signal I_ctrl.
(120) In this aspect, when a signal frequency Fin of the second detected signal V_sin+ is lower than the cutoff frequency Fc, the control signal I_ctrl (i.e. the first output signal F1_out, the second output signal F2_out, the phase-inverted first output signal or the phase-inverted second output signal) does not turn on the bias current 131. When the signal frequency Fin of the second detected signal V_sin+ is higher than or equal to the cutoff frequency Fc, the control signal I_ctrl turns on the bias current 131 to speed up the response time of the error amplifier 13 corresponding to the fast-rotated encoding medium 40.
(121) In addition, the present disclosure further controls different current values of the bias current 131 according to different rotation speeds of the encoding medium 40. Referring to
(122) Each of the multiple frequency detectors has the structure of
(123) If the optical encoder system 100″ shown in
(124) Similarly, one aspect of the controller 10 in
(125) Referring to
(126) As mentioned above, the TIA 60 respectively generates a first detected signal V_sin−, a second detected signal V_sin+, a third detected signal V_cos− and a fourth detected signal V_cos+ according to a first current signal I_sin−, a second current signal I_sin+, a third current signal I_cos− and a fourth current signal I_cos+ generated by the light detector 50. The low pass filter 71 receives the second detected signal V_sin+ to output a filtered second detected signal V_sin+_F (Step S161). Next, the first comparator 72 compares the filtered second detected signal V_sin+_F with a first reference voltage CVref to output a comparison signal C_out (Step S162). Meanwhile, the second comparator 73 receives the fourth detected signal V_cos+ which is compared with a second reference voltage Vs/2 to output a clock signal CLK (Step S163). When a phase of the second detected signal V_sin+ leads the fourth detected signal V_cos+, the first flip flop 71 receives the comparison signal C_out and the clock signal CLK and generates a first output signal F1_out, referring to
(127) If the encoding medium 40 rotates toward only one direction, the first output signal F1_out or the phase-inverted first output signal passing the second inverter 75 is used as the control signal I_ctrl.
(128) However, when a phase of the second detected signal V_sin+ lags the fourth detected signal V_cos+ due to a different rotation direction of the encoding medium 40, the first inverter 76 inverts the clock signal CLK to generate a phase-inverted clock signal CLK_B. Next, the second flip flop 77 receives the comparison signal C_out and the phase-inverted clock signal CLK_B and generates a second output signal F2_out, referring to
(129) Next, the OR gate 78 receives the first output signal F1_out and the second output signal F2_out. It should be mentioned that the first flip flop 74 and the second flip flop 77 may operate together but only one of them outputs the high-level output signal at low input signal frequency.
(130) As mentioned above, when the light control circuit does not include the second inverter 75, an output signal of the OR gate 78 is used as the control signal I_ctrl for changing a bandwidth of the error amplifier 13 to regulate a response time of the drive current of the light source 30. When the light control circuit includes the second inverter 75, the output signal of the OR gate 78 is inverted by the second inverted 75 to become the control signal I_ctrl.
(131) As mentioned above, in the configuration of
(132) It should be mentioned that although
(133) It should be mentioned that although
(134) It should be mentioned that although the above embodiments are described in the way that the frequency detector 70 includes a low pass filter 71, but the present disclosure is not limited thereto. In other aspects, the frequency detector 70 includes a high pass filter or a bandpass filter to replace the low pass filter such that when the filtered detected signal inputted into the first comparator 72 is within or outside a predetermined frequency range, the comparison signal has or does not have positive pulses as data input of the flip flop. For example, when a high pass filter is used, the frequency detector 70 does not include the second inverter 75.
(135) If it is required, the control signal I_ctrl outputted by the frequency detector 70 is further used to control other elements, instead of the error amplifier 13, among the optical encoder system 100′ and 100″.
(136) As mentioned above, the conventional light control circuit can be affected by dark current leakage and reflected light leakage to be unable to correctly control brightness of a light source. Accordingly, the present disclosure further provides a light control circuit (e.g.,
(137) Although the disclosure has been explained in relation to its preferred embodiment, it is not used to limit the disclosure. It is to be understood that many other possible modifications and variations can be made by those skilled in the art without departing from the spirit and scope of the disclosure as hereinafter claimed.