Big bug with ADC
Posted: Sun Jul 10, 2011 7:19 pm
Hi
I have write a smal sample, that can explain the bug.
The bug is in the call "ReadAsVoltage"
If you replace the 0.01 in the call "fVoltage = float32_mul(fVoltage, 0.01);" with integer number and the 0.000976 in the call "fVperDiv = float32_mul(fVoltage, 0.000976);" with integer number the complier ends successful.
You can see this in the attachment
I have write a smal sample, that can explain the bug.
The bug is in the call "ReadAsVoltage"
If you replace the 0.01 in the call "fVoltage = float32_mul(fVoltage, 0.01);" with integer number and the 0.000976 in the call "fVperDiv = float32_mul(fVoltage, 0.000976);" with integer number the complier ends successful.
You can see this in the attachment