Receiving in LPSPI: Cookbook AN5413 vs Reference Manual

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Receiving in LPSPI: Cookbook AN5413 vs Reference Manual

767件の閲覧回数
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?

タグ(2)
0 件の賞賛
1 返信

542件の閲覧回数
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 件の賞賛