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.
With all of the hype around 3D printing, it can be easy to get lost in fascinating, intricate metal parts made with additive manufacturing. These parts, while impressive, are probably dissimilar from many of the parts you currently produce or use. So why invest in metal additive manufacturing? Download Now
Construction was at one time a highly regionalized business. Pragmatic and market forces made it more efficient for even a large, industrial general contractor to focus regionally. But inexorable trends are making it more important for major commercial, civil, engineering and industrial contractors to grow their global footprint.
Mining is a relatively straightforward business model, driven by cyclical patterns of commodity demand and availability. Disruptive technologies, however, are now offering new tools to teams that enable them to change the rules of the game in their favor. Download Now
Selecting business software for a medium to enterprise-sized construction concern is extremely challenging in large part because most enterprise resource planning (ERP) suites originated in the world of repetitive manufacturing and are therefore a poor fit for a project and asset-centric business. However, midsize to large contractors need the predictable, auditable processes that ERP delivers.