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, September 2, 2007

[oopic] Re: Best way to integrate 2 Oopic Rs?

Using 2 R-boards with a master/slave relationship using SCP for
communications is probably the easiest way to get it done. Make the
slave the simple device and you can test it by sending SCP commands
via the PC comm port using something like Hypertermnal or the IDE
terminal window. You can test all of the commands so you know
exactly what the master has to send.

Every form of serial communication with the OOPic other than
oSerialPort has problems. Not that oSerialPort is all that good but
it does have a 4 byte buffer. As a result, you will have to
disconnect from the PC, cable the boards together and then test. I
find this a PITA but it will work. And, SCP only works on the
hardware port.

If I were doing it, I would use some kind of parallel transfer. Even
if I had to use port extenders (OOPIC1.SPI -> parallel pins <WIRE>
parallel pins <- OOPIC2.SPI). Gaining an additional 16 parallel
lines is easy with one of the Microchip extenders. Then all you have
to do is come up with a handshaking protocol: send a command, wait
for an ack, send another command, etc.

The easy way is serial with SCP but it ties up the serial port and I
don't find that acceptable. But it a way to get started...

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: