C Driver and API for the TLV2543 ADC
tellurian
Posts: 52
I have been using this device (11 channel 12bit ADC operating at 3.3V) for a while and decided to convert my SPIN code to C in part to see what kind oef a performance increase C might provide in an apples - to - apples comparison. Quite significant it turns out. Virtually the same code in pure SPIN would sample each channel at ~152 samples per second (11 channels means 1672 conversions per second). In C this became ~1082 samples per second for each channel (for 11 channels this means 11902 conversions per second). That is a speed increase of just over 7x for C vs SPIN. This bears out the 5x to 10x speed increase generally quoted for C vs SPIN.
I uploaded this Driver and API to OBEX today. It is written solely in C if anyone with ICCV7 wants to take it out for a (ahem ...) ... spin (groan).
cheers,
-tellurian
I uploaded this Driver and API to OBEX today. It is written solely in C if anyone with ICCV7 wants to take it out for a (ahem ...) ... spin (groan).
cheers,
-tellurian
Comments
Greg
Keep those C Objects coming
can you also post a comparison of the code size for the Spin and the C object?