Monday, February 25, 2008

[oopic] Re: Micro Second Delay

--- In oopic@yahoogroups.com, Ranindu Dayananda <ranindu@...> wrote:
>
> Is there any way to switch on and switch off a pin in less than 1
ms ?

One thing that doesn't work is toggling the pin in code:

-----------------------------

Dim LED As New oDIO1

Sub main()

LED.IOLine = 7
LED.Direction = cvOutput

Do
LED = Not LED
Loop

End Sub

-----------------------------

This takes 7 mS per pass through the loop or 14 mS for a complete
cycle.

This is more in line with Andrew's estimate of 400 lines per second
(CORRECTED) and
these are pretty simple lines of code.

Richard


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