This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I write a uart0 driver,puzzle about the interrupt mode

Dear all,

I write a uart0 driver. enable the all interrupt of UART0.

" uart0_reg->IER |= 0x01 | (1<<1) | (1<<2); "

but  running the driver, only goto the interrupt twice.

==========================

My question: 

 1. I enable the TX empty interrupt(non-FIFO mode), and don't give data to the TX register, will the process alway goto the interrupt? 

2. I enable the TX empty interrupt(non-FIFO mode), and give data to the TX register , will the process alway goto the interrupt?  Is anything I need to do to let the process goto interrupt when the TX  is empty?