Shop OBEX P1 Docs P2 Docs Learn Events
C Driver and API for the TLV2543 ADC — Parallax Forums

C Driver and API for the TLV2543 ADC

telluriantellurian Posts: 52
edited 2009-03-30 22:34 in Propeller 1
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

Comments

Sign In or Register to comment.