This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

电子称转换结果问题

Other Parts Discussed in Thread: MSP430F427A

我根据TI公司的“单芯片便携电子秤重系统实现方案”及对应程序“f42x_weigh_scale.c”采

用msp430f427a单片机,IAR编译调试平台。资料见附件。
A0 = 0mv 显示值应该为0左右 ,为什么会为10000?
A0 = 5.5mv 显示值应该在9166 左右 为什么会为1440635  ??

TI源程序 运行结果:
f42x_weigh_scale.c
A0 = 0mv
显示值=(sd16result - calmin)*10000/(calmax - calmin)
      =(7178 - 6312)*10000 / (7178 - 6312)
     =866 * 10000 / 866
     =10000

A0 = 5.5mv
显示值=(sd16result - calmin)*10000/(calmax - calmin)
      =(131071 - 6312)*10000 / (7178 - 6312)
     =124759 * 10000 / 866
     =1440635
请各位老师赐教!不胜感激!