Hi all

I'm measuring a voltage from an RF power detector which is not linear with an 8bit ADC (if possible later with 10bit)

I would like to display the coresponding power level on an lcd based on a few reference measurements during calibration

So i would like to do a 255 lookup table where I have a few true measured value's, the values in between needs to be calculated

Any idea how to handle this ?

example:

During calibration i measure:

ADC Power level watt

51 36
63 44
70 54
80 66
89 82
98 98
109 119
118 143
130 180
136 210

now i have to calculate the power level for each ADC step between 51 and 63 etc..

I think that using 255 bytes variables is to complicated, is there a way to fill the lookup table automaticly calculated from the know values ?


HNY