4 Replies Latest reply on Sep 10, 2018 5:59 AM by pgrlopes_3232321

    UART TX buffer status is never empty even right after clearTXBuffer function is called?

    pgrlopes_3232321

      Hi

       

      I got a UART transmission block working, sending 4 bytes at a time but the logic i'm using is actuallly not making a lot of sense to me, even though it works.

      I was checking if the transmission status was FIFO not full, but what really makes sense is to check if the FIFO is empty so I can immediatly load it with the 4 bytes to send. When I do this, however, it never goes into the if, it's always false even if right before checking it I place the clearTXBuffer and I don't understand why.

       

      Does anyone have any idea? Am I understanding the functioning wrong? I've read the datasheet some 3 or 4 times and this is what I could understand from it.

       

      Thanks.