Dear all,
I have designed a system for read the absorbance values of a spectrophotometer.
As the optical signals are different depending of the wavelenghts, we must to use different gains for each wavelenght selected. For example, for 340nm, the voltage signal detected by photosensor is very low and then I must to use high gain.
I have used a AD7190 converter (24bits) with PGA incorporated. The options for gain is 1, 8, 16, 32, 64 and 128. My PIC code (CCS compiler) will get the values for reference of the system when the instrument is started. My doubt is the following: if I define a range for my AD values (Ex: from 12.000.000 to 14.000.000), how could we adjust the gains for intermediate values in case of the my AD values is not inside the range?
Eduardo