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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,258 次查看
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 项奖励
回复
3 回复数

1,173 次查看
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 项奖励
回复

1,173 次查看
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 项奖励
回复

1,173 次查看
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 项奖励
回复