Ok, admittedly perhaps I didn't word my post that clearly. The question that you quoted was not in fact meant to be answered. I use questions to illustrate where I am in the thinking process. The next section of that post described a way that I thought I could use to generate the lookup table values needed. All I was looking for was verification of whether or not my theory was sound. However, I haven't received a yay or nay on it, so I am looking back to other ways people have proposed, regardless of whether I understand them or not. I have been looking at Olin's program to get MPASM to generate a table. However, I can't get it to work. I put the text in a file, ran MPASM on it, yet got tons of errors. Many invalid characters, invalid operands, etc. How do I get it to run correctly? Do I need to do it within MPLAB? I'm a bit lost here (which is really the reason I tried to find my own way to generate the numbers). Thanks for your help, Josh -- A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. -Douglas Adams Olin Lathrop wrote: > Josh, several people have already shown you the math, posted code to > compute a table, and even posted sample tables. What more do you want? > Note that the program I posted had constants for the number of bits in the > table input and output words. -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics