This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Sunday, April 6, 2008

Re: [oopic] Delay in ooPIC

Are you using the V.6 or V.5 compiler? I'm assuming that you are using
V.6 since V.5 delay is in 1/100 of a second. Your problem is that you
are using a script to do the timing - A script is run when there is time
to run it, it is not entirely deterministic. If you want reliable
timing pulses to an IO line then you need to use Virtual Circuits.
oClock with oCountDown or some similar combination will work far better
than your script when it comes to accurate and repeatable times.

DLC

mora_sutha wrote:
> Hi,
> I'm using ooPIC's delay function to change a digital O/P state. So
> after setting the state as ON, I'm giving a delay to maintain that
> state. Same thing for OFF state as well. But I'm getting different delay
> times when checked with oscilloscope. For example, when I put delay = 5,
> I'm getting a delay of 15mS. Can anybody tell what may be the reason? To
> change a line's state as we want, is this method is correct?
>
> The code fragment:
>
> Dim line1 as new oDIO1
> ........
> line1.state = cvOn
> ooPIC.delay = 5
> .........
>
> With Regards,
> G. Sudarsan
>
>
>
> [Non-text portions of this message have been removed]
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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

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: