Hi,
it is indeed. but at a huge expense of ram or flash memory.
It depends on how long a table you need of course, but don't underestimate the speed advantage of a table (compared to nested IF/ELSE chains). Further, most controllers above base line has got way more memory than you want to fill in assembler

after all it would be the same procedure to calibrate. Do you know a better way to calibrate?
If you refer to calibrating a single sensor from scratch, I'd look in the datasheet for starters. Most sensors have outputs that, if not linear, at least conform to a reasonably simple math function. The trick is to first define
what tolerance you allow (be realistic here), then find a rough fitting function and bash it around until it's within your tolerance for all values. I'll see if I can come up with a blow-by-blow example once I'm back home.
It also depends on which sensor. A NTC resistor eg. can be rather linearized by adding a single parallel resistor - at the cost of less Ohm/°C
Do you have a particular sensor in mind and if, do you have a datasheet for it?
i read some of your posts Sir N and i am glad you found your way to this forum. You seem to be an experienced guy and a big gain for this small community. Welcome!
Thanks - I've been around the block a few times, and I hope that others may benefit from what I picked up along the way
