Clear or write TDF flag is SR(Status Register) of LPSPI as TDF is Read only bit??

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

Clear or write TDF flag is SR(Status Register) of LPSPI as TDF is Read only bit??

1,034 Views
KKumar
Contributor II

lpi_clear.PNG

How can we clear or write TDF flag is SR(Status Register) of LPSPI as TDF is Read only ??

tdf.PNG

s32 k144‌ s32 design stduio‌ 

0 Kudos
3 Replies

949 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

The TDF flag is read-only as we can see in the RM.

pastedImage_1.png

For more details, please, refer to this community thread, where this flag has been discussed.

https://community.nxp.com/message/1226655?commentID=1226655#comment-1226655 

Best regards,

Diana

0 Kudos

949 Views
KKumar
Contributor II

hello diana,

As mentioned in RM that TDF bit is read only still how can this bit is being cleared in LPSPI_s32k144 project example?? you can see in this image below.

lpi_clear.PNG

0 Kudos

949 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hello,

Yes, I see, that is why I pointed you to the link above where this has been already discussed. 

The example code is not correct.

The flag reflects the status of the FIFO register which is configurable by FCR[TXWATER]. The flag is set/clear automatically.

Best regards,

Diana

0 Kudos