Roy Walker (walkerr@hsdwl.utc.com) wrote: > This one caught my attention. How do you interpolate between two table >points with 8 bytes of code?? Am I missing something here? Roy: Yeah, probably. Off the top of my head, I'd do this thermistor thing by drawing the voltage vs. temperature curve, splitting it into some small ( < 10, probably... 8 would be a good choice) number of sections, each of which would be nearly linear, then just putting the slopes of the linear approximations of those sections in the lookup table. If I needed speed, I'd put the endpoints of the lines in the table, too. Finding a point somewhere on a line, given another point on the line and a slope, may take even less than 8 instructions. -Andy -- Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California