LPSPI: Reading RX in continous transfer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPSPI: Reading RX in continous transfer

1,160 Views
martinhoffmann2
Contributor II

Hi!

Following the example on AN5320 https://www.nxp.com/doc/AN5320

I want to send multiple 8 bit frames in continous mode.

 

Sending works fine, but the Application Note does not describe how to correctly read back the received bytes after each single transmission.

 

Is there any detailed description available how to handle the received bytes (which flags to poll/clear, etc.)

 

Thanks in advance!

-Martin

0 Kudos
Reply
1 Reply

1,017 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

You need to poll SR[RDF] bit which is set and clear depending on the number of words in the receive FIFO, configurable in FCR[RXWATER].

 

Regards,

Daniel

0 Kudos
Reply