摘要 |
A method for correcting digital gain error for a digital code includes receiving the digital code, generating a random number, adding a first dither to the digital code, in which a magnitude of the first dither is determined based on the random number, performing an operation on the digital code including the added dither with a factor to generate a scaled digital code, and subtracting a second dither corresponding to the first dither from the scaled digital code. |
主权项 |
1. A computer-implemented method for correcting digital gain error for a digital code, comprising:
receiving, at a first input of an adder, the digital code; generating, by a random number generator, a random number; digitally adding, by the adder, a digital first dither, received at a second input of the adder, to the digital code to produce a summed digital code at an output of the adder, wherein a magnitude of the first dither is determined based on the random number; receiving the summed digital code provided at the output of the adder at an input of a digital scaler; performing, by the digital scaler, a scaling operation on the summed digital code to generate a scaled digital code; and subtracting, by a subtractor, a second dither corresponding to the first dither from the scaled digital code. |