Thank you Petr.
I tried using the SendBlock API generated by Processor Expert code to transfer the data from Kinetis Slave, followed by GPIO interrupt to Master to read data.
SS1_SendBlock(slaveDevData, (LDD_TData*)data, 4);
/*Interrupt Generation to Master CPU */
| GPIO2_SetFieldValue(Led1Data, INTR, 0X1); |
GPIO2_SetFieldValue(Led1Data, INTR, 0X0);
Both the above calls execute fine at Slave End
Problem is I am not able to read the data using my SPI master which is a different MPU not Kinetis.
Currently i initiated transfer from SPI Master by sending 4 bytes clock with CS active low, SPI mode 0 (Configured same in master & Slave) & 8MHz SPI Master Clock.
I want to know how will the master notify the slave if the data has to be read or written from slave?
Is there any requirement that master has to write a byte to slave ( Like the Register address & Set read/write bit) before SLAVE sends data on MISO lines.
In other words how can i initiate SPI transfer from Master to read data from Kinetis SPI Slave?
Thanks,
Sudhir