PIC Microcontoller Memory Method

Compressing large tables with linear interpolation by Peter Hemsley

Peter says that "This is too good to miss, although it's probably not for the faint hearted. Of course it's easier to do the whole lot as a 256 byte look-up table, but this was not really an option until PICs came with larger memories".

Code:

See also:

David A Cary Says:

"Non-linear Data Transformations": a similar linear interpolation algorithm using shift-and-add to replace multiply; in C. http://www.bytecraft.com/Non-linear_Data_Transformations.

David A Cary Says:

Methods of Integer Multiplication and Division on a processor like the PIC that doesn't have built-in multiply instruction.