Hi Daniel,
Thanks for the response.
What I understood is CONT=1 will make the SPI_CS asserted though the FRAME_SIZE has been completed. CONTC=1 always because it indicates continue to transfer and do not terminate else with CONTC=0 makes the current transfer to terminate after the word size irrespective of FRAME_SIZE. Thus, it is recommended to maintain CONT=1 always & change CONTC=0 only while transferring the new communication to bring back the CS to HIGH state.
1. Is it correct?
2. Also, suggest is it necessary to perform below instructions for every byte transfer ( since my frame size is 8 bits i.e, 1 byte)
while((LPSPI1->SR & LPSPI_SR_TDF_MASK)>>LPSPI_SR_TDF_SHIFT==0); /* Wait for Tx FIFO available */
LPSPI1->TDR = send; /* Transmit data */
LPSPI1->SR |= LPSPI_SR_TDF_MASK; /* Clear TDF flag */
3. What is the purpose of clearing TDF flag after loading the data ?
Raju.