We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi! I am trying to communicate two LPC2214 using SPI, For this I am making One LPC 2214 Master and Transmitting Data using SPI1 and the other LPC is Slave and reciving data using SPI0 Port. Initially for few seconds I am reciving correct data but then data starts corrupting, Why? If I use same SPI port at Both end It is working fine. I have initialized both SPI as said in the data sheet for Master Slave communication. Please Help me! I am in deep trouble now I have almost finalised my hardware and kept these two port free for communication.
You have to tell the slave if it is expected to sample the data on the rising or falling edge of the clock.
If the slave samples on the wrong edge, it is only variances in the delay times for the data and clock signals that MAY let the slave pick up any valid data. But that depends on how much delay times you have in the signal lines compared to the settle times etc.