USPatent applicationPatented

Sample based gain error estimation for analog to digital converter

Granted 7 Jan 2020 · no office action yet

Application· this page
16/249,927
filed 17 Jan 2019
Publication
Not published
not published
Patent
US 10,530,378
granted 7 Jan 2020

Life of the application

6 dated events
⤢ drag to zoom2020202220242026202820302032203420362038ProsecutionOwnershipTerm & fees
ProsecutionOwnershipTerm & feeshover for detail · click to open

Abstract

The disclosure provides a circuit. The circuit includes a zone detection block that generates a control signal in response to an input signal. An amplifier generates an amplified signal in response to the input signal and the control signal. An analog to digital converter (ADC) is coupled to the amplifier and samples the amplified signal to generate a digital signal. A digital corrector is coupled to the zone detection block and the ADC, and transforms the digital signal to generate a rectified signal based on the control signal and an error signal. An error estimator is coupled to the zone detection block and receives the rectified signal as a feedback. The error estimator generates the error signal in response to the control signal and the rectified signal.

Description

8 parts
›TECHNICAL FIELD

The present disclosure is generally related to an analog front end (AFE) circuit, and more particularly to gain and offset error estimation and correction for an amplifier and an analog to digital converter (ADC) in the AFE circuit.

›BACKGROUND

Analog systems and digital systems are commonly implemented in an integrated circuit using system on-chip (SOC) technology. Such systems commonly include an analog front end (AFE) circuit. The AFE circuit operates as an interface between an external input terminal, through which analog signals are input, and a digital signal processing unit that processes the received signals in digital format.

The AFE circuit is widely used in various devices, such as down converters for wireless digital communication devices, digital image scanners, digital cameras and voice codecs, and the like. The AFE circuit includes an amplifier and an analog to digital converter (ADC). The amplifier amplifies the received analog input signal, and the ADC converts the amplified analog input signal into digital signal. The amplifier has gain and offset errors across different gain settings. These errors introduce spurs and results in degradation in performance of the ADC.

Also, in real world applications, an analog input signal has high peak to average ratio. As a result, a dynamic range of the ADC is under-utilized. An existing solution is to use a variable gain amplifier in the analog signal chain before the ADC. The variable gain amplifier amplifies the analog input signal when the amplitude is low and keeps the analog input signal intact when the amplitude is high. This allows use of the entire dynamic range of the ADC. However, to reconstruct the signal digitally, the variable gain operation has to be performed digitally. As the gain of the variable gain amplifier is not known accurately and can change with temperature and other variations, the digital compensation can cause analog input signal distortion.

›SUMMARY

According to an aspect of the disclosure, a circuit is disclosed. The circuit includes a zone detection block that generates a control signal in response to an input signal. An amplifier generates an amplified signal in response to the input signal and the control signal. An analog to digital converter (ADC) is coupled to the amplifier and samples the amplified signal to generate a digital signal. A digital corrector is coupled to the zone detection block and the ADC, and transforms the digital signal to generate a rectified signal based on the control signal and an error signal. An error estimator is coupled to the zone detection block and receives the rectified signal as a feedback. The error estimator generates the error signal in response to the control signal and the rectified signal.

›BRIEF DESCRIPTION OF THE VIEWS OF DRAWINGS

FIG. 1 is a block diagram illustrating a circuit, according to an embodiment;

FIG. 2 is a block diagram illustrating a zone detection block, according to an embodiment;

FIG. 3 is a timing diagram illustrating operation of the circuit of FIG. 1 , according to an embodiment;

FIG. 4 is a flowchart to illustrate a method of operation of a circuit, according to an embodiment; and

FIG. 5 illustrates a computing device, according to an embodiment.

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 1 of 4

FIG. 1 is a block diagram illustrating a circuit 100 , according to an embodiment. The circuit 100 , in one version, is an analog front end (AFE) or part of AFE. The circuit 100 includes a zone detection block 104 , an amplifier 106 , an analog to digital converter (ADC) 114 , a digital corrector 120 and an error estimator 130 . The amplifier 106 and the zone detection block 104 receive an input signal 102 . The amplifier 106 is coupled to the zone detection block 104 . The ADC 114 is coupled to the amplifier 106 .

The digital corrector 120 is coupled to the zone detection block 104 and the ADC 114 . The error estimator 130 is coupled to the zone detection block 104 and the digital corrector 120 . The circuit 100 may include one or more additional components known to those skilled in the relevant art and are not discussed here for simplicity of the description.

The operation of the circuit 100 illustrated in FIG. 1 is explained now. The zone detection block 104 receives the input signal 102 and generates a control signal 110 in response to the input signal 102 . The amplifier 106 generates an amplified signal 108 in response to the input signal 102 and the control signal 110 . The control signal 110 includes one of a first gain bit and a second gain bit. In one example, the control signal 110 includes one of a set of first gain bits and a set of second gain bits.

The amplifier 106 uses a first gain value when the control signal 110 is equal to the first gain bit and the amplifier 106 uses a second gain value when the control signal 110 is equal to the second gain bit. The amplifier 106 amplifies the input signal 102 using the first gain value when the input signal 102 is above a primary threshold. The amplifier 106 amplifies the input signal 102 using the second gain value when the input signal 102 is below the primary threshold. The amplifier 106 amplifies the input signal 102 using one of the first gain value and the second gain value when the input signal 102 is equal to the primary threshold.

The ADC 114 samples the amplified signal 108 to generate a digital signal 118 . The digital corrector 120 transforms the digital signal 118 to generate a rectified signal 126 based on the control signal 110 and an error signal 136 . The error estimator 130 receives the rectified signal 126 as a feedback. The error estimator 130 also receives the digital signal 118 from the ADC 114 through the digital corrector 120 . The error estimator 130 generates the error signal 136 in response to the control signal 110 and the rectified signal 126 .

The input signal 102 includes a positive input signal and a negative input signal. The positive input signal is above a defined threshold and the negative input signal is below the defined threshold. In one example, when the input signal 102 is a sine wave and the defined threshold is 0 volt, then the sine wave above 0 volt is positive input signal and the sine wave below 0 volt is negative input signal.

The error estimator 130 generates a first positive average based on the first gain value, an average of the positive input signal over a defined time and an offset of the amplifier 106 . The first positive average (A 1 ) is defined as:

A 1 =G 1 S 1 +O 1   (1)

where, G 1 is the first gain value, S 1 is average of the positive input signal over a defined time, and O 1 is offset of the amplifier 106 when the first gain value (G 1 ) is used.

The error estimator 130 generates a first negative average based on the first gain value, an average of the negative input signal over the defined time and the offset of the amplifier 106 . The first negative average (B 1 ) is defined as:

B 1 =G 1 S 2 +O 1   (2)

where, G 1 is the first gain value, S 2 is average of the negative input signal over the defined time, and O 1 is the offset of the amplifier 106 when the first gain value (G 1 ) is used.

The error estimator 130 generates a second positive average based on the second gain value, an average of the positive input signal over a defined time and the offset of the amplifier 106 . The second positive average (A 2 ) is defined as:

A 2 =G 2 S 1 +O 2   (3)

where, G 2 is the second gain value, S 1 is average of the positive input signal over the defined time, and O 2 is offset of the amplifier 106 when the second gain value (G 2 ) is used.

The error estimator 130 generates a second negative average based on the second gain value, an average of the negative input signal over the defined time and the offset of the amplifier 106 . The first negative average (B 2 ) is defined as:

B 2 =G 2 S 2 +O 2   (4)

where, G 2 is the second gain value, S 2 is average of the negative input signal over a defined time, and O 2 is the offset of the amplifier 106 when the second gain value (G 2 ) is used.

The error estimator 130 subtracts the first negative average (B 1 ) from the first positive average (A 1 ) to generate a first error (OE 1 ), which is defined as:

OE 1 =A 1 −B 1   (5)

The error estimator 130 subtracts the second negative average (B 2 ) from the second positive average (A 2 ) to generate a second error (OE 2 ), which is defined as:

OE 2 =A 2 −B 2   (6)

The error estimator 130 divides the first error by the second error to generate a gain mismatch error (GM), which is defined as:

GM = A 1 - B 1 A 2 - B 2 ( 7 )

Equation 7 is further simplified by using equations 1-4

GM = G 1 G 2 ( 8 )

The error estimator 130 also estimates an offset mismatch error (OM), which is defined as:

OM=GM*B 1 −A 1   (9)

The error estimator 130 provides the error signal 136 to the digital corrector 120 . The error signal 130 includes the first offset error (OE 1 ), the second offset error (OE 2 ) and the gain mismatch error (GM). The digital corrector 120 modifies the digital signal 118 based on the first offset error (OE 1 ), the second offset error (OE 2 ), the gain mismatch error (GM) and the control signal 110 . The specifically disclosed operation of circuit 100 through the use of first gain value (G 1 ) and the second gain value (G 2 ) is provided for ease of explanation and is understood not to limit the scope of the present disclosure, and the amplifier 106 can have one or more gain values.

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 2 of 4

In one version, the digital corrector 120 operates in following mode. When the input signal 102 is above the primary threshold, the digital corrector 120 multiplies the digital signal 118 with unity, and when the input signal 102 is below the primary threshold, the digital corrector 120 multiplies the digital signal 118 with gain mismatch error (GM). When the input signal 102 is equal to the primary threshold, and the amplifier 106 uses first gain value, the digital corrector 120 multiplies the digital signal 118 with unity. Also, when the input signal is equal to the primary threshold, and the amplifier 106 uses second gain value, the digital corrector 120 multiplies the digital signal 118 with gain mismatch error (GM).

In another version, the digital corrector 120 corrects an offset error by operating in following mode. When the input signal 102 is above the primary threshold, the digital corrector 120 subtracts zero from the digital signal 118 , and when the input signal 102 is below the primary threshold, the digital corrector 120 subtracts the offset mismatch error (OM) from the digital signal 118 . When the input signal 102 is equal to the primary threshold, and the amplifier 106 uses first gain value, the digital corrector 120 subtracts zero from the digital signal 118 . Also, when the input signal is equal to the primary threshold, and the amplifier 106 uses second gain value, the digital corrector 120 subtracts the offset mismatch error (OM) from the digital signal 118 .

In yet another version, a predefined value of gain mismatch error (GM) is stored in the digital corrector 120 . When the input signal 102 is above the primary threshold, the digital corrector 120 multiplies the digital signal 118 with unity, and when the input signal 102 is below the primary threshold, the digital corrector 120 multiplies the digital signal 118 with gain mismatch error (GM). The error estimator 130 generates the error signal only when the input signal 102 is equal to the primary threshold. Thus, the first offset error (OE 1 ), the second offset error (OE 2 ) and the gain mismatch error (GM) are measured by the error estimator 130 only when the input signal 102 is equal to the primary threshold. These values are provided to the digital corrector 120 , and the digital corrector 120 uses them on digital signal 118 received subsequently.

The circuit 100 effectively utilizes range of the ADC 114 . An effective dynamic range of the ADC 114 is improved because of use of dynamic gain by the amplifier 106 . In addition, an absolute gain of the amplifier 106 introduces gain error. The circuit 100 utilizes the gain mismatch error (GM), which is ratio across gain modes, to correct the digital signal 118 . Once, the gain mismatch is corrected by the circuit 100 , the offset mismatch (OM) is estimated by the circuit 100 using equation 9. A loop of the offset mismatch converges after the gain mismatch has been corrected. In one example, the circuit 100 provides that a loop of the gain mismatch converges irrespective of the loop of the offset mismatch. The circuit 100 , in one example, is part of an analog front end (AFE) and continues to calibrate and correct mismatch errors related to gain and offset in the background. The circuit 100 , in another example, also tracks variation in the gain mismatch due to process, voltage and temperature variations.

