Propeller logic threshold
Larry C.
Posts: 48
I'm in the process of evaluating the sigma-delta A to D converter circuit described in the App Note AN-001 for a project I have in mind. The zero offset depends on the ratio of the input resistor and the feedback resistor, and the size of the offset can be fairly large. For instance, with the converter resolution set to 12 bits, or 4095 counts full scale, and with R(feedback) = 100 kohms and R input = 150 kohms, the ADC output is over 1200 counts with zero input volts. That's OK, I can just subtract it out in software, but it cuts down the total range. I'd like to avoid this. The lower the value of R input, the lower the offset, which is pretty much gone when R input is reduced to about 82 kohms. So now I have nearly the whole 4000-plus count range to use.
I'm guessing the explanation is that the above resistor values form a voltage divider whose output just matches the logic threshold of the Propeller input pin when the input is at zero volts.
That brings up the question: Does anybody know if the logic threshold voltage on the Propeller inputs is a controlled parameter? OR does it vary all over the map?
I'd really like to maximize the useable A to D converter range, so I'd like to know if the threshold is consistent from chip to chip, or even from one input pin to another on the same chip.
Thanks for any help,
Larry C.
I'm guessing the explanation is that the above resistor values form a voltage divider whose output just matches the logic threshold of the Propeller input pin when the input is at zero volts.
That brings up the question: Does anybody know if the logic threshold voltage on the Propeller inputs is a controlled parameter? OR does it vary all over the map?
I'd really like to maximize the useable A to D converter range, so I'd like to know if the threshold is consistent from chip to chip, or even from one input pin to another on the same chip.
Thanks for any help,
Larry C.
Comments
http://www.parallax.com/dl/docs/prod/prop/PropellerDSv0.3.pdf
page 4
input high 1/2 VDD ... to VDD // doesn't discuss variance
Rich
*Peter*
Looks like I'll have to add a separate precision comparator if I want a more consistent response. Oh, well....
I'm working on a project for hobbyists to build and I am trying to keep the chip count and complexity
to a minimum. With the exception of this little design glitch, the Propeller is ideal for what I want.
Nice chip!
The next Propeller will have very fast VDD/2 sensing for internal analog-to-digital conversion. You'll have to turn it on, though, as it takes extra power.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chip Gracey
Parallax, Inc.
How fast do you anticipate the "very fast VDD/2 sensing" will be?? What would be the power hit when it's enabled?
Larry C.
The problem is the LSB info leaks due to the timeconstant effects
If you want to push to 12 bits of precision/linearity, then an external integrator
will be better than a comparitor, as that gives far more
accurate charge accumulation.
Hopefully, the next propellor allows the choice of the buried RC, or external
integrator for better presision ?
Good point. I didn't think of that.
So, if my number crunching is correct, in order to maintain a droop of less than one LSB, worst case scenario, at 12 bits resolution,
I'm gonna need a RC time constant about 4000 times as long as the sample period.
At 80 MHz clock, the sample period is about 50 microsec (according to AN-001), and 4000 * 50 microsec = 200 millisec or more.
Hmmm. This will slow things down. Fortunately, my application deals with slowly-changing inputs (near dc) so I could probably
get away with this approach. But for anything faster, no way.
Thanks for the insight.
ie a RC with LSB-rated cap, and an integrator with your choice of threshold on another channel.
On most chips, the pins track quite well, so if you use the simpler RC,
you could add some useful zero compensation (temperature/process)
with a second channel, that simply measures the Pin Threshold.