On Mon, Jun 30, 2003 at 01:49:22AM -0400, Ishaan Dalal wrote: > This is for a phase accumulator in a DDS -- the lookup table is 1024 > entries, so the 24-bit accumulator needs to be truncated to 10-bits, or > truncating 16 bits of the high and middle byte to 10 bits. I'd restructure the table so that you don't have to move the upper byte at all. So each page of table would be every 4th table value and the page selector would actually come from the top 2 bits in ACCM. -- Ben Jackson http://www.ben.com/ -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu