95 C2500 6.5 turbo diesel 16212488 PCM

This truck uses an APP sensor on pedal to feed the PCM with three different voltage ranges to calculate TPS% Angle.

Now this is where it goes way over my head. How and where does the PCM use those voltages to to calculate TPS%?

Hardware? Software?