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, May 2, 2008

[oopic] Serial Communications Question

Hello all,
I am using the OOPic for some simple serial communications and am
having trouble with changing baud rates on the C.1.1. My processor
has to send a command at 9600 in order to set the baud rate of the
receiving device and then change to 19200. The program works great
on a B.2.2+ OOPic but when I change to the C version, the baud rate
of the target device never gets set. If I leave everything at 9600,
all three of the chips work fine but I need the 19200. I have tried
a OOPic.Delay = 200 after all of the lines where I change the baud
rate (not worried about time because it is setup only) but the B.2.2+
does not care if there is a delay there or not. Here is the code
that does not work on the C (as far as I can tell) but it works fine
on the B:

RS232.Baud = cv9600
ooPIC.Delay = 200
RS232.VString = Chr$(0x33) + Chr$(0xBF) + Chr$(0xFF) + Chr$(0xE8) +
Chr$(0x03)
ooPIC.Delay = 200
RS232.Baud = cv19200
ooPIC.Delay = 200


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

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: