Tool/software:
Hello everyone,
I'm working with a Texas Instruments msp430fr6047 microcontroller in a flow meter device, and I've run into a strange issue that seems related to processing power at certain sampling frequencies. I would greatly appreciate any insights or suggestions.
Problem Description:
We are seeing inconsistencies in flow measurements between different units. After extensive investigation, we've determined that the error occurs specifically when converting the "uncalibrated" flow to "calibrated" flow once the sampling frequency exceeds a certain threshold.
Context and Tests Performed:
The core of our troubleshooting involved a frequency sweep test (1Hz, 4Hz, 8Hz, and 16Hz) on two units: one that worked correctly and one that showed the error.
- At 1Hz and 4Hz: Both devices measured correctly, providing very similar average flow readings.
- At 8Hz and above: As soon as we switched the sampling frequency from 4Hz to 8Hz, the faulty unit showed a sudden drop in its calibrated flow reading (from ~6.7 L/h to ~6.15 L/h). The good unit's reading remained stable. The error persisted when we increased the frequency to 16Hz.
Key Troubleshooting Step:
To confirm the source of the problem, we swapped the electronics (the PCB with the msp430fr6047) between a good mechanical body and a faulty one. The measurement error moved with the electronics. This strongly suggests the issue lies within the electronic components or the MCU's processing, not the physical sensor body.
Our Conclusions:
It appears the msp430fr6047 on some units cannot correctly handle the computational load of converting the uncalibrated flow to calibrated flow (which likely involves floating-point arithmetic) when the sampling rate is 8Hz or higher.
Interestingly, both units measure the uncalibrated flow correctly even at 16Hz. The failure only happens on the calibrated flow data at 8Hz and above on the faulty unit.
Has anyone experienced similar behavior with the msp430fr6047? Could this be a specific configuration issue, a known limitation, or perhaps a problem with certain batches of the MCU? Any advice on how to optimize this conversion to ensure it runs reliably at higher frequencies would be very helpful.
Thank you in advance for your help!