together using oSerialX is a good way. Since oSerialX will only work on
receive if you are handshaking, and since oSerialX DOES do hardware
handshaking, this is a good option. BUT you MUST use the hardware
handshake to get them to receive from each other.
You can also use oSPI to talk back and forth, but this is synchronous
and you'll have to be paying close attention if you are doing
peer-to-peer, so it might not be the best way.
Finally you can use oI2C to do this. If you connect your prog port to
the other ooPIC's DDE (debug) port then you can essentially mount each
ooPIC to the other and talk directly to the OS - The ooPIC appears as a
256 byte EEPROM to the oI2C. This is a risky method to use - It is fast
and direct, but you can seriously bugger the ooPIC with a bad choice of
writes, so I don't recommend this to anyone that isn't pretty up on how
to deal with the ooPIC over the I2C.
Finally you can punt and use the regular RS232 through the level
converters, even though it takes up your programming serial port to do it.
DLC
msmith98990 wrote:
> Thanks for the feedback.
>
>
>>Did you also connect a ground wire?
>>
>
>
> Hmm...this I did not do. In this scenario, which IO line(s) require
> the ground line for serial communication to work? Am I basically
> grounding the two OOPics together somewhere so that they share that
> common reference?
>
>
>>Sending strings between OOPics guarantees that you will lose data,
>>since the RX buffers can only hold four bytes.
>>
>
>
> Understood. Thanks
>
>
>>Since you have an OOPic-R, why don't you work on your serial mojo
>
> by
>
>>communicating between it and your PC first? E.g. get what you send
>>from your PC to echo back to the PC as well as display on the LCD.
>>
>
>
> OK. That will be my first order of business then. I'll go back and
> read some more on the OOPic to PC communication as a first step
> towards OOPic to OOPic communication.
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
--
===================================================
Dennis Clark ooPIC Technical Support
===================================================
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:
No comments:
Post a Comment