This application claims the benefit of Taiwan Patent Application No. 102148782, filed Dec. 27, 2013, the subject matter of which is incorporated herein by reference.
The present invention relates to a DC offset cancellation circuit, and more particularly to a DC offset cancellation circuit for processing a time variant signal.
As is well known, a servo motor system is able to precisely control the rotation speed of a servo motor, and has the fast response to acceleration, deceleration and reversion. Due to the precise position control capability and the speed control capability, the servo motor system has been widely used in various industrial automation industries and precision machining fields such as mechanical arms or mechanical work platforms.
In response to the user's operation, the command device 110 generates a command pulse for controlling a rotation speed and a rotation direction of the servo motor 130. Moreover, according to the rotation speed and the rotation direction of the servo motor 130, the optical encoder 140 generates a feedback pulse to the micro controller 120. Moreover, according to the command pulse and the feedback pulse, the micro controller 120 generates a driving pulse to the servo motor 130.
By the optical encoder 140, a displacement amount of a rotating shaft of the servo motor 130 is transformed into three photoelectronic signals A, B and Z. The photoelectronic signals A, B and Z are transmitted to the micro controller 120. According to the feedback pulse from the optical encoder 140, the micro controller 120 may realize the rotation speed, the rotation direction and the position of the servo motor 130.
For example, the optical encoder 140 is a rotary optical encoder. The optical encoder 140 comprises a light source 142, a photo detector 146, and a disk 148. The disk 148 is coupled to the rotating shaft of the servo motor 130. In addition, the disk 148 is rotated with the servo motor 130. Moreover, after a light beam emitted by the light source 142 passes through gratings of the disk 148, the light beam is received by the photo detector 146. According to the shapes of the gratings of the disk 148, the photo detector 146 generates the photoelectronic signals A, B and Z. During acceleration or deceleration of the servo motor 130, the frequencies and phases of the photoelectronic signals A, B and Z are subjected to changes. In other words, the photoelectronic signals A, B and Z are time variant signals.
Please refer to
Moreover, due to the difference between the two sensing elements, the A+ sensing current and the A− sensing current may be suffered from different DC offsets. As shown in
As known, the first photoelectronic signal A to be processed by the micro controller 120 should have no DC offset. Consequently, the micro controller 120 should be equipped with a DC offset cancellation circuit to generate the first photoelectronic signal A without the DC offset.
After a first sensing unit 202 issues the A+ sensing current to the first current-to-voltage converter 210, the first current-to-voltage converter 210 generates an A+ voltage signal (VA+). After the A+ voltage signal (VA+) is inputted into the first voltage amplifier 230, an amplified A+ voltage signal (GVA+) is generated.
After a second sensing unit 204 issues the A− sensing current to the second current-to-voltage converter 220, the second current-to-voltage converter 220 generates an A− voltage signal (VA−). After the A− voltage signal (VA−) is inputted into the second voltage amplifier 240, an amplified A− voltage signal (GVA−) is generated.
After the amplified A+ voltage signal (GVA+) is received by a positive input end of the differential amplifier 250 and the amplified A− voltage signal (GVA−) is received by a negative input end of the differential amplifier 250, the differential amplifier 250 generates the first photoelectronic signal A. After the first photoelectronic signal A is received by the analog-to-digital converter 260, a digitized first photoelectronic signal Ad is generated. After the digitized first photoelectronic signal Ad is received by the digital processing unit 270, a control signal C is generated.
From the above discussions, the DC offset cancellation circuit 20 of
After a first sensing unit 202 issues the A+ sensing current to the first current-to-voltage converter 310, the first current-to-voltage converter 310 generates an A+ voltage signal (VA+). After a second sensing unit 204 issues the A− sensing current to the second current-to-voltage converter 320, the second current-to-voltage converter 320 generates an A− voltage signal (VA−).
After the A+ voltage signal (VA+) is received by a positive input end of the differential amplifier 350 and the A− voltage signal (VA−) is received by a negative input end of the differential amplifier 350, the differential amplifier 350 generates the first photoelectronic signal A. After the first photoelectronic signal A is received by the analog-to-digital converter 360, a digitized first photoelectronic signal Ad is generated.
After the digitized first photoelectronic signal Ad is received by the digital processing unit 370, a control signal C is generated. According to the control signal C, the gain value of the differential amplifier 350 is correspondingly adjusted.
Moreover, the digital processing unit 370 may process the digitized first photoelectronic signal Ad and generate a DC value (DCd) to the digital-to-analog converter 380 according to the DC offset. Consequently, the digital-to-analog converter 380 generates a DC voltage Vdc.
From the above discussions, the DC offset cancellation circuit 30 of
The present invention provides a novel DC offset cancellation circuit for generating a first photoelectronic signal A without the DC offset.
An embodiment of the present invention provides a DC offset cancellation circuit receiving a first sensing current from a first sensing unit and a second sensing current from a second sensing unit. The DC offset cancellation circuit includes a superposing unit, a first current-to-voltage converter, a second current-to-voltage converter, a differential amplifier, a processing unit, and a current digital-to-analog converter. The superposing unit is used for generating a first DC current and a second DC current. After the first DC current and the first sensing current are superposed with each other by the superposing unit, a first superposed current is generated. After the second DC current and the second sensing current are superposed with each other by the superposing unit, a second superposed current is generated. The first current-to-voltage converter is used for converting the first superposed current into a first voltage signal. The second current-to-voltage converter is for converting the second superposed current into a second voltage signal. The differential amplifier has a first input end receiving the first voltage signal, a second input end receiving the second voltage signal, and an output end generating an output signal. The processing unit is used for receiving the output signal and processing the output signal into a DC value. The current digital-to-analog converter is used for converting the DC value into a DC current signal and issuing the DC current signal to the superposing unit. The superposing unit generates the first DC current and the second DC current according to the DC current signal, so that the first superposed current and the second superposed current have the same DC offset.
Numerous objects, features and advantages of the present invention will be readily apparent upon a reading of the following detailed description of embodiments of the present invention when taken in conjunction with the accompanying drawings. However, the drawings employed herein are for the purpose of descriptions and should not be regarded as limiting.
The above objects and advantages of the present invention will become more readily apparent to those ordinarily skilled in the art after reviewing the following detailed description and accompanying drawings, in which:
After an A+ sensing current from a first sensing unit 202 is superposed with a DC current signal Idc, a superposed current A+′ is generated. After the superposed current A+′ is received by the first current-to-voltage converter 410, the first current-to-voltage converter 410 generates an A+ voltage signal (VA+).
After an A− sensing current from a second sensing unit 204 is received by the second current-to-voltage converter 420, the second current-to-voltage converter 420 generates an A− voltage signal (VA−).
After the A+ voltage signal (VA+) is received by a positive input end of the differential amplifier 450 and the A− voltage signal (VA−) is received by a negative input end of the differential amplifier 450, the differential amplifier 450 generates the first photoelectronic signal A. After the first photoelectronic signal A is received by the processing unit 455, a control signal C and a DC value (DCd) are generated.
After the first photoelectronic signal A is received by the analog-to-digital converter 460 of the processing unit 455, a digitized first photoelectronic signal Ad is generated. After the digitized first photoelectronic signal Ad is received by the digital processing unit 470 of the processing unit 455, the control signal C is generated. According to the control signal C, the gain value of the differential amplifier 450 is correspondingly adjusted.
Moreover, the digital processing unit 470 may process the digitized first photoelectronic signal Ad and generate the DC value (DCd) according to the DC offset. After the DC value (DCd) is received by the current digital-to-analog converter 480, the DC current signal Idc is generated. By the superposing unit 490, the DC current signal Idc and the A+ sensing current are superposed with each other.
In the DC offset cancellation circuit 40, the DC current signal Idc is superposed with the A+ sensing current to generate the superposed current A+′. Consequently, the superposed current A+′ and the A− sensing current have the same magnitude of the DC offset.
Since the differential amplifier 450 is able to eliminate the common mode signal, the DC offsets of the superposed current A+′ and the A− sensing current can be completely canceled. Consequently, the first photoelectronic signal A without the DC offset is outputted from the differential amplifier 450.
The A+ sensing current from the first sensing unit 202 and the A− sensing current from the second sensing unit 204 are shown In
Since the DC offset of the superposed current A+′ is equal to the DC offset of the A− sensing current, the DC offset of the A+ voltage signal (VA+) and the DC offset of the A− voltage signal (VA−) are equal. Since the common mode signal with the same DC offset is eliminated by the differential amplifier 450, the first photoelectronic signal A without the DC offset is outputted from the differential amplifier 450.
Please refer to
Alternatively, in some other embodiments, the DC current signal Idc and the A− sensing current may be superposed with each other through the node “b” of the superposing unit 490. Under this circumstance, the DC current signal Idc generated by the current digital-to-analog converter 480 is +0.9 μA. After the A− sensing current and the DC current signal Idc are superposed with each other, the DC offset of the superposed current is changed to −2.7 μA. Similarly, the first photoelectronic signal A without the DC offset is outputted from the differential amplifier 450.
Those skilled in the art will readily observe that numerous modifications and alterations may be made while retaining the teachings of the invention. For example, the DC offsets of the A+ sensing current and the A− sensing current may be simultaneously adjusted by more complicated circuitry according to the concepts of the superposing unit 490. For example, if the DC current signal Idc generated by the current digital-to-analog converter 480 is +0.9 μA, a first DC current generated by the superposing unit 490 is −0.45 μA, and a second DC current generated by the superposing unit 490 is +0.45 μA. After the first DC current and the A+ sensing current are superposed with each other, a first superposed current with a DC offset of −3.15 μA is generated. Similarly, after the second DC current and the A− sensing current are superposed with each other, a second superposed current with a DC offset of −3.15 μA is generated. Under this circumstance, the first photoelectronic signal A without the DC offset is outputted from the differential amplifier 450.
From the above descriptions, the present invention provides a DC offset cancellation circuit. After the DC current signal and the sensing current from the sensing unit 202 or 204 are superposed with each other, the DC offset of the superposed current is equal to the DC offset of the other sensing current. Consequently, the purpose of canceling the DC offset is achieved.
While the invention has been described in terms of what is presently considered to be the most practical and preferred embodiments, it is to be understood that the invention needs not be limited to the disclosed embodiment. On the contrary, it is intended to cover various modifications and similar arrangements included within the spirit and scope of the appended claims which are to be accorded with the broadest interpretation so as to encompass all such modifications and similar structures.
Number | Date | Country | Kind |
---|---|---|---|
102148782 A | Dec 2013 | TW | national |
Number | Name | Date | Kind |
---|---|---|---|
4229703 | Bustin | Oct 1980 | A |
5798664 | Nagahori | Aug 1998 | A |
6426663 | Manlove | Jul 2002 | B1 |
6507241 | Ritter | Jan 2003 | B1 |
7268624 | Chen et al. | Sep 2007 | B2 |
8238761 | Liu et al. | Aug 2012 | B2 |
20020109075 | Ono | Aug 2002 | A1 |
20040100317 | Suzunaga | May 2004 | A1 |
20060132235 | Ozawa | Jun 2006 | A1 |
20080157847 | Liu | Jul 2008 | A1 |
20120044006 | Kao | Feb 2012 | A1 |
20140176238 | Guo | Jun 2014 | A1 |
Number | Date | Country | |
---|---|---|---|
20150188525 A1 | Jul 2015 | US |