>Thanks Andy what's the difference? Between procedural and OO code, I
>mean? Is it simply the native speed of OO in the OOPIc? (ie not having
>to be interpreted?)
For every byte of script code that gets loaded
from the EEPROM, the object list in RAM gets a
complete processing pass. So one pass through a
while loop to do one update could've had 50 or
100 parallel passes through the object list.
>OK but just on that - does it matter what the value is? ie does a
>larger/smaller/type of capicitor's discharge rate ( say, if I don't
>have the right one) matter too much? I've read so much where the advice
>seems really abtirary! And does the type matter eg electrolytic etc..
For what you're doing (a manually turned
potentiometer, right?), it really doesn't matter
much. You'd just be messing with the time
constant of the circuit. With a really huge cap
(like 10,000 uF), you could turn the pot and
watch while the A/D reading slowly caught up. In
fact that's what you're doing by adding a small
cap - as noise tries to make the A/D reading jump
around rapidly, the cap slows down the changes to
the point where they have no effect - they just
end up cancelling themselves out.
You don't need an electrolytic, nor do you really
want one. They aren't designed to filter out the
high frequency noise that you're dealing
with. Just use whatever non-electrolytic cap
you've got handy. Anything in the 0.1 uF or larger range will be fine.
...Andy
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
No comments:
Post a Comment