Propeler AD conversion possibility....?
Mladen Bruck
Posts: 3
Is there anyone can tell me more about Propeler AD conversion possibility? I like to connect 4 wire touch panel to Propeler....
Tnx
Tnx
Comments
The demo board is well equipped for this with two tiny caps and a resistor close to the microphone....
There is also software for it
Post Edited (deSilva) : 10/1/2007 12:07:54 AM GMT
(a) an appropriate cap (we come to that later) and the caps to + 3V3.
I assume the X and Y resistors are grounded at the other side...
(b) to a Prop pin each we shall call X and Y respectively
The program is at follows:
Set X and Y to high for a short time, enough to charge the caps by a 20mA pulse.
Set X and Y to input
WAITPNE for X or Y to have unloaded below V/2, save CNT
WAITPEQ that both have reached V/2, save CNT
Assess the precision. If not sufficient, use a real ADC
It you need the reading each T than C should be T/2R where R is the maximum resistance oft X and Y
Post Edited (deSilva) : 10/1/2007 12:08:42 AM GMT
AN001 - Propeller Counters (v1.1; 392 KB)
It talks about using the counters for fast ADC.
But the counters won't help you much. They are nice for D/A convertion. Or you need an opamp as well...
I have used the prop to read a four-wire touch screen. I posted my code on one of the threads. Do a search. I don't have the code handy on this computer or I'd post it again for you now.
[noparse][[/noparse]edit]
Here's the thread where I posted my code:
http://forums.parallax.com/showthread.php?p=669411
[noparse][[/noparse]/edit]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Post Edited (Ken Peterson) : 9/30/2007 11:49:20 PM GMT
' At 80MHz the ADC sample resolutions and rates are as follows:
'
' sample sample
' bits rate
'
' 9 156 KHz
' 10 78 KHz
' 11 39 KHz
' 12 19.5 KHz
' 13 9.77 KHz
' 14 4.88 KHz
I have some explanation in my documentation about how the touch panel works. Hopefully it makes sense.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?