This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can I clear TXDRDY interrupt in uart?

Hi, I'm using nrf51822. After sending a data from TXD, I enable the TXDRDY interrupt by setting INTENSET register. Then I can get into TXDRDY interrupt handler function. But I don't know how to clear the pending interrupt, then the interrupt handler function will be triggered again and again. I know setting INTENCLR register can disable the interrupt. But I don't want to disable the interrupt and enable it after sending another data, I just want to clear current interrupt and can get another interrupt after I sent another data. How can I deal with it?

Thanks, BinLei

Parents Reply Children
No Data
Related