Piecewise Linear Interpolation On PIC12/14/16 Series Microcontrollers
Piecewise Linear Interpolation On PIC12/14/16 Series Microcontrollers
65,535
PwLI_Ouput X2, Y2
X, Y X, Y
b
X1, Y1
a
0
X
0 1023
PwLI_Input
Segment_EP[x] Segment_EP[x+1]
Segment
PwLI_Input+1 PwLI_Input
0 15
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Span
Segment_EP[PwLI_Index]
Zeros PwLI_Input+1 Span
(not used)
Segment_EP[PwLI_Index+1]
SUMMARY
Piecewise Linear Interpolation is a great solution for
sensor linearization due to its fast execution speed,
reduced program memory requirements and ease of
implementation. This technique can be expanded or
simplified to include more or less segments, or provide
more or less input resolution.
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.