niick
Electrical
- Apr 10, 2005
- 3
I am working on a PIC program for a boost gauge. My input is a pressure output should be 3 4-bit BCD numbers. The part i am having trouble with is a lookup table for the input pressure. the easist way i have come up with to do this is having a lookup table. The problem is that since this is a 10-bit a/d converter, the lookup table will need to be 1024 words long. The PCL register is only 8 bits. Can you add the 8 least significant bits to the PCL register, and then add the carry and 2 most significant bits to the PCH bits of the PCLATH register? Will there be any other problems i am overlooking because this is such a large table? I have seen some articles on making lookup tables under 256 words long, but nothing about over 256. Thanks in advance vor any help!
-Nick
-Nick