Receiving in LPSPI: Cookbook AN5413 vs Reference Manual

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

Receiving in LPSPI: Cookbook AN5413 vs Reference Manual

757 Views
kt1003
Contributor II

In the reference manual the LPSPI Status Register (SR) shows the RDF and TDF flags are read-only (see section 46.3.1.5.2). In the AN5413 cookbook the flags are written to 1 to clear them (e.g. in the function LPSPI1_receive_16bits). Is this necessary? Why do the flags need to be written when they are read-only? Is the Application Note correct or is the Reference Manual correct?

Tags (2)
0 Kudos
1 Reply

532 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

The reference manual is correct.

Tha flags are set/cleared depending on the number of words stored in the FIFOs.

Regards,

Daniel

0 Kudos