FIG. 2 is a block diagram illustrating a zone detection block 200 , according to an embodiment. The zone detection block 200 is analogous, in connection and operation, to the zone detection block 104 illustrated in FIG. 1 . The zone detection block 200 includes a first comparator COMP 0 212 , a second comparator COMP 1 216 and a decision block 230 . The zone detection block 200 also receives a primary threshold 204 . The zone detection block 200 may include one or more additional components known to those skilled in the relevant art and are not discussed here for simplicity of the description.

As illustrated in FIG. 1 , the zone detection block 200 receives an input signal 102 in FIG. 2 as well. The first comparator COMP 0 212 and the second comparator COMP 1 216 receive the input signal 102 . The first comparator COMP 0 212 and the second comparator COMP 1 216 also receive the primary threshold 204 . The first comparator COMP 0 212 compares the input signal 102 and the primary threshold 204 to generate a first signal 222 . The second comparator COMP 1 216 compares the input signal 102 and the primary threshold 204 to generate a second signal 226 . The decision block 230 generates a control signal 210 in response to the first signal 222 and the second signal 226 . The control signal 210 is analogous to the control signal 110 discussed with reference to FIG. 1 .

Also, as discussed with reference to FIG. 1 , the control signal 210 also includes one of a first gain bit and a second gain bit. The control signal 210 is equal to a first gain bit when the first signal 222 and the second signal 226 are equal to an ancillary bit. The control signal 210 is equal to a second gain bit when the first signal 222 and the second signal 226 are equal to an inverse ancillary bit. The control signal 210 is equal to one of the first gain bit and the second gain bit when the first signal 222 is not equal to the second signal 226 . A random mismatch between the first comparator COMP 0 212 and the second comparator COMP 1 216 and the thermal noise of these comparators results in non-equality of the first signal 222 and the second signal 226 , when the input signal 102 is equal or close to the primary threshold 204

In one example, ancillary bit is 0 and the inverse ancillary bit is 1. In another example, the first gain bit is greater than the second gain bit. Thus, when the first signal 222 and the second signal 226 are equal 0, the first gain bit is selected, and when the first signal 222 and the second signal 226 are equal to 1, the second gain bit is selected. When the first signal 222 is 0 and the second signal 226 is 1 or vice versa, then one of the first gain bit and the second gain bit is selected.

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 3 of 4

The input signal 102 includes a positive input signal and a negative input signal. The positive input signal is above a defined threshold and the negative input signal is below the defined threshold. In one example, when the input signal 102 is a sine wave and the defined threshold is 0 volt, then the sine wave above 0 volt is positive input signal and the sine wave below 0 volt is negative input signal. The decision block 230 operates in the same manner as discussed above both for the positive input signal and the negative input signal.

The use of two comparators, the first comparator COMP 0 212 and the second comparator COMP 1 216 , using the same primary threshold allows for improved use of dynamic gain of the amplifier 106 coupled to the zone detection block 200 .

FIG. 3 is a timing diagram 300 illustrating operation of the circuit of FIG. 1 , according to an embodiment. The input signal 102 , as an example, is illustrated as a triangular waveform and is understood not to limit the scope of the present disclosure. The primary threshold 204 is similar to as illustrated in FIG. 2 . The control signal 110 is generated by the zone detection block 104 . Zones 306 in the control signal 110 represent regions when the input signal 102 is equal to the primary threshold 204 , and hence represents noise. In zone 306 , the input signal 102 is close to the primary threshold 204 , and hence the zone detection block 104 is unable to decide if the input signal 102 is greater or less than the primary threshold 204 resulting in noise.

In zone 306 , the control signal 110 generated by the zone detection block 104 is equal to one of the first gain bit and the second gain bit. The amplifier 106 uses a first gain value (G 1 ) when the control signal 110 is equal to the first gain bit and the amplifier 106 uses a second gain value (G 2 ) when the control signal 110 is equal to the second gain bit. The amplified signal 108 is generated by the amplifier 106 . The amplifier 106 amplifies the input signal 102 using the first gain value (G 1 ) when the input signal 102 is above the primary threshold 204 . The amplifier 106 amplifies the input signal 102 using the second gain value (G 2 ) when the input signal 102 is below the primary threshold 204 . The amplifier 106 amplifies the input signal 102 using one of the first gain value (G 1 ) and the second gain value (G 2 ) when the input signal 102 is equal to the primary threshold 204 .

