Other Parts Discussed in Thread: PGA305, PGA300
Tool/software: Code Composer Studio
How to obtain parameter(h0,h1,h2;g0,h1,g2;n0,n1,n2)of the second-order TC compensation on the file pga900_app.c;
Such parameter is present in EEPROM_Default_Tcoeff just as an example routine,
In the sample compensation algorithm in practical application,I need calculate those parameter by curve fitting ;
How to curve fitting In the table as following?
|
0(MPA) | 10(MPA) | 20(MPA) | 30(MPA) | 40(MPA) | 50(MPA) | |||
3478 | 18.08.30 27.5℃ | 0.440mv(output) | 6.675mv | 12.903 | 19.122 | 25.333 | |||
0.430 | 6.656 | 12.870 | 19.072 | 25.269 | 31.457 | ||||
0.429 | 6.652 | 12.865 | 19.072 | 25.268 | |||||
0.418 | 6.620 | 12.812 | 18.994 | 25.168 | 31.289 | ||||
0.419 | 6.629 | 12.829 | 19.019 | 25.203 | |||||
0.417 | 6.611 | 12.794 | 18.968 | 25.133 | 31.289 | ||||
18.08.30 100℃ | 0.417 | 6.608 | 12.791 | 18.965 | 25.132 | ||||
0.414 | 6.589 | 12.755 | 18.910 | 25.057 | 31.196 | ||||
0.416 | 6.599 | 12.773 | 18.938 | 25.095 | 31.196 | ||||
18.08.30 110℃ | 0.414 | 6.585 | 12.752 | 18.910 | 25.053 | ||||
0.413 | 6.569 | 12.714 | 18.849 | 24.975 | 31.092 | ||||
18.08.30 120℃ | 0.410 | 6.565 | 12.710 | 18.846 | 24.973 | ||||
0.410 | 6.567 | 12.713 | 18.847 | 24.973 | 31.091 | ||||
0.410 | 6.566 | 12.712 | 18.847 | 24.973 | 31.091 | ||||
18.08.30 130℃ | 0.411 | 6.563 | 12.707 | 18.845 | 24.972 | ||||
0.412 | 6.566 | 12.708 | 18.847 | 24.972 | 31.09 | ||||
0.412 | 6.565 | 12.708 | 18.846 | 24.972 | 31.09 | ||||
18.08.30 140℃ | 0.411 | 6.562 | 12.707 | 18.843 | 24.970 | ||||
0.403 | 6.538 | 12.662 | 18.774 | 24.880 | 30.974 | ||||
0.407 | 6.550 | 12.685 | 18.809 | 24.925 | 30.974 | ||||
18.08.30 150℃ | 0.398 | 6.530 | 12.654 | 18.771 | 24.876 | ||||
0.373 | 6.484 | 12.586 | 18.679 | 24.759 | 30.830 | ||||
0.367 | 6.473 | 12.576 | 18.669 | 24.753 | |||||
0.370 | 6.479 | 12.581 | 18.674 | 24.756 | 30.83 | ||||