How can we clear or write TDF flag is SR(Status Register) of LPSPI as TDF is Read only ??
s32 k144 s32 design stduio
Hello,
The TDF flag is read-only as we can see in the RM.
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
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