Thanks for all your responses. I'm getting good results By hooking the circuit up to my pc's serial port and doing The math in a small Python script using 4th order polynomials. Now its just a matter of doing the same on a bigger pic. It was an estimation error on my part to think that cjc and linearization can be done on a 12f675. Should have used a bigger pic and that=92s what I'm gonna do. > If that fails, I'll use a bigger pic(16f873) and try using floating > point > arithmetic to fit the curve (And I believe floats are a big pain in > assebler). I guess I exaggerated the word pain in here. Everything is a pain, until you figure out a way to do it ;) (Well, I figured that later) Jeethu Rao -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu