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

[oopic] Re: oSerialL - Really confused

--- In oopic@yahoogroups.com, "design.wonk" <design.wonk@...> wrote:
>
> Richard,
>
> Here is the code:
>
> // Simple test for serial mode
>
> oSerialL MP3 = New oSerialL;
>
> // Init Values
>
> MP3.IOLineS = 31;
> MP3.Baud = cv9600;
>
> Void main(Void){
>
> ooPIC.Delay = 100;
>
> MP3.Value = 1;
>
> ooPIC.Delay = 5000;
>
> MP3.Value = 181;
>
> }

I believe you need the Init values stuff inside main(). I tried the
following code and watched the outputs (bit-banged output and real
usart output) and they both idle high (expected as that matches what
the PIC does with Tx) and they are identical in timing:

Dim s As New oSerialL
Dim x As New oSerialPort
Sub main()
s.IOLineS = 7
s.Baud = cv9600
Do
s = 48
x = 48
ooPIC.Delay=10
Loop
End Sub

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: