At 05:35 PM 9/6/2004 +0100, you wrote: >Thanks, I'll take a look. I think the table approach should be OK, I have a >good chunk of program memory to play with (18F8620, 64kwords which is >currently about 55% used). You could also create a table in terms of the output variable and search within the table for the input, which would take 12 accesses. That's only a 10.5K byte table, with no interpolation required. Best regards, Spehro Pefhany --"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com _______________________________________________ http://www.piclist.com View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist