I have picked up a "bug" in Flowcode. When calculating a value say for instance:
Voltage = (ADC_VAL*5000)/1023
The simulator runs correctly. However, when dumping the code onto a pic overflow occurs. This is because the simulator uses the PC's 32/64 bit processor to calculate the value. The following works well though:
Voltage = ADC_VAL*(5000/1023)
I would like to see flowcode check and compensate for erros like this.
Flowcode math problem 32/64 bit vs 8/16bit
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Thanks for the info Nolan. We will see what we can do about this problem.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel