An apparatus for error compensation, the apparatus comprising: an analog-to-digital converter circuit, ADC, configured and arranged to convert an analog signal applied at the input of the ADC into a digital signal (501; 701; 901) at the output of the ADC; a plurality of digital-to-analog converter circuits, DACs, (110, 120), each DAC (110, 120) being configured and arranged to convert a respective portion of a scrambled thermometer code (D*[2:0]) that is generated as a result of shuffling a thermometer code corresponding to the signal (501, 701, 901) at the output of the ADC and which is applied at the digital input of the DAC (110, 120) into a respective analog signal at the output of the DAC (110, 120); and a compensation circuit (200; 500; 700; 900) configured and arranged to correct the digital signal (501; 701; 901) at the output of the ADC by: for each DAC (110, 120), generating a respective feedback signal indicative of a mismatch between the respective analog signal at the output of the DAC (110, 120), as converted to a corresponding digital signal by the ADC, and the respective portion of the scrambled thermometer code (D*[2:0]) provided to the DAC (110, 120); for each DAC (110, 120), applying a respective gain to the digital input to the DAC (110, 120) based on the respective feedback signal for the DAC (110, 120), therein providing a respective modified digital signal; and generating a corrected output (Ycor) based on a combination of the digital signal (510; 701; 901) at the output of the ADC and the respective modified digital signals of each DAC (110, 120); (110, 120); wherein the generation of the respective feedback signal includes: for each DAC (110, 120) generating a respective correlation of the respective portion of the scrambled thermometer code (D*[2:0]) provided to the DAC (110, 120) with the corrected output (Ycor), for each DAC (110, 120) subtracting an averaged value corresponding to the average of the respective correlations of all DACs (110, 120) from the respective correlation of the DAC (110, 120) to obtain a respective correlation with the common correlation subtracted, for each DAC (110, 120) generating the respective feedback signal based on the respective correlation with the common correlation subtracted. an analog-to-digital converter circuit, ADC, configured and arranged to convert an analog signal applied at the input of the ADC into a digital signal (501; 701; 901) at the output of the ADC; a plurality of digital-to-analog converter circuits, DACs, (110, 120), each DAC (110, 120) being configured and arranged to convert a respective portion of a scrambled thermometer code (D*[2:0]) that is generated as a result of shuffling a thermometer code corresponding to the signal (501, 701, 901) at the output of the ADC and which is applied at the digital input of the DAC (110, 120) into a respective analog signal at the output of the DAC (110, 120); and a compensation circuit (200; 500; 700; 900) configured and arranged to correct the digital signal (501; 701; 901) at the output of the ADC by: for each DAC (110, 120), generating a respective feedback signal indicative of a mismatch between the respective analog signal at the output of the DAC (110, 120), as converted to a corresponding digital signal by the ADC, and the respective portion of the scrambled thermometer code (D*[2:0]) provided to the DAC (110, 120); for each DAC (110, 120), applying a respective gain to the digital input to the DAC (110, 120) based on the respective feedback signal for the DAC (110, 120), therein providing a respective modified digital signal; and generating a corrected output (Ycor) based on a combination of the digital signal (510; 701; 901) at the output of the ADC and the respective modified digital signals of each DAC (110, 120); (110, 120); for each DAC (110, 120), generating a respective feedback signal indicative of a mismatch between the respective analog signal at the output of the DAC (110, 120), as converted to a corresponding digital signal by the ADC, and the respective portion of the scrambled thermometer code (D*[2:0]) provided to the DAC (110, 120); for each DAC (110, 120), applying a respective gain to the digital input to the DAC (110, 120) based on the respective feedback signal for the DAC (110, 120), therein providing a respective modified digital signal; and generating a corrected output (Ycor) based on a combination of the digital signal (510; 701; 901) at the output of the ADC and the respective modified digital signals of each DAC (110, 120); (110, 120); wherein the generation of the respective feedback signal includes: for each DAC (110, 120) generating a respective correlation of the respective portion of the scrambled thermometer code (D*[2:0]) provided to the DAC (110, 120) with the corrected output (Ycor), for each DAC (110, 120) subtracting an averaged value corresponding to the average of the respective correlations of all DACs (110, 120) from the respective correlation of the DAC (110, 120) to obtain a respective correlation with the common correlation subtracted, for each DAC (110, 120) generating the respective feedback signal based on the respective correlation with the common correlation subtracted.