Please find attached (The codes are new)
The codes are for polled master slave data exchange by SPI. The codes "work" without the SynchWithSlave() / SynchWithMaster(), [respective codes], but only when first Slave is hard-reset and then "Master hard-reset, less than 500ms, and Slave is hard-reset". If the delay between the Master to Slave hard-resets are greater than 500 ms, no data exchange takes place.
The SynchWithSlave() / SynchWithMaster(), [in respective codes] was introduced to avoid the hard-resets which is not acceptable for normal operation. No data exchange takes place with these two sub-routines. Using step-wise LED-o/p-diagnostics, hard-reset is still required to achive "SPI_SendByte", but SynchWithSlave() / SynchWithMaster() is not executed.
Humbly requesting guidance, where have I missed some thing. This may require re-creating this setup.
Many thanks in advance
<< attachments deleted as same code included in post later >>