msmax
Full Member level 1
how to write communication interface
I made a multiPIC system iusing F628 devices and soft UART. Used RB0 as comms pin.
Now running with about 16 PIC's on 1 bus with 1 master.
The pin is always in receive mode and switches to output for transmit.
Wrote some assembler routines to TX/Rx 5 bytes of data inc. checksum and using interupt for receive.
All seems to work well. But...
CAn ne1 explain what exactly the right way is to program reliable comms between several processors wher always comms is initiated by 1 master?
What are the steps to take in account when programming?
What are the steps to check for?
Thanks for your input!
I made a multiPIC system iusing F628 devices and soft UART. Used RB0 as comms pin.
Now running with about 16 PIC's on 1 bus with 1 master.
The pin is always in receive mode and switches to output for transmit.
Wrote some assembler routines to TX/Rx 5 bytes of data inc. checksum and using interupt for receive.
All seems to work well. But...
CAn ne1 explain what exactly the right way is to program reliable comms between several processors wher always comms is initiated by 1 master?
What are the steps to take in account when programming?
What are the steps to check for?
Thanks for your input!