Digital Sampling Speed

Discussion specific to the 24-pin ZX microcontrollers, e.g. ZX-24r, ZX-24s and ZX-24t.
Post Reply
JC
Posts: 56
Joined: 19 February 2006, 20:23 PM
Location: Hudson,OH
Contact:

Digital Sampling Speed

Post by JC »

I am interested in obtaining 10 or 12 bit A to D samples at a rate of 4 k Samples per Second, or more. I am considering adding an SPI compatible AtoD such as National Semi's ADC121SO21 (50-200 ksps, 12 bit, 5 BV) to a ZX-24. I want to dump the samples into an array, and then process them after the sampling is completed.

I know this chip can do the sampling much faster than my requirements, but I wondered if anyone has experience along these lines with the ZX-24 yet? I wondered what sampling rate one might reasonably obtain, running in the foreground, without any concurrent background tasks?

I can order some chips, but wondered what others might had already determined.

Thanks, JC
stevech
Posts: 715
Joined: 22 February 2006, 20:56 PM

Post by stevech »

RAM to store those samples?
JC
Posts: 56
Joined: 19 February 2006, 20:23 PM
Location: Hudson,OH
Contact:

Post by JC »

Yes, I would store about 25 mSec of data, about 100, 2 byte values, in the ZX-24's RAM, post process, and upload the data to a PC. No EEPROM or other slow device. A higher sampling rate would be nice, but 4 ksps meets the minimal requirements.

I am just not sure what one might expect speed wise using an SPI interface for a read and store loop on the ZX. My only experience with SPI was bit banged, and I hope the internal routines are an order of magnitude faster :!:

I figured this is a pretty common task, so perhaps someone had already played with it, and could provide some rough numbers.
JC
mwf
Posts: 27
Joined: 06 October 2006, 9:26 AM
Location: Boulder, CO

Post by mwf »

There is a discussion of SPI speed on another thread about using flash card storage.

about503.html

should get you there. A few microseconds per byte looks possible. That should be much faster than you need.
mwf
Post Reply