Patent ID: 7667751

Claim:
A CMOS imaging device, the CMOS imaging device comprising: a pixel array; a selector, wherein the selector is operable to select between an input derived from the pixel array and at least one reference input, wherein the selection between the input derived from the pixel array and the at least one reference input is at least in part based on a signal derived from a digital domain, the input derived from the pixel array and the at least one reference input both being input to the selector, an output of the selector is passed through an analog processing circuit, the analog processing circuit including at least, a level shift circuit coupled to a black offset circuit, the black offset circuit also being coupled to a programmable offset circuit, the programmable offset circuit also being coupled to a first stage programmable gain amplifier, the first stage programmable gain amplifier also being coupled to a second stage programmable gain amplifier; an analog processing selector, wherein the analog processing selector is operable to bypass one or more portions of the analog processing circuit, the analog processing selector configured to output a first signal to bypass the level shift circuit, a second signal to bypass the black offset circuit, a third signal to bypass the first stage programmable gain amplifier, and a fourth signal to bypass the second stage programmable gain amplifier; and an analog to digital converter, wherein the analog to digital converter is operable to convert a signal derived from the selector to the digital domain.