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.

Friday, April 4, 2008

[oopic] Re: Delay in ooPIC

One possible reason is the instruction cycle time. To check this,
remove the delay and invert the line back and forth and view the
output on your scope. This will tell you how long it takes the pic
to execute the instruction. Basically, you won't be able to switch
it any faster than that time. Also, there might be some overhead
time on the OOPic.delay statement.
--- In oopic@yahoogroups.com, "mora_sutha" <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

<*> 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: