The correct syntax of the STR in the command is STR I2C\count.
So what you are trying to do, send after specific point, 32 bytes of data, will not work.
Use a temp array to transfer the data...
Drift is tottaly different than jumping numbers...
When you said drift I assumed that you started with say 512 as a 50% of FSD and then it went up or down after some time, like 511, 510, 509 etc....
I did an extra test to confirm it wasn't another component on my main test board that was "messing up" the power.
I powered my isolated PIC with that DC-DC converter and sure enough ADC was...
CONFIRMED: Noisy power definitely messes up everything when the PIC tries to compare the "wiper" reading with VDD/VSS, even using two 1K resistors to simulate 50% pot.
I switched to a 7805 supply...
I thought I'd step back and check VDD and VSS using my SDS1104 scope.
This is at 50mV:
98049805
Is it realistic to expect no drift on ADC with this much noise on my lines?
:D
Ain specs from datasheet
9803
at best the top range of the pot would be useless
The PIC16F18877 has an Analog-to-Digital converter with Computation
These post-processing functions are applied to the ADC conversion result and include averaging and low-pass filtering.
Cheers...
Re: New project - MSFS C++ USB interface
Figures that I would hit a roadblock after wiring an ammeter to be able to see current and voltage in real-time. That DC-DC converter under the meters has too much noise on VDD and VSS for stable...
Demon Today, 03:57