UroBoros
Advanced Member level 2
- Joined
- May 5, 2004
- Messages
- 642
- Helped
- 19
- Reputation
- 38
- Reaction score
- 8
- Trophy points
- 1,298
- Location
- Cochin - India
- Activity points
- 6,463
I am doing a code to communicate between two 18F452s
One master and one slave.
packet is 25 byte length.
It is interrupt based. to exchange data only thing I need to do is load the first byte of my 25 byte array. the rest will be automatically done in SPI interrupts. 25 bytes are landiing safely at the slave side from master.
But the master is getting only an echo of what is send. when the received byte is being retrieved in interrupt in slave, I am loading the byte to be send in SSBUF. But seems it is not being accepted for sending. I think I am missing some aspect of SPI.
Thanks
One master and one slave.
packet is 25 byte length.
It is interrupt based. to exchange data only thing I need to do is load the first byte of my 25 byte array. the rest will be automatically done in SPI interrupts. 25 bytes are landiing safely at the slave side from master.
But the master is getting only an echo of what is send. when the received byte is being retrieved in interrupt in slave, I am loading the byte to be send in SSBUF. But seems it is not being accepted for sending. I think I am missing some aspect of SPI.
Thanks