Hi ,
I am trying to communicate 2 CC2531 USB dongles through SPI using Keil. One as Master and another as Slave.
I have been successful in communicating both but the issue is the result is not consentent.
Initialy I have configured Master as follows. I have written some data in Master's UxDBUF, waited till UxTX_BYTE is set.
Then I cleared UxTX_BYTE, gave some milli-secs delay and again wrote some data in UxDBUF.
Now on Slave end. I waited till UxRX_BYTE is set. Then I cleared UxRX_BYTE, and moved the data in Slave's UxDBUF to my personal buffer
and again waited till UxRX_BYTE is set.
As I said everything is working fine, but the issue is execution is not consistent.
I believe there is some sync issue between master and slave.
Can anybody please help me regrading this issue.
Thanks in advance.
Dev.