propellor a/d converter
linear_shift
Posts: 1
Hi, can the Propeller be used directly as an a/d converter? In other words, no external a/d chips? If so how, and what is its maximum sample rate and resolution (at what base voltage and number of bits)? I would be using it as an a/d converter for my radio telescope for high speed DC sampling, and I would like at least 100k samples/sec at 10-bit resolution.
Thanks, ls.
Thanks, ls.
Comments
It's best to incorporate an external ADC.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
You'll get about a 78KHz sample rate at 10-bits, maybe twice that at 9-bits. Look at the sample program comments for more details.
"When the Propeller goes into shutdown mode, the internal clock is stopped causing all cogs
to halt and all I/O pins are set to input direction (high impedance)."
So I guess if the pins are set to input, then they wouldn't draw any current, and not affect my voltage divider...right?
I realize that I could use the ADC0831, and if this fails, I probably will, but would the divider work; at least at relatively low frequencies, or is there something I'm not considering?
Thanks.
http://www.pulsedpower.net/Applets/Electronics/SigmaDeltaADC/SigmaDelta.html
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
PS:· I still have yet to see a simple explaination of how to pick the best C values...· We beat that topic to death a while back here, but would still like to find a good reference for this.
"I still have yet to see a simple explaination of how to pick the best C values" - I thought that this was answered. Basically you want to treat the capacitors as a LOW pass filter so that the roll-off frequency·is set below the operating frequency of the Sigma-Delta ADC (80MHz). Treat C1 and C2 as if they were in parallel and use the formula:
f = 1 / (2*pi*R*C)
C = C1//C2 and C1=C2
R = R2
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
f = 1/(2*Pi*R1*(C1+C2))
C1 = C2 = 1 / (2*Pi*f*R1) / 2
Andy
This defines a lower limit for the capacitance. But, what defines the upper limit?
"IMHO the Low pass, which the ADC sees, is built from C1||C2 and R1 (not R2)." - Yes, it's R1 sorry.
Rayman,
"This defines a lower limit for the capacitance. But, what defines the upper limit?" - I think that the lower lmit can be a very wide range, the lower limit would be a frequency roll-off that is at least twice·the frequency being sampled due to nyquist.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 11/11/2008 3:56:56 PM GMT
Maybe that's true, but it's not so clear to me...