i am using the PIC 16F877 SPI mode for PIC to PIC communication between the master and slave. I have an array of characters which has a size of 10 that needs to be sent from the master to the slave. My array contains {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}.
However, what is shown on the slave is always {0, 1, 3, 5, 7, 9}. It skipped the numbers 2 4 6 and 8. I suspect that something is wrong in the SSPBUF register.
We have look at various forums and tried out their methods but none of them seem to be working.
Pls help us. Thank you for your time and effort. attached are the data sheet for the PIC 16F877 and the coding in C for Master and Header File for the pre settings for SPI MODE.
However, what is shown on the slave is always {0, 1, 3, 5, 7, 9}. It skipped the numbers 2 4 6 and 8. I suspect that something is wrong in the SSPBUF register.
We have look at various forums and tried out their methods but none of them seem to be working.
Pls help us. Thank you for your time and effort. attached are the data sheet for the PIC 16F877 and the coding in C for Master and Header File for the pre settings for SPI MODE.