I am developing a pressure measuring device. I used the MSP430F133 chip and used the built-in IAR workbench. It shows pressure in three different units.
I take 32 samples and average them. The selection of the block on P5 according to the selected output value of the device is calculated and displayed on the LCD.
Now the "IN WC" block shows a binary averaged input scale, for analysis only.
Problem: the default values (MM WC) are displayed correctly, but in a test situation, when the pressure is released, it drops, and the LCD is read below
+31.8
+31.7
+31.6
+31.5
+31.4
+31.3
+31.2
+31.2
+31.1
+31.5 (wrong reading randomly between *.4 to *.7)
+30.9
As you can, one wrong value is displayed, I can not understand the reason.
user70944
source
share