The rectified signal 126 is generated by digital corrector 120 . The circuit 100 is able to recreate the input signal 102 and generate it as rectified signal 126 . The digital corrector 120 modifies the digital signal 118 based on the first offset error (OE 1 ), the second offset error (OE 2 ), the gain mismatch error (GM) and the control signal 110 . The circuit 100 utilizes the gain mismatch error (GM), which is ratio across gain modes, to correct the digital signal 118 . Once, the gain mismatch is corrected by the circuit 100 , the offset mismatch (OM) is estimated by the circuit 100 . A loop of the offset mismatch converges after the gain mismatch has been corrected. The circuit 100 , in one example, continuously calibrates and corrects mismatch errors related to gain and offset in the background.

FIG. 4 is a flowchart 400 to illustrate a method of operation of a circuit, according to an embodiment. The flowchart 400 is explained in connection with the circuit 100 illustrated in FIG. 1 . At step 402 , a control signal is generated in response to an input signal. In circuit 100 , for example, the zone detection block 104 receives the input signal 102 and generates a control signal 110 in response to the input signal 102 . The input signal is amplified in an amplifier to generate an amplified signal based on the control signal, at step 404 . In circuit 100 , the amplifier 106 generates an amplified signal 108 in response to the input signal 102 and the control signal 110 . The control signal 110 includes one of a first gain bit and a second gain bit.

The amplifier 106 uses a first gain value when the control signal 110 is equal to the first gain bit and the amplifier 106 uses a second gain value when the control signal 110 is equal to the second gain bit. The amplifier 106 amplifies the input signal 102 using the first gain value when the input signal 102 is above a primary threshold. The amplifier 106 amplifies the input signal 102 using the second gain value when the input signal 102 is below the primary threshold. The amplifier 106 amplifies the input signal 102 using one of the first gain value and the second gain value when the input signal 102 is equal to the primary threshold.

At step 408 , the amplified signal is sampled to generate a digital signal. The ADC 114 , in FIG. 1 , samples the amplified signal 108 to generate a digital signal 118 . The digital signal is transformed to generate a rectified signal based on the control signal and an error signal, at step 410 . At step 412 , the error signal is generated by an error estimator in response to the control signal and the rectified signal. In circuit 100 , the digital corrector 120 transforms the digital signal 118 to generate a rectified signal 126 based on the control signal 110 and an error signal 136 . The error estimator 130 receives the rectified signal 126 as a feedback. The error estimator 130 generates the error signal 136 in response to the control signal 110 and the rectified signal 126 .

The error estimator 130 provides the error signal 136 to the digital corrector 120 . The error signal 130 includes the first offset error (OE 1 ), the second offset error (OE 2 ) and the gain mismatch error (GM). The digital corrector 120 modifies the digital signal 118 based on the first offset error (OE 1 ), the second offset error (OE 2 ), the gain mismatch error (GM) and the control signal 110 .

The method illustrated by flowchart 400 improves an effective dynamic range of the ADC 114 because of the use of dynamic gain of the amplifier 106 . In addition, an absolute gain of the amplifier 106 introduces gain error. The method utilizes the gain mismatch error (GM), which is ratio across gain modes, to correct the digital signal 118 . Once, the gain mismatch is corrected, the offset mismatch is estimated. A loop of the offset mismatch converges after the gain mismatch has been corrected. Since the digital corrector 120 corrects the mismatches across different gain values of the amplifier 106 , the rectified signal 126 follows the input signal 102 .

›DETAILED DESCRIPTION OF THE EMBODIMENTS · 4 of 4

FIG. 5 illustrates a computing device 500 according to an embodiment. The computing device 500 is, or is incorporated into, a mobile communication device, such as a mobile phone, a personal digital assistant, a personal computer, or any other type of electronic system. The computing device 500 may include one or more additional components known to those skilled in the relevant art and are not discussed here for simplicity of the description.

