I am trying to display an analog input on the screen, but it is not scaling properly.
The pressure sensor is a Setra_Model_264. that measure 0 to 0.1 " of water column. then output 0 to 5 Voltes.
In the debug mode, the number seems to scale correctly to -0.01045.
But the display on the screen is showing -17825 (it fluctuate from -24326 all the way up to 31038).
You may see the register I used in the attachment.
The pressure sensor is a Setra_Model_264. that measure 0 to 0.1 " of water column. then output 0 to 5 Voltes.
In the debug mode, the number seems to scale correctly to -0.01045.
But the display on the screen is showing -17825 (it fluctuate from -24326 all the way up to 31038).
You may see the register I used in the attachment.