I'd like to do 50KSps analog data-sampling (which analogRead can do, as Simon Monk explains on pg. 81-83 [Sketch 04_11_analog] of his "Programming Arduino--Next Steps" book)
Thanks, Gabriel. This first version of the library is not optimised for performance. In particular, it uses the standard digitalWrite() functions to control the chip select pin on the FRAM.I'm working on a new version of the library which is already showing significant improvements. And the next release will also include another example program to demonstrate the speed.Taking your target of 50ksps, what size data item are you thinking about? 16 bit integers?RegardsRay
voltage precision is not critical
Quotevoltage precision is not criticalWhat is critical? Why take data at 50 ksps unless the data means something? What is the purpose of your measurement?
Time is as important as amplitude in measuring a signal. Even at 6-bit accuracy in amplitude you need sub microsecond accuracy in sample time to not degrade the information in your data.How do you plan to keeping sampling time jitter to about one CPU cycle?
I planned on using timers to trigger the sampling event in an ISR.