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!
Red Flag Submitted
Thank you for helping keep Eng-Tips Forums free from inappropriate posts. The Eng-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Eng-Tips forums is a member-only feature.
In the digital era, manufacturing is constantly transforming. This includes the automotive industry, where product lifecycles are becoming shorter in order to differentiate and meet the latest consumer tastes. Download Now
In 2017, ENGINEERING.com surveyed 151 product development professionals about how they manage product data. Our analysis focused on the types of systems used, how they were used, and the correlation between system types and common product design failures. Download Now