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.
ENGINEERING.com surveyed 364 product development professionals to glean insights into how their teams are performing today, and what technologies are most useful to support their processes. Download Now
3D printing has quickly expanded beyond the realm of prototyping and into the world of end part manufacturing. Desktop 3D printers need not be used for making parts themselves, but as a secondary process for producing tools. Download Now
Creating tooling for injection molding is an expensive and complex proposition. Until recently, the only way to avoid tooling defects causing air traps, voids, shrinkage and the like was to employ a time-consuming and tedious physical prototyping process. Download Now