In some embodiments, the computing device 500 comprises a megacell or a system-on-chip (SoC) which includes a processing unit 512 such as a CPU (Central Processing Unit), a memory module 514 (e.g., random access memory (RAM)) and a tester 510 . The processing unit 512 can be, for example, a CISC-type (Complex Instruction Set Computer) CPU, RISC-type CPU (Reduced Instruction Set Computer), or a digital signal processor (DSP).

The memory module 514 (which can be memory such as RAM, flash memory, or disk storage) stores one or more software applications 530 (e.g., embedded applications) that, when executed by the processing unit 512 , perform any suitable function associated with the computing device 500 . The tester 510 comprises logic that supports testing and debugging of the computing device 500 executing the software application 530 .

For example, the tester 510 can be used to emulate a defective or unavailable component(s) of the computing device 500 to allow verification of how the component(s), were it actually present on the computing device 500 , would perform in various situations (e.g., how the component(s) would interact with the software application 530 ). In this way, the software application 530 can be debugged in an environment which resembles post-production operation.

The processing unit 512 typically comprises a memory and logic which store information frequently accessed from the memory module 514 . The computing device 500 includes a logic unit 520 coupled to the processing unit 512 and the memory module 514 . The logic unit 520 includes a circuit 518 . The circuit 518 is analogous to the circuit 100 in connection and operation.

The circuit 518 includes a zone detection block, an amplifier, an analog to digital converter (ADC), a digital corrector and an error estimator. The zone detection block receives the input signal and generates a control signal in response to the input signal. The amplifier generates an amplified signal in response to the input signal and the control signal. The control signal 110 includes one of a first gain bit and a second gain bit.

The amplifier uses a first gain value when the control signal 110 is equal to the first gain bit and the amplifier uses a second gain value when the control signal 110 is equal to the second gain bit. The amplifier amplifies the input signal using the first gain value when the input signal is above a primary threshold. The amplifier amplifies the input signal using the second gain value when the input signal is below the primary threshold. The amplifier amplifies the input signal using one of the first gain value and the second gain value when the input signal is equal to the primary threshold.

The ADC samples the amplified signal to generate a digital signal. The digital corrector transforms the digital signal to generate a rectified signal based on the control signal and an error signal. The error estimator receives the rectified signal as a feedback. The error estimator generates the error signal in response to the control signal and the rectified signal.

The circuit 518 improves an effective dynamic range of the ADC because of the use of dynamic gain of the amplifier. In addition, an absolute gain of the amplifier introduces gain error. The method utilizes the gain mismatch error (GM), which is ratio across gain modes, to correct the digital signal. Once, the gain mismatch is corrected, the offset mismatch is estimated. A loop of the offset mismatch converges after the gain mismatch has been corrected.

Modifications are possible in the described embodiments, and other embodiments are possible, within the scope of the claims.

Claims as granted

20 claims

Log in to read the claims of this application.

Log in to unlock

Classifications

1 codes
IPC · International Patent Classification
Section H — Electricity
  • H03M1/06

Claim changes

Soon
Coming soonHow the claims changed between publication and grant

See which claims were amended, added or cancelled during examination, with every added and removed word marked.

AmendedAddedCancelledUnchanged

The published claims of this application are not paired with the granted ones in what we hold.

File wrapper

⤢ drag to zoomJan 2019Apr 2019Jul 2019Oct 2019Jan 2020USPTOApplicantNotice of allowance
USPTOApplicanthover for detail · click to open
Pendency
1.0 y
355 days filing → grant
Office actions
0
none on record
Examiner
Lam T Mai
art unit 2845 · TC 2800
Citations: 8 back · 1 forward

See the full prosecution history — every USPTO and applicant action on this file, in order.

Log in to unlock

Documents

Log in to open the documents of this file: the application as filed, every office action and response, the notice of allowance.

Log in to unlock

Chain of title

⤢ drag to zoom2020202220242026202820302032203420362038Owner 1
Titlehover for detail · click to open

See the full assignment history — every owner this patent has passed through, with recordation dates and reel/frame numbers.

Log in to unlock